ber-security.graylog.graylog-plugin-correlation-count.6.0.0.source-code.plugin.com.airbus_cyber_security.graylog.CorrelationCountPlugin.9f671905db489b1329d4.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graylog-plugin-correlation-count Show documentation
Show all versions of graylog-plugin-correlation-count Show documentation
Graylog ${project.artifactId} plugin.
(()=>{(()=>{var Ln={"2hHqKME2":(y,T,l)=>{"use strict";l.d(T,{A:()=>g});var h=l("++xxZkkP"),o=l.n(h),p=l("Uj4UqBXp"),s=l.n(p),c=s()(o());c.push([y.id,`.lfPLC37lRjNBE4g_uuoQ {
padding-left: 0;
margin-bottom: 20px;
}
.lfPLC37lRjNBE4g_uuoQ .lfPLC37lRjNBE4g_uuoQ {
margin-bottom: 0;
}
`,"",{version:3,sources:["webpack://./../graylog2-server/graylog2-web-interface/src/components/common/ExpandableList.css"],names:[],mappings:"AAAA;IACI,eAAe;IACf,mBAAmB;AACvB;;AAEA;IACI,gBAAgB;AACpB",sourcesContent:[`:local(.list) {
padding-left: 0;
margin-bottom: 20px;
}
:local(.list) :local(.list) {
margin-bottom: 0;
}
`],sourceRoot:""}]),c.locals={list:"lfPLC37lRjNBE4g_uuoQ"};const g=c},ylPxorvM:(y,T,l)=>{"use strict";l.d(T,{A:()=>g});var h=l("++xxZkkP"),o=l.n(h),p=l("Uj4UqBXp"),s=l.n(p),c=s()(o());c.push([y.id,`.PI8DnB8RBH0LotZYEPeK {
padding-left: 0;
padding-right: 0;
}
.PI8DnB8RBH0LotZYEPeK .popover-content {
min-width: 200px;
padding: 0;
}
.PI8DnB8RBH0LotZYEPeK .list-group {
margin-bottom: 0;
}
.PI8DnB8RBH0LotZYEPeK .list-group-item {
border-right: 0;
border-left: 0;
padding: 6px 15px;
}
.PI8DnB8RBH0LotZYEPeK .list-group-item:first-child {
border-top-right-radius: 0;
border-top-left-radius: 0;
}
.PI8DnB8RBH0LotZYEPeK .list-group-item:last-child {
border-bottom: 0;
}
.pkEYOMhUqNEfX8P0t20_ {
min-width: 200px;
max-height: 340px; /* 10 items */
overflow: auto;
}
.OPxKda_wxHEgR9j3zLr6 {
margin-bottom: 0 !important;
padding: 5px;
}
`,"",{version:3,sources:["webpack://./../graylog2-server/graylog2-web-interface/src/components/common/SelectPopover.css"],names:[],mappings:"AAAA;IACI,eAAe;IACf,gBAAgB;AACpB;;AAEA;IACI,gBAAgB;IAChB,UAAU;AACd;;AAEA;IACI,gBAAgB;AACpB;;AAEA;IACI,eAAe;IACf,cAAc;IACd,iBAAiB;AACrB;;AAEA;IACI,0BAA0B;IAC1B,yBAAyB;AAC7B;;AAEA;IACI,gBAAgB;AACpB;;AAEA;IACI,gBAAgB;IAChB,iBAAiB,EAAE,aAAa;IAChC,cAAc;AAClB;;AAEA;IACI,2BAA2B;IAC3B,YAAY;AAChB",sourcesContent:[`:local(.customPopover) {
padding-left: 0;
padding-right: 0;
}
:local(.customPopover) .popover-content {
min-width: 200px;
padding: 0;
}
:local(.customPopover) .list-group {
margin-bottom: 0;
}
:local(.customPopover) .list-group-item {
border-right: 0;
border-left: 0;
padding: 6px 15px;
}
:local(.customPopover) .list-group-item:first-child {
border-top-right-radius: 0;
border-top-left-radius: 0;
}
:local(.customPopover) .list-group-item:last-child {
border-bottom: 0;
}
:local(.scrollableList) {
min-width: 200px;
max-height: 340px; /* 10 items */
overflow: auto;
}
:local(.dataFilterInput) {
margin-bottom: 0 !important;
padding: 5px;
}
`],sourceRoot:""}]),c.locals={customPopover:"PI8DnB8RBH0LotZYEPeK",scrollableList:"pkEYOMhUqNEfX8P0t20_",dataFilterInput:"OPxKda_wxHEgR9j3zLr6"};const g=c},bffMS9iY:(y,T,l)=>{"use strict";l.d(T,{A:()=>g});var h=l("++xxZkkP"),o=l.n(h),p=l("Uj4UqBXp"),s=l.n(p),c=s()(o());c.push([y.id,`.F8JsHDlocOP82l_a4p3M {
margin-top: 10px;
margin-bottom: 10px;
}
.oRsl6Q1FozahfcExjNZz {
table-layout: fixed;
}
.JfQYmJBLzfITV1QXyowf.alert {
margin-bottom: 10px;
}
.JfQYmJBLzfITV1QXyowf h4 {
font-size: 1.44rem; /* theme.fonts.size.body h4 */
margin-bottom: 0.5em;
}
.JfQYmJBLzfITV1QXyowf ul {
list-style: disc;
margin: 0.5em 0;
}
`,"",{version:3,sources:["webpack://./../graylog2-server/graylog2-web-interface/src/components/event-definitions/common/commonStyles.css"],names:[],mappings:"AAAA;IACI,gBAAgB;IAChB,mBAAmB;AACvB;;AAEA;IACI,mBAAmB;AACvB;;AAEA;IACI,mBAAmB;AACvB;;AAEA;IACI,kBAAkB,EAAE,6BAA6B;IACjD,oBAAoB;AACxB;;AAEA;IACI,gBAAgB;IAChB,eAAe;AACnB",sourcesContent:[`:local(.title) {
margin-top: 10px;
margin-bottom: 10px;
}
:local(.fixedTable) {
table-layout: fixed;
}
:local(.validationSummary).alert {
margin-bottom: 10px;
}
:local(.validationSummary) h4 {
font-size: 1.44rem; /* theme.fonts.size.body h4 */
margin-bottom: 0.5em;
}
:local(.validationSummary) ul {
list-style: disc;
margin: 0.5em 0;
}
`],sourceRoot:""}]),c.locals={title:"F8JsHDlocOP82l_a4p3M",fixedTable:"oRsl6Q1FozahfcExjNZz",validationSummary:"JfQYmJBLzfITV1QXyowf"};const g=c},"466uocAC":(y,T,l)=>{"use strict";l.d(T,{A:()=>g});var h=l("++xxZkkP"),o=l.n(h),p=l("Uj4UqBXp"),s=l.n(p),c=s()(o());c.push([y.id,`#toast-container .toast {
display: grid;
grid-template-columns: 8fr 0.5fr;
grid-template-rows: repeat(2, 1fr);
grid-column-gap: 0;
grid-row-gap: 0;
}
#toast-container .toast-title {
grid-area: 1 / 1 / 2 / 1;
}
#toast-container .toast-message {
grid-area: 2 / 2 / 2 / 1;
}
#toast-container button.toast-close-button {
font-size: 0.889rem; /* theme.fonts.size.small */
grid-area: 1 / 2 / 3 / 3;
height: 100%;
top: 0;
right: 0;
font-weight: normal;
}
#toast-container button.toast-close-button:focus,
#toast-container button.toast-close-button:hover {
color: #fff;
}
`,"",{version:3,sources:["webpack://./../graylog2-server/graylog2-web-interface/src/util/UserNotification.css"],names:[],mappings:"AAAA;EACE,aAAa;EACb,gCAAgC;EAChC,kCAAkC;EAClC,kBAAkB;EAClB,eAAe;AACjB;;AAEA;EACE,wBAAwB;AAC1B;;AAEA;EACE,wBAAwB;AAC1B;;AAEA;EACE,mBAAmB,EAAE,2BAA2B;EAChD,wBAAwB;EACxB,YAAY;EACZ,MAAM;EACN,QAAQ;EACR,mBAAmB;AACrB;;AAEA;;EAEE,WAAW;AACb",sourcesContent:[`#toast-container .toast {
display: grid;
grid-template-columns: 8fr 0.5fr;
grid-template-rows: repeat(2, 1fr);
grid-column-gap: 0;
grid-row-gap: 0;
}
#toast-container .toast-title {
grid-area: 1 / 1 / 2 / 1;
}
#toast-container .toast-message {
grid-area: 2 / 2 / 2 / 1;
}
#toast-container button.toast-close-button {
font-size: 0.889rem; /* theme.fonts.size.small */
grid-area: 1 / 2 / 3 / 3;
height: 100%;
top: 0;
right: 0;
font-weight: normal;
}
#toast-container button.toast-close-button:focus,
#toast-container button.toast-close-button:hover {
color: #fff;
}
`],sourceRoot:""}]),c.locals={};const g=c},o7GEe6Qe:(y,T,l)=>{"use strict";l.d(T,{A:()=>I});var h=l("Z7aTuO5B"),o=l("J6y4/h8P"),p=l("L3UIULT/"),s=l("elvN/k85");const c=(0,o.default)(p.Alert)(({$bsStyle:D,theme:d})=>(0,o.css)`
margin: ${d.spacings.md} 0;
border: 1px solid ${d.colors.variant.lighter[D]};
.mantine-Alert-message {
color: ${d.colors.global.textDefault};
font-size: ${d.fonts.size.body};
}
.mantine-Alert-title {
font-size: ${d.fonts.size.body};
color: ${d.colors.global.textDefault};
}
.mantine-Alert-closeButton {
color: ${d.colors.global.textDefault};
},
`),g=D=>{switch(D){case"warning":case"danger":return"error";case"success":return"check_circle";default:return"info"}},b=({children:D,bsStyle:d,title:S,style:R,className:O,onDismiss:w,noIcon:U})=>{const k=typeof w=="function",L=g(d);return h.createElement(c,{$bsStyle:d,className:O,color:d,style:R,onClose:w,title:S,icon:U?null:h.createElement(s.A,{name:L}),closeButtonLabel:k&&"Close alert",withCloseButton:k},D)};b.defaultProps={className:void 0,onDismiss:void 0,style:void 0,title:void 0,bsStyle:"default",noIcon:!1};const I=b},"Z/PhoFvD":(y,T,l)=>{"use strict";l.d(T,{A:()=>g});var h=l("Z7aTuO5B"),o=l("L3UIULT/"),p=l("J6y4/h8P");const s=(0,p.default)(o.Badge)(({theme:b,color:I})=>(0,p.css)`
color: ${b.colors.contrast[I]};
text-transform: none;
.mantine-Badge-label {
font-size: ${b.fonts.size.small};
}
`),c=h.forwardRef(({bsStyle:b,className:I,children:D,"data-testid":d,onClick:S,title:R},O)=>h.createElement(s,{color:b,className:I,title:R,"data-testid":d,ref:O,variant:"filled",onClick:S},D));c.defaultProps={bsStyle:"default",className:void 0,"data-testid":void 0,onClick:void 0,title:void 0};const g=c},jdU8EhS8:(y,T,l)=>{"use strict";l.d(T,{A:()=>R});var h=l("KfF0gQb+"),o=l.n(h),p=l("Z7aTuO5B"),s=l("kqAR+wt5"),c=l.n(s),g=l("yviUsp+Y"),b=l.n(g),I=l("o8xG4j5J"),D=l("NpM3ILy/"),d=l("+/lOUfGq");const S=({backdrop:O,submitButtonDisabled:w,formProps:U,bsSize:k,show:L,submitButtonText:x,onSubmitForm:P,onCancel:F,title:$,children:se,modalTitle:Te,...ge})=>{const be=(0,p.useRef)(null),ne=De=>{const Ce=be.current,Fe=c()(Ce);if(typeof Ce.checkValidity=="function"&&!Ce.checkValidity()||typeof Fe.checkValidity=="function"&&!Fe.checkValidity()){De.preventDefault();return}typeof P=="function"&&(De.preventDefault(),P(De))},Oe=p.createElement("div",{className:"container-fluid"},se),Se=(0,p.useMemo)(()=>b()($)?$:Te,[Te,$]);return p.createElement(d.A,{bsSize:k,showModal:L,backdrop:O,onHide:F,title:Se,...ge},p.createElement(D.A.Header,{closeButton:!0},p.createElement(D.A.Title,null,$)),p.createElement("form",{ref:be,onSubmit:ne,...U,"data-testid":"modal-form"},p.createElement(D.A.Body,null,Oe),p.createElement(D.A.Footer,null,p.createElement(I.A,{disabledSubmit:w,onCancel:F,submitButtonText:x}))))};S.propTypes={backdrop:o().oneOf([!0,!1,"static"]),bsSize:o().oneOf(["lg","large","sm","small"]),title:o().oneOfType([o().string,o().node]).isRequired,children:o().oneOfType([o().arrayOf(o().element),o().element]).isRequired,onSubmitForm:o().func,onCancel:o().func.isRequired,formProps:o().object,submitButtonText:o().oneOfType([o().string,o().node]),submitButtonDisabled:o().bool,show:o().bool.isRequired},S.defaultProps={backdrop:void 0,formProps:{},submitButtonText:"Submit",submitButtonDisabled:!1,onSubmitForm:void 0,bsSize:void 0,modalTitle:void 0};const R=S},"+/lOUfGq":(y,T,l)=>{"use strict";l.d(T,{A:()=>g});var h=l("KfF0gQb+"),o=l.n(h),p=l("Z7aTuO5B"),s=l("NpM3ILy/");const c=({showModal:b,children:I,onHide:D,bsSize:d,backdrop:S,role:R,...O})=>p.createElement(s.A,{show:b,onHide:D,bsSize:d,backdrop:S,role:R,...O},I);c.propTypes={showModal:o().bool.isRequired,children:o().oneOfType([o().arrayOf(o().element),o().element]).isRequired,onHide:o().func.isRequired,bsSize:o().oneOf(["large","lg","small","sm"]),backdrop:o().oneOf(["static",!0,!1]),role:o().string},c.defaultProps={bsSize:void 0,backdrop:"static",role:"dialog",title:void 0};const g=c},pRemyZyX:(y,T,l)=>{"use strict";l.d(T,{A:()=>R});var h=l("Z7aTuO5B"),o=l("L3UIULT/"),p=l("J6y4/h8P");const s=O=>{switch(O){case"xs":case"xsmall":return"xs";case"sm":case"small":return"sm";case"lg":case"large":return"lg";default:return"md"}},c=O=>O==="default"?"gray":O,g=O=>{switch(O){case"link":return{variant:"subtle"};default:return{}}},b=O=>{switch(O){case"xs":case"xsmall":return(0,p.css)`
height: 21.4141px;
padding: 1px 5px;
`;case"sm":case"small":return(0,p.css)`
height: 29.4141px;
padding: 5px 10px;
`;case"lg":case"large":return(0,p.css)`
height: 43.1641px;
padding: 10px 16px;
`;case"medium":default:return(0,p.css)`
height: 33.84px;
padding: 6px 12px;
`}},I=(O,w)=>{if(w==="link")return"";const U=O.disabled[w];return(0,p.css)`
&:disabled,
&[data-disabled] {
pointer-events: all;
color: ${U.color};
background-color: ${U.background};
opacity: 0.45;
&:hover {
color: ${U.color};
}
}
`},D=(O,w)=>{switch(w){case"danger":case"info":case"success":case"primary":case"warning":return(0,p.css)`
color: ${O.global.textDefault};
&:hover {
color: ${O.global.textDefault};
}
&:focus {
color: ${O.global.textDefault};
}
`;default:return""}},d=(0,p.default)(o.Button)(({theme:O,$bsStyle:w,$bsSize:U,$active:k})=>{const L=w==="link"?O.colors.global.link:O.colors.button[w].color;return(0,p.css)`
color: ${L};
font-weight: 400;
overflow: visible;
${I(O.colors,w)}
${b(U)}
&:hover {
color: ${L};
text-decoration: none;
}
&:focus {
color: ${L};
text-decoration: none;
}
${k&&D(O.colors,w)}
.mantine-Button-label {
gap: 0.25em;
overflow: visible;
}
.mantine-Button-loader {
visibility: hidden;
}
`}),S=h.forwardRef(({"aria-label":O,bsStyle:w,bsSize:U,className:k,"data-testid":L,id:x,onClick:P,disabled:F,href:$,title:se,form:Te,target:ge,type:be,rel:ne,role:Oe,name:Se,tabIndex:De,children:Ce,active:Fe},fe)=>{const ut=(0,p.useTheme)(),Ge=c(w),ze=Ge==="link"?"transparent":ut.colors.button[Ge].background,Ve={id:x,"aria-label":O,className:k,...g(Ge),$active:Fe,$bsStyle:Ge,$bsSize:U,variant:Fe?"outline":"filled",color:ze,"data-testid":L,disabled:F,role:Oe,size:s(U),tabIndex:De,title:se,type:be};return $?h.createElement(d,{component:"a",href:$,target:ge,rel:ne,onClick:P,...Ve},Ce):h.createElement(d,{ref:fe,form:Te,onClick:P,name:Se,...Ve},Ce)});S.defaultProps={active:void 0,"aria-label":void 0,bsStyle:"default",bsSize:void 0,className:void 0,"data-testid":void 0,disabled:!1,form:void 0,href:void 0,id:void 0,name:void 0,onClick:void 0,rel:void 0,role:void 0,tabIndex:void 0,target:void 0,title:void 0,type:void 0};const R=S},"+RZHtZRi":(y,T,l)=>{"use strict";l.d(T,{A:()=>o});var h=l("L3UIULT/");const o=h.Button.Group},qKIMiD1A:(y,T,l)=>{"use strict";l.d(T,{A:()=>g});var h=l("Z7aTuO5B"),o=l("J6y4/h8P"),p=l("+RZHtZRi");const s=(0,o.default)(p.A)`
gap: 0.25em;
`,g=b=>h.createElement(s,{...b})},o00ywHYy:(y,T,l)=>{"use strict";l.d(T,{A:()=>s});var h=l("Z7aTuO5B"),o=l("aKyEWaw1");const s=({onChange:c,...g})=>h.createElement(o.Checkbox,{onChange:c,...g})},"2fQaru/3":(y,T,l)=>{"use strict";l.d(T,{A:()=>s});var h=l("J6y4/h8P"),o=l("aKyEWaw1");const s=(0,h.default)(o.ControlLabel)(({theme:c})=>(0,h.css)`
color: ${c.colors.global.textDefault};
font-weight: bold;
margin-bottom: 5px;
display: inline-block;
`)},og1F2idq:(y,T,l)=>{"use strict";l.d(T,{A:()=>c});var h=l("aKyEWaw1"),o=l("J6y4/h8P"),p=l("pS0GGJuX");const s=(0,o.default)(h.FormControl)(({theme:g})=>(0,o.css)`
&.form-control {
border-radius: ${p.Jk};
}
&.form-control:not([type='range']) {
color: ${g.colors.input.color};
background-color: ${g.colors.input.background};
border-color: ${g.colors.input.border};
&::placeholder {
color: ${g.colors.input.placeholder};
}
&:focus {
border-color: ${g.colors.input.borderFocus};
box-shadow: ${g.colors.input.boxShadow};
}
&[disabled],
&[readonly],
fieldset[disabled] & {
background-color: ${g.colors.input.backgroundDisabled};
color: ${g.colors.input.colorDisabled};
}
~ .form-control-feedback.glyphicon {
display: none;
}
}
`);s.Static=h.FormControl.Static,s.Feedback=h.FormControl.Feedback;const c=s},NzGc2uPJ:(y,T,l)=>{"use strict";l.d(T,{A:()=>O});var h=l("Z7aTuO5B"),o=l("KfF0gQb+"),p=l.n(o),s=l("aKyEWaw1"),c=l("J6y4/h8P"),g=l("ww+BtWnX"),b=l.n(g),I=l("V7hwd7tl"),D=l("og1F2idq"),d=l("4ts0Ap8A");const S=(0,c.default)(s.FormGroup)(({theme:w,validationState:U})=>{const k=U==="error"?"danger":U;if(!k)return;const L=w.colors.variant.dark[k],x=w.colors.variant.light[k],P=w.colors.variant.lightest[k];return(0,c.css)`
&.has-${U} {
.help-block,
.control-label,
.radio,
.checkbox,
.radio-inline,
.checkbox-inline,
&.radio label,
&.checkbox label,
&.radio-inline label,
&.checkbox-inline label {
color: ${L};
}
${D.A}, .${I.Z} {
border-color: ${x};
&:focus {
border-color: ${b()(x).darken(.1)};
box-shadow: inset 0 1px 1px rgb(0 0 0 / 7.5%), 0 0 6px ${b()(x).brighten(.2)};
}
}
${d.A} {
color: ${L};
background-color: ${P};
border-color: ${x};
}
.form-control-feedback {
color: ${L};
}
}
`}),R=(0,h.memo)(({children:w,validationState:U,...k})=>h.createElement(S,{validationState:U,...k},w));R.propTypes={children:p().node.isRequired,validationState:p().oneOf([null,"error","success","warning"])},R.defaultProps={validationState:null};const O=R},A2KAXP9g:(y,T,l)=>{"use strict";l.d(T,{A:()=>k});var h=l("KfF0gQb+"),o=l.n(h),p=l("Z7aTuO5B"),s=l("Btg6k4SR"),c=l("o00ywHYy"),g=l("Clc3x+/C"),b=l("2fQaru/3"),I=l("og1F2idq"),D=l("NzGc2uPJ"),d=l("4ts0Ap8A"),S=l("XgvalpFO"),R=Object.defineProperty,O=(L,x,P)=>x in L?R(L,x,{enumerable:!0,configurable:!0,writable:!0,value:P}):L[x]=P,w=(L,x,P)=>(O(L,typeof x!="symbol"?x+"":x,P),P);class U extends p.Component{constructor(){super(...arguments),w(this,"getInputDOMNode",()=>this.input),w(this,"getValue",()=>{const{type:x}=this.props;if(!x)throw new Error("Cannot use getValue without specifying input type.");switch(x){case"checkbox":case"radio":return this.getInputDOMNode().checked;default:return this.getInputDOMNode().value}}),w(this,"getChecked",()=>this.getInputDOMNode().checked),w(this,"_renderFormControl",(x,P,F)=>p.createElement(I.A,{inputRef:$=>{this.input=$},componentClass:x,...P},F)),w(this,"_renderFormGroup",x=>{const{id:P,bsStyle:F,formGroupClassName:$,wrapperClassName:se,inputDescClassName:Te,label:ge,labelClassName:be,error:ne,help:Oe,buttonAfter:Se,addonAfter:De}=this.props;let Ce;return De||Se?Ce=p.createElement(d.h,null,x,Se&&p.createElement(d.h.Button,null,Se),De&&p.createElement(d.h.Addon,null,De)):Ce=x,p.createElement(D.A,{controlId:P,validationState:ne?"error":F,bsClass:$},ge&&p.createElement(b.A,{className:be},ge),p.createElement(S.A,{className:se},Ce,p.createElement(s.A,{error:ne,help:Oe,className:Te})))}),w(this,"_renderCheckboxGroup",x=>{const{id:P,buttonAfter:F,bsStyle:$,formGroupClassName:se,inputDescClassName:Te,wrapperClassName:ge,label:be,error:ne,help:Oe}=this.props;return p.createElement(D.A,{controlId:P,validationState:ne?"error":$,bsClass:se},p.createElement(S.A,{className:ge},F?p.createElement(d.h,null,p.createElement(c.A,{inputRef:Se=>{this.input=Se},...x},be),F&&p.createElement(d.h.Button,null,F)):p.createElement(c.A,{inputRef:Se=>{this.input=Se},...x},be),p.createElement(s.A,{error:ne,help:Oe,className:Te})))}),w(this,"_renderRadioGroup",x=>{const{id:P,bsStyle:F,formGroupClassName:$,inputDescClassName:se,wrapperClassName:Te,label:ge,error:be,help:ne}=this.props;return p.createElement(D.A,{controlId:P,validationState:be?"error":F,bsClass:$},p.createElement(S.A,{className:Te},p.createElement(g.sx,{inputRef:Oe=>{this.input=Oe},...x},ge),p.createElement(s.A,{error:be,help:ne,className:se})))})}render(){const{id:x,type:P,children:F,label:$,name:se,bsStyle:Te,formGroupClassName:ge,wrapperClassName:be,labelClassName:ne,inputDescClassName:Oe,error:Se,help:De,addonAfter:Ce,buttonAfter:Fe,...fe}=this.props;if(fe.type=P,fe.label=$,fe.name=se||x,!P)return this._renderFormGroup(F);switch(P){case"text":case"password":case"email":case"number":case"file":case"tel":return this._renderFormGroup(this._renderFormControl("input",fe));case"textarea":return this._renderFormGroup(this._renderFormControl("textarea",fe));case"select":return this._renderFormGroup(this._renderFormControl("select",fe,F));case"checkbox":return this._renderCheckboxGroup(fe);case"radio":return this._renderRadioGroup(fe);default:console.warn(`Unsupported input type ${P}`)}return null}}w(U,"propTypes",{id:o().string.isRequired,type:o().string,name:o().string,label:o().oneOfType([o().element,o().string]),labelClassName:o().string,bsStyle:o().oneOf(["success","warning","error"]),formGroupClassName:o().string,inputDescClassName:o().string,value:o().oneOfType([o().string,o().number]),placeholder:o().string,error:o().oneOfType([o().element,o().string]),help:o().oneOfType([o().element,o().string]),wrapperClassName:o().string,addonAfter:o().oneOfType([o().element,o().string]),buttonAfter:o().oneOfType([o().element,o().string]),children:o().oneOfType([o().array,o().element])}),w(U,"defaultProps",{type:void 0,label:"",labelClassName:void 0,name:void 0,formGroupClassName:void 0,inputDescClassName:void 0,bsStyle:null,value:void 0,placeholder:"",error:void 0,help:void 0,wrapperClassName:void 0,addonAfter:null,buttonAfter:null,children:null});const k=U},"4ts0Ap8A":(y,T,l)=>{"use strict";l.d(T,{A:()=>D,h:()=>O});var h=l("Z7aTuO5B"),o=l("KfF0gQb+"),p=l.n(o),s=l("aKyEWaw1"),c=l("J6y4/h8P"),g=l("/G8hFj5s"),b=l.n(g);const I=({className:w,...U})=>h.createElement(s.InputGroup.Addon,{bsClass:w,...U}),D=(0,c.default)(I)(({theme:w})=>(0,c.css)`
color: ${w.colors.input.color};
background-color: ${w.colors.input.background};
border-color: ${w.colors.input.border};
`),d=({bsClass:w,className:U,...k})=>h.createElement(D,{className:b()(w,U),...k}),S=({bsClass:w,className:U,...k})=>h.createElement(s.InputGroup.Button,{bsClass:b()(w,U),...k}),R=({bsClass:w,className:U,...k})=>h.createElement(s.InputGroup,{bsClass:b()(w,U),...k});R.Addon=d,R.Button=S,I.propTypes={className:p().string},I.defaultProps={className:void 0},R.propTypes={bsClass:p().string,className:p().string,children:p().node.isRequired},R.defaultProps={bsClass:"input-group",className:void 0},d.propTypes={bsClass:p().string,className:p().string,children:p().node.isRequired},d.defaultProps={bsClass:"input-group-addon",className:void 0},S.propTypes={bsClass:p().string,className:p().string,children:p().node.isRequired},S.defaultProps={bsClass:"input-group-btn",className:void 0};const O=R},XgvalpFO:(y,T,l)=>{"use strict";l.d(T,{A:()=>c});var h=l("KfF0gQb+"),o=l.n(h),p=l("Z7aTuO5B");const s=({children:g,className:b})=>b?p.createElement("div",{className:b},g):p.createElement("span",null,g);s.propTypes={className:o().string,children:o().node.isRequired},s.defaultProps={className:void 0};const c=s},O4LzYxeJ:(y,T,l)=>{"use strict";l.d(T,{A:()=>I});var h=l("Z7aTuO5B"),o=l("L3UIULT/"),p=l("J6y4/h8P");const s=({children:D,closeOnItemClick:d,keepMounted:S,offset:R,onChange:O,onClose:w,opened:U,portalProps:k,position:L,shadow:x,width:P,withinPortal:F,zIndex:$})=>h.createElement(o.Menu,{closeOnItemClick:d,onClose:w,shadow:x,opened:U,onChange:O,portalProps:k,width:P,position:L,withinPortal:F,keepMounted:S,offset:R,zIndex:$},D),c=(0,p.default)(o.Menu.Item)(({theme:D})=>(0,p.css)`
color: ${D.colors.global.textDefault};
font-size: ${D.fonts.size.body};
white-space: nowrap;
&[data-hovered], &:focus {
text-decoration: none;
color: inherit;
background-color: ${D.utils.colorLevel(D.colors.global.contentBackground,10)}
}
`),g=(0,p.default)(o.Menu.Divider)(({theme:D})=>(0,p.css)`
border-color: ${D.colors.variant.lighter.default};
`),b=(0,p.default)(o.Menu.Label)(({theme:D})=>(0,p.css)`
font-size: ${D.fonts.size.navigation};
`);s.Target=o.Menu.Target,s.Dropdown=(0,p.default)(o.Menu.Dropdown)(({theme:D})=>(0,p.css)`
&& {
background-color: ${D.colors.global.contentBackground};
border: 1px solid ${D.colors.variant.lighter.default};
}
`),s.Item=c,s.Divider=g,s.Label=b,s.defaultProps={closeOnItemClick:!0,keepMounted:void 0,offset:void 0,onChange:void 0,onClose:void 0,opened:void 0,portalProps:void 0,position:void 0,shadow:void 0,width:void 0,withinPortal:!1,zIndex:void 0};const I=s},MTL7eqpZ:(y,T,l)=>{"use strict";l.d(T,{A:()=>D});var h=l("Z7aTuO5B"),o=l("J6y4/h8P"),p=l("KtULIsGV"),s=l("elvN/k85"),c=l("O4LzYxeJ");const g=(0,o.default)(c.A.Item)(({$variant:d,theme:S})=>(0,o.css)`
${d?`color: ${S.colors.variant.danger};`:""}
`),b=o.default.div`
display: inline-flex;
min-width: 20px;
margin-right: 5px;
justify-content: center;
align-items: center;
`,I=({children:d,className:S,disabled:R,divider:O,eventKey:w,header:U,href:k,icon:L,id:x,onClick:P,onSelect:F,rel:$,target:se,title:Te,"data-tab-id":ge,component:be,variant:ne,closeMenuOnClick:Oe})=>{const Se=P!=null?P:F,De=(0,h.useCallback)(()=>Se==null?void 0:Se(w),[Se,w]);if(O)return h.createElement(c.A.Divider,{role:"separator",className:S,id:x});if(U)return h.createElement(c.A.Label,{role:"heading",className:S,id:x},d);const Ce={$variant:ne,className:S,"data-tab-id":ge,disabled:R,icon:L?h.createElement(b,null,h.createElement(s.A,{name:L})):null,id:x,onClick:De,title:Te,closeMenuOnClick:Oe};return k?h.createElement(g,{component:p.N_,to:k,rel:$,target:se,...Ce},d):h.createElement(g,{component:be,...Ce},d)};I.defaultProps={className:void 0,closeMenuOnClick:void 0,component:void 0,"data-tab-id":void 0,disabled:!1,divider:!1,eventKey:void 0,header:!1,href:void 0,icon:void 0,id:void 0,onClick:void 0,onSelect:void 0,rel:void 0,target:void 0,title:void 0,variant:void 0};const D=I},"NpM3ILy/":(y,T,l)=>{"use strict";l.d(T,{A:()=>D});var h=l("aKyEWaw1"),o=l("J6y4/h8P");const p=(0,o.css)`
margin-top: 55px;
.modal-content {
background-color: ${({theme:d})=>d.colors.global.contentBackground};
border-color: ${({theme:d})=>d.colors.variant.light.default};
height: 100%;
}
`,s=(0,o.css)`
border-bottom-color: ${({theme:d})=>d.colors.variant.light.default};
button.close {
color: currentColor;
}
`,c=(0,o.css)`
font-size: ${({theme:d})=>d.fonts.size.h3};
`,g=(0,o.css)`
border-top-color: ${({theme:d})=>d.colors.variant.light.default};
`,b=(0,o.css)`
.form-group {
margin-bottom: 5px;
}
`,I=(0,o.default)(h.Modal)`
.modal-backdrop {
height: 100000%; /* yes, really. this fixes the backdrop being cut off when the page is scrolled. */
z-index: 1030;
}
form {
margin-bottom: 0;
}
.modal-dialog {
${p}
}
.modal-header {
${s}
}
.modal-footer {
${g}
}
.modal-title {
${c}
}
.modal-body {
${b}
}
`;I.Dialog=(0,o.default)(h.Modal.Dialog)`
${p}
`,I.Header=(0,o.default)(h.Modal.Header)`
${s}
`,I.Title=(0,o.default)(h.Modal.Title)`
${c}
`,I.Body=(0,o.default)(h.Modal.Body)`
${b}
`,I.Footer=(0,o.default)(h.Modal.Footer)`
${g}
`;const D=I},mnllydGL:(y,T,l)=>{"use strict";l.d(T,{A:()=>L});var h=l("Z7aTuO5B"),o=l("KfF0gQb+"),p=l.n(o),s=l("J6y4/h8P"),c=l("aKyEWaw1"),g=l("DBsovJTc");const b="Graylog Deprecation Notice:",D=x=>g.A.gl2DevMode()&&console.warn(b,x),d=(0,s.default)(c.Panel.Heading)(({theme:x})=>(0,s.css)`
.panel-title {
> a {
color: ${x.colors.global.textDefault};
display: block;
}
}
`),S=(0,s.default)(c.Panel.Footer)(({theme:x})=>(0,s.css)`
background-color: ${x.colors.gray[90]};
border-top-color: ${x.colors.gray[80]};
`),R=(0,s.css)(({bsStyle:x="default",theme:P})=>{const F=P.colors.variant.lighter[x],$=P.colors.variant.dark[x];return(0,s.css)`
border-color: ${$};
> ${d} {
color: ${P.utils.readableColor(F)};
background-color: ${F};
border-color: ${$};
+ .panel-collapse > .panel-body {
border-top-color: ${$};
}
.badge {
color: ${F};
background-color: ${P.colors.variant[x]};
}
}
> ${S} {
+ .panel-collapse > .panel-body {
border-bottom-color: ${$};
}
}
`}),O=(0,s.default)(c.Panel)(({theme:x})=>(0,s.css)`
background-color: ${x.utils.colorLevel(x.colors.global.background,-4)};
> ${d} {
.panel-title,
.panel-title h3 {
font-size: ${x.fonts.size.large};
}
}
.panel-group {
> ${d} {
+ .panel-collapse > .panel-body,
+ .panel-collapse > .list-group {
border-top-color: ${x.colors.gray[90]};
}
}
> ${S} {
+ .panel-collapse .panel-body {
border-bottom-color: ${x.colors.gray[90]};
}
}
}
${R}
`),w=(0,s.css)(({bsStyle:x="default",theme:P})=>{const F=P.colors.variant.lightest[x],$=P.colors.variant.light[x];return(0,s.css)`
/** NOTE: Deprecated & should be removed in 4.0 */
border-color: ${$};
background: ${P.colors.table.row.background};
& > .panel-heading {
color: ${P.utils.contrastingColor(F)};
background-color: ${F};
border-color: ${$};
> .panel-title,
> .panel-title > * {
font-size: ${P.fonts.size.large};
}
+ .panel-collapse > .panel-body {
border-top-color: ${$};
}
.badge {
color: ${F};
background-color: ${P.colors.variant[x]};
}
}
& > .panel-footer {
+ .panel-collapse > .panel-body {
border-bottom-color: ${$};
}
}
`}),U=(0,s.default)(c.Panel)(({theme:x})=>(0,s.css)`
/** NOTE: Deprecated & should be removed in 4.0 */
background-color: ${x.utils.colorLevel(x.colors.global.background,-4)};
.panel-footer {
background-color: ${x.colors.gray[90]};
border-top-color: ${x.colors.gray[80]};
}
.panel-group {
.panel-heading {
+ .panel-collapse > .panel-body,
+ .panel-collapse > .list-group {
border-top-color: ${x.colors.gray[90]};
}
}
.panel-footer {
+ .panel-collapse .panel-body {
border-bottom-color: ${x.colors.gray[90]};
}
}
}
${w}
`),k=({title:x,children:P,collapsible:F,defaultExpanded:$,expanded:se,footer:Te,header:ge,onToggle:be,...ne})=>{const[Oe,Se]=(0,h.useState)(null),De=(0,h.useRef)(!1);(0,h.useEffect)(()=>{Se(fe=>$&&se||!$&&se||$&&fe===se)},[se,$]),(0,h.useEffect)(()=>{De.current=!0},[]);const Ce=fe=>{Se(fe),be(fe)},Fe=typeof P=="string"||Array.isArray(P)&&typeof P[0]=="string";return ge||Te||x||F||Fe?(De.current||D("You have used a deprecated `Panel` prop, please check the documentation to use the latest `Panel`."),h.createElement(U,{expanded:Oe,onToggle:Ce,...ne},(ge||x)&&h.createElement(d,null,ge,x&&h.createElement(c.Panel.Title,{toggle:F},x)),h.createElement(U.Body,{collapsible:F},P),Te&&h.createElement(U.Footer,null,Te))):h.createElement(O,{expanded:Oe,onToggle:Ce,defaultExpanded:$,...ne},P)};k.propTypes={children:p().any.isRequired,collapsible:p().bool,defaultExpanded:p().bool,expanded:p().bool,onToggle:p().func,footer:p().string,header:p().oneOfType([p().string,p().node]),title:p().string},k.defaultProps={collapsible:!1,defaultExpanded:null,expanded:null,footer:void 0,header:void 0,onToggle:()=>{},title:void 0},k.Body=c.Panel.Body,k.Collapse=c.Panel.Collapse,k.Footer=S,k.Heading=d,k.Title=c.Panel.Title,k.Toggle=c.Panel.Toggle;const L=k},"l5ezlDz+":(y,T,l)=>{"use strict";l.d(T,{A:()=>c,w:()=>p});var h=l("aKyEWaw1"),o=l("J6y4/h8P");const p=(0,o.css)(({theme:g})=>(0,o.css)`
background-color: ${g.colors.global.contentBackground};
margin-bottom: ${g.spacings.xs};
border-radius: 6px;
box-shadow: rgb(0 0 0 / 4%) 0 3px 5px;
`),c=(0,o.default)(h.Row)`
&.content {
${p}
}
`},"Tk+7c1Lc":(y,T,l)=>{"use strict";l.d(T,{A:()=>g,s:()=>s});var h=l("aKyEWaw1"),o=l("J6y4/h8P");const p=(0,o.css)(({theme:b})=>{const{table:I}=b.colors;let D="";const d={active:{background:I.variant.active,hover:I.variantHover.active},success:{background:I.variant.success,hover:I.variantHover.success},info:{background:I.variant.info,hover:I.variantHover.info},warning:{background:I.variant.warning,hover:I.variantHover.warning},danger:{background:I.variant.danger,hover:I.variantHover.danger}};return Object.keys(d).forEach(S=>{const{background:R,hover:O}=d[S];D+=`
&.table > thead > tr,
&.table > tfoot > tr,
&.table > tbody > tr {
> td.${S},
> th.${S},
&.${S} > td,
&.${S} > th {
background-color: ${R};
}
}
&.table-hover > tbody > tr {
> td.${S}:hover,
> th.${S}:hover,
&.${S}:hover > td,
&:hover > .${S},
&.${S}:hover > th {
background-color: ${O};
}
}
`}),(0,o.css)`
${D}
`}),s=(0,o.css)(({theme:b})=>(0,o.css)`
&.table {
> thead > tr,
> tbody > tr,
> tfoot > tr {
> th,
> td {
border-top-color: ${b.colors.table.row.border};
}
}
> thead > tr > th {
background: ${b.colors.table.head.background};
white-space: nowrap;
border-bottom-color: ${b.colors.table.row.border};
}
> tbody > tr {
background-color: ${b.colors.global.contentBackground};
transition: background-color 150ms ease-in-out;
}
> tbody + tbody {
border-top-color: ${b.colors.table.row.border};
}
.table {
background-color: ${b.colors.table.row.background};
}
}
&.table-bordered {
border-color: ${b.colors.table.row.border};
> thead > tr,
> tfoot > tr,
> tbody > tr {
> td,
> th {
border-color: ${b.colors.table.row.border};
}
}
}
&.table-striped > tbody > tr:nth-of-type(odd) {
background-color: ${b.colors.table.row.backgroundAlt};
}
&.table-hover > tbody > tr:hover {
background-color: ${b.colors.table.row.backgroundHover};
}
${p}
@media print {
&.table > thead > tr > th {
white-space: break-spaces;
word-break: break-all;
}
}
`),g=(0,o.default)(h.Table)`
${s}
`},"Clc3x+/C":(y,T,l)=>{"use strict";l.d(T,{YZ:()=>h.PanelGroup,fv:()=>h.Col,ms:()=>h.Dropdown,sx:()=>h.Radio,xA:()=>h.Grid});var h=l("aKyEWaw1")},"+VxIDBPC":(y,T,l)=>{"use strict";l.d(T,{Alert:()=>h.A,BootstrapModalForm:()=>S.A,Button:()=>R.A,ButtonGroup:()=>O.A,ButtonToolbar:()=>w.A,Checkbox:()=>U.A,Col:()=>So.fv,ControlLabel:()=>k.A,Dropdown:()=>So.ms,DropdownButton:()=>Te,FormControl:()=>ge.A,FormGroup:()=>be.A,Grid:()=>So.xA,HelpBlock:()=>Se,Input:()=>De.A,InputGroup:()=>Ce.h,InputWrapper:()=>Fe.A,Jumbotron:()=>Ge,Label:()=>Xt,ListGroup:()=>yt,ListGroupItem:()=>ae,MenuItem:()=>He.A,Modal:()=>b.A,Nav:()=>Nt,NavItem:()=>nt,Panel:()=>Gt.A,Row:()=>Ht.A,Table:()=>gr.A,Tooltip:()=>Mn});var h=l("o7GEe6Qe"),o=l("Z/PhoFvD"),p=l("Z7aTuO5B"),s=l("KfF0gQb+"),c=l.n(s),g=l("o8xG4j5J"),b=l("NpM3ILy/"),I=l("+/lOUfGq");const D=({showModal:v,title:Q,children:ve,cancelButtonDisabled:Ne,confirmButtonDisabled:pt,confirmButtonText:at,onCancel:vt,onConfirm:bt,...Tt})=>p.createElement(I.A,{showModal:v,onHide:vt,role:"alertdialog",...Tt},p.createElement(b.A.Header,{closeButton:!0},p.createElement(b.A.Title,null,Q)),p.createElement(b.A.Body,null,ve),p.createElement(b.A.Footer,null,p.createElement(g.A,{disabledCancel:Ne,disabledSubmit:pt,onCancel:vt,onSubmit:bt,submitButtonText:at,submitButtonType:"button"})));D.propTypes={showModal:c().bool.isRequired,title:c().oneOfType([c().string,c().element]).isRequired,confirmButtonText:c().string,cancelButtonDisabled:c().bool,confirmButtonDisabled:c().bool,onCancel:c().func.isRequired,onConfirm:c().func.isRequired,children:c().oneOfType([c().string,c().element]).isRequired},D.defaultProps={confirmButtonText:"Confirm",cancelButtonDisabled:!1,confirmButtonDisabled:!1};const d=null;var S=l("jdU8EhS8"),R=l("pRemyZyX"),O=l("+RZHtZRi"),w=l("qKIMiD1A"),U=l("o00ywHYy"),k=l("2fQaru/3"),L=l("J6y4/h8P"),x=l("elvN/k85"),P=l("O4LzYxeJ");const F=(0,L.default)(x.A)`
width: 10px;
height: 10px;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
`,$=(v,Q)=>`${Q?"top":"bottom"}${v?"-end":""}`,se=({buttonTitle:v,children:Q,closeOnItemClick:ve,dropup:Ne,title:pt,onMouseDown:at,onToggle:vt,pullRight:bt,noCaret:Tt,keepMounted:Ho,...fr})=>p.createElement(P.A,{position:$(bt,Ne),onChange:vt,keepMounted:Ho,closeOnItemClick:ve},p.createElement(P.A.Target,null,p.createElement(R.A,{onClick:at,"aria-label":v,...fr,title:v},pt,Tt?null:p.createElement(p.Fragment,null," ",p.createElement(F,{name:"arrow_drop_down"})))),p.createElement(P.A.Dropdown,null,Q));se.defaultProps={closeOnItemClick:!0,buttonTitle:void 0,dropup:void 0,keepMounted:void 0,noCaret:void 0,onMouseDown:void 0,onToggle:void 0,pullRight:void 0,title:void 0};const Te=se;var ge=l("og1F2idq"),be=l("NzGc2uPJ"),ne=l("aKyEWaw1");const Se=(0,L.default)(ne.HelpBlock)(({theme:v})=>(0,L.css)`
display: block;
margin-top: 5px;
margin-bottom: 10px;
color: ${v.colors.gray[50]};
`);var De=l("A2KAXP9g"),Ce=l("4ts0Ap8A"),Fe=l("XgvalpFO");const fe=(0,L.default)(ne.Jumbotron)(({theme:v})=>(0,L.css)`
color: ${v.colors.global.textDefault};
background-color: ${v.colors.global.contentBackground};
h2 {
font-weight: bold;
}
p {
margin-bottom: 9px;
font-size: 20px;
font-weight: normal;
}
`),Ge=(0,p.forwardRef)((v,Q)=>p.createElement(fe,{ref:Q,...v}));var ze=l("L3UIULT/");const Ve=({children:v})=>React.createElement(Kbd,null,v),ht=null,je=(v,Q)=>{if(!Q)return"";const{color:ve,background:Ne}=v.colors.button[Q==="default"?"gray":Q];return(0,L.css)`
background-color: ${Ne};
color: ${ve};
font-weight: normal;
`},Xt=(0,L.default)(ne.Label)(({bsStyle:v,theme:Q})=>(0,L.css)`
${je(Q,v)}
padding: 0.3em 0.6em;
`),Pt=({className:v,...Q})=>p.createElement(ne.ListGroup,{bsClass:v,...Q});Pt.propTypes={className:c().string},Pt.defaultProps={className:void 0};const yt=Pt,vo=L.default.span(({theme:v})=>`
display: block;
border: 1px solid ${v.colors.variant.lighter.default};
margin-bottom: -1px;
&:first-child {
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
&:last-child {
margin-bottom: 0;
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;
}
`),M=(0,L.css)(({bsStyle:v,theme:Q})=>{if(!v)return;const ve=Q.colors.variant.lighter[v],Ne=Q.utils.readableColor(ve);return(0,L.css)`
&.list-group-item-${v} {
color: ${Ne};
background-color: ${ve};
a&,
button& {
color: ${Ne};
.list-group-item-heading {
color: inherit;
font-weight: bold;
}
&:hover,
&:focus {
color: ${Ne};
background-color: ${Q.colors.variant.light[v]};
}
&.active,
&.active:hover,
&.active:focus {
color: ${Q.utils.readableColor(Q.colors.variant.light[v])};
background-color: ${Q.colors.variant.light[v]};
border-color: ${Q.colors.variant.light[v]};
}
}
}
`}),z=(0,L.default)(ne.ListGroupItem)(({theme:v})=>(0,L.css)`
background-color: ${v.colors.global.contentBackground};
border: 0;
padding: 5px 10px;
.list-group-item-heading {
font-size: ${v.fonts.size.h5};
}
.list-group-item-text {
margin-bottom: 5px;
}
a&,
button& {
color: ${v.colors.global.textDefault};
.list-group-item-heading {
color: ${v.colors.variant.darkest.default};
}
&:hover:not(.disabled),
&:focus:not(.disabled) {
background-color: ${v.colors.variant.lightest.default};
&.active {
color: ${v.colors.variant.darkest.default};
background-color: ${v.colors.variant.lightest.default};
border-color: ${v.colors.variant.lightest.default};
}
.list-group-item-heading {
color: ${v.utils.readableColor(v.colors.variant.lightest.default)};
}
}
}
&.disabled,
&.disabled:hover,
&.disabled:focus {
color: ${v.colors.variant.default};
background-color: ${v.colors.variant.lightest.default};
.list-group-item-heading {
color: inherit;
}
.list-group-item-text {
color: ${v.colors.variant.default};
}
}
&.active,
&.active:hover,
&.active:focus {
color: ${v.colors.variant.darker.default};
background-color: ${v.colors.variant.lightest.info};
border-color: ${v.colors.variant.lightest.info};
z-index: auto;
.list-group-item-heading,
.list-group-item-heading > small,
.list-group-item-heading > .small {
color: inherit;
}
.list-group-item-text {
color: ${v.colors.variant.light.primary};
}
}
${M}
`),q=(0,p.forwardRef)(({containerProps:v,...Q},ve)=>p.createElement(vo,{ref:ve,...v},p.createElement(z,{...Q})));q.propTypes={containerProps:c().object},q.defaultProps={containerProps:{}};const ae=q;var He=l("MTL7eqpZ");const gt=(0,L.css)(({theme:v})=>(0,L.css)`
.nav-tabs {
border-bottom-color: ${v.colors.variant.default};
> li {
> a {
transition: background-color 150ms ease-in-out;
color: ${v.colors.global.textDefault};
border-color: ${v.colors.variant.lighter.default} ${v.colors.variant.lighter.default} ${v.colors.variant.default};
&:hover {
background-color: ${v.colors.variant.lightest.default};
color: ${v.colors.global.textDefault};
}
}
&.active > a {
&,
&:hover,
&:focus {
color: ${v.colors.variant.darkest.default};
background-color: ${v.colors.global.contentBackground};
border-color: ${v.colors.variant.default};
border-bottom-color: transparent;
}
}
&.disabled > a {
&,
&:hover,
&:focus {
color: ${v.colors.gray[60]};
background-color: ${v.colors.gray[100]};
border-color: ${v.colors.gray[100]} ${v.colors.gray[100]} ${v.colors.variant.default};
cursor: not-allowed;
}
}
}
}
&.nav-justified {
> .active > a {
&,
&:hover,
&:focus {
border-color: ${v.colors.variant.default};
}
}
@media (min-width: ${v.breakpoints.min.sm}) {
> li > a {
border-bottom-color: ${v.colors.variant.default};
}
> .active > a,
> .active > a:hover,
> .active > a:focus {
border-bottom-color: ${v.colors.gray[100]};
}
}
}
`),Nt=(0,L.default)(ne.Nav)(({theme:v})=>(0,L.css)`
&.nav {
> li {
> a {
transition: background-color 150ms ease-in-out;
&:hover,
&:focus {
background-color: ${v.colors.variant.lightest.default};
}
}
&.disabled > a {
color: ${v.colors.variant.light.default};
&:hover,
&:focus {
color: ${v.colors.variant.light.default};
}
}
}
.open > a {
&,
&:hover,
&:focus {
background-color: ${v.colors.variant.lightest.default};
border-color: ${v.colors.variant.primary};
}
}
&.nav-pills {
> li {
&.active > a {
&,
&:hover,
&:focus {
color: ${v.utils.contrastingColor(v.colors.global.link)};
background-color: ${v.colors.global.link};
}
}
}
}
&.nav-sm {
> li > a {
padding: 8px 12px;
font-size: ${v.fonts.size.small};
}
};
&.nav-xs {
> li > a {
padding: 2px 6px;
font-size: ${v.fonts.size.small};
}
};
&.nav-lg {
> li > a {
padding: 14px 18px;
font-size: ${v.fonts.size.large};
}
};
&${gt} /* This is a known non-issue that stylelint won't ignore but will hopefully be patched soon https://github.com/stylelint/stylelint/issues/4574 */
}
`);var kt=l("pS0GGJuX");const W="nav-item-state-indicator",G="::before",Ee=`.${W}${G}`,Re=v=>(0,L.css)`
${Ee} {
border-color: ${v.colors.gray[70]};
}
`,Ae=v=>(0,L.css)`
${Ee} {
border-color: ${v.colors.gray[50]};
}
`,we=L.default.div`
display: inline;
position: relative;
&${G} {
content: ' ';
position: absolute;
border-bottom: 1px solid transparent;
left: 0;
width: 100%;
bottom: -4px;
}
`,ue=({children:v})=>p.createElement(we,{className:W},v),Be=(0,L.css)(({theme:v})=>(0,L.css)`
.dropdown-menu {
background-color: ${v.colors.global.contentBackground};
box-shadow: 0 3px 3px ${v.colors.global.navigationBoxShadow};
.dropdown-header {
padding: 3px 10px;
}
> li > a {
padding: 3px 10px;
display: flex;
color: ${v.colors.global.textDefault};
&:hover,
&:focus {
color: ${v.colors.variant.darker.default};
background-color: ${v.colors.variant.lightest.default};
}
}
> .active > a {
color: ${v.colors.variant.darker.default};
background-color: ${v.colors.variant.lightest.default};
&:hover,
&:focus {
color: ${v.colors.variant.darkest.default};
background-color: ${v.colors.variant.lighter.default};
}
}
> .disabled > a {
color: ${v.colors.variant.dark.default};
background-color: ${v.colors.variant.lightest.default};
&:hover,
&:focus {
color: ${v.colors.variant.dark.default};
background-color: ${v.colors.variant.lightest.default};
}
}
}
`);class Ke extends ne.NavDropdown{isActive({props:Q},ve,Ne){return Q.active===!1?!1:Q.active||ve!=null&&Q.eventKey===ve||Ne&&Q.href===Ne?!0:Q.active}}const $e=(0,L.default)(P.A.Dropdown)`
z-index: 1032 !important;
`,Xe=L.default.button(({theme:v,$active:Q})=>(0,L.css)`
background: transparent;
border: 0;
padding: 0 15px;
min-height: ${kt.mt};
&:hover, &:focus {
${Re(v)}
}
${Q?Ae(v):""}
&:hover,
&:focus {
color: ${v.colors.variant.darker.default};
background-color: transparent;
}
`),Ct=L.default.span`
display: inline-flex;
align-items: center;
min-height: ${kt.mt};
padding: 0;
@media (max-width: 991px) {
width: 100%;
}
`,C=({title:v,inactiveTitle:Q,badge:ve,noCaret:Ne,children:pt,hoverTitle:at})=>{const vt=Q?Q!==v:void 0;return p.createElement(P.A,null,p.createElement(Ct,null,p.createElement(P.A.Target,null,p.createElement(Xe,{$active:vt,title:at},p.createElement(ue,null,ve?p.createElement(ve,{text:v}):v)," ",Ne?null:p.createElement("span",{className:"caret"})))),p.createElement($e,null,pt))};C.propTypes={title:c().oneOfType([c().string,c().object]).isRequired,inactiveTitle:c().string,badge:c().func,hoverTitle:c().string},C.defaultProps={inactiveTitle:void 0,badge:void 0,noCaret:!1,hoverTitle:void 0};const St=(0,L.default)(Ke)`
${Be}
`,Wt=null,Zt=({children:v,...Q})=>p.createElement(ne.NavItem,{...Q},p.createElement(ue,null,v));Zt.displayName="NavItem";const nt=Zt;var tt=l("ww+BtWnX"),qt=l.n(tt);const yo=(0,L.default)(ne.Navbar)(({theme:v})=>(0,L.css)`
position: relative;
min-height: auto;
background-color: ${v.colors.global.navigationBackground};
border: 0;
box-shadow: 0 3px 3px ${v.colors.global.navigationBoxShadow};
margin-bottom: 0;
.navbar-text {
color: ${v.colors.global.textDefault};
}
@media (max-width: ${v.breakpoints.max.md}) {
&& .navbar-collapse {
position: absolute;
background-color: ${v.colors.global.navigationBackground};
width: 100%;
}
}
.navbar-nav {
> li > a,
> li > .btn-link {
color: ${v.colors.global.textDefault};
&:hover,
&:focus {
color: ${v.colors.variant.darker.default};
background-color: transparent;
}
}
> .active > a,
> .active > .btn-link {
color: ${v.colors.global.textDefault};
background-color: transparent;
&:hover,
&:focus {
color: ${v.colors.variant.darkest.default};
background-color: transparent;
}
}
> .disabled > a,
> .disabled > .btn-link {
&,
&:hover,
&:focus {
color: ${v.colors.gray[70]};
background-color: transparent;
}
}
> .open > a,
> .open > .btn-link {
&,
&:hover,
&:focus {
color: ${v.colors.variant.darkest.default};
background-color: transparent;
}
}
@media (max-width: ${v.breakpoints.max.md}) {
padding-left: 50px;
> li > a,
> li > .btn-link {
&:hover,
&:focus {
color: ${v.colors.variant.darker.default};
background-color: transparent;
}
}
.open .dropdown-menu {
> li > a,
> li > .btn-link {
color: ${v.colors.variant.darkest.default};
&:hover,
&:focus {
color: ${v.colors.variant.darker.default};
background-color: ${v.colors.variant.lightest.default};
}
}
> .active > a,
> .active > .btn-link {
color: ${v.colors.variant.darkest.default};
background-color: ${v.colors.gray[90]};
&:hover,
&:focus {
color: ${v.colors.variant.darkest.default};
background-color: ${v.colors.gray[80]};
}
}
> .disabled > a,
> .disabled > .btn-link {
&,
&:hover,
&:focus {
color: ${v.colors.gray[70]};
background-color: transparent;
}
}
}
}
}
.navbar-toggle {
background-color: ${v.colors.global.navigationBackground};
border-color: ${v.colors.variant.dark.default};
transition: background-color 150ms ease-in-out,
border-color 150ms ease-in-out;
position: relative;
&:not(.collapsed) {
.icon-bar:nth-last-child(1),
.icon-bar:nth-last-child(3) {
transition: transform 150ms ease-in 150ms,
top 150ms ease-in 0s;
}
.icon-bar:nth-last-child(1) {
transform: rotate(-45deg) translate(4px, -4px);
}
.icon-bar:nth-last-child(3) {
transform: rotate(45deg) translate(4px, 4px);
}
.icon-bar:nth-last-child(2) {
transition: opacity 0s ease 150ms;
opacity: 0;
}
}
.icon-bar {
background-color: ${v.colors.global.textDefault};
transition: background-color 150ms ease-in-out,
transform 150ms ease-in 0s,
opacity 300ms ease-in 0s;
transform: rotate(0deg);
position: relative;
opacity: 1;
}
&:hover,
&:focus,
&:not(.collapsed) {
background-color: ${v.colors.variant.lighter.default};
border-color: ${v.colors.variant.default};
.icon-bar {
background-color: ${v.colors.global.textDefault};
}
}
}
.navbar-collapse,
.navbar-form {
border-color: ${qt()(v.colors.gray[90]).darken(.065)};
}
.navbar-link {
color: ${v.colors.variant.default};
&:hover {
color: ${qt()(v.colors.variant.default).darken(.25)};
}
}
.btn-link {
color: ${v.colors.variant.default};
&:hover,
&:focus {
color: ${v.colors.variant.dark.default};
}
&[disabled],
fieldset[disabled] & {
&:hover,
&:focus {
color: ${v.colors.gray[80]};
}
}
}
.dropdown-header {
margin-top: 4px;
text-transform: uppercase;
padding: 0 15px !important;
font-weight: bold;
}
`),hr=null;var Gt=l("mnllydGL");const eo=(0,L.default)(ne.Popover)(({theme:v})=>{const Q=v.colors.variant.light.default,ve=v.colors.variant.lightest.default,Ne=v.colors.global.contentBackground;return(0,L.css)`
background-color: ${Ne};
border-color: ${Q};
padding: 0;
.popover-title {
background-color: ${ve};
border-color: ${Q};
color: ${v.colors.variant.darkest.default};
}
&.top {
> .arrow {
border-top-color: ${Q};
&::after {
border-top-color: ${ve};
}
}
}
&.right {
> .arrow {
border-right-color: ${Q};
&::after {
border-right-color: ${ve};
z-index: 1;
}
}
}
&.bottom {
> .arrow {
border-bottom-color: ${Q};
&::after {
border-bottom-color: ${ve};
}
}
}
&.left {
> .arrow {
border-left-color: ${Q};
&::after {
border-left-color: ${ve};
}
}
}
`}),_o=null;var Ht=l("l5ezlDz+");const _t=({data:v,defaultValue:Q,disabled:ve,handleChange:Ne,value:pt})=>{const at=(0,L.useTheme)();return p.createElement(ze.SegmentedControl,{color:at.colors.variant.info,data:v,defaultValue:Q,disabled:ve,value:pt,onChange:Ne,styles:{label:{marginBottom:0}}})};_t.defaultProps={defaultValue:void 0,disabled:!1,handleChange:void 0,value:void 0};const st=null,wn=p.forwardRef(({children:v,disabled:Q,title:ve,open:Ne,onMenuChange:pt,width:at,onClick:vt,...bt},Tt)=>p.createElement(P.A,{opened:Ne,onChange:pt,width:at},p.createElement(O.A,null,p.createElement(R.A,{...bt,disabled:Q,onClick:vt},ve),p.createElement(P.A.Target,null,p.createElement(R.A,{ref:Tt,"aria-label":"More Actions",...bt},p.createElement(x.A,{name:"arrow_drop_down"}))),p.createElement(P.A.Dropdown,null,v))));wn.defaultProps={disabled:!1,open:void 0,onMenuChange:void 0,width:void 0};const ml=null,Pe=(0,L.default)(ne.Tab)(({theme:v})=>(0,L.css)`
background-color: ${v.colors.global.contentBackground};
border: 1px solid ${v.colors.variant.default};
border-top: 0;
border-radius: 0 0 4px 4px;
padding: 9px;
`),$n=null;var gr=l("Tk+7c1Lc");const El=(0,L.default)(ne.Tabs)`
${gt}
`,bo=null,ke=10,Go=(0,L.default)(ne.Tooltip)(({theme:v})=>(0,L.css)`
&.in {
opacity: 1;
filter: drop-shadow(0 0 3px ${v.colors.variant.lighter.default});
}
&.top {
.tooltip-arrow {
border-top-color: ${v.colors.global.contentBackground};
border-width: ${ke}px ${ke}px 0;
margin-left: -${ke}px;
bottom: -${ke/2}px;
}
}
&.right {
.tooltip-arrow {
border-right-color: ${v.colors.global.contentBackground};
border-width: ${ke}px ${ke}px ${ke}px 0;
margin-top: -${ke}px;
left: -${ke/2}px;
}
}
&.bottom {
.tooltip-arrow {
border-bottom-color: ${v.colors.global.contentBackground};
border-width: 0 ${ke}px ${ke}px;
margin-left: -${ke}px;
top: -${ke/2}px;
}
}
&.left {
.tooltip-arrow {
border-left-color: ${v.colors.global.contentBackground};
border-width: ${ke}px 0 ${ke}px ${ke}px;
margin-top: -${ke}px;
right: -${ke/2}px;
}
}
.tooltip-inner {
color: ${v.colors.global.textDefault};
background-color: ${v.colors.global.contentBackground};
max-width: 300px;
opacity: 1;
.datapoint-info {
text-align: left;
.date {
color: ${v.colors.variant.darkest.default};
}
}
}
`),to=({children:v,className:Q,id:ve,placement:Ne,positionTop:pt,positionLeft:at,arrowOffsetTop:vt,arrowOffsetLeft:bt,show:Tt})=>p.createElement(Go,{className:`${Q} ${Tt?"in":""}`,id:ve,placement:Ne,positionTop:pt,positionLeft:at,arrowOffsetTop:vt,arrowOffsetLeft:bt},v);to.propTypes={className:c().string,children:c().node.isRequired,id:c().oneOfType([c().string,c().number]).isRequired,placement:c().oneOf(["top","right","bottom","left"]),positionTop:c().oneOfType([c().number,c().string]),positionLeft:c().oneOfType([c().number,c().string]),arrowOffsetTop:c().oneOfType([c().number,c().string]),arrowOffsetLeft:c().oneOfType([c().number,c().string]),show:c().bool},to.defaultProps={className:"",placement:"right",positionTop:void 0,positionLeft:void 0,arrowOffsetTop:void 0,arrowOffsetLeft:void 0,show:!0};const Mn=to,To=(0,L.default)(ne.Well)(({theme:v})=>(0,L.css)`
background-color: ${v.colors.variant.lightest.default};
border-color: ${v.colors.variant.light.default};
color: ${v.colors.variant.darker.default};
`),Un=null;var So=l("Clc3x+/C")},bZLRAYkR:(y,T,l)=>{"use strict";l.d(T,{A:()=>d});var h=l("Z7aTuO5B"),o=l("0aBCy/SW"),p=l("+VxIDBPC");const s=S=>{const R=O=>{O.clipboardData.setData("text/plain",S),O.preventDefault()};return document.addEventListener("copy",R),document.execCommand("copy"),document.removeEventListener("copy",R),Promise.resolve()},g=S=>navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(S):s(S);var b=l("rM71Gv2q");const I=({children:S,value:R,timeout:O})=>{const[w,U]=(0,h.useState)(!1),{start:k}=(0,o.Z)(()=>U(!1),O),L=(0,h.useCallback)(()=>g(R).then(()=>{U(!0),k()}),[k,R]);return S({copied:w,copy:L})},D=({bsSize:S,bsStyle:R,buttonTitle:O,className:w,disabled:U,onSuccess:k,text:L,title:x})=>{const P=F=>h.createElement(p.Button,{bsSize:S,bsStyle:R,className:w,disabled:U,title:O,onClick:()=>{F(),k==null||k()}},x);return h.createElement(I,{value:L,timeout:2e3},({copied:F,copy:$})=>F?h.createElement(b.A,{label:"Copied!",withArrow:!0,position:"top",opened:!0},P($)):P($))};D.defaultProps={bsSize:void 0,bsStyle:void 0,buttonTitle:void 0,className:void 0,disabled:void 0,onSuccess:void 0};const d=D},cB3oI9m5:(y,T,l)=>{"use strict";l.d(T,{A:()=>c});var h=l("Z7aTuO5B"),o=l("KfF0gQb+"),p=l.n(o);const s=({children:g,delay:b})=>{const[I,D]=(0,h.useState)(b<=0);return(0,h.useEffect)(()=>{if(b<=0)return()=>{};const d=window.setTimeout(()=>D(!0),b);return()=>clearTimeout(d)},[]),I?h.createElement(h.Fragment,null,g):null};s.propTypes={children:p().node.isRequired,delay:p().number.isRequired};const c=s},"elvN/k85":(y,T,l)=>{"use strict";l.d(T,{A:()=>I});var h=l("Z7aTuO5B"),o=l("J6y4/h8P");const p={xs:".938em",sm:"1.094em",lg:"1.438em",xl:"1.725em","2x":"2.30em","3x":"3.45em","4x":"4.60em","5x":"5.75em"},s=(0,o.keyframes)`
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(359deg);
}
`,c=o.default.span(({$size:D,$spin:d,$rotation:S,$flip:R,$fill:O})=>{var w;return(0,o.css)`
font-variation-settings: 'opsz' 48, 'wght' 700 ${O?", 'FILL' 1":""};
font-size: ${(w=p[D])!=null?w:"1.15em"};
transform: rotate(${S}deg) scaleY(${R==="horizontal"||R==="both"?-1:1}) scaleX(${R==="vertical"||R==="both"?-1:1});
animation: ${d?(0,o.css)`${s} 2s infinite linear`:"none"};
vertical-align: middle;
`}),g=({name:D,type:d,size:S,className:R,rotation:O,spin:w,flip:U,style:k,"data-testid":L,onClick:x,onMouseEnter:P,onMouseLeave:F,onFocus:$,tabIndex:se,title:Te})=>h.createElement(c,{className:`material-symbols-rounded ${R!=null?R:""}`,"data-testid":L,onClick:x,style:k,title:Te,onFocus:$,onMouseEnter:P,onMouseLeave:F,tabIndex:se,$rotation:O,$flip:U,$size:S,$fill:d==="solid",$spin:w},D);g.defaultProps={className:void 0,"data-testid":void 0,flip:void 0,rotation:0,size:void 0,spin:!1,style:void 0,type:"solid",onClick:void 0,onMouseEnter:void 0,onMouseLeave:void 0,onFocus:void 0,tabIndex:void 0,title:void 0};const I=g},Btg6k4SR:(y,T,l)=>{"use strict";l.d(T,{A:()=>D});var h=l("Z7aTuO5B"),o=l("KfF0gQb+"),p=l.n(o),s=l("J6y4/h8P"),c=l("+VxIDBPC");const g=s.default.span(({theme:d})=>(0,s.css)`
color: ${d.colors.variant.danger};
`),b=s.default.span(({theme:d,$hasError:S})=>(0,s.css)`
color: ${S?d.colors.gray[50]:"inherit"};
`),I=({className:d,error:S,help:R})=>!R&&!S?null:h.createElement(c.HelpBlock,{className:`${d!=null?d:""} input-description`},S&&h.createElement(g,null,S),!!S&&!!R&&h.createElement("br",null),R&&h.createElement(b,{$hasError:!!S},R));I.propTypes={className:p().string,error:p().oneOfType([p().element,p().string]),help:p().oneOfType([p().element,p().string])},I.defaultProps={className:void 0,error:void 0,help:void 0};const D=I},o8xG4j5J:(y,T,l)=>{"use strict";l.d(T,{A:()=>D});var h=l("Z7aTuO5B"),o=l("J6y4/h8P"),p=l("pRemyZyX"),s=l("qKIMiD1A"),c=l("elvN/k85"),g=l("zf+4LgXf");const b=(0,o.default)(s.A)`
display: flex;
justify-content: flex-end;
align-items: end;
gap: 0.25em;
`,I=d=>{const{isAsyncSubmit:S,bsSize:R,className:O,displayCancel:w,disabledSubmit:U,formId:k,leftCol:L,onSubmit:x,submitButtonText:P,submitButtonType:F,submitIcon:$}=d,se=typeof P=="string"?P:void 0;return h.createElement(b,{className:O},L,w&&h.createElement(p.A,{type:"button",bsSize:R,onClick:d.onCancel,title:"Cancel","aria-label":"Cancel",disabled:d.disabledCancel||S&&d.isSubmitting},"Cancel"),h.createElement(p.A,{bsStyle:"success",bsSize:R,disabled:U||S&&d.isSubmitting,form:k,title:se,"aria-label":se,type:F,onClick:x},$&&!(S&&d.isSubmitting)&&h.createElement(h.Fragment,null,h.createElement(c.A,{name:$})," "),S&&d.isSubmitting?h.createElement(g.A,{text:d.submitLoadingText,delay:0}):P))};I.defaultProps={bsSize:void 0,className:void 0,disabledSubmit:!1,displayCancel:!0,isAsyncSubmit:!1,formId:void 0,isSubmitting:!1,leftCol:void 0,onSubmit:void 0,submitButtonType:"submit",submitIcon:void 0};const D=I},bDEMbatZ:(y,T,l)=>{"use strict";l.d(T,{A:()=>d});var h=l("Z7aTuO5B"),o=l("J6y4/h8P"),p=l("VWnDUXd2"),s=l("os4Ll6vw"),c=l("VA3wEY/A");const g=c.L,b=o.default.span`
display: inline-flex;
`,I=o.default.div`
display: inline-flex;
`,D=h.forwardRef(({children:S,disabled:R,placement:O,overlay:w,rootClose:U,trigger:k,testId:L,className:x,title:P,width:F},$)=>{var se,Te,ge;const[be,{close:ne,open:Oe,toggle:Se}]=(0,p.j)(!1);(0,h.useImperativeHandle)($,()=>({hide:ne}),[ne]),D.hide=ne;const De=(0,h.useRef)(),[Ce,Fe]=(0,h.useState)(null),[fe,ut]=(0,h.useState)(null);g(U?ne:()=>{},null,[fe,Ce]);const Ge=k==="hover"||((se=k==null?void 0:k.includes)==null?void 0:se.call(k,"hover")),ze=k==="focus"||((Te=k==null?void 0:k.includes)==null?void 0:Te.call(k,"focus")),Ve=k==="click"||((ge=k==null?void 0:k.includes)==null?void 0:ge.call(k,"click"));return R?S:h.createElement(I,{ref:De,"data-testid":L,className:x},h.createElement(s.A,{opened:be,withArrow:!0,width:F,position:O,withinPortal:!0},h.createElement(s.A.Target,null,h.createElement(b,{className:S.props.className,ref:ut,role:"button",onClick:Ve?Se:void 0,onMouseEnter:Ge?Oe:void 0,onMouseLeave:Ge?ne:void 0,onFocus:ze?Oe:void 0,onBlur:ze?Oe:void 0},S)),h.createElement(s.A.Dropdown,{title:P},h.createElement("div",{ref:Fe},w))))});D.defaultProps={disabled:!1,trigger:"click",rootClose:!1,testId:void 0,className:void 0,width:275,title:void 0};const d=D},os4Ll6vw:(y,T,l)=>{"use strict";l.d(T,{A:()=>d});var h=l("Z7aTuO5B"),o=l("L3UIULT/"),p=l("J6y4/h8P");const s=S=>{const R=(0,p.useTheme)(),O=!S.position||S.position.startsWith("bottom")?R.colors.variant.lightest.default:R.colors.global.contentBackground,w=()=>({dropdown:{backgroundColor:R.colors.global.contentBackground,borderColor:R.colors.variant.light.default,padding:0},arrow:{borderColor:R.colors.variant.light.default,backgroundColor:O}});return h.createElement(o.Popover,{styles:w,zIndex:1060,...S})},c=p.default.div(({theme:S})=>(0,p.css)`
padding: ${S.spacings.sm} ${S.spacings.md}
`),g=p.default.h4(({theme:S})=>(0,p.css)`
background-color: ${S.colors.variant.lightest.default};
color: ${S.colors.variant.darkest.default};
padding: ${S.spacings.sm} ${S.spacings.md};
font-size: ${S.fonts.size.body};
`),b=S=>`${S}-title`,I=(S,R,O)=>S||(R&&O?b(R):null),D=({title:S,children:R,...O})=>h.createElement(o.Popover.Dropdown,{"aria-labelledby":I(O["aria-labelledby"],O.id,S),...O},S&&h.createElement(g,{id:O.id?b(O.id):null},S),h.createElement(c,null,R));D.defaultProps={title:void 0},s.Target=o.Popover.Target,s.Dropdown=D;const d=s},V7hwd7tl:(y,T,l)=>{"use strict";l.d(T,{Z:()=>Oe,A:()=>kt});var h=l("Z7aTuO5B"),o=l("KfF0gQb+"),p=l.n(o),s=l("W9fo1m5L"),c=l("M7BUQfct"),g=l("l5y35R7z"),b=l("FtmMm3gp"),I=l.n(b),D=l("J6y4/h8P"),d=l("hSzk0yOw"),S=l("ZE+4IRPj"),R=l("J35SmSEq");const O=1e3,w=300,U=D.default.div`
flex: 1 1 auto;
height: ${W=>(W==null?void 0:W.height)||w}px;
`,k=({data:W,index:G,setSize:Ee,style:Re,containerWidth:Ae})=>{const we=(0,h.useRef)(null);return(0,h.useEffect)(()=>{Ee(G,we.current.getBoundingClientRect().height)},[Ee,G,Ae]),h.createElement("div",{ref:we,"data-testid":"react-window-list-item",style:Re},W[G])},L=({children:W,listRef:G,...Ee})=>{const Re=(0,h.useRef)(null),Ae=(0,h.useRef)(null),we=(0,h.useRef)({}),ft=(0,R.A)(Re),{width:ue}=ft,he=(0,h.useCallback)(($e,Xe)=>{var Ct;we.current={...we.current,[$e]:Xe},(Ct=(G||Ae).current)==null||Ct.resetAfterIndex($e)},[G]),Be=Object.entries(W).reduce(($e,[Xe])=>we.current[Xe]&&$ewe.current[$e]||36,[we]);return h.createElement(U,{ref:Re,height:Be,"data-testid":"infinite-loader-container"},h.createElement(S._m,{ref:G||Ae,height:Be||300,itemCount:W.length,itemSize:Ke,itemData:W,width:ue,...Ee},({data:$e,index:Xe,style:Ct})=>h.createElement(k,{data:$e,style:Ct,index:Xe,setSize:he,containerWidth:ue})))};L.defaultProps={listRef:void 0,onItemsRendered:void 0};const P=({children:W,innerProps:G,...Ee})=>!(W!=null&&W.length)||W.lengthh.createElement(Te,{key:"noOptions",className:"menu-notice menu-notice--no-options"},"No Options"),ne=({children:W,selectProps:{loadOptions:G,total:Ee}})=>{const Re=W!=null&&W.length?W:[ge()];return h.createElement(se.A,{isItemLoaded:Ae=>Aeh.createElement(L,{listRef:we,onItemsRendered:Ae},Re))},Oe="common-select-control",Se=({children:W,...G})=>h.createElement(s.c.MultiValueRemove,{...G},W),De=()=>null,Ce=W=>{const{children:G=h.createElement(F.A,{name:"arrow_drop_down"}),getStyles:Ee,innerProps:{ref:Re,...Ae}}=W;return h.createElement("div",{style:Ee("dropdownIndicator",W),ref:Re,...Ae},G)},Fe=({children:W,...G})=>h.createElement(s.c.Control,{...G,className:Oe},W),fe=W=>G=>{const{data:Ee,isSelected:Re}=G;return h.createElement(s.c.Option,{...G},W(Ee,Re))},ut=W=>G=>{const{data:Ee}=G;return h.createElement(s.c.SingleValue,{...G},W(Ee))},Ge=W=>G=>h.createElement(s.c.Input,{...G,...W}),ze=(W,G)=>({...W,padding:"0px",fontSize:"150%",marginRight:"1rem",transform:G.selectProps.menuIsOpen&&"rotate(180deg)"}),Ve=W=>({...W,padding:"5px"}),ht=({theme:W})=>G=>({...G,border:`1px solid ${W.colors.variant.lighter.info}`}),je=({theme:W})=>G=>({...G,padding:"2px 5px",fontSize:W.fonts.size.small}),Co=({theme:W})=>G=>({...G,borderLeft:`1px solid ${W.colors.variant.lighter.info}`,paddingLeft:"5px",paddingRight:"5px",borderRadius:"0"}),Xt={minHeight:"29px",height:"29px"},Pt={minHeight:"34px"},yt=W=>({...W,zIndex:5}),vo=W=>({...W,zIndex:"auto"}),M=({theme:W})=>G=>({...G,lineHeight:"28px",fontFamily:W.fonts.family.body,fontSize:W.fonts.size.body,fontWeight:400}),z=({theme:W})=>G=>({...G,color:W.colors.input.placeholder,lineHeight:"28px",fontFamily:W.fonts.family.body,fontSize:W.fonts.size.body,fontWeight:400,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",maxWidth:"100%",paddingRight:"20px"}),q=({size:W,theme:G})=>(Ee,{isFocused:Re})=>{const Ae=Re?1:Ee.borderWidth,we=Re?0:Ee.outline,ft=Re?G.colors.input.boxShadow:null;return{...Ee,...W==="small"?Xt:Pt,borderWidth:Ae,boxShadow:ft,outline:we,borderRadius:$.Jk,alignItems:"center"}},ae=({size:W})=>G=>({...G,padding:W==="small"?"0 8px":"2px 10px"}),He={DropdownIndicator:Ce,MultiValueRemove:Se,IndicatorSeparator:De,Control:Fe},Lt=({size:W,theme:G})=>({dropdownIndicator:ze,clearIndicator:Ve,multiValue:ht({theme:G}),multiValueLabel:je({theme:G}),multiValueRemove:Co({theme:G}),menu:yt,menuPortal:vo,singleValue:M({theme:G}),placeholder:z({theme:G}),control:q({size:W,theme:G}),valueContainer:ae({size:W})}),gt=(W,G,Ee,Re)=>{const Ae={};return W&&(Ae.Input=Ge(W)),G&&(Ae.Option=fe(G)),Ee&&(Ae.SingleValue=ut(Ee)),Ae.MenuList=Re?ne:P,Ae};class xt extends h.Component{constructor(G){super(G),this.getValue=()=>{const{value:ue}=this.state;return ue},this.clearValue=()=>{this.setState({value:void 0})},this._extractOptionValue=ue=>{const{multi:he,valueKey:Be,delimiter:Ke}=this.props;return ue?he&&Array.isArray(ue)?ue.map($e=>$e[Be]).join(Ke):ue[Be||""]:""},this._onChange=ue=>{const he=this._extractOptionValue(ue);this.props.persistSelection&&this.setState({value:he});const{onChange:Be=()=>{}}=this.props;Be(he)},this._formatInputValue=ue=>{const{options:he,displayKey:Be,valueKey:Ke,delimiter:$e,allowCreate:Xe,async:Ct}=this.props;return ue==null||typeof ue=="string"&&ue===""?[]:(Xe||Ct)&&typeof ue=="string"?ue.split($e).map(C=>{const St={[Ke]:C,[Be]:C};return he.find(Zt=>Zt[Ke]===C)||St}):(typeof ue=="string"?(ue!=null?ue:"").split($e):[ue]).map(C=>{const St=he.find(Wt=>Wt[Ke||""]===C);return St!=null?St:{[Be]:String(ue),[Ke]:ue}})},this._selectTheme=ue=>{const{theme:he}=this.props;return{...ue,colors:{...ue.colors,primary:he.colors.input.borderFocus,primary75:he.colors.variant.light.default,primary50:he.colors.variant.lighter.default,primary25:he.colors.variant.lightest.default,danger:he.colors.variant.darker.info,dangerLight:he.colors.variant.lighter.info,neutral0:he.colors.input.background,neutral5:he.colors.input.backgroundDisabled,neutral10:he.colors.variant.lightest.info,neutral20:he.colors.input.border,neutral30:he.colors.gray[70],neutral40:he.colors.gray[60],neutral50:he.colors.gray[50],neutral60:he.colors.gray[40],neutral70:he.colors.gray[30],neutral80:he.colors.gray[20],neutral90:he.colors.gray[10]}}},this.createCustomFilter=ue=>{const{matchProp:he,ignoreAccents:Be}=this.props,Ke={ignoreAccents:Be};return he==="any"?(0,c.c)(Ke):(0,c.c)({...Ke,stringify:ue})};const{inputProps:Ee,optionRenderer:Re,value:Ae,valueRenderer:we,async:ft}=G;this.state={customComponents:gt(Ee,Re,we,ft),value:Ae}}UNSAFE_componentWillReceiveProps(G){const{inputProps:Ee,optionRenderer:Re,value:Ae,valueRenderer:we,async:ft}=this.props;Ae!==G.value&&this.setState({value:G.value}),(!I()(Ee,G.inputProps)||Re!==G.optionRenderer||we!==G.valueRenderer)&&this.setState({customComponents:gt(Ee,Re,we,ft)})}render(){const{allowCreate:G=!1,displayKey:Ee,components:Re,valueKey:Ae,onReactSelectChange:we,size:ft,theme:ue}=this.props,{customComponents:he,value:Be}=this.state,Ke=this._formatInputValue(Be),{multi:$e,disabled:Xe,clearable:Ct,inputProps:C,matchProp:St,optionRenderer:Wt,valueRenderer:Zt,menuPortalTarget:nt,async:tt,total:qt,onInputChange:yo,loadOptions:hr,...Gt}=this.props,eo=st=>st[St],_o=this.createCustomFilter(eo),Ht={...He,...Re,...he},_t={...Gt,onChange:we||this._onChange,onInputChange:yo,async:tt,isMulti:$e,isDisabled:Xe,isClearable:Ct,loadOptions:hr,getOptionLabel:st=>st[Ee]||st.label,getOptionValue:st=>st[Ae],filterOption:_o,components:Ht,menuPortalTarget:nt,isOptionDisabled:st=>!!st.disabled,styles:Lt({size:ft,theme:ue}),theme:this._selectTheme,total:qt,value:Ke};return G?h.createElement(d.A,{ref:Gt.forwardedRef,..._t}):h.createElement(g.Ay,{ref:Gt.forwardedRef,..._t})}}xt.propTypes={allowCreate:p().bool,className:p().string,clearable:p().bool,components:p().objectOf(p().elementType),delimiter:p().string,disabled:p().bool,displayKey:p().string,id:p().string,inputId:p().string,ignoreAccents:p().bool,inputProps:p().object,matchProp:p().oneOf(["any","label","value"]),multi:p().bool,name:p().string,onBlur:p().func,onChange:p().func.isRequired,onInputChange:p().func,options:p().array.isRequired,optionRenderer:p().func,required:p().bool,size:p().oneOf(["normal","small"]),theme:p().object.isRequired,value:p().oneOfType([p().string,p().number,p().object,p().arrayOf(p().object)]),valueKey:p().string,valueRenderer:p().func,addLabelText:p().string,autoFocus:p().bool,onReactSelectChange:p().func,placeholder:p().string,persistSelection:p().bool,menuPlacement:p().oneOf(["top","bottom","auto"]),maxMenuHeight:p().number,async:p().bool,total:p().number,loadOptions:p().func},xt.defaultProps={addLabelText:void 0,allowCreate:!1,autoFocus:!1,className:void 0,clearable:!0,components:null,delimiter:",",disabled:!1,displayKey:"label",persistSelection:!0,id:void 0,ignoreAccents:!0,inputId:void 0,onBlur:void 0,inputProps:void 0,matchProp:"any",multi:!1,menuIsOpen:void 0,name:void 0,openMenuOnFocus:void 0,onReactSelectChange:void 0,onMenuClose:void 0,optionRenderer:void 0,placeholder:void 0,required:!1,size:"normal",value:void 0,valueKey:"value",valueRenderer:void 0,menuPlacement:"auto",maxMenuHeight:300,async:!1,total:0,onInputChange:void 0,loadOptions:void 0,menuPortalTarget:void 0,forwardedRef:void 0};const kt=(0,D.withTheme)(xt)},"zf+4LgXf":(y,T,l)=>{"use strict";l.d(T,{A:()=>D});var h=l("Z7aTuO5B"),o=l("KfF0gQb+"),p=l.n(o),s=l("J6y4/h8P"),c=l("elvN/k85"),g=l("cB3oI9m5");const b=(0,s.default)(c.A)(({$displayMargin:d})=>(0,s.css)`
vertical-align: bottom;
${d?"margin-right: 6px;":""}
`),I=({name:d,text:S,delay:R,...O})=>h.createElement(g.A,{delay:R},h.createElement(b,{...O,name:d,$displayMargin:!!(S!=null&&S.trim()),spin:!0}),S);I.propTypes={delay:p().number,name:p().string,text:p().string},I.defaultProps={name:"progress_activity",text:"Loading...",delay:200};const D=I},rM71Gv2q:(y,T,l)=>{"use strict";l.d(T,{A:()=>c});var h=l("Z7aTuO5B"),o=l("L3UIULT/"),p=l("J6y4/h8P");const c=g=>{const b=(0,p.useTheme)(),I=()=>({tooltip:{backgroundColor:b.colors.global.contentBackground,color:b.colors.global.textDefault,fontWeight:400,fontSize:b.fonts.size.root}});return h.createElement(o.Tooltip,{styles:I,...g})}},J35SmSEq:(y,T,l)=>{"use strict";l.d(T,{A:()=>g});var h=l("Z7aTuO5B"),o=l("c6cF5anj"),p=l("+V9FPWJ/"),s=l.n(p);const g=(b,I=200)=>{const[D,d]=(0,h.useState)({width:0,height:0}),S=s()(R=>d(R),I);return(0,h.useLayoutEffect)(()=>{if(b&&"current"in b&&b.current){const{width:R,height:O}=b.current.getBoundingClientRect();d({width:R,height:O})}},[b]),(0,o.A)(b,({contentRect:{width:R,height:O}})=>{S({width:R,height:O})}),D}},M4sGkTF0:(y,T,l)=>{"use strict";l.d(T,{A:()=>o});const h={set(p,s,c=window.localStorage){c.setItem(p,JSON.stringify(s))},get(p,s=window.localStorage){const c=s.getItem(p);if(c!=null)try{return JSON.parse(c)}catch{return c}},delete(p,s=window.localStorage){s.removeItem(p)},sessionSet(p,s){return h.set(p,s,window.sessionStorage)},sessionGet(p){return h.get(p,window.sessionStorage)},sessionDelete(p){return h.delete(p,window.sessionStorage)}},o=h},"9QUCfm+a":(y,T,l)=>{"use strict";l.d(T,{M$:()=>Ve,Ay:()=>je,Ur:()=>yt});var h=l("2fG0j4rQ"),o=l.n(h),p=l("yviUsp+Y"),s=l.n(p);class c extends Error{constructor(z,q,ae){var He,Lt;super(z),this.name="FetchError";const gt=s()(ae)?ae:(He=ae==null?void 0:ae.message)!=null?He:"Not available";this.message=`There was an error fetching a resource: ${z}. Additional information: ${gt}`,this.responseMessage=(Lt=ae==null?void 0:ae.message)!=null?Lt:void 0,this.additional={body:ae,status:q,res:{text:s()(ae)&&ae}},this.status=q}}var g=l("JnTtTRmZ"),b=l.n(g),I=l("oNXBLaYg");const d=(0,I.rN)("Errors",()=>b().createActions(["report"])),S="ReactError",R="NotFoundError",O="UnauthorizedError",w="StreamPermissionError",U=(M,z)=>({error:M,info:z,type:S}),k=M=>({error:M,type:R}),L=M=>({error:M,type:O}),x=M=>({error:M,type:w}),P=M=>{var z,q;switch(M.status){case 403:return((q=(z=M==null?void 0:M.additional)==null?void 0:z.body)==null?void 0:q.type)==="MissingStreamPermission"?x(M):L(M);case 404:return k(M);default:throw Error(`Provided FetchError is not a valid ReportedError because status code ${M.status} is not supported`)}},se=class ko{constructor(z,q=!1){this._promise=z,this._isCanceled=q}then(z,q){return new ko(this._promise.then(z,q),this._isCanceled)}catch(z){return new ko(this._promise.catch(z),this._isCanceled)}finally(z){return new ko(this._promise.finally(z),this._isCanceled)}static of(z){return new ko(z)}cancel(){return this._isCanceled=!0,this}isCancelled(){return this._isCanceled}};var Te=l("ekPuBHq5"),ge=l("NhE/kDWp");const be=(0,I.rN)("core.ServerAvailability",()=>b().createActions(["reportError","reportSuccess"])),ne=M=>window.fetch(M,{method:"GET",headers:{Accept:"application/json","X-Graylog-No-Session-Extension":"true"}}),Oe=(0,I.Bv)("core.ServerAvailability",()=>b().createStore({listenables:[be],server:{up:!0},init(){this.ping()},getInitialState(){return{server:this.server}},ping(){return ne(Te.H3(ge.A.ping().url)).then(()=>be.reportSuccess(),M=>be.reportError(M))},reportError(M){this.server.up&&(this.server={up:!1,error:M},this.trigger({server:this.server}))},reportSuccess(){this.server.up||(this.server={up:!0},this.trigger({server:this.server}))}})),Se=o()(()=>l("1uxnK327")),De=()=>{be.reportSuccess()},Ce=M=>d.report(P(M)),Fe=M=>M&&M!==""?M:void 0,fe=async(M,z=Ce)=>{var q,ae;const He=(q=M.headers)==null?void 0:q.get("Content-Type"),Lt=await(He!=null&&He.startsWith("application/json")?M.json().then(kt=>kt):(ae=M==null?void 0:M.text)==null?void 0:ae.call(M)),{SessionStore:gt,SessionActions:xt}=Se(),Nt=new c(M.statusText,M.status,Fe(Lt));throw gt.isLoggedIn()&&M.status===401&&xt.logout(),gt.isLoggedIn()&&M.status===403&&z(Nt),M&&!M.status&&be.reportError(Nt),Nt},ut=M=>M&&typeof M!="string"?JSON.stringify(M):M,Ge=M=>{if(M.ok){const{status:z}=M,q=Number.parseInt(M.headers.get("Content-Length"),10),ae=z===204||q===0;return De(),ae?null:M.json()}throw M},ze=M=>{if(M.ok)return De(),M.text();throw M};class Ve{constructor(z,q){this.options={},this.method=z,this.url=q.replace(/([^:])\/\//,"$1/"),this.options={"X-Requested-With":"XMLHttpRequest","X-Requested-By":"XMLHttpRequest"},this.responseHandler=ae=>ae,this.errorHandler=void 0}setHeader(z,q){return this.options={...this.options,[z]:q},this}json(z){return this.body={body:ut(z),mimeType:"application/json"},this.accept="application/json",this.responseHandler=Ge,this.errorHandler=q=>fe(q),this}formData(z,q="application/json"){return this.body={body:z},this.accept=q,this.responseHandler=Ge,this.errorHandler=ae=>fe(ae),this}file(z,q){return this.body={body:ut(z),mimeType:"application/json"},this.accept=q,this.responseHandler=ae=>{if(ae.ok)return De(),ae.text();throw ae},this.errorHandler=ae=>fe(ae),this}plaintext(z){return this.body={body:z,mimeType:"text/plain"},this.accept="application/json",this.responseHandler=Ge,this.errorHandler=q=>fe(q),this}streamingplaintext(z){return this.body={body:z,mimeType:"text/plain"},this.accept="text/plain",this.responseHandler=ze,this.errorHandler=q=>fe(q),this}ignoreUnauthorized(){return this.errorHandler=z=>fe(z,()=>{}),this}noSessionExtension(){return this.options={...this.options,"X-Graylog-No-Session-Extension":"true"},this}build(){const z=this.body&&this.body.mimeType?{...this.options,"Content-Type":this.body.mimeType}:this.options;return this.accept&&(z.Accept=this.accept),se.of(window.fetch(this.url,{method:this.method,headers:z,body:this.body?this.body.body:void 0})).then(this.responseHandler,this.errorHandler).catch(this.errorHandler)}}function ht(M){const{SessionStore:z,SessionActions:q}=Se();return z.isLoggedIn()?M:()=>se.of(new Promise((ae,He)=>{q.login.completed.listen(()=>{M().then(ae,He)})}))}function je(M,z,q,ae=!0){const He=()=>new Ve(M,z).json(q).build();return ae?ht(He)():He()}function Co(M,z,q=!0){const ae=()=>new Ve("POST",M).formData(z).build();return q?ht(ae)():ae()}function Xt(M,z,q){return ht(()=>new Ve(M,z).plaintext(q).build())()}function Pt(M,z,q){return ht(()=>new Ve(M,z).streamingplaintext(q).build())()}function yt(M,z,q){return ht(()=>new Ve(M,z).noSessionExtension().json(q).build())()}function vo(M,z,q,ae="text/csv"){return ht(()=>new Ve(M,z).file(q,ae).build())()}},oNXBLaYg:(y,T,l)=>{"use strict";l.d(T,{Bv:()=>p,Gr:()=>h,rN:()=>o});const h=(s,c)=>(window.singletons[s]||(window.singletons[s]=c()),window.singletons[s]),o=(s,c)=>h(`${s}Actions`,c),p=(s,c)=>h(`${s}Store`,c);typeof window.singletons>"u"&&(window.singletons={})},"NhE/kDWp":(y,T,l)=>{"use strict";l.d(T,{A:()=>s});var h=l("bcEkMz+H"),o=l.n(h);const s={AlarmCallbacksApiController:{available:()=>({url:"/alerts/callbacks/types"}),create:c=>({url:`/streams/${c}/alarmcallbacks`}),delete:(c,g)=>({url:`/streams/${c}/alarmcallbacks/${g}`}),listAll:()=>({url:"/alerts/callbacks"}),list:c=>({url:`/streams/${c}/alarmcallbacks`}),testAlert:c=>({url:`/alerts/callbacks/${c}/test`}),update:(c,g)=>({url:`/streams/${c}/alarmcallbacks/${g}`})},AlarmCallbackHistoryApiController:{list:(c,g)=>({url:`/streams/${c}/alerts/${g}/history`})},AuthenticationController:{create:()=>({url:"/system/authentication/services/backends"}),delete:c=>({url:`/system/authentication/services/backends/${c}`}),disableUser:c=>({url:`/system/authentication/users/${c}/disable`}),enableUser:c=>({url:`/system/authentication/users/${c}/enable`}),load:c=>({url:`/system/authentication/services/backends/${c}`}),loadActive:()=>({url:"/system/authentication/services/active-backend"}),loadUsersPaginated:c=>({url:`/system/authentication/services/backends/${c}/users`}),loadActiveBackendType:()=>({url:"/system/authentication/services/backends/active-backend/type"}),servicesPaginated:()=>({url:"/system/authentication/services/backends"}),testConnection:()=>({url:"/system/authentication/services/test/backend/connection"}),testLogin:()=>({url:"/system/authentication/services/test/backend/login"}),update:c=>({url:`/system/authentication/services/backends/${c}`}),updateConfiguration:()=>({url:"/system/authentication/services/configuration"})},AuthzRolesController:{load:c=>({url:`/authz/roles/${c}`}),delete:c=>({url:`/authz/roles/${c}`}),list:()=>({url:"/authz/roles"}),removeMember:(c,g)=>({url:`/authz/roles/${c}/assignee/${g}`}),addMembers:c=>({url:`/authz/roles/${c}/assignees`}),loadRolesForUser:c=>({url:`/authz/roles/user/${c}`}),loadUsersForRole:c=>({url:`/authz/roles/${c}/assignees`})},CatalogsController:{showEntityIndex:()=>({url:"/system/catalog"}),queryEntities:()=>({url:"/system/catalog"})},CodecTypesController:{list:()=>({url:"/system/codecs/types/all"})},ContentPacksController:{list:()=>({url:"/system/content_packs/latest"}),get:c=>({url:`/system/content_packs/${c}`}),getRev:(c,g)=>({url:`/system/content_packs/${c}/${g}`}),downloadRev:(c,g)=>({url:`/system/content_packs/${c}/${g}/download`}),create:()=>({url:"/system/content_packs"}),delete:c=>({url:`/system/content_packs/${c}`}),deleteRev:(c,g)=>({url:`/system/content_packs/${c}/${g}`}),install:(c,g)=>({url:`/system/content_packs/${c}/${g}/installations`}),installList:c=>({url:`/system/content_packs/${c}/installations`}),uninstall:(c,g)=>({url:`/system/content_packs/${c}/installations/${g}`}),uninstallDetails:(c,g)=>({url:`/system/content_packs/${c}/installations/${g}/uninstall_details`})},CountsApiController:{total:()=>({url:"/count/total"}),indexSetTotal:c=>({url:`/count/${c}/total`})},ClusterApiResource:{list:()=>({url:"/system/cluster/nodes"}),node:()=>({url:"/system/cluster/node"}),elasticsearchStats:()=>({url:"/system/cluster/stats/elasticsearch"})},ClusterConfigResource:{config:()=>({url:"/system/cluster_config"})},GrokPatternsController:{test:()=>({url:"/system/grok/test"}),paginated:()=>({url:"/system/grok/paginated"})},DashboardsApiController:{create:()=>({url:"/dashboards"}),index:()=>({url:"/dashboards"}),get:c=>({url:`/dashboards/${c}`}),delete:c=>({url:`/dashboards/${c}`}),update:c=>({url:`/dashboards/${c}`}),addWidget:c=>({url:`/dashboards/${c}/widgets`}),removeWidget:(c,g)=>({url:`/dashboards/${c}/widgets/${g}`}),widget:(c,g)=>({url:`/dashboards/${c}/widgets/${g}`}),updateWidget:(c,g)=>({url:`/dashboards/${c}/widgets/${g}`}),widgetValue:(c,g)=>({url:`/dashboards/${c}/widgets/${g}/value`}),updatePositions:c=>({url:`/dashboards/${c}/positions`})},DecoratorsResource:{available:()=>({url:"/search/decorators/available"}),create:()=>({url:"/search/decorators"}),get:()=>({url:"/search/decorators"}),remove:c=>({url:`/search/decorators/${c}`}),update:c=>({url:`/search/decorators/${c}`})},DeflectorApiController:{cycle:c=>({url:`/cluster/deflector/${c}/cycle`}),list:c=>({url:`/system/deflector/${c}`})},EntityScopeController:{getScope:()=>({url:"/entity_scopes"})},EntityShareController:{prepare:c=>({url:`/authz/shares/entities/${c}/prepare`}),update:c=>({url:`/authz/shares/entities/${c}`}),userSharesPaginated:c=>({url:`/authz/shares/user/${c}`}),entityScopes:()=>({url:"/entity_scopes"})},EventDefinitionsApiController:{list:()=>({url:"/events/definitions"}),paginated:()=>({url:"/events/definitions/paginated"}),get:c=>({url:`/events/definitions/${c}`}),create:()=>({url:"/events/definitions"}),bulkDelete:()=>({url:"/events/definitions/bulk_delete"}),bulkSchedule:()=>({url:"/events/definitions/bulk_schedule"}),bulkUnschedule:()=>({url:"/events/definitions/bulk_unschedule"}),update:c=>({url:`/events/definitions/${c}`}),delete:c=>({url:`/events/definitions/${c}`})},EventNotificationsApiController:{list:()=>({url:"/events/notifications"}),paginated:()=>({url:"/events/notifications/paginated"}),get:c=>({url:`/events/notifications/${c}`}),create:()=>({url:"/events/notifications"}),bulkDelete:()=>({url:"/events/notifications/bulk_delete"}),bulkSchedule:()=>({url:"/events/notifications/bulk_schedule"}),bulkUnschedule:()=>({url:"/events/notifications/bulk_unschedule"}),update:c=>({url:`/events/notifications/${c}`}),delete:c=>({url:`/events/notifications/${c}`})},HTTPHeaderAuthConfigController:{load:()=>({url:"/system/authentication/http-header-auth-config"}),update:()=>({url:"/system/authentication/http-header-auth-config"})},IndexerClusterApiController:{health:()=>({url:"/system/indexer/cluster/health"}),name:()=>({url:"/system/indexer/cluster/name"})},IndexerFailuresApiController:{count:c=>({url:`/system/indexer/failures/count?since=${c}`}),list:(c,g)=>({url:`/system/indexer/failures?limit=${c}&offset=${g}`})},IndexerOverviewApiResource:{list:c=>({url:`/system/indexer/overview/${c}`})},IndexRangesApiController:{list:()=>({url:"/system/indices/ranges"}),rebuild:c=>({url:`/system/indices/ranges/index_set/${c}/rebuild`}),rebuildSingle:c=>({url:`/system/indices/ranges/${c}/rebuild`})},IndexSetsApiController:{list:c=>({url:`/system/indices/index_sets?stats=${c}`}),listPaginated:(c,g,b)=>({url:`/system/indices/index_sets?skip=${c}&limit=${g}&stats=${b}`}),get:c=>({url:`/system/indices/index_sets/${c}`}),create:()=>({url:"/system/indices/index_sets"}),delete:(c,g)=>({url:`/system/indices/index_sets/${c}?delete_indices=${g}`}),searchPaginated:(c,g,b,I)=>({url:`/system/indices/index_sets/search?searchTitle=${c}&skip=${g}&limit=${b}&stats=${I}`}),setDefault:c=>({url:`/system/indices/index_sets/${c}/default`}),stats:()=>({url:"/system/indices/index_sets/stats"})},IndicesApiController:{close:c=>({url:`/system/indexer/indices/${c}/close`}),delete:c=>({url:`/system/indexer/indices/${c}`}),list:c=>({url:`/system/indexer/indices/${c}/list`}),listAll:()=>({url:"/system/indexer/indices"}),listClosed:c=>({url:`/system/indexer/indices/${c}/closed`}),multiple:()=>({url:"/system/indexer/indices/multiple"}),reopen:c=>({url:`/system/indexer/indices/${c}/reopen`})},InputsApiController:{list:()=>({url:"/system/inputs"}),get:c=>({url:`/system/inputs/${c}`}),globalRecentMessage:c=>({url:`/${c}`})},InputStatesController:{start:c=>({url:`/system/inputstates/${c}`}),stop:c=>({url:`/system/inputstates/${c}`})},ClusterInputStatesController:{list:()=>({url:"/cluster/inputstates"}),start:c=>({url:`/cluster/inputstates/${c}`}),stop:c=>({url:`/cluster/inputstates/${c}`})},ClusterLoggersResource:{loggers:()=>({url:"/cluster/system/loggers"}),subsystems:()=>({url:"/cluster/system/loggers/subsystems"}),setSubsystemLoggerLevel:(c,g,b)=>({url:`/cluster/system/loggers/${c}/subsystems/${g}/level/${b}`})},ClusterSupportBundleController:{delete:c=>({url:`/cluster/debug/support/bundle/${c}`}),download:c=>({url:`/cluster/debug/support/bundle/download/${c}`}),list:()=>({url:"/cluster/debug/support/bundle/list"}),create:()=>({url:"/cluster/debug/support/bundle/build"})},MessageFieldsApiController:{list:()=>({url:"/system/fields"}),types:()=>({url:"views/fields"})},MetricsApiController:{multiple:()=>({url:"/system/metrics/multiple"}),byNamespace:c=>({url:`/system/metrics/namespace/${c}`})},ClusterMetricsApiController:{multiple:c=>({url:`/cluster/${c}/metrics/multiple`}),multipleAllNodes:()=>({url:"/cluster/metrics/multiple"}),byNamespace:(c,g)=>({url:`/cluster/${c}/metrics/namespace/${g}`})},NotificationsApiController:{delete:c=>({url:`/system/notifications/${c}`}),deleteWithKey:(c,g)=>({url:`/system/notifications/${c}/${g}`}),list:()=>({url:"/system/notifications"}),getHtmlMessage:c=>({url:`/system/notification/message/html/${c.toLocaleUpperCase()}`}),getHtmlMessageWithKey:(c,g)=>({url:`/system/notification/message/html/${c.toLocaleUpperCase()}/${g}`})},OutputsApiController:{index:()=>({url:"/system/outputs"}),create:()=>({url:"/system/outputs"}),delete:c=>({url:`/system/outputs/${c}`}),update:c=>({url:`/system/outputs/${c}`}),availableType:c=>({url:`/system/outputs/available/${c}`}),availableTypes:()=>({url:"/system/outputs/available"})},RolesApiController:{listRoles:()=>({url:"/roles"}),createRole:()=>({url:"/roles"}),updateRole:c=>({url:`/roles/${c}`}),deleteRole:c=>({url:`/roles/${c}`}),loadMembers:c=>({url:`/roles/${c}/members`})},SavedSearchesApiController:{create:()=>({url:"/search/saved"}),delete:c=>({url:`/search/saved/${c}`}),update:c=>({url:`/search/saved/${c}`})},SessionsApiController:{validate:()=>({url:"/system/sessions"})},StreamsApiController:{index:()=>({url:"/streams"}),paginated:()=>({url:"/streams/paginated"}),get:c=>({url:`/streams/${c}`}),bulk_delete:()=>({url:"/streams/bulk_delete"}),bulk_resume:()=>({url:"/streams/bulk_resume"}),bulk_pause:()=>({url:"/streams/bulk_pause"}),create:()=>({url:"/streams"}),update:c=>({url:`/streams/${c}`}),cloneStream:c=>({url:`/streams/${c}/clone`}),delete:c=>({url:`/streams/${c}`}),pause:c=>({url:`/streams/${c}/pause`}),resume:c=>({url:`/streams/${c}/resume`}),testMatch:c=>({url:`/streams/${c}/testMatch`})},StreamOutputsApiController:{add:c=>({url:`/streams/${c}/outputs`}),index:c=>({url:`/streams/${c}/outputs`}),delete:(c,g)=>({url:`/streams/${c}/outputs/${g}`})},StreamRulesApiController:{delete:(c,g)=>({url:`/streams/${c}/rules/${g}`}),update:(c,g)=>({url:`/streams/${c}/rules/${g}`}),create:c=>({url:`/streams/${c}/rules`})},SystemApiController:{info:()=>({url:"/system"}),jvm:()=>({url:"/system/jvm"}),fields:()=>({url:"/system/fields"}),locales:()=>({url:"/system/locales"})},SystemJobsApiController:{list:()=>({url:"/cluster/jobs"}),getJob:c=>({url:`/cluster/jobs/${c}`}),acknowledgeJob:c=>({url:`/system/jobs/acknowledge/${c}`}),cancelJob:c=>({url:`/cluster/jobs/${c}`})},SystemMessagesApiController:{all:c=>({url:`/system/messages?page=${c}`})},SystemSearchVersionApiController:{satisfiesVersion:(c,g)=>({url:`/system/searchVersion/satisfiesVersion/${c}${g?`?version=${g}`:""}`})},ToolsApiController:{grokTest:()=>({url:"/tools/grok_tester"}),jsonTest:()=>({url:"/tools/json_tester"}),naturalDateTest:(c,g)=>({url:`/tools/natural_date_tester?string=${c}&timezone=${g}`}),regexTest:()=>({url:"/tools/regex_tester"}),regexValidate:c=>({url:`/tools/regex_tester/validate?regex=${c}`}),regexReplaceTest:()=>({url:"/tools/regex_replace_tester"}),splitAndIndexTest:()=>({url:"/tools/split_and_index_tester"}),substringTest:()=>({url:"/tools/substring_tester"}),containsStringTest:()=>({url:"/tools/contains_string_tester"}),lookupTableTest:()=>({url:"/tools/lookup_table_tester"}),urlWhitelistCheck:()=>({url:"/system/urlwhitelist/check"}),urlWhitelistGenerateRegex:()=>({url:"/system/urlwhitelist/generate_regex"})},TelemetryApiController:{info:()=>({url:"/telemetry"}),setting:()=>({url:"/telemetry/user/settings"})},UniversalSearchApiController:{_streamFilter(c){return c?{filter:`streams:${c}`}:{}},_buildBaseQueryString(c,g,b){const I={},D=this._streamFilter(b);return I.query=c,Object.keys(g).forEach(d=>{I[d]=g[d]}),Object.keys(D).forEach(d=>{I[d]=D[d]}),I},_buildUrl(c,g){return`${c}?${o().stringify(g)}`},search(c,g,b,I,D,d,S,R,O){const w=`/search/universal/${c}`,U=this._buildBaseQueryString(g,b,I);return D&&(U.limit=D),d&&(U.offset=d),S&&R&&(U.sort=`${S}:${R}`),O!==void 0&&(U.decorate=O),{url:this._buildUrl(w,U)}},export(c,g,b,I,D,d,S){const R=`/search/universal/${c}/export`,O=this._buildBaseQueryString(g,b,I);return D&&(O.limit=D),d&&(O.offset=d),S&&(O.fields=S.join(",")),{url:this._buildUrl(R,O)}}},UsersApiController:{changePassword:c=>({url:`/users/${c}/password`}),create:()=>({url:"/users"}),list:()=>({url:"/users"}),paginated:()=>({url:"/users/paginated"}),load:c=>({url:`/users/id/${c}`}),loadByUsername:c=>({url:`/users/${c}`}),delete:c=>({url:`/users/id/${c}`}),update:c=>({url:`/users/${c}`}),create_token:(c,g)=>({url:`/users/${c}/tokens/${g}`}),delete_token:(c,g)=>({url:`/users/${c}/tokens/${g}`}),list_tokens:c=>({url:`/users/${c}/tokens`}),setStatus:(c,g)=>({url:`/users/${c}/status/${g}`})},DashboardsController:{show:c=>({url:`/dashboards/${c}`})},ExtractorsController:{create:c=>({url:`/system/inputs/${c}/extractors`}),delete:(c,g)=>({url:`/system/inputs/${c}/extractors/${g}`}),order:c=>({url:`/system/inputs/${c}/extractors/order`}),update:(c,g)=>({url:`/system/inputs/${c}/extractors/${g}`})},MessagesController:{analyze:(c,g)=>({url:`/messages/${c}/analyze?string=${g}`}),parse:()=>({url:"/messages/parse"}),single:(c,g)=>({url:`/messages/${c}/${g}`}),exportSearch:c=>({url:`/views/search/messages/${c}`}),exportSearchType:(c,g)=>({url:`/views/search/messages/${c}/${g}`}),jobResults:(c,g)=>({url:`/views/search/messages/job/${c}/${g}`})},ExportJobsController:{exportSearch:c=>({url:`/views/export/${c}`}),exportSearchType:(c,g)=>({url:`/views/export/${c}/${g}`})},MapDataController:{search:()=>({url:"/search/mapdata"})},PipelinesController:{list:()=>({url:"/system/pipelines/pipeline"}),paginatedList:()=>({url:"/system/pipelines/pipeline/paginated"}),create:()=>({url:"/system/pipelines/pipeline"}),get:c=>({url:`/system/pipelines/pipeline/${c}`}),update:c=>({url:`/system/pipelines/pipeline/${c}`}),delete:c=>({url:`/system/pipelines/pipeline/${c}`}),parse:()=>({url:"/system/pipelines/pipeline/parse"})},RulesController:{list:()=>({url:"/system/pipelines/rule"}),paginatedList:()=>({url:"/system/pipelines/rule/paginated"}),create:()=>({url:"/system/pipelines/rule"}),get:c=>({url:`/system/pipelines/rule/${c}`}),update:c=>({url:`/system/pipelines/rule/${c}`}),delete:c=>({url:`/system/pipelines/rule/${c}`}),multiple:()=>({url:"/system/pipelines/rule/multiple"}),functions:()=>({url:"/system/pipelines/rule/functions"}),parse:()=>({url:"/system/pipelines/rule/parse"}),simulate:()=>({url:"/system/pipelines/rule/simulate"}),metricsConfig:()=>({url:"/system/pipelines/rule/config/metrics"})},RuleBuilderController:{create:()=>({url:"/system/pipelines/rulebuilder"}),update:c=>({url:`/system/pipelines/rulebuilder/${c}`}),validate:()=>({url:"/system/pipelines/rulebuilder/validate"}),simulate:()=>({url:"/system/pipelines/rulebuilder/simulate"}),listConditionsDict:()=>({url:"/system/pipelines/rulebuilder/conditions"}),listActionsDict:()=>({url:"/system/pipelines/rulebuilder/actions"})},ConnectionsController:{list:()=>({url:"/system/pipelines/connections"}),to_stream:()=>({url:"/system/pipelines/connections/to_stream"}),to_pipeline:()=>({url:"/system/pipelines/connections/to_pipeline"})},SimulatorController:{simulate:()=>({url:"/system/pipelines/simulate"})},ping:()=>({url:"/"})}},"1uxnK327":(y,T,l)=>{"use strict";l.r(T),l.d(T,{SessionActions:()=>I,SessionStore:()=>D});var h=l("JnTtTRmZ"),o=l.n(h),p=l("M4sGkTF0"),s=l("ekPuBHq5"),c=l("NhE/kDWp"),g=l("9QUCfm+a"),b=l("oNXBLaYg");const I=(0,b.rN)("core.Session",()=>o().createActions({login:{asyncResult:!0},logout:{asyncResult:!0},validate:{asyncResult:!0}})),D=(0,b.Bv)("core.Session",()=>o().createStore({listenables:[I],sourceUrl:"/system/sessions",username:void 0,validatingSession:!1,init(){this.validate()},getInitialState(){return this.getSessionInfo()},login(d,S,R){const w=new g.M$("POST",(0,s.H3)(this.sourceUrl)).json({username:d,password:S,host:R}).build().then(U=>({username:U==null?void 0:U.username}));I.login.promise(w)},logout(){const d=new g.M$("DELETE",(0,s.H3)(`${this.sourceUrl}/`)).build().then(S=>{(S.ok||S.status===401)&&this._removeSession()},this._removeSession);I.logout.promise(d)},validate(){const d=p.A.get("username");this.validatingSession=!0,this._propagateState();const S=this._validateSession().then(R=>{var O;return R.is_valid?I.login.completed({username:(O=R.username)!=null?O:d}):(d&&this._removeSession(),R)}).finally(()=>{this.validatingSession=!1,this._propagateState()});I.validate.promise(S)},_validateSession(){return new g.M$("GET",(0,s.H3)(c.A.SessionsApiController.validate().url)).json().build()},_removeSession(){p.A.delete("username"),this.username=void 0,this._propagateState()},_propagateState(){this.trigger(this.getSessionInfo())},loginCompleted(d){const{username:S}=d;p.A.set("username",S),this.username=S,this._propagateState()},isLoggedIn(){return!!this.username},getSessionInfo(){return{username:this.username,validatingSession:this.validatingSession}}}))},pS0GGJuX:(y,T,l)=>{"use strict";l.d(T,{Jk:()=>S,mt:()=>R});var h=l("GhvXG9ao"),o=l.n(h);const p=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,s="themeMode",c=16,g="teint",b="noir",I=null,D=null,d=[h.COLOR_SCHEME_LIGHT,h.COLOR_SCHEME_DARK],S=0,R="50px"},DBsovJTc:(y,T,l)=>{"use strict";l.d(T,{A:()=>g});var h=l("H/eHg5XM"),o=l.n(h);const p=()=>window.appConfig||{},g={contentStream(){var b;return(b=p())==null?void 0:b.contentStream},features:h.Map(p().featureFlags).filter(b=>b.trim().toLowerCase()==="on").keySeq().toList().filter(b=>typeof b=="string"),gl2ServerUrl(){return p().gl2ServerUrl},gl2AppPathPrefix(){return p().gl2AppPathPrefix},gl2DevMode(){return typeof DEVELOPMENT<"u"&&DEVELOPMENT},isFeatureEnabled(b){return this.features&&this.features.map(I=>I.trim().toLowerCase()).includes(b.toLowerCase())},rootTimeZone(){return p().rootTimeZone},isCloud(){return typeof IS_CLOUD<"u"?IS_CLOUD:p().isCloud},customThemeColors(){var b,I,D;return(D=(I=(b=p())==null?void 0:b.pluginUISettings)==null?void 0:I["org.graylog.plugins.customization.theme"])!=null?D:{}},telemetry(){var b;return(b=p())==null?void 0:b.telemetry},publicNotifications(){var b,I,D;return(D=(I=(b=p())==null?void 0:b.pluginUISettings)==null?void 0:I["org.graylog.plugins.customization.notifications"])!=null?D:{}},pluginUISettings(b){var I,D,d;return(d=(D=(I=p())==null?void 0:I.pluginUISettings)==null?void 0:D[b])!=null?d:{}}}},ekPuBHq5:(y,T,l)=>{"use strict";l.d(T,{Gz:()=>L,H3:()=>w,i:()=>O});var h=l("bcEkMz+H"),o=l.n(h),p=l("HM+Bgqj5"),s=l.n(p),c=l("DBsovJTc");const g=["http:","https:"],b=P=>{const F=new(s())(P);if(!F.hostname()||!F.scheme()){const $=new(s())(window.location);return F.absoluteTo($).toString()}return P},I={qualifyUrl(P){var F;if(new(s())(P).is("absolute"))return P;const se=b((F=c.A.gl2ServerUrl())!=null?F:"");return new(s())(se+P).normalizePathname().toString()},appPrefixed(P){return I.concatURLPath(c.A.gl2AppPathPrefix(),P)},getParsedSearch(P){let F={},$=P.search;return $&&$.indexOf("?")===0&&$.length>1&&($=$.substr(1,$.length-1),F=o().parse($)),F},getParsedHash(P){let F={},{hash:$}=P;return $&&$.indexOf("#")===0&&$.length>1&&($=$.substr(1,$.length-1),F=o().parse($)),F},replaceHashParam(P,F){const $=this.getParsedHash(window.location);$[P]=F,window.location.replace(`#${o().stringify($)}`)},concatURLPath(...P){const F=Array(P.length);for(let se=0;se{"use strict";var h=l("2HTbuIYx"),o=l("Z7aTuO5B"),p=l("KfF0gQb+"),s=l.n(p),c=l("Ha8N60MI");const g=({error:e})=>((0,o.useEffect)(()=>{console.error(e)},[e]),o.createElement("div",null,"Loading component failed: ",e.message)),b=o.createElement(o.Fragment,null),D=e=>{const t=o.lazy(e);return o.forwardRef((r,n)=>o.createElement(c.tH,{FallbackComponent:g},o.createElement(o.Suspense,{fallback:b},o.createElement(t,{...r,ref:n}))))};var d=l("J6y4/h8P"),S=l("Clc3x+/C");const R=(0,d.default)(S.YZ)`
margin-bottom: 0;
`,O=({activeKey:e,children:t,id:r,onSelect:n,...a})=>{const i=e==null?void 0:e.replace(/[^0-9a-zA-Z-]/g,"-").toLowerCase(),u=(0,o.useCallback)(m=>n(m),[n]);return o.createElement(R,{...a,activeKey:i,id:r,onSelect:u,accordion:!0},t)};O.propTypes={activeKey:s().string,children:s().node.isRequired,id:s().string.isRequired,onSelect:s().func},O.defaultProps={activeKey:void 0,defaultActiveKey:void 0,onSelect:()=>{}};const w=null;var U=l("mnllydGL");const k=(0,d.default)(U.A)`
border: 0;
border-radius: 0;
box-shadow: none;
`,L=(0,d.default)(U.A.Heading)(({theme:e})=>(0,d.css)`
&& {
padding: 0;
border-radius: 0;
background-color: ${e.colors.variant.lightest.default};
}
`),x=(0,d.default)(U.A.Title)(({theme:e})=>(0,d.css)`
font-size: ${e.fonts.size.small};
color: ${e.colors.global.link};
> a {
padding: 3px 9px;
display: block;
}
`),P=(0,d.default)(U.A.Body)(({theme:e})=>(0,d.css)`
${k} > ${L} + .panel-collapse > & {
background-color: ${e.colors.global.contentBackground};
border-top-color: ${e.colors.variant.lighter.default};
border-bottom-width: 0;
color: ${e.colors.variant.darkest.default};
}
`),F=({children:e,name:t,id:r,...n})=>{const a=r!=null?r:t.replace(/[^0-9a-zA-Z]/g,"-").toLowerCase();return o.createElement(k,{...n,id:r,eventKey:a},o.createElement(L,null,o.createElement(x,{toggle:!0},t)),o.createElement(U.A.Collapse,null,o.createElement(P,null,e)))};F.propTypes={name:s().node.isRequired,id:s().string,children:s().node.isRequired},F.defaultProps={id:void 0};const $=null;var se=l("L3UIULT/");const Te=null;var ge=l("UiXZqrDE");const be=d.default.label`
font-weight: bold;
margin-bottom: 5px;
display: inline-block;
font-size: 14px;
background: none;
`,ne=d.default.span`
color: ${e=>e.theme.colors.gray[50]};
`,Oe=({fieldName:e,label:t,clearable:r,required:n,helpText:a,options:i})=>o.createElement(ge.Field,{name:e,help:a},({field:{name:u,value:m,onChange:E}})=>o.createElement(o.Fragment,null,o.createElement(be,null,t),o.createElement(mt.A,{id:e,name:u,clearable:r,required:n,allowCreate:!0,onChange:f=>E({target:{value:f,name:u}}),options:i,value:m}),a&&o.createElement("span",{className:"help-block"},o.createElement(ne,null,a))));Oe.defaultProps={clearable:!1,required:!1,helpText:"",options:[]};const Se=null;var De=l("ASBo/Til"),Ce=l.n(De);const Fe={default:"YYYY-MM-DD HH:mm:ss",complete:"YYYY-MM-DD HH:mm:ss.SSS",withTz:"YYYY-MM-DD HH:mm:ss Z",readable:"dddd D MMMM YYYY, HH:mm ZZ",shortReadable:"MMM D, YYYY",internal:"YYYY-MM-DDTHH:mm:ss.SSSZ",internalIndexer:"YYYY-MM-DDTHH:mm:ss.SSS[Z]",date:"YYYY-MM-DD",hourAndMinute:"HH:mm"},fe="UTC",ut=(e,t,r)=>{if(!e.isValid()){let n=`Date time ${t} is not valid.`;r&&(n=`${n} ${r}`),console.error(n)}return e},Ge=e=>e==null?void 0:e.map(t=>{const r=Fe[t];if(!r)throw new Error(`Provided date time format "${t}" is not supported.`);return r}),ze=(e,t,r=fe)=>{const n=Ge(t),a=Ce().utc(e,n,!0).tz(r),i=t!=null&&t.length?`Expected formats: ${n.join(", ")}.`:void 0;return ut(a,e,i)},Ve=(e,t=fe)=>ze(e,["internal"],t),ht=()=>Ce().tz.guess(),je=(e,t="default",r=fe)=>ze(e,void 0,r).format(Fe[t]),Co=(e,t="default")=>je(e,t,ht()),Xt=e=>{const t=ze(e);return ut(t,e).fromNow()},Pt=e=>Ce()(e,Object.values(Fe),!0).isValid(),yt=(e,t)=>{if(!t)throw new Error("It is required to define the time zone of the date time provided for internalUTCTime.");return Ce().tz(e,t)},vo=e=>moment.duration(e).asSeconds(),M=e=>moment.duration(e).asMinutes(),z=({dateTime:e,format:t})=>{const r=e!=null?e:new Date,n=je(r,"internal"),a=Co(r,t);return o.createElement("time",{dateTime:n,title:n},a)};z.propTypes={dateTime:s().oneOfType([s().string,s().object,s().number]),format:s().string},z.defaultProps={format:"default",dateTime:void 0};const q=null,ae=d.default.div`
padding: 3px;
height: 20px;
width: 20px;
vertical-align: sub;
display: inline-flex;
justify-content: center;
align-items: center;
svg {
width: 100%;
}
`,He=e=>{switch(e){case"apple":return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",width:"24",height:"24",viewBox:"0 0 814 1000"},React.createElement("path",{fill:"currentColor",d:"M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z"}));case"freebsd":return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 64 64"},React.createElement("path",{fill:"currentColor",d:"M63.27 1.608c3.4 3.4-6.03 18.295-7.62 19.886s-5.6.126-9-3.266-4.856-7.4-3.266-9c1.6-1.633 16.495-11 19.886-7.62zM15.7 5.2C10.518 2.278 3.15-.987.806 1.357-1.58 3.743 1.8 11.28 4.783 16.47 7.42 11.823 11.188 7.972 15.7 5.2zm42.378 15.122c.46 1.633.377 2.972-.377 3.726-1.8 1.8-6.698-.126-11.094-4.312-.293-.293-.628-.544-.92-.88-1.6-1.6-2.847-3.266-3.6-4.856-1.55-2.763-1.926-5.2-.754-6.364.628-.628 1.633-.795 2.9-.586.795-.502 1.758-1.1 2.805-1.675C42.755 3.157 37.94 1.9 32.833 1.9c-16.997 0-30.77 13.774-30.77 30.77s13.774 30.77 30.77 30.77 30.77-13.774 30.77-30.77c0-5.484-1.423-10.634-3.977-15.113a27.18 27.18 0 0 1-1.549 2.763z"}));case"github":return React.createElement("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 98 96"},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z"}));case"linux":return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.0",width:"24",height:"24",viewBox:"0 0 266 312"},React.createElement("path",{fill:"currentColor",d:"M128.6640625 79.2793c0 1-1 1-1 1h-1c-1 0-1-1-2-2 0 0-1-1-1-2s0-1 1-1l2 1c1 1 2 2 2 3m-18-10c0-5-2-8-5-8 0 0 0 1-1 1v2h3c0 2 1 3 1 5h2m35-5c2 0 3 2 4 5h2c-1-1-1-2-1-3s0-2-1-3-2-2-3-2c0 0-1 1-2 1 0 1 1 1 1 2m-30 16c-1 0-1 0-1-1s0-2 1-3c2 0 3-1 3-1 1 0 1 1 1 1 0 1-1 2-3 4h-1m-11-1c-4-2-5-5-5-10 0-3 0-5 2-7 1-2 3-3 5-3s3 1 5 3c1 3 2 6 2 9v2h1v-1c1 0 1-2 1-6 0-3 0-6-2-9s-4-5-8-5c-3 0-6 2-7 5-2 4-2.4 7-2.4 12 0 4 1.4 8 5.4 12 1-1 2-1 3-2m125 141c1 0 1-.4 1-1.3 0-2.2-1-4.8-4-7.7-3-3-8-4.9-14-5.7-1-.1-2-.1-2-.1-1-.2-1-.2-2-.2-1-.1-3-.3-4-.5 3-9.3 4-17.5 4-24.7 0-10-2-17-6-23s-8-9-13-10c-1 1-1 1-1 2 5 2 10 6 13 12 3 7 4 13 4 20 0 5.6-1 13.9-5 24.5-4 1.6-8 5.3-11 11.1 0 .9 0 1.4 1 1.4 0 0 1-.9 2-2.6 2-1.7 3-3.4 5-5.1 3-1.7 5-2.6 8-2.6 5 0 10 .7 13 2.1 4 1.3 6 2.7 7 4.3 1 1.5 2 2.9 3 4.2 0 1.3 1 1.9 1 1.9m-92-145c-1-1-1-3-1-5 0-4 0-6 2-9 2-2 4-3 6-3 3 0 5 2 7 4 1 3 2 5 2 8 0 5-2 8-6 9 0 0 1 1 2 1 2 0 3 1 5 2 1-6 2-10 2-15 0-6-1-10-3-13-3-3-6-4-10-4-3 0-6 1-9 3-2 3-3 5-3 8 0 5 1 9 3 13 1 0 2 1 3 1m12 16c-13 9-23 13-31 13-7 0-14-3-20-8 1 2 2 4 3 5l6 6c4 4 9 6 14 6 7 0 15-4 25-11l9-6c2-2 4-4 4-7 0-1 0-2-1-2-1-2-6-5-16-8-9-4-16-6-20-6-3 0-8 2-15 6-6 4-10 8-10 12 0 0 1 1 2 3 6 5 12 8 18 8 8 0 18-4 31-14v2c1 0 1 1 1 1m23 202c4 7.52 11 11.3 19 11.3 2 0 4-.3 6-.9 2-.4 4-1.1 5-1.9 1-.7 2-1.4 3-2.2 2-.7 2-1.2 3-1.7l17-14.7c4-3.19 8-5.98 13-8.4 4-2.4 8-4 10-4.9 3-.8 5-2 7-3.6 1-1.5 2-3.4 2-5.8 0-2.9-2-5.1-4-6.7s-4-2.7-6-3.4-4-2.3-7-5c-2-2.6-4-6.2-5-10.9l-1-5.8c-1-2.7-1-4.7-2-5.8 0-.3 0-.4-1-.4s-3 .9-4 2.6c-2 1.7-4 3.6-6 5.6-1 2-4 3.8-6 5.5-3 1.7-6 2.6-8 2.6-8 0-12-2.2-15-6.5-2-3.2-3-6.9-4-11.1-2-1.7-3-2.6-5-2.6-5 0-7 5.2-7 15.7v31.1c0 .9-1 2.9-1 6-1 3.1-1 6.62-1 10.6l-2 11.1v.17m-145-5.29c9.3 1.36 20 4.27 32.1 8.71 12.1 4.4 19.5 6.7 22.2 6.7 7 0 12.8-3.1 17.6-9.09 1-1.94 1-4.22 1-6.84 0-9.45-5.7-21.4-17.1-35.9l-6.8-9.1c-1.4-1.9-3.1-4.8-5.3-8.7-2.1-3.9-4-6.9-5.5-9-1.3-2.3-3.4-4.6-6.1-6.9-2.6-2.3-5.6-3.8-8.9-4.6-4.2.8-7.1 2.2-8.5 4.1s-2.2 4-2.4 6.2c-.3 2.1-.9 3.5-1.9 4.2-1 .6-2.7 1.1-5 1.6-.5 0-1.4 0-2.7.1h-2.7c-5.3 0-8.9.6-10.8 1.6-2.5 2.9-3.8 6.2-3.8 9.7 0 1.6.4 4.3 1.2 8.1.8 3.7 1.2 6.7 1.2 8.8 0 4.1-1.2 8.2-3.7 12.3-2.5 4.3-3.8 7.5-3.8 9.78 1 3.88 7.6 6.61 19.7 8.21m33.3-90.9c0-6.9 1.8-14.5 5.5-23.5 3.6-9 7.2-15 10.7-19-.2-1-.7-1-1.5-1l-1-1c-2.9 3-6.4 10-10.6 20-4.2 9-6.4 17.3-6.4 23.4 0 4.5 1.1 8.4 3.1 11.8 2.2 3.3 7.5 8.1 15.9 14.2l10.6 6.9c11.3 9.8 17.3 16.6 17.3 20.6 0 2.1-1 4.2-4 6.5-2 2.4-4.7 3.6-7 3.6-.2 0-.3.2-.3.7 0 .1 1 2.1 3.1 6 4.2 5.7 13.2 8.5 25.2 8.5 22 0 39-9 52-27 0-5 0-8.1-1-9.4v-3.7c0-6.5 1-11.4 3-14.6s4-4.7 7-4.7c2 0 4 .7 6 2.2 1-7.7 1-14.4 1-20.4 0-9.1 0-16.6-2-23.6-1-6-3-11-5-15l-6-9c-2-3-3-6-5-9-1-4-2-7-2-12-3-5-5-10-8-15-2-5-4-10-6-14l-9 7c-10 7-18 10-25 10-6 0-11-1-14-5l-6-5c0 3-1 7-3 11l-6.3 12c-2.8 7-4.3 11-4.6 14-.4 2-.7 4-.9 4l-7.5 15c-8.1 15-12.2 28.9-12.2 40.4 0 2.3.2 4.7.6 7.1-4.5-3.1-6.7-7.4-6.7-13m71.6 94.6c-13 0-23 1.76-30 5.25v-.3c-5 6-10.6 9.1-18.4 9.1-4.9 0-12.6-1.9-23-5.7-10.5-3.6-19.8-6.36-27.9-8.18-.8-.23-2.6-.57-5.5-1.03-2.8-.45-5.4-.91-7.7-1.37-2.1-.45-4.5-1.13-7.1-2.05-2.5-.79-4.5-1.82-6-3.07-1.38-1.26-2.06-2.68-2.06-4.27 0-1.6.34-3.31 1.02-5.13.64-1.1 1.34-2.2 2.04-3.2.7-1.1 1.3-2.1 1.7-3.1.6-.9 1-1.8 1.4-2.8.4-.9.8-1.8 1-2.9.2-1 .4-2 .4-3s-.4-4-1.2-9.3c-.8-5.2-1.2-8.5-1.2-9.9 0-4.4 1-7.9 3.2-10.4s4.3-3.8 6.5-3.8h11.5c.9 0 2.3-.5 4.4-1.7.7-1.6 1.3-2.9 1.7-4.1.5-1.2.7-2.1.9-2.5.2-.6.4-1.2.6-1.7.4-.7.9-1.5 1.6-2.3-.8-1-1.2-2.3-1.2-3.9 0-1.1 0-2.1.2-2.7 0-3.6 1.7-8.7 5.3-15.4l3.5-6.3c2.9-5.4 5.1-9.4 6.7-13.4 1.7-4 3.5-10 5.5-18 1.6-7 5.4-14 11.4-21l7.5-9c5.2-6 8.6-11 10.5-15s2.9-9 2.9-13c0-2-.5-8-1.6-18-1-10-1.5-20-1.5-29 0-7 .6-12 1.9-17s3.6-10 7-14c3-4 7-8 13-10s13-3 21-3c3 0 6 0 9 1 3 0 7 1 12 3 4 2 8 4 11 7 4 3 7 8 10 13 2 6 4 12 5 20 1 5 1 10 2 17 0 6 1 10 1 13 1 3 1 7 2 12 1 4 2 8 4 11 2 4 4 8 7 12 3 5 7 10 11 16 9 10 16 21 20 32 5 10 8 23 8 36.9 0 6.9-1 13.6-3 20.1 2 0 3 .8 4 2.2s2 4.4 3 9.1l1 7.4c1 2.2 2 4.3 5 6.1 2 1.8 4 3.3 7 4.5 2 1 5 2.4 7 4.2 2 2 3 4.1 3 6.3 0 3.4-1 5.9-3 7.7-2 2-4 3.4-7 4.3-2 1-6 3-12 5.82-5 2.96-10 6.55-15 10.8l-10 8.51c-4 3.9-8 6.7-11 8.4-3 1.8-7 2.7-11 2.7l-7-.8c-8-2.1-13-6.1-16-12.2-16-1.94-29-2.9-37-2.9"}));case"windows":return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",imageRendering:"optimizeQuality",fillRule:"evenodd",clipRule:"evenodd",viewBox:"0 0 640 640"},React.createElement("path",{fill:"currentColor",d:"M.2 298.669L0 90.615l256.007-34.76v242.814H.201zM298.658 49.654L639.905-.012v298.681H298.657V49.654zM640 341.331l-.071 298.681L298.669 592V341.332h341.33zM255.983 586.543L.189 551.463v-210.18h255.794v245.26z"}));default:return null}},Lt=({name:e})=>{const t=He(e);return t?React.createElement(ae,null,t):null},gt=null,xt=d.default.div(({$fullHeight:e})=>`
display: flex;
height: ${e?"100%":"auto"};
justify-content: center;
align-items: center;
`),Nt=({children:e,fullHeight:t})=>o.createElement(xt,{$fullHeight:t},e);Nt.defaultProps={fullHeight:!0};const kt=null;var W=l("2kIrnlNs");const G=d.default.div(({$size:e,$gap:t,theme:r})=>(0,d.css)`
flex: 0 0 ${e!=null?e:"24%"};
min-width: 0;
min-height: 100px;
margin-right: ${t!=null?t:r.spacings.sm};
position: relative;
`),Ee=({children:e,size:t,gap:r})=>o.createElement(G,{$size:t,$gap:r},e);Ee.defaultProps={children:void 0,size:void 0,gap:void 0};const Re=Ee,Ae=d.default.div`
&.carousel {
overflow: hidden;
.carousel-container {
backface-visibility: hidden;
display: flex;
flex-direction: row;
height: auto;
}
}
`,we=({children:e})=>{const[t]=(0,W.A)({containScroll:"trimSnaps"});return o.createElement(Ae,{className:"carousel",ref:t},o.createElement("div",{className:"carousel-container"},e))};we.Slide=Re;const ft=null;var ue=l("bZLRAYkR"),he=l("ybot7P0S");const Be=({onChange:e,...t})=>{const r=(0,o.useCallback)((n,a)=>{e(n.hex,a)},[e]);return o.createElement(he.Lu,{...t,onChange:r})};Be.propTypes={color:s().string,colors:s().array,height:s().number,width:s().number,onChange:s().func.isRequired},Be.defaultProps={color:void 0,colors:void 0,height:310,width:250};const Ke=Be;var $e=l("os4Ll6vw");const Xe=({id:e,placement:t,title:r,triggerNode:n,onChange:a,...i})=>{const[u,m]=(0,o.useState)(!1),E=(0,o.useRef)(),f=(0,o.useCallback)(()=>{m(!u)},[u]),_=(0,o.useCallback)(()=>m(!1),[]),A=(0,o.useCallback)((N,H)=>{a(N,H,f)},[f,a]);return o.createElement($e.A,{id:e,opened:u,position:t,onClose:_},o.createElement($e.A.Target,null,(0,o.cloneElement)(n,{onClick:f,ref:E})),o.createElement($e.A.Dropdown,{title:r},o.createElement(Ke,{onChange:A,...i})))};Xe.propTypes={id:s().string.isRequired,placement:s().oneOf(["top","right","bottom","left"]),title:s().string,triggerNode:s().node.isRequired,onChange:s().func.isRequired},Xe.defaultProps={placement:"bottom",title:"Pick a color",colors:void 0};const Ct=null;var C=l("+VxIDBPC"),St=l("o8xG4j5J");const Wt=({show:e,title:t,children:r,onCancel:n,onConfirm:a,btnConfirmDisabled:i,btnConfirmText:u,hideCancelButton:m})=>{const E=m?a:n;return o.createElement(C.Modal,{show:e,onHide:E},o.createElement(C.Modal.Header,{closeButton:!0},o.createElement(C.Modal.Title,null,t)),o.createElement(C.Modal.Body,null,r),o.createElement(C.Modal.Footer,null,o.createElement(St.A,{onCancel:n,onSubmit:a,submitButtonType:"button",disabledSubmit:i,submitButtonText:u,displayCancel:m})))};Wt.propTypes={show:s().bool,hideCancelButton:s().bool,title:s().oneOfType([s().string,s().element]).isRequired,btnConfirmText:s().oneOfType([s().string,s().element]),btnConfirmDisabled:s().bool,onCancel:s().func,onConfirm:s().func.isRequired,children:s().oneOfType([s().string,s().element]).isRequired},Wt.defaultProps={btnConfirmText:"Confirm",btnConfirmDisabled:!1,show:!1,hideCancelButton:!1,onCancel:()=>{}};const Zt=null;var nt=l("yAXMqwrl"),tt=l("DBsovJTc");const qt=(e,t,r)=>t.pathname!==e.pathname?!window.confirm(r):!1,yo=({question:e})=>{const t=(0,o.useCallback)(r=>tt.A.gl2DevMode()?null:(r.returnValue=e,e),[e]);return(0,o.useEffect)(()=>(window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}),[t]),(0,nt.useBlocker)(r=>!tt.A.gl2DevMode()&&qt(r.currentLocation,r.nextLocation,e)),null};yo.propTypes={question:s().string},yo.defaultProps={question:"Are you sure?"};const hr=null;var Gt=l("C19pcrjQ"),eo=l.n(Gt);const _o=e=>e.indexOf("*")>-1,Ht=(e,t)=>{if(e.indexOf(t)>-1||e.indexOf("*")>-1)return!0;const r=t.split(":");if(r.length>=2){const n=r[0],a=`${r[0]}:${r[1]}`;return e.indexOf(n)>-1||e.indexOf(`${n}:*`)>-1||e.indexOf(a)>-1||e.indexOf(`${a}:*`)>-1}return e.indexOf(`${t}:*`)>-1},_t=(e,t)=>!t||t.length===0?!0:e?_o(e)?!0:typeof t=="object"?t.every(r=>Ht(e,r)):Ht(e,t):!1,st=(e,t)=>!t||t.length===0?!0:e?_o(e)?!0:t.some(r=>Ht(e,r)):!1,wn={isPermitted:_t,isAnyPermitted:st},ml=null;var Pe=l("oNXBLaYg");const $n=o.createContext(void 0),gr=(0,Pe.Gr)("contexts.CurrentUserContext",()=>$n),bo=()=>{const e=(0,o.useContext)(gr);if(!e)throw new Error("useCurrentUser hook needs to be used inside CurrentUserContext.Provider");return e},ke=d.default.div`
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
`,Go=({children:e,titleOverride:t,className:r})=>o.createElement(ke,{title:t||e,className:r},e);Go.defaultProps={className:void 0,titleOverride:void 0};const to=Go,To=((e={})=>new Intl.Collator(void 0,e).compare)();var Un=l("MTL7eqpZ");const So=(0,d.default)(C.DropdownButton)`
~ .dropdown-menu {
min-width: auto;
max-width: 180px;
}
`,v=(0,d.default)(C.Checkbox)`
&.checkbox {
margin: 0 5px 0 0;
label {
display: flex;
align-items: center;
padding: 0;
input {
margin: 0;
position: relative;
}
}
}
`,Q=d.default.div`
display: flex;
`,ve=(0,d.default)(to)`
display: inline;
`,Ne=({allColumns:e,column:t,onClick:r,selectedColumns:n})=>{const a=n.includes(t.id),i=()=>{const u=e.reduce((m,E)=>{const f=t.id===E.id;return f&&!a||!f&&n.includes(E.id)?[...m,E.id]:m},[]);r(u)};return o.createElement(Un.A,{onSelect:i,title:`${a?"Hide":"Show"} ${t.title}`},o.createElement(Q,null,o.createElement(v,{checked:a,onChange:i}),o.createElement(ve,null,t.title)))},at=({onChange:e,selectedColumns:t,allColumns:r})=>{const n=(0,o.useMemo)(()=>r.sort((a,i)=>To(a.title,i.title)),[r]);return o.createElement(So,{title:"Columns",bsSize:"small",pullRight:!0,"aria-label":"Configure visible columns",id:"columns-visibility-select",bsStyle:"default",closeOnItemClick:!1},n.map(a=>o.createElement(Ne,{column:a,onClick:e,key:a.id,allColumns:r,selectedColumns:t})))},bt={types:{DATE:{renderCell:e=>o.createElement(km,{dateTime:e}),staticWidth:160},STRING:{renderCell:e=>o.createElement(to,null,e)}},attributes:{description:{width:2},summary:{width:1.5},owner:{staticWidth:120},favorite:{renderHeader:()=>"",staticWidth:30}}},Tt=5,Ho=20,fr=150,Fn=1,Bh="More",kh="More actions",hl=({tableWidth:e,actionsColWidth:t,bulkSelectColWidth:r,columnsIds:n,columnRenderersByAttribute:a})=>{const i=n.reduce((u,m)=>{var E,f;return u+((f=(E=a[m])==null?void 0:E.staticWidth)!=null?f:0)},0);return e-r-t-i},gl=({assignableWidth:e,columnsIds:t,columnRenderersByAttribute:r})=>{const n=t.reduce((i,u)=>{var m;const{staticWidth:E,width:f=Fn}=(m=r[u])!=null?m:{};return E?i:i+f},0),a=e/n;return Object.fromEntries(t.map(i=>{var u;const{staticWidth:m,width:E=Fn,minWidth:f=fr}=(u=r[i])!=null?u:{},_=m!=null?m:a*E;return[i,!m&&_{const[i,u]=(0,o.useState)({});return(0,o.useLayoutEffect)(()=>{if(!a)return;const m=hl({actionsColWidth:e,columnRenderersByAttribute:r,columnsIds:n,bulkSelectColWidth:t,tableWidth:a});u(gl({assignableWidth:m,columnsIds:n,columnRenderersByAttribute:r}))},[e,t,r,n,a]),i};var Bn=l("J35SmSEq"),Ie=l("elvN/k85");const Cl=d.default.button(({theme:e,disabled:t})=>(0,d.css)`
display: inline-flex;
justify-content: center;
align-items: center;
height: 25px;
width: 25px;
border: 0;
background-color: transparent;
cursor: pointer;
color: ${t?e.colors.gray[90]:e.colors.gray[60]};
font-size: ${e.fonts.size.large};
&:hover {
background-color: ${e.colors.gray[80]};
}
&:active {
background-color: ${e.colors.gray[70]};
}
`),vl=e=>{typeof e=="function"&&e()},Cr=o.forwardRef(({title:e,onClick:t,focusable:r,className:n,disabled:a,iconType:i,"data-testid":u,...m},E)=>o.createElement(Cl,{ref:E,tabIndex:r?0:-1,"data-testid":u,title:e,onClick:()=>vl(t),className:n,type:"button",disabled:a},o.createElement(Ie.A,{type:i,...m})));Cr.propTypes={className:s().string,title:s().string,onClick:s().func,name:s().any},Cr.defaultProps={className:void 0,focusable:!0,onClick:void 0,title:void 0,name:void 0,disabled:!1,rotation:void 0,iconType:void 0,"data-testid":void 0};const vr=Cr,yl=o.createContext(void 0),kn=(0,Pe.Gr)("contexts.ExpandedSectionsContext",()=>yl),_l=d.default.tr(({theme:e})=>(0,d.css)`
&&&& {
background-color: ${e.colors.global.contentBackground};
}
`),bl=d.default.div`
display: flex;
justify-content: space-between;
margin-bottom: 5px;
`,Tl=(0,d.default)(C.ButtonToolbar)`
display: flex;
align-items: center;
`,Sl=(0,d.default)(vr)`
margin-left: 5px;
`,Al=({expandedSectionsRenderer:e,entity:t})=>{const{expandedSections:r,toggleSection:n}=(0,o.useContext)(kn),a=r==null?void 0:r[t.id];return a!=null&&a.length?o.createElement(_l,null,o.createElement("td",{colSpan:1e3},Object.entries(e!=null?e:{}).map(([i,u])=>{var m;if(!a.includes(i))return null;const E=()=>n(t.id,i),f=(m=u.actions)==null?void 0:m.call(u,t);return o.createElement("div",{key:`${i}-${t.id}`},o.createElement(bl,null,o.createElement("h3",null,u.title),o.createElement(Tl,null,f,o.createElement(Sl,{name:"close",onClick:E,title:"Hide section"}))),u.content(t))}))):null};var Il=l("oDdu0vts"),Ko=l.n(Il);const Dl=o.createContext(void 0),Wn=(0,Pe.Gr)("contexts.SelectEntitiesContext",()=>Dl),Gn=({children:e,initialSelection:t,onChangeSelection:r})=>{const[n,a]=(0,o.useState)(t),i=(0,o.useCallback)(f=>{const _=Ko()(f)?f(n):f;a(_),r&&r(_)},[r,n]),u=(0,o.useCallback)(f=>i(_=>_.filter(A=>A!==f)),[i]),m=(0,o.useCallback)(f=>i(_=>[..._,f]),[i]),E=(0,o.useMemo)(()=>({setSelectedEntities:i,selectedEntities:n,deselectEntity:u,selectEntity:m}),[i,n,u,m]);return o.createElement(Wn.Provider,{value:E},e)};Gn.defaultProps={initialSelection:[]};const Rl=Gn,yr={tempDocument:document.createElement("textarea"),capitalizeFirstLetter(e){return e.charAt(0).toUpperCase()+e.slice(1)},escapeHTML(e){return this.tempDocument.textContent=e,this.tempDocument.innerHTML},unescapeHTML(e){return this.tempDocument.innerHTML=e,this.tempDocument.textContent},pluralize(e,t,r){return e===1||e==="1"?t:r},stringify(e){return(typeof e=="object"?JSON.stringify(e):String(e))||""},replaceSpaces(e,t="-"){return e.replace(/\s/g,t)},toTitleCase(e,t=" "){return e.toLowerCase().split(t).map(r=>`${r.charAt(0).toUpperCase()}${r.slice(1)}`).join(" ")},truncateWithEllipses(e="",t=10,r="..."){return e.length>t?`${e.substring(0,t)}${r}`:e},getRecursiveChildText(e){if(typeof e=="string")return e;const{children:t}=(e==null?void 0:e.props)||{};if(Array.isArray(e)){const r=[];return e.forEach(n=>{typeof n=="object"?r.push(yr.getRecursiveChildText(n)):typeof n=="string"&&r.push(n)}),r.join(" ")}return typeof t=="object"?yr.getRecursiveChildText(t):typeof t=="string"?t:""}},Hn=yr,_r=()=>{const e=(0,o.useContext)(Wn);if(!e)throw new Error("useSelectedEntities hook needs to be used inside BulkSelectContext.Provider");return e},Ol=d.default.div`
display: flex;
align-items: center;
`,Pl=d.default.div`
margin-left: 5px;
`,Ll=({bulkActions:e})=>{const{selectedEntities:t}=_r();return o.createElement(Ol,null,e,!!t.length&&o.createElement(Pl,null,t.length," ",Hn.pluralize(t.length,"item","items")," selected"))},xl=d.default.button(({theme:e})=>(0,d.css)`
border: 0;
background: transparent;
padding: 5px;
cursor: pointer;
position: relative;
color: ${e.colors.gray[70]};
display: inline-flex;
align-items: center;
justify-content: center;
vertical-align: middle;
&.active {
color: ${e.colors.gray[20]};
}
`),Nl=d.default.span(({theme:e})=>(0,d.css)`
position: absolute;
top: 0;
right: 0;
font-size: ${e.fonts.size.small};
font-weight: 600;
`),Kn=({activeDirection:e,onChange:t,title:r,order:n,ascId:a,descId:i,className:u})=>{const m=(0,o.useCallback)(()=>t(e),[e,t]),E=e===a&&e!==i,f=!!e;return o.createElement(xl,{className:`${u} ${f?"active":""}`,title:r,type:"button","aria-label":r,onClick:m},o.createElement(Ie.A,{name:"sort","data-testid":"sort-icon-svg",flip:E?"horizontal":void 0,className:`sort-icon-${E?"asc":"desc"}`}),n&&o.createElement(Nl,null,n))};Kn.defaultProps={title:"Sort",order:void 0,ascId:"Ascending",descId:"Descending",className:""};const wl=Kn,$l=(0,d.default)(wl)`
display: inline-block;
margin-left: 6px;
padding: 0;
cursor: pointer;
`,Ao={ASC:"asc",DESC:"desc"},Ml={asc:"ascending",desc:"descending"},Ul=({onChange:e,activeSort:t,column:r})=>{const n=(t==null?void 0:t.attributeId)===r.id,a=!n||t.direction===Ao.DESC?Ao.ASC:Ao.DESC,i=`Sort ${r.title.toLowerCase()} ${Ml[a]}`,u=()=>{e({attributeId:r.id,direction:a})};return o.createElement($l,{activeDirection:n?t.direction:void 0,onChange:u,title:i,ascId:Ao.ASC,descId:Ao.DESC})};var Fl=l("KhtSIDKH"),zn=l.n(Fl);const Vn=(0,d.default)(C.Checkbox)`
&.checkbox {
margin: 0;
label {
display: flex;
align-items: center;
padding: 0;
input {
width: 14px;
height: 14px;
cursor: pointer;
margin: 0;
position: relative;
}
}
}
`,Bl=(e,t)=>{const r=(0,o.useRef)(),n=(0,o.useMemo)(()=>{const a=e.filter(({id:i})=>t.includes(i));return a.length===0?"UNCHECKED":a.length===e.length?"CHECKED":"PARTIAL"},[e,t]);return(0,o.useEffect)(()=>{if(r.current){if(n==="PARTIAL"){r.current.indeterminate=!0;return}r.current.indeterminate=!1}},[n]),{checkboxRef:r,checkboxStatus:n}},kl=({data:e})=>{const{selectedEntities:t,setSelectedEntities:r}=_r(),{checkboxRef:n,checkboxStatus:a}=Bl(e,t),i=`${a==="CHECKED"?"Deselect":"Select"} all visible entities`,u=()=>{r(m=>{const E=e.map(({id:f})=>f);return a==="CHECKED"?m.filter(f=>!E.includes(f)):zn()([...m,...E])})};return o.createElement(br,{$width:Ho},o.createElement(Vn,{inputRef:m=>{n.current=m},onChange:u,checked:a==="CHECKED",title:i,disabled:!(e!=null&&e.length),"aria-label":i}))},Wl=d.default.thead(({theme:e})=>(0,d.css)`
background-color: ${e.colors.global.contentBackground};
`),br=d.default.th(({$width:e,theme:t})=>(0,d.css)`
width: ${e?`${e}px`:"auto"};
background-color: ${t.colors.table.head.background};
`),Gl=({activeSort:e,column:t,columnRenderer:r,onSortChange:n,colWidth:a})=>{const i=(0,o.useMemo)(()=>typeof(r==null?void 0:r.renderHeader)=="function"?r.renderHeader(t):t.title,[t,r]);return o.createElement(br,{$width:a},i,t.sortable&&o.createElement(Ul,{onChange:n,column:t,activeSort:e}))},Hl=(0,d.default)(br)(({$width:e})=>(0,d.css)`
text-align: right;
width: ${e?`${e}px`:"auto"};
`),Kl=({actionsColWidth:e,activeSort:t,columns:r,columnsOrder:n,columnRenderersByAttribute:a,columnsWidths:i,data:u,displayActionsCol:m,displayBulkSelectCol:E,onSortChange:f})=>{const _=(0,o.useMemo)(()=>r.sort((A,N)=>n.indexOf(A.id)-n.indexOf(N.id)),[r,n]);return o.createElement(Wl,null,o.createElement("tr",null,E&&o.createElement(kl,{data:u}),_.map(A=>{const N=a[A.id];return o.createElement(Gl,{columnRenderer:N,column:A,colWidth:i[A.id],onSortChange:f,activeSort:t,key:A.title})}),m?o.createElement(Hl,{$width:e},"Actions"):null))};var jn=l("qKIMiD1A"),zl=l("OZcvNQmv"),Yn=l.n(zl);const Vl=d.default.td`
word-break: break-word;
`,jl=({column:e,columnRenderer:t,entity:r,entityAttributesAreCamelCase:n})=>{const a=n?Yn()(e.id):e.id,i=r[a],u=typeof(t==null?void 0:t.renderCell)=="function"?t.renderCell(i,r,e):i;return o.createElement(Vl,null,u)},Yl=d.default.td`
float: right;
text-align: right;
.btn-toolbar {
display: inline-flex;
}
`,Jl=d.default.div`
display: inline-flex;
`,Jn=({columns:e,columnRenderersByAttribute:t,displaySelect:r,displayActions:n,entity:a,rowActions:i,index:u,actionsRef:m,entityAttributesAreCamelCase:E,isEntitySelectable:f})=>{const{selectedEntities:_,setSelectedEntities:A}=_r(),N=!!(_!=null&&_.includes(a.id)),H=(0,o.useCallback)(()=>{A(J=>J.includes(a.id)?J.filter(ce=>ce!==a.id):[...J,a.id])},[a.id,A]),B=n?o.createElement(jn.A,null,i(a)):null,K=(0,o.useMemo)(()=>!(r&&f(a)),[r,a,f]),ee=`${N?"Deselect":"Select"} entity`;return o.createElement("tr",null,r&&o.createElement("td",{"aria-label":"Select cell"},o.createElement(Vn,{onChange:H,title:ee,checked:N,disabled:K,"aria-label":ee})),e.map(J=>{const ce=t[J.id];return o.createElement(jl,{columnRenderer:ce,entityAttributesAreCamelCase:E,entity:a,column:J,key:`${a.id}-${J.id}`})}),n?o.createElement(Yl,null,u===0?o.createElement(Jl,{ref:m},B):B):null)};Jn.defaultProps={rowActions:void 0};const Ql=o.memo(Jn),Qn=({children:e})=>{const[t,r]=(0,o.useState)(),n=(0,o.useCallback)((i,u)=>r(m=>{var E,f;const _={...m!=null?m:{}};if((E=_[i])!=null&&E.includes(u)){const A=_[i].filter(N=>N!==u);return A.length===0?(delete _[i],_):{..._,[i]:A}}return{..._,[i]:[...(f=_[i])!=null?f:[],u]}}),[]),a=(0,o.useMemo)(()=>({expandedSections:t,toggleSection:n}),[t,n]);return o.createElement(kn.Provider,{value:a},e)};Qn.propTypes={children:s().node.isRequired};const Xl=Qn,Zl=d.default.div`
width: 100%;
overflow-x: auto;
`,ql=(0,d.default)(C.Table)(({theme:e})=>(0,d.css)`
table-layout: fixed;
thead > tr > th,
tbody > tr > td {
padding: ${Tt}px;
}
&& {
> tbody:nth-of-type(even) > tr {
background-color: ${e.colors.table.row.backgroundAlt};
}
> tbody:nth-of-type(odd) > tr {
background-color: ${e.colors.table.row.background};
}
}
`),ei=d.default.div`
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
min-height: 22px;
`,ti=d.default.div`
display: flex;
align-items: center;
gap: 5px;
`,oi=(e,t)=>e.filter(({permissions:r,anyPermissions:n,hidden:a})=>a?!1:r!=null&&r.length?n?st(t,r):_t(t,r):!0),ri=(e,t)=>t.map(r=>e.find(({id:n})=>n===r)).filter(r=>!!r),ni=({columns:e,columnRenderersByAttribute:t,displayBulkSelectCol:r,fixedActionsCellWidth:n})=>{var a,i;const u=(0,o.useRef)(null),m=(0,o.useRef)(),{width:E}=(0,Bn.A)(u),f=(0,o.useMemo)(()=>e.map(({id:H})=>H),[e]),_=n!=null?n:(i=(a=m.current)==null?void 0:a.offsetWidth)!=null?i:0,A=_?_+Tt*2:0,N=fl({actionsColWidth:A,bulkSelectColWidth:r?Ho:0,columnRenderersByAttribute:t,columnsIds:f,tableWidth:E});return{tableRef:u,actionsRef:m,columnsWidths:N,actionsColWidth:A}},si=(e,t)=>{const r=eo()({},bt,t);return Object.fromEntries(e.map(({id:n,type:a})=>{var i,u;const m=(i=r.types)==null?void 0:i[a],E=(u=r.attributes)==null?void 0:u[n],f=eo()({},m,E);return[n,f]}))},ai=({actionsCellWidth:e,activeSort:t,entityAttributesAreCamelCase:r,bulkSelection:{actions:n,onChangeSelection:a,initialSelection:i,isEntitySelectable:u},columnDefinitions:m,columnRenderers:E,columnsOrder:f,data:_,expandedSectionsRenderer:A,onColumnsChange:N,onPageSizeChange:H,onSortChange:B,pageSize:K,rowActions:ee,visibleColumns:J})=>{const ce=bo(),oe=typeof ee=="function",pe=!!n,le=typeof a=="function"||pe,xe=typeof H=="function",Y=(0,o.useCallback)(Rt=>le?typeof u=="function"?u(Rt):!0:!1,[le,u]),V=(0,o.useMemo)(()=>oi(m,ce.permissions),[m,ce.permissions]),Z=(0,o.useMemo)(()=>ri(V,J),[V,J]),_e=(0,o.useMemo)(()=>si(Z,E),[Z,E]),{tableRef:Ue,actionsRef:et,actionsColWidth:Qt,columnsWidths:Fo}=ni({columns:Z,columnRenderersByAttribute:_e,displayBulkSelectCol:le,fixedActionsCellWidth:e}),Rn=(0,o.useMemo)(()=>_.filter(Y),[_,Y]);return o.createElement(Rl,{initialSelection:i,onChangeSelection:a},o.createElement(Xl,null,o.createElement(ei,null,o.createElement("div",null,pe&&o.createElement(Ll,{bulkActions:n})),o.createElement(ti,null,"Show",o.createElement(C.ButtonGroup,null,xe&&o.createElement(ra,{pageSize:K,showLabel:!1,onChange:H}),o.createElement(at,{allColumns:V,selectedColumns:J,onChange:N})))),o.createElement(Zl,{id:"scroll-container",ref:Ue},o.createElement(ql,{striped:!0,condensed:!0,hover:!0},o.createElement(Kl,{columns:Z,columnsOrder:f,actionsColWidth:Qt,columnsWidths:Fo,data:Rn,columnRenderersByAttribute:_e,onSortChange:B,displayBulkSelectCol:le,activeSort:t,displayActionsCol:oe}),_.map((Rt,fo)=>o.createElement("tbody",{key:`table-row-${Rt.id}`,"data-testid":`table-row-${Rt.id}`},o.createElement(Ql,{entity:Rt,index:fo,entityAttributesAreCamelCase:r,actionsRef:et,columnRenderersByAttribute:_e,rowActions:ee,displaySelect:le,isEntitySelectable:Y,displayActions:oe,columns:Z}),o.createElement(Al,{key:`expanded-sections-${Rt.id}`,expandedSectionsRenderer:A,entity:Rt})))))))};ai.defaultProps={actionsCellWidth:void 0,activeSort:void 0,columnRenderers:void 0,columnsOrder:[],expandedSectionsRenderer:void 0,onPageSizeChange:void 0,pageSize:void 0,rowActions:void 0,entityAttributesAreCamelCase:!0,bulkSelection:{}};const Qh=null,Xh=null;var li=l("/G8hFj5s"),ii=l.n(li);const ci=(0,d.default)(C.Row)(({theme:e})=>(0,d.css)`
padding-bottom: 0;
p {
margin-top: 15px;
}
.actions-lg {
float: right;
}
.actions-sm {
padding-bottom: 15px;
}
.btn-lg {
font-size: ${e.fonts.size.large};
}
`),Tr=({children:e,className:t,...r})=>o.createElement(ci,{className:ii()("content-head",t),...r},e);Tr.propTypes={children:s().node.isRequired,className:s().string},Tr.defaultProps={className:void 0};const di=Tr,ui=(0,d.default)(C.ListGroupItem)(({theme:e})=>(0,d.css)`
background-color: ${e.colors.variant.lightest.default};
font-size: ${e.fonts.size.body};
color: ${e.utils.contrastingColor(e.colors.variant.lightest.default)};
padding: 0 15px;
.form-group {
margin: 0;
}
`),pi=d.default.div`
padding: 10px 0;
min-height: 40px;
`,Sr=({children:e})=>{const r=typeof e=="string"?(n=>o.createElement(pi,null,n))(e):e;return o.createElement(ui,null,r)};Sr.propTypes={children:s().node},Sr.defaultProps={children:""};const mi=Sr,Ar=({className:e,children:t})=>o.createElement(C.ListGroupItem,{className:e},t);Ar.propTypes={children:s().node.isRequired,className:s().string},Ar.defaultProps={className:void 0};const Xn=Ar,Ir=({children:e})=>{let t;return e.length===0?t=o.createElement(Xn,null,"No items to display"):t=e,o.createElement("div",null,o.createElement(C.ListGroup,null,t))};Ir.Header=mi,Ir.Item=Xn,Ir.propTypes={children:s().node.isRequired};const Zh=null,Ei=o.forwardRef(({formatSelection:e,children:t,className:r},n)=>{const a=i=>{const u=e(document.getSelection());i.clipboardData.setData("text/plain",u),i.preventDefault()};return o.createElement("div",{className:r,ref:n,onCopy:a},t)});Ei.defaultProps={className:void 0};const qh=null;var hi=l("Z/PhoFvD");const gi=(0,o.forwardRef)(({children:e,onClick:t,className:r,title:n},a)=>o.createElement(hi.A,{bsStyle:"info",className:r,onClick:t,ref:a,title:n},e));gi.defaultProps={onClick:void 0,className:"",title:void 0};const eg=null;var fi=l("FtmMm3gp"),zo=l.n(fi),Ci=l("Tk+7c1Lc"),Le=l("H/eHg5XM"),Dr=l.n(Le),Vo=l("zKLlqmvB"),vi=l("zwqkL7eo"),Rr=l.n(vi),yi=l("kqAR+wt5"),Ye=l.n(yi),tg=l("yjdIzlkZ");let Zn=!1;const qn={init(){Zn||(Ye()("#scroll-to-search-hint, #scroll-to-search-hint i").on("click",()=>{Ye()("html, body").animate({scrollTop:0},"fast")}),Zn=!0)},escape(e){return e.replace(/(&&|\|\||[:\\\/\+\-!\(\)\{\}\[\]\^"~*\?])/g,"\\$&")},_query(){return Ye()("#universalsearch-query")},setQuery(e){const t=this._query();t.val(e),t.effect("bounce"),this.scrollToSearchbarHint()},getQuery(){return this._query().val()},submit(){Ye()("#universalsearch form").submit()},createSourceQuery(e){return`source:${this.escape(e)}`},queryContainsSegment(e){return this.getQuery().split(" ").some(n=>n===e)},addSegment(e,t){let r=this.getQuery();if(this.queryContainsSegment(e))return;r==="*"&&(r="");let n="";typeof t<"u"&&r!==""&&(n=`${r} ${t} `),n+=e,this.setQuery(n)},andOperator(){return"AND"},orOperator(){return"OR"},notOperator(){return"NOT"},scrollToSearchbarHint(){Ye()(document).scrollTop()>50&&Ye()("#scroll-to-search-hint").fadeIn("fast").delay(1500).fadeOut("fast")},substringMatcher(e,t,r){return function(a,i){const u=[];e.forEach(m=>{if(u.length{if(u.lengtht in e?_i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,oo=(e,t,r)=>(bi(e,typeof t!="symbol"?t+"":t,r),r);const Ti=(0,d.default)(C.Input)`
input&.tt-hint {
background-color: transparent !important;
}
`;class Or extends o.Component{constructor(){super(...arguments),oo(this,"getValue",()=>Ye()(this.fieldInput).typeahead("val")),oo(this,"clear",()=>{Ye()(this.fieldInput).typeahead("val","")}),oo(this,"_destroyTypeahead",()=>{Ye()(this.fieldInput).typeahead("destroy"),Ye()(this.fieldFormGroup).off("typeahead:select typeahead:autocomplete")}),oo(this,"_updateTypeahead",({suggestions:t,displayKey:r,suggestionText:n,onTypeaheadLoaded:a,onSuggestionSelected:i})=>{this.fieldInput=this.fieldInputElem.getInputDOMNode(),this.fieldFormGroup=Vo.findDOMNode(this.fieldInputElem);const u=Ye()(this.fieldInput);u.typeahead({hint:!0,highlight:!0,minLength:1},{name:"dataset-name",displayKey:r,source:qn.substringMatcher(t,r,6),templates:{suggestion:m=>n?`${Rr()(n)} ${Rr()(m[r])}`:`${Rr()(m[r])}`}}),typeof a=="function"&&(a(),u.typeahead("close")),Ye()(this.fieldFormGroup).on("typeahead:select typeahead:autocomplete",(m,E)=>{i&&i(m,E)})})}componentDidMount(){const{suggestions:t,displayKey:r,suggestionText:n,onTypeaheadLoaded:a,onSuggestionSelected:i}=this.props;this._updateTypeahead({suggestions:t,displayKey:r,suggestionText:n,onTypeaheadLoaded:a,onSuggestionSelected:i})}UNSAFE_componentWillReceiveProps(t){this._destroyTypeahead(),this._updateTypeahead(t)}componentWillUnmount(){this._destroyTypeahead()}render(){const{id:t,label:r,onKeyPress:n,formGroupClassName:a}=this.props;return o.createElement(Ti,{id:t,type:"text",ref:i=>{this.fieldInputElem=i},wrapperClassName:"typeahead-wrapper",formGroupClassName:a,label:r,onKeyPress:n})}}oo(Or,"propTypes",{id:s().string.isRequired,label:s().string.isRequired,onKeyPress:s().func,displayKey:s().string,formGroupClassName:s().string,suggestions:s().array,suggestionText:s().string,onTypeaheadLoaded:s().func,onSuggestionSelected:s().func}),oo(Or,"defaultProps",{displayKey:"suggestion",formGroupClassName:void 0,onKeyPress:()=>{},onTypeaheadLoaded:()=>{},onSuggestionSelected:()=>{},suggestions:[],suggestionText:void 0});const Si=Or;var Ai=Object.defineProperty,Ii=(e,t,r)=>t in e?Ai(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,At=(e,t,r)=>(Ii(e,typeof t!="symbol"?t+"":t,r),r);class Pr extends o.Component{constructor(t){super(t),At(this,"_onSearchTextChanged",n=>{n.preventDefault(),n.stopPropagation(),this.setState({filterText:this.typeAheadInput.getValue()},this.filterData)}),At(this,"_onFilterAdded",(n,a)=>{const{filters:i}=this.state,{displayKey:u}=this.props;this.setState({filters:i.add(a[u]),filterText:""},this.filterData),this.typeAheadInput.clear()}),At(this,"_onFilterRemoved",n=>{const{filters:a}=this.state;n.preventDefault(),this.setState({filters:a.delete(n.target.getAttribute("data-target"))},this.filterData)}),At(this,"_matchFilters",n=>{const{filters:a,filterByKey:i}=this.state,{filterSuggestionAccessor:u}=this.props;return a.every(m=>{let E=n[i];return u?E=E.map(f=>f[u].toLocaleLowerCase()):E=E.map(f=>f.toLocaleLowerCase()),E.indexOf(m.toLocaleLowerCase())!==-1},this)}),At(this,"_matchStringSearch",n=>{const{filterText:a}=this.state,{searchInKeys:i}=this.props;return i.some(u=>{const m=n[u],E=a;if(m===null)return!1;const f=(_,A)=>typeof _>"u"?!1:_.toLocaleLowerCase().indexOf(A.toLocaleLowerCase())!==-1;return typeof m=="object"?m.some(_=>f(_,E)):f(m,E)},this)}),At(this,"_resetFilters",()=>{this.typeAheadInput.clear(),this.setState({filterText:"",filters:Dr().OrderedSet()},this.filterData)}),At(this,"filterData",()=>{const{filterData:n,data:a,onDataFiltered:i}=this.props,{filterText:u}=this.state;if(typeof n=="function")return n(a);const m=a.filter(E=>this._matchFilters(E)&&this._matchStringSearch(E),this);return i(m,u),!0});const{filterBy:r}=this.props;this.state={filterText:"",filters:Dr().OrderedSet(),filterByKey:`${r}s`}}componentDidUpdate(t){const{data:r}=this.props;zo()(t.data,r)||this.filterData()}render(){const{filters:t,filterText:r}=this.state,{id:n,label:a,displayKey:i,filterBy:u,filterSuggestionAccessor:m,filterSuggestions:E}=this.props,f=t.map(A=>o.createElement("li",{key:`li-${A}`},o.createElement("span",{className:"pill label label-default"},u,": ",A,o.createElement("button",{type:"button",className:"tag-remove","data-target":A,onClick:this._onFilterRemoved,"aria-label":`Remove filter ${A}`}))));let _;return m?_=E.map(A=>A[m].toLocaleLowerCase()):_=E.map(A=>A.toLocaleLowerCase()),_.filter(A=>!t.includes(A)),o.createElement("div",{className:"filter"},o.createElement("form",{className:"form-inline",onSubmit:this._onSearchTextChanged,style:{display:"inline-flex",alignItems:"flex-end"}},o.createElement(Si,{id:n,ref:A=>{this.typeAheadInput=A},onSuggestionSelected:this._onFilterAdded,formGroupClassName:"",suggestionText:`Filter by ${u}: `,suggestions:_,label:a,displayKey:i}),o.createElement(C.Button,{type:"submit",style:{marginLeft:5}},"Filter"),o.createElement(C.Button,{type:"button",style:{marginLeft:5},onClick:this._resetFilters,disabled:t.count()===0&&r===""},"Reset")),o.createElement("ul",{className:"pill-list"},f))}}At(Pr,"propTypes",{id:s().string,data:s().array,displayKey:s().string,filterBy:s().string,filterData:s().func,filterSuggestionAccessor:s().string,filterSuggestions:s().array,label:s().string,onDataFiltered:s().func,searchInKeys:s().array}),At(Pr,"defaultProps",{id:"",data:[],displayKey:"",filterBy:"",filterData:void 0,filterSuggestionAccessor:"",filterSuggestions:[],label:"",onDataFiltered:void 0,searchInKeys:[]});const Di=Pr,Ri=d.default.div`
.control-label {
padding-top: 0;
}
`,Lr=({children:e,displayKey:t,filterBy:r,filterKeys:n,filterSuggestions:a,id:i,label:u,onDataFiltered:m,rows:E})=>n.length!==0?o.createElement(Ri,{className:"row"},o.createElement("div",{className:"col-md-8"},o.createElement(Di,{id:`${i}-data-filter`,label:u,data:E,displayKey:t,filterBy:r,filterSuggestions:a,searchInKeys:n,onDataFiltered:m})),e&&o.createElement("div",{className:"col-md-4"},e)):null;Lr.propTypes={children:s().node,displayKey:s().string,filterBy:s().string,filterKeys:s().array,filterSuggestions:s().array,id:s().string.isRequired,label:s().string,onDataFiltered:s().func.isRequired,rows:s().array.isRequired},Lr.defaultProps={children:void 0,displayKey:void 0,filterBy:void 0,filterKeys:void 0,filterSuggestions:void 0,label:void 0};const es=Lr;var Oi=Object.defineProperty,Pi=(e,t,r)=>t in e?Oi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ts=(e,t,r)=>(Pi(e,typeof t!="symbol"?t+"":t,r),r);class xr extends o.Component{render(){const{formatter:t,element:r,index:n}=this.props;return t(r,n)}}ts(xr,"propTypes",{element:s().any,formatter:s().func.isRequired,index:s().number}),ts(xr,"defaultProps",{element:void 0,index:void 0});const os=xr,Nr=({children:e})=>o.createElement(C.Alert,{className:"no-bm"},e);Nr.propTypes={children:s().oneOfType([s().node])},Nr.defaultProps={children:"No entities exist."};const Li=Nr;var xi=Object.defineProperty,Ni=(e,t,r)=>t in e?xi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ro=(e,t,r)=>(Ni(e,typeof t!="symbol"?t+"":t,r),r);const wi=d.default.table`
${Ci.s}
`,$i=({noDataText:e})=>typeof e=="string"?o.createElement(Li,null,e):e;class wr extends o.Component{constructor(t){super(t),ro(this,"getFormattedHeaders",()=>{let n=0;const{headerCellFormatter:a,headers:i}=this.props,u=i.map(m=>{const E=o.createElement(os,{key:`header-${n}`,element:m,index:n,formatter:a});return n+=1,E});return o.createElement("tr",null,u)}),ro(this,"getFormattedDataRows",()=>{let n=0;const{sortByKey:a,sortBy:i,dataRowFormatter:u,useNumericSort:m}=this.props;let E=this._getEffectiveRows();return a?E=E.sort((_,A)=>_[a].localeCompare(A[a],void 0,{numeric:m})):i&&(E=E.sort((_,A)=>i(_).localeCompare(i(A),void 0,{numeric:m}))),E.map(_=>{const A=o.createElement(os,{key:`row-${n}`,element:_,index:n,formatter:u});return n+=1,A})}),ro(this,"filterDataRows",n=>{this.setState({filteredRows:n})}),ro(this,"_getEffectiveRows",()=>{const{filteredRows:n}=this.state,{filterKeys:a,rows:i}=this.props;return a.length===0?i:n.filter(u=>i.some(m=>zo()(m,u)))});const{rows:r}=this.props;this.state={filteredRows:r}}render(){const{customFilter:t,filterKeys:r,id:n,filterLabel:a,filterBy:i,displayKey:u,filterSuggestions:m,children:E,noDataText:f,className:_,rowClassName:A,useResponsiveTable:N,rows:H}=this.props,B=this._getEffectiveRows();let K;return H.length===0?K=o.createElement($i,{noDataText:f}):B.length===0?K=o.createElement("p",null,"Filter does not match any data."):K=o.createElement(wi,{className:`table ${_!=null?_:""}`},o.createElement("thead",null,this.getFormattedHeaders()),o.createElement("tbody",null,this.getFormattedDataRows())),o.createElement("div",null,t||o.createElement(es,{label:a,rows:H,id:n,displayKey:u,filterBy:i,filterSuggestions:m,filterKeys:r,onDataFiltered:this.filterDataRows},E),o.createElement("div",{className:`row ${A}`},o.createElement("div",{className:"col-md-12"},o.createElement("div",{id:n,className:`data-table ${N?"table-responsive":""}`},K))))}}ro(wr,"propTypes",{children:s().node,className:s().string,customFilter:s().node,rowClassName:s().string,displayKey:s().string,dataRowFormatter:s().func.isRequired,filterBy:s().string,filterLabel:s().string,filterKeys:s().array,filterSuggestions:s().array,headerCellFormatter:s().func,headers:s().array.isRequired,id:s().string.isRequired,noDataText:s().oneOfType([s().string,s().node]),rows:s().array.isRequired,sortByKey:s().string,sortBy:s().func,useResponsiveTable:s().bool,useNumericSort:s().bool}),ro(wr,"defaultProps",{customFilter:void 0,children:void 0,className:"",filterBy:"",filterSuggestions:[],filterKeys:[],filterLabel:"Filter",displayKey:"value",noDataText:"No data available.",rowClassName:"",useResponsiveTable:!0,headerCellFormatter:e=>o.createElement("th",null,e),sortByKey:void 0,sortBy:void 0,useNumericSort:!1});const Mi=wr;var Ui=l("jlUcZkDc"),ng=l("aC7Ajf8V");const Fi=(0,d.default)(Ui.Ay)(({theme:e})=>(0,d.css)`
width: 100%;
.DayPicker-Day {
min-width: 34px;
max-width: 34px;
min-height: 34px;
max-height: 34px;
&--selected:not(.DayPicker-Day--disabled, .DayPicker-Day--outside) {
background-color: ${e.colors.variant.lighter.primary};
color: ${e.colors.variant.darkest.primary};
}
&--today {
color: ${e.colors.variant.info};
}
&:focus {
outline-color: ${e.colors.variant.primary};
}
}
&:not(.DayPicker--interactionDisabled) .DayPicker-Day:not(.DayPicker-Day--disabled, .DayPicker-Day--selected, .DayPicker-Day--outside) {
&:focus {
outline-color: ${e.colors.variant.primary};
}
&:hover {
background-color: ${e.colors.variant.lightest.primary};
color: ${e.colors.variant.darker.primary};
}
}
`),Bi=e=>(0,o.useMemo)(()=>{if(!e||Pt(ze(e,["date"])))return e},[e]),rs=({date:e,fromDate:t,onChange:r,showOutsideDays:n})=>{const a=Bi(e),i=(0,o.useMemo)(()=>({selected:u=>a?a===je(u,"date"):!1,disabled:{before:new Date(t)}}),[t,a]);return o.createElement(Fi,{initialMonth:a?ze(a).toDate():void 0,onDayClick:r,modifiers:i,showOutsideDays:n})};rs.propTypes={date:s().oneOfType([s().object,s().string]),onChange:s().func.isRequired,fromDate:s().instanceOf(Date),showOutsideDays:s().bool},rs.defaultProps={date:void 0,fromDate:void 0,showOutsideDays:!1};const sg=null,ns=({children:e,title:t})=>{const r="Graylog";return(0,o.useEffect)(()=>(document.title=`${document.title} - ${t}`,()=>{document.title=r}),[t]),o.createElement(o.Fragment,null,e)};ns.propTypes={title:s().string.isRequired,children:s().oneOfType([s().arrayOf(s().element),s().element]).isRequired};const ki=ns,Wi=d.default.ul.attrs(()=>({className:"dropdown-menu"}))(({$show:e,theme:t,$zIndex:r,$minWidth:n})=>(0,d.css)`
display: ${e?"block":"none"};
color: ${t.colors.variant.dark.default};
background-color: ${t.colors.variant.lightest.default};
box-shadow: 0 3px 3px ${t.colors.global.navigationBoxShadow};
z-index: ${r};
min-width: ${n?`${n}px`:"max-content"};
.dropdown-header {
color: ${t.colors.variant.dark.default};
padding: 3px 10px;
}
> li {
> a {
padding: 3px 10px;
color: ${t.colors.variant.darker.default};
display: flex;
align-items: center;
&:hover {
color: ${t.colors.variant.darkest.default};
background-color: ${t.colors.variant.lighter.default};
}
}
&.disabled {
> a {
color: ${t.colors.variant.light.default};
}
}
}
`);function Gi(e,t,r){var n,a;return(n=e.props)!=null&&n.onSelect?{onSelect:(i,u)=>{e.props.onSelect(),r(u)}}:(a=e.props)!=null&&a.children?{children:ss(e.props.children,t+1,r)}:{}}function ss(e,t,r){return t>2?e:o.Children.map(e,a=>a!=null&&a.props?o.cloneElement(a,{...a.props,...Gi(a,t+1,r)}):a)}const as=({show:e,children:t,zIndex:r,onMenuItemSelect:n,minWidth:a,...i})=>{const u=ss(t,0,n);return o.createElement(Wi,{...i,$show:e,$zIndex:r,$minWidth:a},u)};as.propTypes={children:s().node.isRequired,zIndex:s().number,show:s().bool,minWidth:s().number},as.defaultProps={show:!1,zIndex:1050,minWidth:void 0,onMenuItemSelect:()=>{}};const ag=null,Hi=d.default.span(({theme:e})=>(0,d.css)`
display: block;
content: ' ';
float: right;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
border-width: 5px 0 5px 5px;
border-left-color: ${e.colors.gray[80]};
margin-top: 5px;
margin-right: -10px;
`),Ki=(0,d.default)(C.Dropdown)(({$left:e,theme:t})=>(0,d.css)`
position: relative;
display: flex;
gap: 5px;
> a {
color: ${t.colors.global.textDefault};
}
> .dropdown-menu {
top: 0;
left: ${e?"auto":"100%"};
right: ${e?"98%":"auto"};
margin-top: -6px;
margin-left: ${e?"10px":"-1px"};
border-radius: ${e?"6px 0 6px 6px":"0 6px 6px 6px"};
background-color: ${t.colors.global.contentBackground};
}
&:hover > .dropdown-menu {
display: block;
}
`),ls=({children:e,left:t,title:r})=>o.createElement(C.MenuItem,null,o.createElement(Ki,{$left:t,as:"div"},r," ",o.createElement(Hi,null),o.createElement(C.Dropdown.Menu,null,e)));ls.propTypes={children:s().node.isRequired,left:s().bool,title:s().string},ls.defaultProps={left:!1,title:void 0};const lg=null,zi=({children:e,className:t,resizeDelay:r})=>{const n=(0,o.useRef)(null),a=(0,Bn.A)(n,r);return o.createElement("div",{ref:n,className:t},e(a))};zi.defaultProps={className:void 0,resizeDelay:void 0};const ig=null,Vi=d.default.div`
display: flex;
flex-direction: column;
align-items: center;
p {
text-align: center;
}
`,ji=d.default.h2`
margin-top: 5px;
margin-bottom: 10px;
text-align: center;
`,is=({children:e,title:t})=>o.createElement(Vi,null,o.createElement(ji,null,t),e);is.propTypes={title:s().oneOfType([s().string,s().node]),children:s().node.isRequired},is.defaultProps={title:"Looks like there is nothing here, yet!"};const cg=null,cs=({children:e,className:t})=>o.createElement(C.Alert,{className:`${t!=null?t:""} no-bm`},e||"No data available.");cs.defaultProps={className:void 0};const Yi=cs,ds={PAGES:{ALERTS:"alerts",AUDIT_LOG:"auditlog",AUTHENTICATORS:"permission-management#authentication",CHANGELOG:"changelog",CLUSTER_STATUS_EXPLAINED:"elasticsearch#cluster-status-explained",COLLECTOR:"sidecar",COLLECTOR_SIDECAR:"sidecar",COLLECTOR_STATUS:"sidecar#sidecar-status",CONFIGURING_ES:"elasticsearch",DASHBOARDS:"dashboards",DECORATORS:"decorators",ENTERPRISE_SETUP:"setup",ES_CLUSTER_STATUS_RED:"elasticsearch#cluster-status-explained",ES_CLUSTER_UNAVAILABLE:"elasticsearch#configuration",ES_OPEN_FILE_LIMITS:"elasticsearch#configuration",EXTRACTORS:"extractors",GRAYLOG_DATA_NODE:"graylog-data-node",INDEXER_FAILURES:"indexer-failures",INDEX_MODEL:"index-model",LICENSE:"license",LOAD_BALANCERS:"load-balancers",LOOKUPTABLES:"lookuptables",OPERATIONS_CHANGELOG:"changelog-graylog",OPEN_SEARCH_SETUP:"open-search-setup",PAGE_FLEXIBLE_DATE_CONVERTER:"extractors#normalization",PAGE_STANDARD_DATE_CONVERTER:"extractors#normalization",PERMISSIONS:"permission-management",PIPELINE_FUNCTIONS:"functions",PIPELINE_RULES:"rules",PIPELINES:"pipelines",REPORTING:"reporting",ROLLING_ES_UPGRADE:"rolling-es-upgrade",SEARCH_QUERY_ERRORS:{UNKNOWN_FIELD:"query-language#unknown-field",QUERY_PARSING_ERROR:"query-language#parse-exception",INVALID_OPERATOR:"query-language#invalid-operator",UNDECLARED_PARAMETER:"query-language#undeclared-parameter"},SEARCH_QUERY_LANGUAGE:"query-language",STREAMS:"streams",STREAM_PROCESSING_RUNTIME_LIMITS:"streams#stream-processing-runtime-limits",TIME_FRAME_SELECTOR:"time-frame-selector",UPGRADE_GUIDE:"upgrading-graylog",USERS_ROLES:"permission-management",WELCOME:""},DOCS_URL:"https://docs.graylog.org/docs",toString(e){const t=this.DOCS_URL;return e===""?t:`${t}/${e}`},versionedDocsHomePage(){return this.toString("")}},Ji=d.default.a`
display: inline-flex;
align-items: center;
&:hover, &:focus {
text-decoration: none;
.documentation-link-text {
text-decoration: underline;
}
}
`,Qi=(0,d.default)(Ie.A)`
margin-left: 5px;
`,us=({page:e,title:t="",text:r,displayIcon:n})=>o.createElement(Ji,{href:ds.toString(e),title:t,target:"_blank"},o.createElement("span",{className:"documentation-link-text"},r),n&&o.createElement(Qi,{name:"lightbulb_circle",type:"regular",size:"lg"}));us.defaultProps={title:"",displayIcon:!1};const ps=us,Xi=(0,d.default)(U.A.Title)`
display: flex;
align-items: center;
`,Zi=(0,d.default)(Ie.A)`
margin-right: 5px;
margin-top: -1px;
`,ms=({featureName:e,wrapperClassName:t})=>o.createElement(U.A,{bsStyle:"info",className:t},o.createElement(U.A.Heading,null,o.createElement(Xi,null,o.createElement(Zi,{name:"enterprise"}),"Enterprise Feature")),o.createElement(U.A.Body,null,"To use the ",o.createElement("b",null,e)," functionality you need the ",o.createElement("a",{href:"https://www.graylog.org/products/enterprise",rel:"noopener noreferrer",target:"_blank"},"Graylog Enterprise license")," and the ",o.createElement(ps,{page:ds.PAGES.ENTERPRISE_SETUP,text:"Graylog Enterprise plugin"}),"."));ms.propTypes={featureName:s().string.isRequired,wrapperClassName:s().string},ms.defaultProps={wrapperClassName:"no-bm"};const ug=null,qi=d.default.ul`
padding: 0;
margin: 0;
`,Es=({bsNoItemsStyle:e,items:t,noItemsText:r})=>t.length===0?o.createElement(C.Alert,{bsStyle:e},r):o.createElement(qi,null,t);Es.defaultProps={bsNoItemsStyle:"info",noItemsText:"No items available"},Es.propTypes={bsNoItemsStyle:s().oneOf(["info","success","warning"]),noItemsText:s().oneOfType([s().string,s().element]),items:s().array.isRequired};const pg=null,ec=d.default.li(({theme:e})=>(0,d.css)`
display: block;
padding: 15px 0;
h2 {
font-family: ${e.fonts.family.body};
}
h2 .label {
margin-left: 5px;
line-height: 1;
vertical-align: baseline;
}
.item-description {
min-height: 17px;
margin: 5px 0;
}
.item-actions > .btn,
.item-actions > .btn-group,
.item-actions > span > .btn {
margin-left: 5px;
margin-bottom: 5px;
}
&:not(:last-child) {
border-bottom: 1px solid ${e.colors.gray[90]};
}
`),hs=({actions:e,contentRow:t,description:r,title:n,titleSuffix:a})=>{const i=a?o.createElement("small",null,a):null,u=o.createElement("div",{className:"item-actions text-right"},e);return o.createElement(ec,null,o.createElement(C.Row,{className:"row-sm"},o.createElement(C.Col,{md:12},o.createElement("div",{className:"pull-right hidden-xs"},u),o.createElement("h2",null,n," ",i),r&&o.createElement("div",{className:"item-description"},o.createElement("span",null,r))),o.createElement(C.Col,{sm:12,lgHidden:!0,mdHidden:!0,smHidden:!0},u)),t&&o.createElement(C.Row,{className:"row-sm"},t))};hs.propTypes={title:s().oneOfType([s().string,s().node]).isRequired,titleSuffix:s().any,description:s().any,actions:s().oneOfType([s().array,s().node]),contentRow:s().node},hs.defaultProps={actions:void 0,contentRow:void 0,description:void 0,titleSuffix:void 0};const mg=null,tc=(0,d.default)(C.Row)`
margin-bottom: 0 !important;
`,oc=d.default.div(({margin:e})=>`
margin-top: ${e}px;
margin-bottom: ${e}px;
`),gs=({children:e,onClose:t,bsStyle:r="warning",marginTopBottom:n=15,runtimeError:a})=>{const i=a?"danger":r;return e?o.createElement(oc,{margin:n},o.createElement(C.Alert,{bsStyle:i},o.createElement(tc,null,o.createElement(C.Col,{md:11},a&&o.createElement("h4",null,"Runtime Error"),e),o.createElement(C.Col,{md:1},o.createElement(C.Button,{bsSize:"xsmall",bsStyle:i,className:"pull-right",onClick:()=>t(void 0)},o.createElement(Ie.A,{name:"close"})))))):null};gs.propTypes={bsStyle:s().string,runtimeError:s().bool,marginTopBottom:s().number,children:s().oneOfType([s().arrayOf(s().element),s().element,s().string]),onClose:s().func},gs.defaultProps={bsStyle:"warning",runtimeError:!1,marginTopBottom:15,children:null,onClose:()=>{}};const Eg=null;var rc=l("AimHCGGx"),jo=l.n(rc),nc=l("VoGK8g1T"),Yo=l.n(nc),sc=l("NQ0AKqSy"),Jo=l.n(sc),ac=l("tai1YJ/e"),Qo=l.n(ac),lc=l("UnmjMsA0"),Xo=l.n(lc),ic=l("9kicK936"),Zo=l.n(ic),qo=l("2hHqKME2"),no={};no.styleTagTransform=Zo(),no.setAttributes=Qo(),no.insert=Jo().bind(null,"head"),no.domAPI=Yo(),no.insertStyleElement=Xo();var hg=jo()(qo.A,no);const fs=qo.A&&qo.A.locals?qo.A.locals:void 0,Cs=({children:e,className:t})=>o.createElement("ul",{className:t?`${fs.list} ${t}`:fs.list},e);Cs.defaultProps={className:""},Cs.propTypes={className:s().string};const gg=null,cc=d.default.li(({$padded:e})=>(0,d.css)`
padding: ${e?"10px 5px":""};
`),dc=d.default.div(({theme:e})=>(0,d.css)`
display: flex;
font-size: ${e.fonts.size.body};
line-height: 20px;
label {
min-height: 20px;
margin-bottom: 2px;
margin-right: 5px;
* {
cursor: pointer;
}
}
`),uc=d.default.div`
display: inline-block;
width: 20px;
margin-right: 5px;
`,pc=d.default.div(({theme:e})=>(0,d.css)`
cursor: pointer;
font-size: ${e.fonts.size.large};
line-height: 20px;
width: 1em;
height: 1em;
vertical-align: text-top;
&:hover {
color: ${e.colors.variant.primary};
opacity: 1;
}
`),mc=d.default.span(({theme:e})=>(0,d.css)`
font-size: ${e.fonts.size.large};
`),Ec=d.default.button`
display: flex;
border: 0;
padding: 0;
text-align: left;
background: transparent;
`,hc=d.default.span(({theme:e})=>(0,d.css)`
font-size: ${e.fonts.size.body};
margin-left: 0.5em;
color: ${e.colors.gray[70]};
`),gc=d.default.div(({theme:e})=>(0,d.css)`
border-left: 1px ${e.colors.gray[90]} solid;
margin-left: 35px;
margin-top: 10px;
padding-left: 5px;
`),fc=e=>{const{expanded:t,indetermined:r,stayExpanded:n,padded:a,...i}=e;return i};class vs extends o.Component{constructor(t){super(t),this._toggleExpand=()=>{const{stayExpanded:r}=this.props,{expanded:n}=this.state;r?this.setState({expanded:!0}):this.setState({expanded:!n})},this._clickOnHeader=()=>{this._checkbox&&this._checkbox.click()},this.state={expanded:t.expanded}}componentDidMount(){const{indetermined:t}=this.props;t&&this._checkbox&&(this._checkbox.indeterminate=t)}componentDidUpdate(t){const{expanded:r,indetermined:n}=this.props;t.expanded!==r&&this._toggleExpand(),this._checkbox&&(this._checkbox.indeterminate=n)}render(){const{expanded:t}=this.state,{padded:r}=this.props,{checked:n,expandable:a,selectable:i,header:u,subheader:m,children:E,...f}=this.props,_=i?o.createElement(Ec,{type:"button",tabIndex:0,onClick:this._clickOnHeader},u):u,A=fc(f);return o.createElement(cc,{$padded:r},o.createElement(dc,null,i&&o.createElement(C.Checkbox,{inputRef:N=>{this._checkbox=N},inline:!0,title:"Select item",checked:n,...A}),a&&o.createElement(uc,{role:"button",tabIndex:0,onClick:this._toggleExpand,title:`${t?"Shrink":"Expand"} list item`},o.createElement(pc,null,o.createElement(Ie.A,{name:t?"expand_circle_up":"expand_circle_down"}))),o.createElement(mc,{className:"header"},_,m&&o.createElement(hc,null,m))),o.createElement(gc,null,t&&E))}}vs.propTypes={checked:s().bool,indetermined:s().bool,selectable:s().bool,expandable:s().bool,expanded:s().bool,stayExpanded:s().bool,header:s().oneOfType([s().string,s().element]).isRequired,subheader:s().oneOfType([s().string,s().element]),children:s().oneOfType([s().element,s().arrayOf(s().element)]),padded:s().bool,readOnly:s().bool,onChange:s().func},vs.defaultProps={checked:!1,indetermined:!1,expandable:!0,expanded:!1,selectable:!0,children:[],subheader:void 0,stayExpanded:!1,padded:!0,readOnly:!1,onChange:()=>{}};const fg=null;var Cc=l("eh/hLw98"),vc=l.n(Cc);const $r=({children:e,className:t,href:r,iconName:n,target:a})=>{const i=o.createElement("span",null,e,"\xA0",o.createElement(Ie.A,{name:n}));return vc()(r)===""?i:o.createElement("a",{href:r,target:a,className:t,rel:"noopener noreferrer"},i)};$r.defaultProps={href:"",target:"_blank",iconName:"open_in_new",className:""},$r.propTypes={href:s().string,children:s().node.isRequired,target:s().string,iconName:s().string,className:s().string};const yc=$r,ys=({iconName:e,children:t,...r})=>o.createElement(C.Button,{...r},o.createElement(yc,{iconName:e},t));ys.propTypes={href:s().string.isRequired,children:s().node.isRequired,bsStyle:s().string,bsSize:s().string,target:s().string,iconName:s().string,className:s().string,disabled:s().bool},ys.defaultProps={bsStyle:"default",bsSize:void 0,target:"_blank",iconName:"open_in_new",className:"",disabled:!1};const Cg=null;var _c=l("l5ezlDz+");const vg=d.default.div`
${_c.w}
padding: 9px;
margin-left: -15px;
margin-right: -15px;
`,yg=null,bc=e=>({defaultChecked:e!=null?e:!1}),Tc=e=>({value:e!=null?e:""}),Mr=({name:e,type:t,help:r,validate:n,onChange:a,error:i,...u})=>{const{validateOnChange:m}=(0,ge.useFormikContext)();return o.createElement(ge.Field,{name:e,validate:n},({field:{value:E,onChange:f,onBlur:_},meta:{error:A,touched:N}})=>{const H=t==="checkbox"?bc(E):Tc(E),K=(m?!!(A&&N):!!A)?A:i,ee=J=>{typeof a=="function"&&a(J),f(J)};return o.createElement(C.Input,{...u,...H,onBlur:_,help:r,id:e,error:K,onChange:ee,type:t})})};Mr.propTypes={autoComplete:s().string,bsSize:s().string,buttonAfter:s().oneOfType([s().string,s().element]),children:s().oneOfType([s().array,s().element]),disabled:s().bool,error:s().oneOfType([s().string,s().element]),formGroupClassName:s().string,help:s().oneOfType([s().string,s().element]),label:s().oneOfType([s().string,s().element]),labelClassName:s().string,max:s().number,min:s().number,maxLength:s().number,minLength:s().number,name:s().string.isRequired,onChange:s().func,placeholder:s().string,required:s().bool,type:s().string,validate:s().func,wrapperClassName:s().string,autoFocus:s().bool},Mr.defaultProps={autoComplete:void 0,bsSize:void 0,buttonAfter:void 0,children:null,disabled:!1,error:void 0,formGroupClassName:void 0,help:void 0,label:void 0,labelClassName:void 0,max:void 0,min:void 0,maxLength:void 0,minLength:void 0,onChange:void 0,placeholder:void 0,required:!1,type:"text",validate:()=>{},wrapperClassName:void 0,autoFocus:!1};const Sc=Mr,Ac=({labelClassName:e,wrapperClassName:t,label:r,name:n,onChange:a,...i})=>o.createElement(Sc,{...i,label:r,id:n,onChange:a,name:n,labelClassName:e,wrapperClassName:t});Ac.defaultProps={autoComplete:void 0,bsSize:void 0,buttonAfter:void 0,children:null,disabled:!1,onChange:void 0,labelClassName:"col-sm-3",wrapperClassName:"col-sm-9",formGroupClassName:void 0,type:void 0,error:void 0,placeholder:void 0,help:void 0,min:void 0,max:void 0,minLength:void 0,maxLength:void 0,required:!1,validate:()=>{},rows:void 0,autoFocus:!1};const _g=null;var er=l("pRemyZyX"),wt=l("zf+4LgXf");const Ic=(0,d.default)(Ie.A)`
margin-right: 0.2em;
`,Dc=e=>{const{bsSize:t,className:r,centerCol:n,displayCancel:a,disabledSubmit:i,formId:u,isAsyncSubmit:m,onSubmit:E,submitButtonText:f,submitButtonType:_,submitIcon:A}=e;return o.createElement(jn.A,{className:r},o.createElement(er.A,{bsStyle:"success",bsSize:t,disabled:i||m&&e.isSubmitting,form:u,title:f,"aria-label":f,type:_,onClick:E},A&&!(m&&e.isSubmitting)&&o.createElement(Ic,{name:A}),m&&e.isSubmitting?o.createElement(wt.A,{text:e.submitLoadingText,delay:0}):f),n,a===!0&&o.createElement(er.A,{type:"button",bsSize:t,onClick:e.onCancel,title:"Cancel","aria-label":"Cancel",disabled:e.disabledCancel||m&&e.isSubmitting},"Cancel"))};Dc.defaultProps={bsSize:void 0,centerCol:void 0,className:void 0,disabledSubmit:!1,displayCancel:!0,formId:void 0,isAsyncSubmit:!1,onSubmit:void 0,submitButtonType:"submit",submitIcon:void 0};const bg=null,Rc=e=>e===""?void 0:e,Oc=(e,t)=>`grn::::${e}:${t}`,Tg=e=>{const t=e.split(":"),[r,n,a,i,u,m]=t.map(Rc);return{resourceNameType:r,cluster:n,tenant:a,scope:i,type:u,id:m}},Ur=({children:e,id:t,type:r,hideChildren:n})=>{const a=bo(),u=`entity:own:${Oc(r,t)}`,m="*";if(a){const{grnPermissions:E=[],permissions:f}=a,_=f.includes(m);if(E.includes(u)||_)return!n&&typeof e=="function"?o.createElement(o.Fragment,null,e({disabled:!1})," "):o.createElement(o.Fragment,null,"children")}return!n&&typeof e=="function"?o.createElement(o.Fragment,null,e({disabled:!0})," "):null};Ur.propTypes={children:s().oneOfType([s().node,s().func]).isRequired,id:s().string,type:s().string.isRequired,hideChildren:s().bool},Ur.defaultProps={hideChildren:!1,id:void 0};const Pc=Ur,Lc=d.default.span(({theme:e})=>(0,d.css)`
ul {
padding-left: 0;
}
li {
margin-bottom: 5px;
&:last-child {
margin-bottom: 0;
}
}
h4 {
font-size: ${e.fonts.size.large};
}
`),xc=(0,d.default)(Ie.A)(({theme:e,$type:t,$displayLeftMargin:r})=>(0,d.css)`
display: inline-flex;
color: ${t==="error"?e.colors.variant.danger:"inherit"};
margin: 0;
margin-left: ${r?"0.3em":0};
pointer-events: auto !important;
`),Nc=e=>{switch(e){case"error":return"error";case"info":default:return"help"}},Fr=({children:e,className:t,displayLeftMargin:r,title:n,id:a,pullRight:i,placement:u,testId:m,type:E,iconSize:f,trigger:_})=>o.createElement(sr.A,{trigger:_,placement:u,overlay:o.createElement(Lc,{id:a},e),title:n,testId:m},o.createElement(xc,{className:`${t} ${i?"pull-right":""}`,name:Nc(E),type:"regular",$type:E,$displayLeftMargin:r,size:f}));Fr.propTypes={displayLeftMargin:s().bool,children:s().any.isRequired,className:s().string,id:s().string,placement:s().oneOf(["top","right","bottom","left"]),pullRight:s().bool,title:s().string,testId:s().string,trigger:s().arrayOf(s().oneOf(["click","focus","hover"]))||s().oneOf(["click","focus","hover"])},Fr.defaultProps={id:"help-popover",className:"",pullRight:!0,placement:"bottom",testId:void 0,title:void 0,type:"info",iconSize:void 0,trigger:["hover","focus"],displayLeftMargin:!1};const _s=Fr;var wc=l("9oVghaOd"),Io=l.n(wc),Sg=l("jswCRRRc");const tr=(e,t)=>t(Io().duration(e).asMilliseconds(),e),$c=(e,t,r="error")=>tr(e,t)?null:r,Ag=(e,t,r="error")=>tr(e,t)?moment.duration(e).format():r,Mc=(e,t,r="error")=>tr(e,t)?Io().duration(e).humanize():r;class bs extends o.Component{constructor(t){super(t),this._onUpdate=()=>{let r=this.isoDuration.getValue().toUpperCase();r.startsWith("P")||(r=`P${r}`),this.setState({duration:r}),tr(r,this.props.validator)&&this.props.update(r)},this.state={duration:this.props.duration}}render(){return o.createElement(C.Input,{id:this.props.id,type:"text",ref:t=>{this.isoDuration=t},label:this.props.label,onChange:this._onUpdate,value:this.state.duration,help:this.props.help,addonAfter:Mc(this.state.duration,this.props.validator,this.props.errorText),bsStyle:$c(this.state.duration,this.props.validator),autoFocus:this.props.autoFocus,required:this.props.required,disabled:this.props.disabled})}}bs.propTypes={id:s().string.isRequired,duration:s().string.isRequired,update:s().func.isRequired,label:s().string,help:s().string,validator:s().func,errorText:s().string,autoFocus:s().bool,required:s().bool,disabled:s().bool},bs.defaultProps={label:"Duration",help:"as ISO8601 Duration",validator:()=>!0,errorText:"invalid",autoFocus:!1,required:!1,disabled:!1};const Ig=null,Uc=(e,t,r)=>t?st(r.permissions,e):_t(r.permissions,e),Br=({children:e,permissions:t,anyPermissions:r,...n})=>{const a=bo();return!t||t.length===0||a&&Uc(t,r,a)?o.createElement(o.Fragment,null,o.Children.map(e,i=>{if(o.isValidElement(i)){const u=i&&i.props?Object.keys(i.props):[],m=Object.entries(n).filter(E=>!u.includes(E[0])).reduce((E,[f,_])=>({...E,[f]:_}),{});return o.cloneElement(i,m)}return i})):null};Br.propTypes={children:s().node.isRequired,permissions:s().oneOfType([s().string,s().arrayOf(s().string)]).isRequired,anyPermissions:s().bool},Br.defaultProps={anyPermissions:!1};const Fc=Br;var Bc=l("Btg6k4SR");const kc=d.default.span(({theme:e})=>`
color: ${e.colors.gray[60]};
font-weight: normal;
`),Dg=()=>React.createElement(kc,null,"(Opt.)"),Rg=null;var Wc=l("hSzk0yOw"),Gc=l("pS0GGJuX");const Hc=e=>{const t=(0,d.useTheme)(),r={...t,colors:{...t.colors,primary:t.colors.input.borderFocus,primary75:t.colors.variant.light.default,primary50:t.colors.variant.lighter.default,primary25:t.colors.variant.lightest.default,danger:t.colors.variant.darker.info,dangerLight:t.colors.variant.lighter.info,neutral0:t.colors.input.background,neutral5:t.colors.input.backgroundDisabled,neutral10:t.colors.variant.lightest.info,neutral20:t.colors.input.border,neutral30:t.colors.gray[70],neutral40:t.colors.gray[60],neutral50:t.colors.gray[50],neutral60:t.colors.gray[40],neutral70:t.colors.gray[30],neutral80:t.colors.gray[20],neutral90:t.colors.gray[10]}};return{inputListTheme:r,styles:a=>({valueContainer:i=>({...i,padding:e==="small"?"0 8px":"2px 12px"}),control:(i,{isFocused:u})=>({...i,borderWidth:u?1:i.borderWidth,outline:u?0:i.outline,boxShadow:u?r.colors.input.boxShadow:null,...e==="small"?{minHeight:29,height:29}:{minHeight:34},borderRadius:Gc.Jk,alignItems:"center",borderColor:a?i.borderColor:r.colors.brand.primary}),placeHolder:i=>({...i,color:r.colors.input.placeholder,lineHeight:"28px",fontFamily:r.fonts.family.body,fontSize:r.fonts.size.body,fontWeight:400,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",maxWidth:"100%",paddingRight:"20px"}),multiValue:i=>({...i,border:`1px solid ${r.colors.variant.lighter.info}`}),multiValueLabel:i=>({...i,color:a?i.color:r.colors.brand.primary,padding:"2px 5px",fontSize:r.fonts.size.small}),multiValueRemove:i=>({...i,borderLeft:`1px solid ${r.colors.variant.lighter.info}`,paddingLeft:"5px",paddingRight:"5px",borderRadius:"0"})})}};class Kc extends Event{set target(t){this._target=t}get target(){return this._target}set currentTarget(t){this._target=t}get currentTarget(){return this._target}preventDefault(){super.preventDefault(),this._defaultPrevented=!0}isDefaultPrevented(){return this._defaultPrevented}stopPropagation(){super.stopPropagation(),this._propagationStopped=!0}isPropagationStopped(){return this._propagationStopped}persist(){this._persisted=!0}}const kr=e=>({label:e,value:e}),zc=({name:e,values:t,onChange:r,label:n,size:a,bsStyle:i,error:u,help:m,...E})=>{const{inputListTheme:f,styles:_}=Hc(a),A=o.useRef(null),[N,H]=o.useState(""),[B,K]=o.useState(t.map(oe=>kr(oe)));o.useLayoutEffect(()=>K(t.map(oe=>kr(oe))),[t]);const ee=oe=>{const pe=oe.map(xe=>xe.value),le=new Kc("change");A.current.value=pe,A.current.name=e,le.target=A.current,r(le)},J=oe=>{if(N&&(oe.key==="Enter"||oe.key==="Tab")){const pe=[...B,kr(N)];K(pe),ee(pe),H(""),oe.preventDefault()}},ce=oe=>{K(oe),ee(oe)};return o.createElement(C.FormGroup,{controlId:E.id?E.id:e,validationState:u?"error":i},n&&o.createElement(C.ControlLabel,null,n),o.createElement(Wc.A,{ref:A,components:{DropdownIndicator:null},inputValue:N,isMulti:!0,menuIsOpen:!1,onChange:ce,onInputChange:oe=>H(oe),onKeyDown:J,value:B,styles:_(!u),theme:oe=>({...oe,...f}),...E}),o.createElement(Bc.A,{error:u,help:m}))};zc.defaultProps={label:null,size:"normal",bsStyle:null,error:null,help:null};const Pg=null,Lg=null;var Vc=l("A028iK/c"),jc=l("+V9FPWJ/"),or=l.n(jc);const Do={width:450,height:400},Yc=Math.ceil(window.innerWidth/2-Do.width/2),Ts=Math.ceil(window.innerHeight/2-Do.height/2),Jc=Ts<0?55:Ts,Qc={x:Yc,y:Jc},Xc=d.default.div`
position: fixed;
inset: 0;
z-index: 1030;
pointer-events: none;
`,Zc=(0,d.default)(Vc.p)(({theme:e})=>(0,d.css)`
box-shadow: 0 0 9px ${e.colors.global.navigationBoxShadow},
0 0 6px ${e.colors.global.navigationBoxShadow},
0 0 3px ${e.colors.global.navigationBoxShadow};
background-color: ${e.colors.global.contentBackground};
border: 1px solid ${e.colors.variant.lightest.default};
border-radius: 3px;
flex-direction: column;
display: flex !important;
pointer-events: auto;
`),qc=d.default.div`
flex: 1;
padding: 0 15px;
`,ed=d.default.header(({theme:e})=>(0,d.css)`
padding: 6px 12px 9px;
display: flex;
align-items: center;
background-color: ${e.colors.variant.lightest.default};
border-bottom: 1px solid ${e.colors.variant.lighter.default};
border-top-left-radius: 3px;
border-top-right-radius: 3px;
cursor: move;
`),td=d.default.h3(({theme:e})=>(0,d.css)`
color: ${e.colors.global.textDefault};
flex: 1;
`),od=(0,d.default)(Ie.A)(({theme:e})=>(0,d.css)`
color: ${e.colors.variant.darker.default};
margin-right: 9px;
`),rd=(0,d.default)(C.Button)(({theme:e})=>(0,d.css)`
&& {
color: ${e.colors.variant.light.default};
&:hover {
color: ${e.colors.variant.default};
}
}
`),Ss=({children:e,className:t,minHeight:r,minWidth:n,onClose:a,onDrag:i,onResize:u,position:m,size:E,title:f,wrapperClassName:_})=>{const A=(0,o.useRef)(null),[N,H]=(0,o.useState)(null),[B,K]=(0,o.useState)(m),[ee,J]=(0,o.useState)(E),ce=(le,{x:xe,y:Y})=>{K({x:xe,y:Y}),i({x:xe,y:Y})},oe=(le,xe,Y)=>{const V={width:Y.style.width,height:Y.style.height};let Z={...B};switch(xe){case"left":case"topLeft":case"top":Z={x:B.x-(parseFloat(Y.style.width)-parseFloat(ee.width)),y:B.y-(parseFloat(Y.style.height)-parseFloat(ee.height))};break;case"bottomLeft":Z={x:B.x-(parseFloat(Y.style.width)-parseFloat(ee.width)),y:B.y};break;case"topRight":Z={x:B.x,y:B.y-(parseFloat(Y.style.height)-parseFloat(ee.height))};break;default:break}J(V),u(V),ce(null,Z)},pe=or()(()=>{const{x:le,y:xe}=B,{width:Y,height:V}=ee,{innerWidth:Z,innerHeight:_e}=window,Ue={top:0,bottom:parseFloat(V),left:0,right:parseFloat(Y)},et=Z-Ue.right,Qt=_e-Ue.bottom,Fo={x:Math.max(Math.min(et,le),Ue.left),y:Math.max(Math.min(Qt,xe),Ue.top)};ce(null,Fo)},150);return(0,o.useEffect)(()=>{H(A.current.classList[0])},[]),(0,o.useEffect)(()=>(window.addEventListener("resize",pe,!1),()=>{window.removeEventListener("resize",pe)}),[B,pe]),o.createElement(Xc,{className:_,role:"dialog"},o.createElement(Zc,{default:{...m,...E},minHeight:r,minWidth:n,maxHeight:window.innerHeight,maxWidth:window.innerWidth,dragHandleClassName:N,onDragStop:ce,onResizeStop:oe,position:B,size:ee,className:t,bounds:"window"},o.createElement(ed,{ref:A},o.createElement(td,null,o.createElement(od,{name:"drag_indicator"}),f),o.createElement(rd,{bsStyle:"link",onClick:a,bsSize:"small",title:"Close"},o.createElement(Ie.A,{name:"close",size:"lg"}))),o.createElement(qc,null,e)))};Ss.propTypes={className:s().string,children:s().node.isRequired,minHeight:s().number,minWidth:s().number,onClose:s().func,onDrag:s().func,onResize:s().func,position:s().shape({x:s().number,y:s().number}),size:s().shape({height:s().oneOfType([s().string,s().number]),width:s().oneOfType([s().string,s().number])}),title:s().string,wrapperClassName:s().string},Ss.defaultProps={className:void 0,minHeight:Do.height,minWidth:Do.width,onClose:()=>{},onDrag:()=>{},onResize:()=>{},position:Qc,size:Do,title:"",wrapperClassName:void 0};const xg=null;var nd=Object.defineProperty,sd=(e,t,r)=>t in e?nd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rr=(e,t,r)=>(sd(e,typeof t!="symbol"?t+"":t,r),r);const Ro=[{value:"STRING",label:"string"},{value:"NUMBER",label:"number"},{value:"OBJECT",label:"object"},{value:"ARRAY",label:"array"},{value:"BOOLEAN",label:"boolean"},{value:"NULL",label:"null"}];class As extends o.Component{constructor(t){super(t),rr(this,"_computeInitialState",()=>({value:this.props.value,valueType:this.props.valueType})),rr(this,"_propagateState",()=>{this.props.update(this.state.value,this.state.valueType)}),rr(this,"_onUpdate",r=>{const{value:n}=r.target;this.setState({value:n},this._propagateState)}),rr(this,"_onValueTypeSelect",r=>{this.setState({valueType:r},this._propagateState)}),this.state=this._computeInitialState()}UNSAFE_componentWillReceiveProps(){this.setState(this._computeInitialState())}render(){const t=Ro.filter(r=>this.props.allowedTypes.indexOf(r.value)>-1).map(r=>o.createElement(C.MenuItem,{key:r.value,onSelect:()=>this._onValueTypeSelect(r.value)},r.label));return o.createElement(C.FormGroup,{validationState:this.props.validationState},this.props.label&&o.createElement(C.ControlLabel,{className:this.props.labelClassName},this.props.label),o.createElement(C.InputWrapper,{className:this.props.wrapperClassName},o.createElement(C.InputGroup,null,o.createElement(C.FormControl,{type:"text",onChange:this._onUpdate,onBlur:this.props.onBlur,value:this.state.value,required:this.props.required}),o.createElement(C.DropdownButton,{componentClass:C.InputGroup.Button,id:"input-dropdown-addon",bsStyle:this.props.validationState==="error"?"danger":"default",title:Ro.filter(r=>r.value===this.props.valueType)[0].label},t)),this.props.help&&o.createElement(C.HelpBlock,null,this.props.help)))}}As.propTypes={update:s().func.isRequired,onBlur:s().func,label:s().string,help:s().oneOfType([s().string,s().object]),required:s().bool,validationState:s().string,value:s().string,valueType:s().oneOf(Ro.map(e=>e.value)),allowedTypes:(e,t,r)=>{const n=Ro.map(i=>i.value),a=[];return e[t]instanceof Array?(e[t].forEach(i=>{n.indexOf(i)<0&&a.push(i)}),a.length>0?new Error(`Invalid prop ${t} supplied to ${r}. Expected array of ${n} but got invalid ${a}`):null):new Error(`Invalid prop ${t} supplied to ${r}. Expected an array but got ${e[t]}`)},labelClassName:s().string,wrapperClassName:s().string},As.defaultProps={value:"",valueType:"STRING",allowedTypes:Ro.map(e=>e.value),label:"",help:"",required:!1,validationState:null,labelClassName:void 0,wrapperClassName:void 0,onBlur:void 0};const Ng=null;var ad=l("3Ub112i9");const ld=o.createContext(void 0),id=(0,Pe.Gr)("contexts.HotkeysContext",()=>ld),cd=()=>(0,o.useContext)(id),dd=e=>tt.A.isFeatureEnabled(e),ud=o.createContext({sendTelemetry:()=>{}}),pd=(0,Pe.Gr)("contexts.TelemetryContext",()=>ud),md=()=>{const e=(0,nt.useLocation)(),t=(0,o.useContext)(nt.UNSAFE_DataRouterContext);return(0,o.useMemo)(()=>{var r;if((r=t==null?void 0:t.router)!=null&&r.routes){const{router:{routes:n}}=t,a=(0,nt.matchRoutes)(n,e.pathname),{route:i}=a.at(-1);return i.path}},[e.pathname,t])},Ed=(0,Pe.Gr)("hooks.useRoutePattern",()=>md),Wr=()=>{const{sendTelemetry:e}=(0,o.useContext)(pd),t=Ed();return(0,o.useCallback)((r,n)=>e(r,{app_path_pattern:t,...n}),[e,t])},nr=nt.useLocation;var X=l("ekPuBHq5");const so={SEARCH_TIMERANGE_PRESET_SELECTED:"Search TimeRange Preset Selected",SEARCH_TIMERANGE_PICKER_TOGGLED:"Search TimeRange Picker Toggled",SEARCH_TIMERANGE_PICKER_UPDATED:"Search TimeRange Picker Updated",SEARCH_TIMERANGE_PICKER_CANCELED:"Search TimeRange Picker Canceled",SEARCH_TIMERANGE_PICKER_TAB_SELECTED:"Search TimeRange Picker Tab Selected",SEARCH_STREAM_INPUT_CHANGED:"Search Stream Input Changed",SEARCH_REFRESH_CONTROL_PRESET_SELECTED:"Search Refresh Control Preset Selected",SEARCH_REFRESH_CONTROL_TOGGLED:"Search Refresh Control Toggled",SEARCH_BUTTON_CLICKED:"Search Button Clicked",SEARCH_FILTER_CREATE_CLICKED:"Search Filter Create Clicked",SEARCH_FILTER_CREATED:"Search Filter Created",SEARCH_FILTER_UPDATED:"Search Filter Updated",SEARCH_FILTER_DELETED:"Search Filter Deleted",SEARCH_FILTER_LOAD_CLICKED:"Search Filter Load Clicked",SEARCH_FILTER_LOADED:"Search Filter Loaded",SEARCH_FILTER_ITEM_MENU_TOGGLED:"Search Filter Item Menu Toggled",SEARCH_FILTER_ITEM_DISABLED_TOGGLED:"Search Filter Item Disabled Toggled",SEARCH_FILTER_ITEM_SHARE_CLICKED:"Search Filter Item Share Clicked",SEARCH_FILTER_ITEM_EDIT_CLICKED:"Search Filter Item Edit Clicked",SEARCH_FILTER_ITEM_COPIED:"Search Filter Item Copied",SEARCH_FILTER_ITEM_REMOVED:"Search Filter Item Removed",SEARCH_FILTER_ITEM_REFERENCE_REPLACED:"Search Filter Item Reference Replaced",SEARCH_FILTER_ITEM_NEGATION_TOGGLED:"Search Filter Item Negation Toggled",SEARCH_WIDGET_EXPORT_DOWNLOADED:"Search Widget Export Downloaded",SEARCH_TIMERANGE_PRESET_ADD_QUICK_ACCESS:"Search TimeRange Preset Add Quick Access",SEARCH_WIDGET_ACTION:{FOCUSED:"Search Widget Focused",DELETED:"Search Widget Deleted",MOVE:"Search Widget Moved",DUPLICATE:"Search Widget Duplicate",COPY_TO_DASHBOARD:"Search Widget Copy To Dashboard Clicked",CREATE_NEW_DASHBOARD:"Search Widget Create New Dashboard Clicked",SEARCH_WIDGET_HORIZONTAL_STRETCH:"Search Widget Horizontal Width Toggled",SEARCH_WIDGET_EXTRA_ACTION:"Search Widget Extra Action Clicked",WIDGET_EDIT_TOGGLED:"Search Widget Edit Toggled",WIDGET_EDIT_CANCEL_CLICKED:"Search Widget Edit Cancel Clicked",WIDGET_CONFIG_UPDATED:"Search Widget Config Updated"},SEARCH_WIDGET_CREATE:{AGGREGATION:"Search Widget Aggregation Created",MESSAGE_COUNT:"Search Widget Message Count Created",MESSAGE_TABLE:"Search Widget Message Table Created",LOG_VIEW:"Search Widget Log View Created"},SEARCH_FIELD_VALUE_ACTION:{CHART:"Search Field Action Chart Clicked",STATISTICS:"Search Field Action Statistics Clicked",SHOW_TOP_VALUES:"Search Field Action Show Top Values Clicked",ADD_TO_TABLE:"Search Field Action Add To Table Clicked",REMOVE_FROM_TABLE:"Search Field Action Remove From Table Clicked",ADD_TO_ALL_TABLES:"Search Field Action Add To All Tables Clicked",COPY_FIELD_NAME_TO_CLIPBOARD:"Search Field Action Copy Field Name To Clipboard Clicked",REMOVE_FROM_ALL_TABLES:"Search Field Action Remove From All Tables Clicked",EXCLUDE_FROM_RESULTS:"Search Value Action Exclude From Results Clicked",ADD_TO_QUERY:"Search Value Action Add To Query Clicked",SHOW_DOCUMENT_FOR_VALUE:"Search Value Action Show Document For Value Clicked",CREATE_EXTRACTOR:"Search Value Action Create Extractor Clicked",HIGHLIGHT_THIS_VALUE:"Search Value Action Highlight This Value Clicked",COPY_VALUE_TO_CLIPBOARD:"Search Value Action Copy Value To Clipboard Clicked",CREATE_EVENT_DEFINITION:"Search Value Action Create Event Definition Clicked",INSERT_INTO_DASHBOARD_SEARCH:"Search Value Action Insert Into Dashboard/Search Clicked",CHANGE_FIELD_TYPE_OPENED:"Search Field Action Change Field Type Opened",CHANGE_FIELD_TYPE_CLOSED:"Search Field Action Change Field Type Closed",CHANGE_FIELD_TYPE_CHANGED:"Search Field Action Change Field Type Changed",REMOVE_CUSTOM_FIELD_TYPE_OPENED:"Search Field Action Removed Custom Field Type Opened",REMOVE_CUSTOM_FIELD_TYPE_CLOSED:"Search Field Action Removed Custom Field Type Closed",REMOVE_CUSTOM_FIELD_TYPE_REMOVED:"Search Field Action Removed Custom Field Type Removed"},DASHBOARD_FULL_SCREEN_MODE_STARTED:"Dashboard Fullscreen Mode Started",SEARCH_MESSAGE_TABLE_SHOW_SURROUNDING_MESSAGE:"Search Message Table Show Surrounding Message Clicked ",SEARCH_MESSAGE_TABLE_TEST_AGAINST_STREAM:"Search Message Table Test Against Stream Clicked ",SEARCH_MESSAGE_TABLE_DETAILS_TOGGLED:"Widget Message Table Details Toggled",SEARCH_SIDEBAR_TOGGLE:"Search Sidebar Toggled",SEARCH_SIDEBAR_HIGHLIGHT_CREATED:"Search Sidebar Highlight Created",SEARCH_SIDEBAR_HIGHLIGHT_UPDATED:"Search Sidebar Highlight Updated",SEARCH_SIDEBAR_HIGHLIGHT_DELETED:"Search Sidebar Highlight Deleted",SEARCH_SIDEBAR_REDO:"Search Sidebar Redo",SEARCH_SIDEBAR_UNDO:"Search Sidebar Undo",DASHBOARD_ACTION:{DASHBOARD_NEW_SAVED:"Dashboard New Saved",DASHBOARD_SAVED:"Dashboard Saved",DASHBOARD_UPDATED:"Dashboard Updated",DASHBOARD_CREATE_CLICKED:"Dashboard Create Clicked",DASHBOARD_CREATE_PAGE:"Dashboard Create Page Clicked",DASHBOARD_PAGE_CONFIGURATION:"Dashboard Page Configuration Clicked",DASHBOARD_PAGE_CONFIGURATION_UPDATED:"Dashboard Page Configuration Updated",DASHBOARD_PAGE_CONFIGURATION_CANCELED:"Dashboard Page Configuration Update Cancel",DASHBOARD_PAGE_CONFIGURATION_SORTING_UPDATED:"Dashboard Page Configuration Sorting Updated",DASHBOARD_PAGE_CONFIGURATION_PAGE_REMOVED:"Dashboard Page Configuration Page Remove"},EVENTDEFINITION_LIST:{COLUMNS_CHANGED:"EventDefinition List Columns Changed",SORT_CHANGED:"EventDefinition List Sort Changed",PAGE_SIZE_CHANGED:"EventDefinition List Page Size Changed",BULK_ACTION_DELETE_CLICKED:"EventDefinition List Bulk Delete Clicked",BULK_ACTION_ENABLE_CLICKED:"EventDefinition List Bulk Enable Clicked",BULK_ACTION_DISABLE_CLICKED:"EventDefinition List Bulk Disable Clicked",ROW_ACTION_DELETE_CLICKED:"EventDefinition List Row Delete Clicked",ROW_ACTION_ENABLE_CLICKED:"EventDefinition List Row Enable Clicked",ROW_ACTION_DISABLE_CLICKED:"EventDefinition List Row Disable Clicked",ROW_ACTION_COPY_CLICKED:"EventDefinition List Row Copy Clicked",ROW_ACTION_SHARE_CLICKED:"EventDefinition List Row Share Clicked"},EVENTDEFINITION_CREATE_BUTTON_CLICKED:"EventDefinition Create Button Clicked",EVENTDEFINITION_DUPLICATED:"EventDefinition Duplicated",EVENTDEFINITION_NEXT_CLICKED:"EventDefinition Next Clicked",EVENTDEFINITION_PREVIOUS_CLICKED:"EventDefinition Previous Clicked",EVENTDEFINITION_DETAILS:{STEP_CLICKED:"EventDefinition Details Step Clicked",PRIORITY_CHANGED:"EventDefinition Details Priority Changed"},EVENTDEFINITION_CONDITION:{STEP_CLICKED:"EventDefinition Condition Step Clicked",TYPE_SELECTED:"EventDefinition Condition Type Selected",FILTER_STREAM_SELECTED:"EventDefinition Condition Filter Stream Selected",FILTER_SEARCH_WITHIN_THE_LAST_UNIT_CHANGED:"EventDefinition Condition Filter Search Within The Last Unit Changed",FILTER_EXECUTE_SEARCH_EVERY_UNIT_CHANGED:"EventDefinition Condition Filter Execute Search Every Unit Changed",FILTER_EXECUTED_AUTOMATICALLY_TOGGLED:"EventDefinition Condition Filter Executed Automatically Toggled",FILTER_EVENT_LIMIT_CHANGED:"EventDefinition Condition Filter Event Limit Changed",AGGREGATION_TOGGLED:"EventDefinition Aggregation Toggled",AGGREGATION_GROUP_BY_FIELD_SELECTED:"EventDefinition Aggregation Group By Field Selected",CORRELATION_WITHIN_THE_LAST_UNIT_CHANGED:"EventDefinition Condition Correlation Within The Last Unit Changed",CORRELATION_EXECUTE_EVERY_UNIT_CHANGED:"EventDefinition Condition Correlation Execute Every Unit Changed",CORRELATION_EXECUTED_AUTOMATICALLY_TOGGLED:"EventDefinition Condition Correlation Executed Automatically Toggled",CORRELATION_EVENT_SELECTED:"EventDefinition Condition Correlation Event Selected",CORRELATION_ADD_EVENT_CLICKED:"EventDefinition Condition Correlation Add Event Clicked",CORRELATION_REMOVE_EVENT_CLICKED:"EventDefinition Condition Correlation Remove Event Clicked",CORRELATION_OCCURRENCE_TIME_CHANGED:"EventDefinition Condition Correlation Occurrence Time Changed",CORRELATION_NO_OCCURRENCE_FOLLOWED_BY_EVENT_SELECTED:"EventDefinition Condition Correlation No Occurrence Followed By Event Selected",CORRELATION_NO_OCCURRENCE_IN_THE_NEXT_SELECTED:"EventDefinition Condition Correlation No Occurrence In The Next Selected",CORRELATION_NO_OCCURRENCE_IN_THE_NEXT_UNIT_CHANGED:"EventDefinition Condition Correlation No Occurrence In The Next Unit Changed"},EVENTDEFINITION_FIELDS:{STEP_CLICKED:"EventDefinition Fields Step Clicked",ADD_CUSTOM_FIELD_CLICKED:"EventDefinition Fields Add Custom Field Clicked",AS_EVENT_KEY_TOGGLED:"EventDefinition Fields As Event Key Toggled",SET_VALUE_FROM_TEMPLATE_SELECTED:"EventDefinition Fields Set Value From Template Selected",SET_VALUE_FROM_LOOKUP_TABLE_SELECTED:"EventDefinition Fields Set Value From Lookup Table Selected",DONE_CLICKED:"EventDefinition Fields Done Clicked",CANCEL_CLICKED:"EventDefinition Fields Cancel Clicked"},EVENTDEFINITION_NOTIFICATIONS:{STEP_CLICKED:"EventDefinition Notifications Step Clicked",ADD_CLICKED:"EventDefinition Notifications Add Clicked",MANAGE_LINK_CLICKED:"EventDefinition Notifications Manage Link Clicked",NOTIFICATION_SELECTED:"EventDefinition Notifications Notification Selected",CREATE_NEW_CLICKED:"EventDefinition Notifications Create New Clicked",NOTIFICATION_TYPE_SELECTED:"EventDefinition Notifications Notification Type Selected",DONE_CLICKED:"EventDefinition Notifications Done Clicked",CANCEL_CLICKED:"EventDefinition Notifications Cancel Clicked"},EVENTDEFINITION_SUMMARY:{STEP_CLICKED:"EventDefinition Summary Step Clicked",CANCEL_CLICKED:"EventDefinition Summary Cancel Clicked",CREATE_CLICKED:"EventDefinition Summary Create Clicked",UPDATE_CLICKED:"EventDefinition Summary Update Clicked"},NOTIFICATIONS:{CREATE_CLICKED:"Notifications Create Clicked",EDIT_CLICKED:"Notifications Edit Clicked",EXECUTE_TEST_CLICKED:"Notifications Execute Test Clicked",BULK_ACTION_DELETE_CLICKED:"Notifications Bulk Delete Clicked",ROW_ACTION_DELETE_CLICKED:"Notifications Row Delete Clicked",ROW_ACTION_TEST_CLICKED:"Notifications Row Test Clicked"},CONTENTSTREAM:{PREV_ARROW_CLICKED:"Content Stream Left Arrow Clicked",NEXT_ARROW_CLICKED:"Content Stream Right Arrow Clicked",READ_MORE_CLICKED:"Content Stream Read More Clicked",ARTICLE_CLICKED:"Content Stream Article Clicked",RELESE_ARTICLE_CLICKED:"Content Stream Release Article Clicked",NEWS_OPT_IN_TOGGLED:"Content Stream News Opt-In Clicked",RELEASE_OPT_IN_TOGGLED:"Content Stream Release Opt-In Clicked"},STREAMS:{CREATE_FORM_MODAL_OPENED:"Stream Create Form Modal Opened",NEW_STREAM_CREATED:"Stream New Stream Created",STREAM_ITEM_UPDATED:"Stream Item Updated",STREAM_ITEM_STATUS_TOGGLED:"Stream Item Status Toggled",STREAM_ITEM_SHARE_MODAL_OPENED:"Stream Item Share Modal Opened",STREAM_ITEM_UPDATE_MODAL_OPENED:"Stream Item Update Modal Opened",STREAM_ITEM_CLONED:"Stream Item Cloned",STREAM_ITEM_RULE_SAVED:"Stream Item Rule SAVED",STREAM_ITEM_DELETED:"Stream Item Deleted"},ENTITYSHARE:{ENTITY_STREAM_SHARED:"Entity Share: Entity Stream Shared",ENTITY_SEARCH_SHARED:"Entity Share: Entity Search Shared",ENTITY_SEARCH_FILTER_SHARED:"Entity Share: Entity Filter Shared",ENTITY_EVENT_DEFINITION_SHARED:"Entity Share: Event Definition Shared",ENTITY_NOTIFICATION_SHARED:"Entity Share: Notification Shared",ENTITY_DASHBOARD_SHARED:"Entity Share: Dashboard Shared"},PIPELINE_RULE_BUILDER:{CREATE_RULE_CLICKED:"Pipeline Create Rule Clicked",RUN_RULE_SIMULATION_CLICKED:"Pipeline Run Rule Simulation Clicked",RESET_RULE_SIMULATION_CLICKED:"Pipeline Reset Rule Simulation Clicked",USE_SOURCE_CODE_EDITOR_CLICKED:"Pipeline RuleBuilder Use Source Code Editor Clicked",SWITCH_TO_SOURCE_CODE_EDITOR_CONFIRM_CLICKED:"Pipeline RuleBuilder Switch to Source Code Editor Confirm Clicked",SWITCH_TO_SOURCE_CODE_EDITOR_CANCEL_CLICKED:"Pipeline RuleBuilder Switch to Source Code Editor Cancel Clicked",CREATE_NEW_RULE_FROM_CODE_CLICKED:"Pipeline RuleBuilder Create New Rule From Code Clicked",COPY_CODE_AND_CLOSE_CLICKED:"Pipeline RuleBuilder Code Copy & Close Clicked",NEW_CONDITION_SELECTED:"Pipeline RuleBuilder New Condition Selected",NEW_ACTION_SELECTED:"Pipeline RuleBuilder New Action Selected",ADD_CONDITION_CLICKED:"Pipeline RuleBuilder Add Condition Clicked",ADD_ACTION_CLICKED:"Pipeline RuleBuilder Add Action Clicked",UPDATE_CONDITION_CLICKED:"Pipeline RuleBuilder Update Condition Clicked",UPDATE_ACTION_CLICKED:"Pipeline RuleBuilder Update Action Clicked",CANCEL_CLICKED:"Pipeline RuleBuilder Cancel Clicked",ADD_RULE_CLICKED:"Pipeline RuleBuilder Add Rule Clicked",CONVERT_TO_SOURCE_CODE_CLICKED:"Pipeline RuleBuilder Convert to Source Code Clicked",OPERATOR_AND_CLICKED:"Pipeline RuleBuilder Operator AND Clicked",OPERATOR_OR_CLICKED:"Pipeline RuleBuilder Operator OR Clicked",UPDATE_RULE_CLICKED:"Pipeline RuleBuilder Update Rule Clicked",UPDATE_RULE_AND_CLOSE_CLICKED:"Pipeline RuleBuilder Update Rule And Close Clicked",NEGATE_CONDITION_CLICKED:"Pipeline RuleBuilder Negate Condition Clicked",DUPLICATE_ACTION_CLICKED:"Pipeline RuleBuilder Duplicate Action Clicked",INSERT_ABOVE_ACTION_CLICKED:"Pipeline RuleBuilder Insert Above Action Clicked",INSERT_BELOW_ACTION_CLICKED:"Pipeline RuleBuilder Insert Below Action Clicked",DELETE_CONDITION_CLICKED:"Pipeline RuleBuilder Delete Condition Clicked",DELETE_ACTION_CLICKED:"Pipeline RuleBuilder Delete Action Clicked",EDIT_CONDITION_CLICKED:"Pipeline RuleBuilder Edit Condition Clicked",EDIT_ACTION_CLICKED:"Pipeline RuleBuilder Edit Action Clicked"},ILLUMINATE:{BUNDLE_UPLOADED:"Illuminate Bundle Uploaded",BUNDLE_DOWNLOADED_AND_INSTALLED:"Illuminate Bundle Downloaded and Installed",PACK_ENABLE_MODAL_TOGGLED:"Illuminate Pack Enable Modal Toggled",PACK_DISABLE_MODAL_TOGGLED:"Illuminate Pack Modal Toggled",PACKS_BULK_UPDATED:"Illuminate Packs Bulk Updated",PACKS_OVERRIDE_FORM_OPENED:"Illuminate Packs Override Form Opened",PACKS_OVERRIDE_SAVED:"Illuminate Packs Override Saved"},SECURITY_APP:{ASSET_DELETED:"Security Asset Deleted",ASSET_SOURCE_DELETED:"Security Asset Source Deleted",ASSET_CONFIG_REPRIORITIZED:"Security Asset Config Reprioritized",ASSET_CONFIG_CATEGORY_ADDED:"Security Asset Config Category Added",ASSET_CONFIG_CATEGORY_UPDATED:"Security Asset Config Category Updated",ASSET_CONFIG_CATEGORY_DELETED:"Security Asset Config Category Deleted",ASSET_CONFIG_PRIORITY_ADDED:"Security Asset Config Priority Added",ASSET_CONFIG_PRIORITY_UPDATED:"Security Asset Config Priority Updated",ASSET_CONFIG_PRIORITY_DELETED:"Security Asset Config Priority Deleted",INVESTIGATION_UPDATED:"Security Investigation Update",INVESTIGATION_ARCHIVED:"Security Investigation Archived",INVESTIGATION_EDITED:"Security Investigation Updated",INVESTIGATION_RESTORED:"Security Investigation Restored",INVESTIGATION_DELETED:"Security Investigation Deleted",INVESTIGATION_PRIORITY_ADDED:"Security Investigation Priority Added",INVESTIGATION_PRIORITY_UPDATED:"Security Investigation Priority Updated",INVESTIGATION_PRIORITY_DELETED:"Security Investigation Priority Deleted",INVESTIGATION_PRIORITY_REPRIORITIZED:"Security Investigation Priority Reprioritized",INVESTIGATION_PRIORITY_DEFAULT_SET:"Security Investigation Priority Default Set",INVESTIGATION_PRIORITY_DEFAULT_REMOVED:"Security Investigation Priority Default Removed",INVESTIGATION_STATUS_ADDED:"Security Investigation Status Added",INVESTIGATION_STATUS_UPDATED:"Security Investigation Status Updated",INVESTIGATION_STATUS_DELETED:"Security Investigation Status Deleted",INVESTIGATION_STATUS_REPRIORITIZED:"Security Investigation Status Reprioritized",INVESTIGATION_STATUS_DEFAULT_SET:"Security Investigation Status Default Set",INVESTIGATION_STATUS_DEFAULT_REMOVED:"Security Investigation Status Default Removed",INVESTIGATION_DETAILS_UPDATED:"Security Investigation Details Updated",INVESTIGATION_DRAWER_OPENED:"Security Investigation Drawer Opened",INVESTIGATION_DRAWER_CLOSED:"Security Investigation Drawer Closed",INVESTIGATION_DRAWER_COLLAPSE_TOGGLED:"Security Investigation Drawer Collapse Toggled",INVESTIGATION_NOTE_ADDED:"Security Investigation Note Added",INVESTIGATION_NOTE_SAVED:"Security Investigation Note Saved",INVESTIGATION_NOTE_EDIT:"Security Investigation Note Updated",INVESTIGATION_NOTE_DELETED:"Security Investigation Note Deleted",SIGMA_IMPORT_RULES_OPENED:"Security Sigma Rules Import Opened",SIGMA_IMPORT_RULES_IMPORTED:"Security Sigma Rules Imported",SIGMA_RULE_UPDATED:"Security Sigma Rules Update",SIGMA_RULE_CREATED:"Security Sigma Rules Created",ANOMALY_DETECTION_SAVED:"Security Anomaly Detection Saved",ANOMALY_DETECTION_DELETED:"Security Anomaly Detection Deleted"},FORWARDER:{INPUTPROFILE_FORWARDER_ASSIGNED:"Forwarder Input Profile Forwarder Assigned",FORWARDER_WIZARD_WELCOME_STEP_OPENED:"Forwarder Wizard Welcome Step Opened",FORWARDER_WIZARD_SELECT_FORWARDER_STEP_OPENED:"Forwarder Wizard Select Forwarder Step Opened",FORWARDER_WIZARD_CONFIGURE_FORWARDER_STEP_OPENED:"Forwarder Wizard Configure Forwarder Step Opened",FORWARDER_WIZARD_INPUTS_STEP_OPENED:"Forwarder Wizard Forwarder Inputs Step Opened",FORWARDER_WIZARD_SUMMARY_STEP_OPENED:"Forwarder Wizard Forwarder Summary Step Opened",FORWARDER_WIZARD_CONFIGURE_FORWARDER_SELECTED:"Forwarder Wizard Configure Forwarder Selected",FORWARDER_WIZARD_CONFIGURE_FORWARDER_SAVED:"Forwarder Wizard Configure Forwarder Saved",FORWARDER_WIZARD_INPUT_PROFILE_SELECTED:"Forwarder Wizard Input Profile Selected",FORWARDER_WIZARD_INPUT_PROFILE_SAVED:"Forwarder Wizard Input Profile Saved",FORWARDER_INPUT_PROFILE_CREATED:"Forwarder Input Profile Created",FORWARDER_CREATED:"Forwarder Created",FORWARDER_UPDATED:"Forwarder Updated",FORWARDER_DELETED:"Forwarder Created",FORWARDER_CONFIGURATION_REMOVED:"Forwarder Configuration Removed",FORWARDER_INPUT_PROFILE_UPDATED:"Forwarder Input Profile Updated",FORWARDER_INPUT_PROFILE_FORWARDER_ASSIGNED:"Forwarder Input Profile Forwarder Assigned",FORWARDER_INPUT_PROFILE_CREATE_CANCELED:"Forwarder Input Profile Create Canceled",FORWARDER_INPUT_PROFILE_INPUT_CREATED:"Forwarder Input Profile Input Created",FORWARDER_INPUT_PROFILE_INPUT_UPDATED:"Forwarder Input Profile Input Updated",FORWARDER_INPUT_PROFILE_INPUT_DELETED:"Forwarder Input Profile Input Deleted",FORWARDER_WIZARD_SETUP_CANCELED:"Forwarder Wizard Setup Canceled"},ARCHIVE:{DELETED:"Archive Deleted",RESTORED:"Archive Restored",CREATED:"Archive Created",ITEM_DETAILS_TOGGLED:"Archive Item Details Opened",BACKEND_CONFIGURATION_UPDATED:"Archive Backend Configuration Updated",BACKEND_CONFIGURATION_CREATED:"Archive Backend Configuration Created",BACKEND_CONFIGURATION_DELETED:"Archive Backend Configuration Deleted",CONFIGURATION_UPDATED:"Archive Configuration Update"},LICENSE:{VALIDATED:"License Validated",SAVED:"License Saved",DELETED:"License Deleted"},REPORT:{CONFIGURED:"Report Configured",DELETED:"Report Deleted",SENT:"Report Sent",CREATED:"Report Created",UPDATED:"Report Updated"},CUSTOMIZATION:{NOTIFICATION_CREATED:"Customization Notification Created",NOTIFICATION_DELETED:"Customization Notification Deleted",NOTIFICATION_BULK_DELETED:"Customization Notification Bulk Deleted",THEME_REVERTED:"Customization Theme Reverted",THEME_RESETED:"Customization Theme Reseted",HEADER_BADGE_UPDATED:"Customization Header Badge Updated"},TRAFFIC_VIOLATION_CONFIGURATION_SAVED:"Traffic Violation Configuration Saved",FAILURE_PROCESSING_CONFIGURATION_SAVED:"Failure Processing Configuration Saved",SHORTCUT_TYPED:"Shortcut Typed",CONFIGURATIONS:{INDEX_SETS_UPDATED:"Configurations Index Sets Defaults Updated",THREATINTEL_CONFIGURATION_UPDATED:"Configurations Threat Intel Configuration Updated",PERMISSIONS_UPDATED:"Configurations Permissions Updated",SEARCHES_UPDATED:"Configurations Searches Updated",URL_WHITE_LIST_UPDATED:"Configurations Url White List Updated",USER_UPDATED:"Configurations User Updated",CERTIFICATE_RENEWAL_UPDATED:"Configurations Certificate Renewal Updated",CERTIFICATE_RENEWAL_POLICY_UPDATED:"Configurations Certificate Renewal Policy Updated",DECORATORS_UPDATED:"Configurations Decorators Updated",GEOLOCATION_CONFIGURATION_UPDATED:"Configurations Geolocation Configuration Updated"},INPUTS:{INPUT_SELECTED:"Inputs Input Selected",INPUT_CREATED:"Inputs Input Created",FIND_MORE_CLICKED:"Inputs Find More Inputs Clicked",INPUT_DELETED:"Inputs Input Deleted",INPUT_EDIT_CLICKED:"Inputs Input Edit Clicked",INPUT_UPDATED:"Inputs Input Updated",SHOW_RECEIVED_MESSAGES_CLICKED:"Inputs Show Received Messages Clicked",MANAGE_EXTRACTORS_CLICKED:"Inputs Manage Extractors Clicked",SHOW_METRICS_CLICKED:"Inputs Show Metrics Clicked",INPUT_START_CLICKED:"Inputs Input Start Clicked",INPUT_STOP_CLICKED:"Inputs Input Stop Clicked"},OUTPUTS:{OUTPUT_CREATED:"Outputs Output Created",OUTPUT_ASSIGNED:"Outputs Output Assigned",OUTPUT_GLOBALLY_REMOVED:"Outputs Output Globally Removed",OUTPUT_FROM_STREAM_REMOVED:"Outputs Output From Stream Removed",OUTPUT_UPDATED:"Outputs Output Updated"},INDICES:{INDEX_SET_DEFAULT_SET:"Indices Index Set Default Set",INDEX_SET_DELETED:"Indices Index Set Deleted",INDEX_SET_CREATED:"Indices Index Set Created",INDEX_SET_UPDATED:"Indices Index Set Updated"},LOGGING:{LOG_LEVEL_EDITED:"Logging Log Level Edited",SHOW_LOG_LEVEL_METRICS_TOGGLED:"Logging Show Log Level Metrics Toggled"},LUT:{DELETED:"LUT Deleted",CREATED:"LUT Created",UPDATED:"LUT Updated",CACHE_TYPE_CHANGED:"LUT Cache Type Changed",CACHE_DELETED:"LUT Cache Deleted",CACHE_CREATED:"LUT Cache Created",CACHE_UPDATED:"LUT Cache Updated",DATA_ADAPTER_DELETED:"LUT Data Adapter Deleted",DATA_ADAPTER_CREATED:"LUT Data Adapter Created",DATA_ADAPTER_UPDATED:"LUT Data Adapter Updated"},USERS:{USER_CREATED:"Users User Created",USER_DISABLED:"Users User Disabled",USER_ENABLED:"Users User Enabled",USER_DELETED:"Users User Deleted"},GROK_PATTERN:{CREATED:"Grok Pattern Created",UPDATED:"Grok Pattern Updated",DELETED:"Grok Pattern Deleted",TESTED:"Grok Pattern Tested",IMPORTED:"Grok Pattern Imported"},ROLES:{USER_ASSIGNED:"Roles User Assigned",USER_UNASSIGNED:"Roles User Unassigned"},AUTHENTICATION:{CONFIG_UPDATED:"Authentication Config Updated",SERVICE_CREATED:"Authentication Service Created",SERVICE_SELECTED:"Authentication Service Selected",DIRECTORY_SERVER_CONFIG_SAVE_CLICKED:"Authentication Directory Server Config Save Clicked",DIRECTORY_USER_SYNC_SAVE_CLICKED:"Authentication Directory User Sync Save Clicked",DIRECTORY_GROUP_SYNC_SAVE_CLICKED:"Authentication Directory Group Sync Save Clicked",DIRECTORY_NEXT_USER_SYNC_CLICKED:"Authentication Directory Next User Sync Clicked",DIRECTORY_NEXT_GROUP_SYNC_CLICKED:"Authentication Directory Next Group Sync Clicked",OIDC_SERVER_CONFIG_SAVE_CLICKED:"Authentication OIDC Server Config Save Clicked",OIDC_NEXT_GROUP_SYNC_CLICKED:"Authentication OIDC Next Group Sync Clicked",OIDC_PREVIOUS_SERVER_CONFIG_CLICKED:"Authentication OIDC Previous Server Config Clicked",OIDC_GROUP_SYNC_SAVE_CLICKED:"Authentication OIDC Group Sync Save Clicked"},SIDECARS:{CONFIGURATION_CREATED:"Sidecar Configuration Created",CONFIGURATION_UPDATED:"Sidecar Configuration Updated",CONFIGURATION_CLONED:"Sidecar Configuration Cloned",CONFIGURATION_DELETED:"Sidecar Configuration Deleted",CONFIGURATION_ASSIGNED:"Sidecar Configuration Assigned",PROCESS_ACTION_SET:"Sidecar Process Action Set",LOG_COLLECTOR_CLONED:"Sidecar Log Collector Cloned",LOG_COLLECTOR_CREATED:"Sidecar Log Collector Created",LOG_COLLECTOR_SERVICE_TYPE_CHANGED:"Sidecar Log Collector Service Type Changed",LOG_COLLECTOR_NODE_OPERATING_SYSTEM_CHANGED:"Sidecar Log Collector Node Operating System Changed",LOG_COLLECTOR_UPDATED:"Sidecar Log Collector Updated",LOG_COLLECTOR_DELETED:"Sidecar Log Collector Deleted"},SYSTEM_OVERVIEW_OUTGOING_TRAFFIC_DAYS_CHANGED:"System Overview Outgoing Traffic Days Changed",URLWHITELIST_CONFIGURATION_UPDATED:"Urlwhitelist Configuration Updated",CONTENT_PACK:{INSTALLED:"Content Pack Installed",DOWNLOADED:"Content Pack Downloaded",ALL_VERSIONS_DELETED:"Content Pack All Versions Deleted"},TEAM:{CREATED:"Team Created",ASSIGNED:"Team Assigned",UNASSIGNED:"Team Unassigned",DELETED:"Team Deleted"},INDEX_SET_FIELD_TYPE_PROFILE:{NEW_OPENED:"Index Set Field Type Profile Creating New Opened",NEW_CANCELED:"Index Set Field Type Profile Creating New Canceled",CREATED:"Index Set Field Type Profile Created",EDIT_OPENED:"Index Set Field Type Profile Edit Opened",EDIT_CANCELED:"Index Set Field Type Profile Edit Canceled",EDIT:"Index Set Field Type Profile Edited",CHANGE_FOR_INDEX_OPENED:"Index Set Field Type Profile Change For Index Opened",CHANGE_FOR_INDEX_CANCELED:"Index Set Field Type Profile Change For Index Canceled",CHANGE_FOR_INDEX_CHANGED:"Index Set Field Type Profile Change For Index Changed",CHANGE_FOR_INDEX_REMOVED:"Index Set Field Type Profile Change For Index Removed",CREATE_PROFILE_FROM_SELECTED_RAN:"Index Set Field Type Profile Create From Selected Ran"}},hd={preventDefault:!0,enabled:!0,enableOnContentEditable:!1,combinationKey:"+",splitKey:",",keyup:void 0,keydown:!0,description:void 0,document:void 0,ignoreModifiers:!1,displayInOverview:void 0},gd=(e,t,r)=>{if(!e[r])throw Error(`Scope "${r}" does not exist in hotkeys collection.`);if(!e[r].actions[t])throw Error(`Action "${t}" does not exist in hotkeys collection of "${r}" scope.`)},fd=({actionKey:e,callback:t,scope:r,options:n,dependencies:a,telemetryAppPathname:i})=>{var u,m,E;if(!dd("frontend_hotkeys"))return null;const _=nr(),A=Wr(),{hotKeysCollections:N,addActiveHotkey:H,removeActiveHotkey:B}=cd();gd(N,e,r);const K=(0,o.useMemo)(()=>({...hd,...n,scopes:r}),[n,r]),ee=(0,o.useCallback)((J,ce)=>{var oe,pe,le;A(so.SHORTCUT_TYPED,{app_pathname:i!=null?i:(0,X.i)(_.pathname),event_details:{actionKey:e,scope:r,keys:(le=(pe=(oe=N==null?void 0:N[r])==null?void 0:oe.actions)==null?void 0:pe[e])==null?void 0:le.keys}}),t(J,ce)},[e,t,N,_.pathname,r,A,i]);return(0,o.useEffect)(()=>(H({scope:r,actionKey:e,options:{scope:r,enabled:K.enabled,displayInOverview:K.displayInOverview,combinationKey:K.combinationKey,splitKey:K.splitKey}}),()=>B({scope:r,actionKey:e})),[e,H,r,B,K.combinationKey,K.enabled,K.displayInOverview,K.splitKey]),(0,ad.vC)((E=(m=(u=N==null?void 0:N[r])==null?void 0:u.actions)==null?void 0:m[e])==null?void 0:E.keys,ee,K,a)},Cd=({shortcut:e})=>(fd(e),null),vd=({children:e,shortcuts:t})=>o.createElement(o.Fragment,null,t.map(r=>o.createElement(Cd,{key:`${r.scope}.${r.actionKey}`,shortcut:r})),e);vd.defaultProps={children:null};const kg=null,Is={clone(e){return JSON.parse(JSON.stringify(e))},isEmpty(e){const t=Object.keys(e);return t&&t.length===0},trimObjectFields(e,t){const r={...e};return t.length>0&&t.forEach(n=>{n in e&&typeof e[n]=="string"&&(r[n]=e[n].trim())}),r}};var yd=Object.defineProperty,_d=(e,t,r)=>t in e?yd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$t=(e,t,r)=>(_d(e,typeof t!="symbol"?t+"":t,r),r);const Ds=d.default.div`
.form-group {
margin-left: 0;
margin-right: 0;
}
`;class Rs extends o.Component{constructor(t){super(t),$t(this,"_onPairsChange",r=>{this.props.onChange&&this.props.onChange(r)}),$t(this,"_bindValue",r=>{const n={};n[r.target.name]=r.target.value,this.setState(n)}),$t(this,"_addRow",()=>{const r=Is.clone(this.props.pairs);r[this.state.newKey]=this.state.newValue,this._onPairsChange(r),this.setState({newKey:"",newValue:""})}),$t(this,"_deleteRow",r=>()=>{if(window.confirm(`Are you sure you want to delete property '${r}'?`)){const n=Is.clone(this.props.pairs);delete n[r],this._onPairsChange(n)}}),$t(this,"_formattedHeaders",r=>o.createElement("tr",null,r.map((n,a)=>{const i={};if(a===r.length-1){if(!this.props.editable)return null;i.width=75}return o.createElement("th",{key:n,style:i},n)}))),$t(this,"_formattedRows",r=>Object.keys(r).sort().map(n=>{let a;if(this.props.editable){const i=[];i.push(o.createElement(C.Button,{key:`delete-${n}`,bsStyle:"danger",bsSize:this.props.actionsSize,onClick:this._deleteRow(n)},"Delete")),a=o.createElement("td",null,i)}return o.createElement("tr",{key:n},o.createElement("td",null,n),o.createElement("td",null,r[n]),a)})),$t(this,"_newRow",()=>{if(!this.props.editable)return null;const r=!this.state.newKey||!this.state.newValue;return o.createElement("tr",null,o.createElement("td",null,o.createElement(Ds,null,o.createElement(C.Input,{type:"text",name:"newKey",id:"newKey","data-testid":"newKey",bsSize:"small",placeholder:this.props.headers[0],value:this.state.newKey,onChange:this._bindValue}))),o.createElement("td",null,o.createElement(Ds,null,o.createElement(C.Input,{type:"text",name:"newValue",id:"newValue","data-testid":"newValue",bsSize:"small",placeholder:this.props.headers[1],value:this.state.newValue,onChange:this._bindValue}))),o.createElement("td",null,o.createElement(C.Button,{bsStyle:"success",bsSize:"small",onClick:this._addRow,disabled:r},"Add")))}),this.state={newKey:"",newValue:""}}render(){return o.createElement("div",{className:"key-value-table-component"},o.createElement("div",{className:`table-responsive ${this.props.containerClassName}`},o.createElement(C.Table,{className:`table table-striped ${this.props.className}`},o.createElement("thead",null,this._formattedHeaders(this.props.headers)),o.createElement("tbody",null,this._formattedRows(this.props.pairs),this._newRow()))))}}$t(Rs,"propTypes",{pairs:s().object.isRequired,headers:s().array,editable:s().bool,onChange:s().func,className:s().string,containerClassName:s().string,actionsSize:s().oneOf(["large","medium","small","xsmall"])}),Rs.defaultProps={headers:["Name","Value","Actions"],editable:!1,actionsSize:"xsmall",className:"",containerClassName:"",onChange:()=>{}};const Gg=null,bd=({to:e,target:t,onClick:r,...n})=>{const a=(0,nt.useNavigate)(),i=(0,o.useCallback)(u=>{t==="_self"?a(e):window.open(e,t),r&&r(u)},[t,r,a,e]);return o.createElement(C.Button,{onClick:i,...n})};bd.defaultProps={target:"_self"};const Hg=null;var Os=l("KtULIsGV");const Td=["Button","NavItem"],Sd=e=>String(e).split(/[?#]/)[0],Ad=(e,t,r,n,a)=>{const i=Sd(t),u=a?e.startsWith(i):i===e;return Td.includes(n)&&u?`active ${r!=null?r:""}`:r},Id=e=>e.button===0,Dd=e=>!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey),Rd=({children:e,onClick:t,to:r,relativeActive:n,...a})=>{const{pathname:i}=(0,nt.useLocation)(),{props:{onClick:u,className:m,disabled:E},type:{displayName:f}}=o.Children.only(e),_=typeof r=="object"&&"pathname"in r?r.pathname:r,A=(0,o.useMemo)(()=>Ad(i,_,m,f,n),[i,_,m,f,n]),N=(0,Os.Gy)(_),H=(0,o.useCallback)(B=>{!Id(B)||Dd(B)||E||(B.preventDefault(),B.stopPropagation(),u&&u(),t&&t(),E||N(B))},[E,u,t,N]);return o.cloneElement(o.Children.only(e),{...a,className:A,onClick:H,disabled:!!E,href:E?void 0:_})};Rd.defaultProps={relativeActive:!1};var Od=l("HM+Bgqj5"),Mt=l.n(Od),Gr=l("ww+BtWnX"),ao=l.n(Gr),Pd=l("zvpIoheO");const Ld=e=>{const t=e.map(([n])=>n),r=e.map(([,n])=>n);return Gr.scale(r).domain(t)},xd=e=>{switch(e){case"Blackbody":case"Bluered":case"Cividis":case"Earth":case"Electric":case"Hot":case"Jet":case"Picnic":case"Portland":case"Rainbow":return Ld(Pd.scales[e]);default:return Gr.scale(e)}};class Ps{static fromJSON(t){switch(t.type){case"gradient":return Kt.fromJSON(t);case"static":return Oo.fromJSON(t);default:throw new Error(`Invalid highlighting color type: ${t.type}`)}}isStatic(){return this.type==="static"}isGradient(){return this.type==="gradient"}}class Oo extends Ps{constructor(t){super(),this._color=t}get type(){return"static"}get color(){return this._color}colorFor(){return this.color}static fromJSON({color:t}){return new Oo(t)}static create(t){return new Oo(t)}toJSON(){const{color:t}=this;return{type:"static",color:t}}}const Nd=(e,t=0)=>{if(typeof e=="number")return e;try{return Number.parseFloat(e)}catch{return t}};class Kt extends Ps{constructor(t,r,n){super(),this._lower=r,this._upper=n,this._gradient=t,this._scale=xd(t)}get type(){return"gradient"}get gradient(){return this._gradient}get lower(){return this._lower}get upper(){return this._upper}get scale(){return this._scale}colorFor(t){const r=Nd(t,this.lower),n=this.upper-this.lower,a=Math.max(this.lower,Math.min(this.upper,r));return this._scale((a-this.lower)/n)}static fromJSON({gradient:t,lower:r,upper:n}){return new Kt(t,r,n)}static create(t,r,n){return new Kt(t,r,n)}withGradient(t){return Kt.create(t,this.lower,this.upper)}withLower(t){return Kt.create(this.gradient,t,this.upper)}withUpper(t){return Kt.create(this.gradient,this.lower,t)}toJSON(){const{gradient:t,lower:r,upper:n}=this;return{type:"gradient",gradient:t,lower:r,upper:n}}}const zg=null,wd="full_message",Ls="timestamp",$d="message",xs="source",Md="streams",Ud="gl2_second_sort_field",Vg=["_id","_ttl","_source","_all","_index","_type","_score","gl2_accounted_message_size","gl2_processing_error","gl2_processing_duration_ms","gl2_processing_timestamp","gl2_receive_timestamp","gl2_remote_hostname","gl2_remote_ip","gl2_remote_port","gl2_source_collector","gl2_source_collector_input","gl2_source_input","gl2_source_node","gl2_message_id",Md,"gl2_source_radio","gl2_source_radio_input"],jg=[wd,$d,Ls,xs,Ud],Yg="(Empty Value)",Jg=15,Qg={type:"auto",scaling:1},Xg=[Ls,xs],Fd={type:"relative",range:0},qg={DEFAULT_LIMIT:150},Bd="relative",Ns=300,ef=Ns-60,tf={type:Bd,from:Ns},of={},rf=Oo.create("#ffec3d"),nf=ao().scale(["lightyellow","lightgreen","lightblue","red"]).mode("lch").colors(40),sf="linear",af=null,lf=[25,50,75,90,95,99].map(e=>({label:e,value:e})),cf=[{label:"Document Count",value:"COUNT"},{label:"Field Sum",value:"SUM"}],df={seconds:"Seconds",minutes:"Minutes",hours:"Hours",days:"Days",weeks:"Weeks",months:"Months"},uf=[{type:"seconds",label:"Seconds"},{type:"minutes",label:"Minutes"},{type:"hours",label:"Hours"},{type:"days",label:"Days"}],ws="/views",pf=null,mf="/search",Ef=null,hf=null,gf="/dashboards",ff=null,Cf=null,vf=null,kd="/extendedsearch",yf=[{type:"relative",name:"Relative"},{type:"absolute",name:"Absolute"},{type:"keyword",name:"Keyword"}],_f=28,bf="\u2E31",Tf="-",lo="/security",ot={STARTPAGE:"/",NOTFOUND:"/notfound",SEARCH:"/search",STREAMS:"/streams",ALERTS:{LIST:"/alerts",replay_search:e=>`/alerts/${e}/replay-search`,DEFINITIONS:{LIST:"/alerts/definitions",CREATE:"/alerts/definitions/new",edit:e=>`/alerts/definitions/${e}/edit`,show:e=>`/alerts/definitions/${e}`,replay_search:e=>`/alerts/definitions/${e}/replay-search`},NOTIFICATIONS:{LIST:"/alerts/notifications",CREATE:"/alerts/notifications/new",edit:e=>`/alerts/notifications/${e}/edit`,show:e=>`/alerts/notifications/${e}`}},SECURITY:{OVERVIEW:`${lo}/overview`,USER_ACTIVITY:`${lo}/user-activity`,HOST_ACTIVITY:`${lo}/host-activity`,NETWORK_ACTIVITY:`${lo}/network-activity`,ANOMALIES:`${lo}/anomalies`,ACTIVITY:`${lo}/activity`},SOURCES:"/sources",DASHBOARDS:"/dashboards",WELCOME:"/welcome",GLOBAL_API_BROWSER_URL:"/api/api-browser/global/index.html",SYSTEM:{CONFIGURATIONS:"/system/configurations",configurationsSection:(e,t)=>`/system/configurations/${e}${t?`/${t}`:""}`,CONTENTPACKS:{LIST:"/system/contentpacks",EXPORT:"/system/contentpacks/export",CREATE:"/system/contentpacks/create",edit:(e,t)=>`/system/contentpacks/${e}/${t}/edit`,show:e=>`/system/contentpacks/${e}`},GROKPATTERNS:"/system/grokpatterns",INDICES:{LIST:"/system/indices",FAILURES:"/system/indices/failures",FIELD_TYPE_PROFILES:{OVERVIEW:"/system/indices/field-type-profiles",edit:e=>`/system/indices/field-type-profiles/${e}`,CREATE:"/system/indices/field-type-profiles/create"}},INDEX_SETS:{CONFIGURATION:(e,t)=>t?`/system/index_sets/${e}/configuration?from=${t}`:`/system/index_sets/${e}/configuration`,SHOW:e=>`/system/index_sets/${e}`,FIELD_TYPES:e=>`/system/index_sets/${e}/field-types`,CREATE:"/system/index_sets/create"},INPUTS:"/system/inputs",LOGGING:"/system/logging",METRICS:e=>`/system/metrics/node/${e}`,NODES:{LIST:"/system/nodes",SHOW:e=>`/system/nodes/${e}`},DATANODES:{LIST:"/system/datanodes",SHOW:e=>`/system/datanodes/${e}`,CLUSTER:"/system/datanodes/cluster",CONFIGURATION:"/system/datanodes/configuration",MIGRATION:"/system/datanodes/migration"},THREADDUMP:e=>`/system/threaddump/${e}`,OUTPUTS:"/system/outputs",OVERVIEW:"/system/overview",PROCESSBUFFERDUMP:e=>`/system/processbufferdump/${e}`,SYSTEMLOGS:e=>`/system/logs/recent/${e}`,AUTHENTICATION:{BACKENDS:{OVERVIEW:"/system/authentication/services",ACTIVE:"/system/authentication/services/active",CREATE:"/system/authentication/services/create",createBackend:e=>`/system/authentication/services/create/${e}`,show:e=>`/system/authentication/services/${e}`,edit:(e,t)=>{const r=`/system/authentication/services/edit/${e}`;return t?`${r}?initialStepKey=${t}`:r}},AUTHENTICATORS:{SHOW:"/system/authentication/authenticator",EDIT:"/system/authentication/authenticator/edit"}},USERS:{CREATE:"/system/users/new",edit:e=>`/system/users/edit/${e}`,TOKENS:{edit:e=>`/system/users/tokens/${e}`},OVERVIEW:"/system/users",show:e=>`/system/users/${e}`},AUTHZROLES:{OVERVIEW:"/system/roles",show:e=>`/system/roles/${e}`,edit:e=>`/system/roles/edit/${e}`},LOOKUPTABLES:{OVERVIEW:"/system/lookuptables",CREATE:"/system/lookuptables/create",show:e=>`/system/lookuptables/table/${e}`,edit:e=>`/system/lookuptables/table/${e}/edit`,CACHES:{OVERVIEW:"/system/lookuptables/caches",CREATE:"/system/lookuptables/caches/create",show:e=>`/system/lookuptables/caches/${e}`,edit:e=>`/system/lookuptables/caches/${e}/edit`},DATA_ADAPTERS:{OVERVIEW:"/system/lookuptables/data_adapters",CREATE:"/system/lookuptables/data_adapters/create",show:e=>`/system/lookuptables/data_adapter/${e}`,edit:e=>`/system/lookuptables/data_adapter/${e}/edit`}},PIPELINES:{OVERVIEW:"/system/pipelines",PIPELINE:e=>`/system/pipelines/${e}`,RULES:"/system/pipelines/rules",RULE:e=>`/system/pipelines/rules/${e}`,SIMULATOR:"/system/pipelines/simulate"},ENTERPRISE:"/system/enterprise",SIDECARS:{OVERVIEW:"/system/sidecars",STATUS:e=>`/system/sidecars/${e}/status`,ADMINISTRATION:"/system/sidecars/administration",CONFIGURATION:"/system/sidecars/configuration",FAILURE_TRACKING:"/system/sidecars/failuretracking",NEW_CONFIGURATION:"/system/sidecars/configuration/new",EDIT_CONFIGURATION:e=>`/system/sidecars/configuration/edit/${e}`,NEW_COLLECTOR:"/system/sidecars/collector/new",EDIT_COLLECTOR:e=>`/system/sidecars/collector/edit/${e}`}},VIEWS:{LIST:ws,VIEWID:e=>`${ws}/${e}`},EXTENDEDSEARCH:kd,KEYBOARD_SHORTCUTS:"/keyboard-shortcuts",search_with_query:(e,t,r,n)=>{const a=new(Mt())(ot.SEARCH),i={q:e};if(t&&r)switch(i.rangetype=t,t){case"relative":i.relative=r.relative;break;case"absolute":i.from=r.from,i.to=r.to;break;case"keyword":i.keyword=r.keyword;break;default:throw new Error(`Invalid range type: ${t}.`)}return n&&(i.streams=n.join(",")),a.query(i),a.resource()},_common_search_url:(e,t,r,n)=>{const a=new(Mt())(e),i={q:t,interval:n};return r&&Object.keys(r).forEach(u=>{i[u]=r[u]}),a.setQuery(i),a.resource()},search:(e,t,r)=>ot._common_search_url(ot.SEARCH,e,t,r),message_show:(e,t)=>`/messages/${e}/${t}`,stream_edit:e=>`/streams/${e}/edit`,stream_edit_example:(e,t,r)=>`${ot.stream_edit(e)}?index=${t}&message_id=${r}`,stream_outputs:e=>`/streams/${e}/outputs`,stream_search:(e,t,r,n)=>ot._common_search_url(`${ot.STREAMS}/${e}/search`,t,r,n),stream_alerts:e=>`/alerts/?stream_id=${e}`,legacy_stream_search:e=>`/streams/${e}/messages`,dashboard_show:e=>`/dashboards/${e}`,show_saved_search:e=>`/search/${e}`,node:e=>`/system/nodes/${e}`,node_inputs:e=>`${ot.SYSTEM.INPUTS}/${e}`,global_input_extractors:e=>`/system/inputs/${e}/extractors`,local_input_extractors:(e,t)=>`/system/inputs/${e}/${t}/extractors`,export_extractors:(e,t)=>`${ot.local_input_extractors(e,t)}/export`,import_extractors:(e,t)=>`${ot.local_input_extractors(e,t)}/import`,new_extractor:(e,t,r,n,a,i)=>{const u=new(Mt())(`/system/inputs/${e}/${t}/extractors/new`),m={extractor_type:r,field:n,example_index:a,example_id:i};return u.search(m),u.resource()},edit_extractor:(e,t,r)=>`/system/inputs/${e}/${t}/extractors/${r}/edit`,edit_input_extractor:(e,t,r)=>`/system/inputs/${e}/${t}/extractors/${r}/edit`,filtered_metrics:(e,t)=>`${ot.SYSTEM.METRICS(e)}?filter=${t}`,global_api_browser:()=>ot.GLOBAL_API_BROWSER_URL},Hr=(e,t)=>{const r=new(Mt())(e);return r.directory(`${t}/${r.directory()}`).normalizePath().resource()},Wd=e=>typeof e=="string",Gd=e=>typeof e=="function",Kr=(e,t)=>t==="/"?e:Object.fromEntries(Object.entries(e).map(([r,n])=>Wd(n)?[r,Hr(n,t)]:Gd(n)?[r,(...a)=>{const i=n(...a);return Hr(i,t)}]:[r,Kr(n,t)])),Sf=e=>{const t=AppConfig.gl2AppPathPrefix();return!t||t===""||t==="/"?e:Hr(e,t)},Hd=tt.A.gl2AppPathPrefix()?Kr(ot,tt.A.gl2AppPathPrefix()):ot,Kd=ot,$s=(e,t=!0)=>{const r={};h.d.exports("routes").forEach(a=>{const i=new(Mt())(a.path),u=i.segment(),m=u.map(f=>f.replace(":","")).join("_").toUpperCase(),E=u.filter(f=>f.startsWith(":"));if(E.length>0){r[m]=(...f)=>(E.forEach((_,A)=>{const N=String(f[A]);i.segment(u.indexOf(_),N)}),i.pathname());return}r[m]=a.path});const n=(tt.A.gl2AppPathPrefix()?Kr(r,tt.A.gl2AppPathPrefix()):r)[e];if(!n&&t)throw new Error(`Could not find plugin route '${e}'.`);return n},zd=e=>$s(e,!1),Af="Enterprise",If="Security",Vd=Object.assign(Hd,{pluginRoute:$s,getPluginRoute:zd,unqualified:Kd}),jd=({children:e,...t})=>tt.A.isCloud()?o.createElement(o.Fragment,null):o.Children.map(e,r=>o.isValidElement(r)?o.cloneElement(r,t):r);var Yd=l("JnTtTRmZ"),lt=l.n(Yd),j=l("9QUCfm+a"),ye=l("NhE/kDWp"),zr=l("1uxnK327");const Vr=(0,Pe.rN)("core.Nodes",()=>lt().createActions({list:{asyncResult:!0}})),Jd=(0,Pe.Bv)("core.Nodes",()=>lt().createStore({listenables:[Vr],nodes:void 0,clusterId:void 0,nodeCount:0,INTERVAL:5e3,promises:{},init(){this.nodes===void 0&&(this._triggerList(),setInterval(this._triggerList,this.INTERVAL))},_triggerList(){zr.SessionStore.isLoggedIn()&&Vr.list()},getInitialState(){return this.getNodesInfo()},getNodesInfo(){return{nodes:this.nodes,clusterId:this.clusterId,nodeCount:this.nodeCount}},list(){const e=this.promises.list||(0,j.Ur)("GET",(0,X.H3)(ye.A.ClusterApiResource.list().url)).then(t=>(this.nodes={},t.nodes&&(this.nodes=t.nodes.map(r=>[r.node_id,r]).reduce((r,[n,a])=>({...r,[n]:a}),{}),this.clusterId=this._clusterId(),this.nodeCount=this._nodeCount(),this._propagateState()),t)).finally(()=>delete this.promises.list);this.promises.list=e,Vr.list.promise(e)},getNode(e){var t;return(t=this.nodes)==null?void 0:t[e]},_clusterId(){const e=Object.keys(this.nodes).map(t=>this.nodes[t]).find(t=>t.cluster_id);return e?e.cluster_id.toUpperCase():void 0},_nodeCount(){return Object.keys(this.nodes).length},_propagateState(){this.trigger(this.getNodesInfo())}}));var Qd=l("ZtpRma/a"),Ms=l.n(Qd),Xd=l("LLNBJPkI"),Zd=l.n(Xd);const Us=(e,t)=>e&&e[t]&&Ko()(e[t]),qd=e=>Us(e,"equals"),Fs=e=>Us(e,"toJS"),Bs=(e,t)=>{if(Fs(e)&&Fs(t))return Ms()(e.toJS(),t.toJS(),Bs);if(qd(e))return e.equals(t);if((0,o.isValidElement)(e)||(0,o.isValidElement)(t))return Zd()(e,t)},Ut=(e,t)=>Ms()(e,t,Bs),eu=e=>e;function ks(e,t=eu){const[r,n]=(0,o.useState)(()=>e.getInitialState()),a=(0,o.useRef)(r),i=(0,o.useMemo)(()=>t(r),[t,r]);return(0,o.useEffect)(()=>{const u=e.listen(m=>{Ut(m,a.current)||(n(m),a.current=m)});return n(e.getInitialState()),u},[e]),i}function tu(e,t,r=n=>n){const n=e.displayName||e.name||"Unknown/Anonymous";class a extends o.Component{constructor(u){super(u),this._genProps=E=>{const f={};return Object.keys(t).forEach(_=>{f[_]=E[_]}),r(f)};const m=Object.keys(t).map(E=>{const f=t[E];if(f===void 0||!Ko()(f.getInitialState))return console.error(`Error: The store passed for the \`${E}\` property is not defined or invalid. Check the connect()-call wrapping your \`${n}\` component.`),[E,void 0];const _=f.getInitialState();return[E,_]}).reduce((E,[f,_])=>({...E,[f]:_}),{});this.state={...this.state,...m}}componentDidMount(){this.unsubscribes=Object.keys(t).map(u=>{const m=t[u];return m===void 0||!Ko()(m.listen)?(console.error(`Error: The store passed for the \`${u}\` property is not defined or invalid. Check the connect()-call wrapping your \`${n}\` component.`),()=>{}):m.listen(E=>this.setState(f=>({...f,[u]:E})))})}shouldComponentUpdate(u,m){const E=this._genProps(this.state),f=this._genProps(m);return!(Ut(E,f)&&Ut(this.props,u))}componentWillUnmount(){this.unsubscribes.forEach(u=>u())}render(){const u=this._genProps(this.state),{ref:m,...E}=this.props;return o.createElement(e,{...u,...E})}}return a.displayName=`ConnectStoresWrapper[${n}] stores=${Object.keys(t).join(",")}`,a}const Ws=tu;var ou=Object.defineProperty,ru=(e,t,r)=>t in e?ou(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nu=(e,t,r)=>(ru(e,typeof t!="symbol"?t+"":t,r),r);class jr extends o.PureComponent{render(){const{nodes:t}=this.props;if(!t)return o.createElement(wt.A,null);const r=t[this.props.nodeId];if(r){const n=r.is_leader?"star":"fork_right",a=r.is_leader?"leader-node":"",i=r.is_leader?"This is the leader node in the cluster":"",u=o.createElement(o.Fragment,null,o.createElement(Ie.A,{name:n,className:a,title:i})," ",r.short_node_id,o.createElement(jd,null," / ",r.hostname));return tt.A.isCloud()?u:o.createElement(Os.N_,{to:Vd.SYSTEM.NODES.SHOW(this.props.nodeId)},u)}return o.createElement("i",null,"Unknown Node")}}nu(jr,"propTypes",{nodeId:s().string.isRequired,nodes:s().object}),jr.defaultProps={nodes:void 0};const Pf=Ws(jr,{nodeStore:Jd},({nodeStore:e,...t})=>({...t,nodes:e.nodes})),su=d.default.div`
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
`,Lf=({count:e,listing:t})=>React.createElement(su,{title:String(t)},React.createElement(CountBadge,null,e)," ",t),xf=null;var au=l("cB3oI9m5");const lu=d.default.div(({theme:e})=>(0,d.css)`
background-color: ${e.colors.global.contentBackground};
position: fixed;
min-width: 200px;
top: 60px;
left: 50%;
transform: translateX(-50%);
box-shadow: 0 2px 10px rgb(0 0 0 / 20%);
z-index: 2000;
`),iu=(0,d.default)(C.Alert)`
margin: 0;
height: 32px;
padding: 5px 20px;
text-align: center;
`,Gs=({text:e,longWaitText:t,longWaitTimeout:r})=>{const[n,a]=(0,o.useState)(e);return(0,o.useEffect)(()=>{const i=setTimeout(()=>{a(t)},r);return()=>clearTimeout(i)},[t,r]),o.createElement(au.A,{delay:500},o.createElement(lu,null,o.createElement(iu,{bsStyle:"info"},o.createElement(wt.A,{delay:0,text:n}))))};Gs.propTypes={text:s().string,longWaitText:s().string,longWaitTimeout:s().number},Gs.defaultProps={text:"Loading...",longWaitText:"This is taking a bit longer, please hold on...",longWaitTimeout:2e4};const Nf=null;var mt=l("V7hwd7tl");const Hs=(0,Pe.Bv)("core.System",()=>lt().createStore({system:void 0,locales:void 0,init(){this.info().then(e=>{this.trigger({system:e}),this.system=e}),this.systemLocales().then(e=>{this.trigger({locales:e}),this.locales=e.locales})},getInitialState(){return{system:this.system,locales:this.locales}},info(){const e=X.H3(ye.A.SystemApiController.info().url);return(0,j.Ay)("GET",e)},jvm(){const e=X.H3(ye.A.SystemApiController.jvm().url);return(0,j.Ay)("GET",e)},systemLocales(){const e=X.H3(ye.A.SystemApiController.locales().url);return(0,j.Ay)("GET",e)},elasticsearchVersion(){const e=X.H3(ye.A.ClusterApiResource.elasticsearchStats().url);return new Promise((r,n)=>{(0,j.Ay)("GET",e).then(a=>{const i=a.cluster_version.split(".");r({major:i[0],minor:i[1],patch:i[2]})}).catch(n)})}})),cu=e=>{const t=Object.values(e).filter(r=>r.language_tag!=="und").map(r=>({value:r.language_tag,label:r.display_name})).sort((r,n)=>{const a=r.label.toUpperCase(),i=n.label.toUpperCase();return ai?1:0});return[{value:"und",label:"Default locale"}].concat(t)},du=e=>React.createElement("span",{key:e.value,title:"{option.value} [{option.value}]"},e.label," [",e.value,"]"),wf=e=>{const{locales:t}=useStore(SystemStore);if(!t)return React.createElement(Spinner,null);const r=cu(t);return React.createElement(Select,{...e,placeholder:"Pick a locale",options:r,optionRenderer:du})},$f=null;var Mf=l("OMslc0Et"),Uf=l("R8P0WRGn");const Ff=({text:e})=>{const t=useMemo(()=>DOMPurify.sanitize(marked(e!=null?e:"")),[e]);return React.createElement("div",{dangerouslySetInnerHTML:{__html:t}})},Bf=null,kf=d.default.dl(({theme:e})=>(0,d.css)`
margin-top: 10px;
margin-bottom: 0;
dt {
font-weight: bold;
margin-left: 1px;
}
dd {
margin-bottom: 5px;
padding-bottom: 5px;
margin-left: 1px; /* Ensures that italic text is not cut */
&.stream-list ul {
list-style-type: disc;
padding-left: 25px;
li {
margin-top: 3px;
}
}
div.message-field-actions {
padding-left: 10px;
position: relative;
top: -10px;
}
}
&.message-details-fields {
overflow: hidden;
}
&.message-details-fields span:not(:last-child) dd {
border-bottom: 1px solid ${e.colors.gray[90]};
}
&.message-details-fields dd {
white-space: pre-wrap;
}
&.message-details-fields .field-value {
font-family: ${e.fonts.family.monospace};
}
&.message-details-fields dd.message-field .field-value {
max-height: 500px;
overflow: auto;
}
`),Wf=null;class Ks extends o.Component{constructor(){super(...arguments),this._select=void 0,this.getValue=()=>this._select.getValue()}render(){return o.createElement(mt.A,{ref:t=>{this._select=t},multi:!0,...this.props})}}Ks.propTypes=mt.A.propTypes;const zs=Ks,uu=({children:e})=>{const{handleSubmit:t,handleReset:r}=(0,ge.useFormikContext)(),n=(0,o.useCallback)(i=>{i.preventDefault(),i.stopPropagation(),t(i)},[t]),a=(0,o.useCallback)(i=>{i.preventDefault(),i.stopPropagation(),r(i)},[r]);return o.createElement("form",{onSubmitCapture:n,onResetCapture:a},e)};uu.defaultProps={onReset:void 0};const Gf=null;var sr=l("bDEMbatZ");const pu=l.p+"a991861284654f43baeb.jpg",Vs=e=>(0,o.useMemo)(()=>h.d.exports(e),[e]);var mu=l("o7GEe6Qe");const Eu=d.default.div`
display: flex;
align-items: center;
`,hu=d.default.p`
flex: 1;
margin: 0;
font-weight: bold;
`,gu=d.default.div(({$visible:e})=>(0,d.css)`
white-space: pre-wrap;
display: ${e?"block":"none"};
padding-top: 12px;
`),fu=(0,d.default)(mu.A)`
margin-bottom: 6px;
padding-right: 9px;
`,Cu=d.default.div`
width: 90%;
margin: 0 auto 15px;
`,vu={usePublicNotifications:()=>({notifications:void 0,dismissedNotifications:void 0,onDismissPublicNotification:void 0})},Yr=({readFromConfig:e})=>{var t;const r=Vs("customization.publicNotifications"),{usePublicNotifications:n}=((t=r[0])==null?void 0:t.hooks)||vu,[a,i]=(0,o.useState)(void 0),{notifications:u,dismissedNotifications:m,onDismissPublicNotification:E}=n(),f=e?tt.A.publicNotifications():u;if(!f&&!m&&!E)return null;const _=Object.keys(f).map(A=>{if(m!=null&&m.has(A))return null;const N=()=>{i(a?void 0:A)},H=f[A],{variant:B,hiddenTitle:K,isActive:ee,isDismissible:J,title:ce,shortMessage:oe,longMessage:pe}=H;if(!ee)return null;const le=()=>E(A);return o.createElement(fu,{bsStyle:B,onDismiss:J?le:void 0,key:ce,title:!K&&ce},o.createElement(Eu,null,o.createElement(hu,null,oe),pe&&o.createElement(er.A,{bsStyle:"link",onClick:N},"Read ",a===A?"Less":"More")),pe&&o.createElement(gu,{$visible:a===A},pe))}).filter(A=>A);return _.length?o.createElement(Cu,null,_):null};Yr.propTypes={readFromConfig:s().bool},Yr.defaultProps={readFromConfig:!1};const yu=Yr,_u=()=>{const e=h.d.exports("globalNotifications").map(t=>{if(!t.component)return console.error('Missing "component" for globalNotification plugin:',t),null;const r=t.component;return t.key||console.warn('Missing "key" for globalNotification plugin:',t),o.createElement(r,{key:t.key})}).filter(t=>!!t);return o.createElement(o.Fragment,null,e)},js=({children:e})=>o.createElement(o.Fragment,null,o.createElement(_u,null),o.createElement(yu,null),e);js.propTypes={children:s().oneOfType([s().arrayOf(s().element),s().element]).isRequired};const bu=js,Tu={rE:"6.0.6"},Su=/(?\d+)\.(?\d+)\.(?\d+)(-(?[\w.\d]+))?(\+(?\w+))?/,Ys=Tu.rE,Js=(e=Ys)=>{const t=Su.exec(e);if(!t||!t.groups){console.error("Failed to parse version",e);return}const r=t.groups;return{major:r==null?void 0:r.major,minor:r==null?void 0:r.minor,patch:r==null?void 0:r.patch,preRelease:r==null?void 0:r.preRelease,buildMetadata:r==null?void 0:r.buildMetadata}},Jr=()=>Ys,Vf={parseVersion:Js,getMajorAndMinorVersion:()=>{const e=Js();if(!e)return Jr();const{major:t,minor:r}=e;return`${t}.${r}`},getFullVersion:Jr},Qr=({system:e})=>{const[t,r]=(0,o.useState)();return(0,o.useEffect)(()=>{let n=!0;return Hs.jvm().then(a=>{n&&r(a)}),()=>{n=!1}},[]),e&&t?o.createElement(o.Fragment,null,"Graylog ",e.version," on ",e.hostname," (",t.info,")"):o.createElement(o.Fragment,null,"Graylog ",Jr())};Qr.propTypes={system:s().shape({version:s().string,hostname:s().string})},Qr.defaultProps={system:void 0};const Au=Ws(Qr,{system:Hs},({system:{system:e}={system:void 0}})=>({system:e})),Qs=d.default.footer(({theme:e})=>(0,d.css)`
text-align: center;
font-size: ${e.fonts.size.small};
color: ${e.colors.gray[70]};
height: 20px;
/* This combination of padding and box-sizing is required to fix a firefox flexbox bug */
box-sizing: content-box;
padding-bottom: ${e.spacings.sm};
@media print {
display: none;
}
`),Xs=()=>{const e=h.d.exports("pageFooter");if(e.length===1){const t=e[0].component;return o.createElement(Qs,null,o.createElement(t,null))}return o.createElement(Qs,null,o.createElement(Au,null))};Xs.propTypes={};const Iu=Xs,Du=d.default.div(({theme:e})=>`
display: flex;
flex-direction: column;
overflow: auto;
height: 100%;
width: 100%;
/* Bottom gap is defined by the footer */
padding: ${e.spacings.sm} ${e.spacings.sm} 0 ${e.spacings.sm};
`),Ru=(0,d.default)(C.Grid)`
width: 100%;
flex: 1;
margin-bottom: 10px;
`,Xr=({children:e,className:t,FooterComponent:r,NotificationsComponent:n})=>o.createElement(Du,{className:t},o.createElement(n,null,o.createElement(Ru,{fluid:!0,className:"page-content-grid"},e||o.createElement(nt.Outlet,null)),o.createElement(r,null)));Xr.propTypes={children:s().node,className:s().string},Xr.defaultProps={children:void 0,className:void 0,FooterComponent:Iu,NotificationsComponent:bu};const Ou=Xr,Pu=d.default.h1(({theme:e})=>(0,d.css)`
font-size: ${e.fonts.size.extraLarge};
margin-bottom: 15px;
`),Lu=(0,d.default)(C.Row)`
height: 82vh;
`,xu=(0,d.default)(C.Jumbotron)(({theme:e})=>(0,d.css)`
background-color: ${ao()(e.colors.global.contentBackground).alpha(.8).css()};
text-align: center;
`),Zs=({children:e,title:t})=>o.createElement(Lu,null,o.createElement(C.Col,{mdOffset:2,md:8},o.createElement(xu,null,o.createElement(Pu,null,t),e)));Zs.propTypes={children:s().node.isRequired,title:s().string.isRequired};const Nu=Zs,wu=()=>(0,d.css)`
body {
background: url(${({backgroundImage:e})=>e}) no-repeat center center fixed;
background-size: cover;
}
`,$u=d.default.div(({theme:e})=>(0,d.css)`
margin-left: auto;
margin-right: auto;
text-align: left;
dt {
font-size: ${e.fonts.size.body};
font-weight: normal;
overflow: auto;
}
p {
font-size: inherit;
}
`),Mu=(0,d.createGlobalStyle)`
${wu()}
`,Zr=({children:e,title:t,description:r,backgroundImage:n,displayPageLayout:a})=>{const i=a?Ou:o.Fragment;return o.createElement(ki,{title:t},o.createElement(i,null,o.createElement(Mu,{backgroundImage:n}),o.createElement(Nu,{title:t},r,e&&o.createElement($u,null,e))))};Zr.propTypes={children:s().node,description:s().node.isRequired,displayPageLayout:s().bool,title:s().string.isRequired,backgroundImage:s().string},Zr.defaultProps={children:void 0,displayPageLayout:!0,backgroundImage:pu};const Uu=Zr,Fu=({errors:e})=>{const t=e?e.map(n=>o.createElement("li",{key:`key-${n.toString()}`},n.toString())):[],r=o.createElement("p",null,"We had trouble fetching some data required to build this page, so here is a picture instead.");return o.createElement(Uu,{title:"Error getting data",description:r,displayPageLayout:!1},o.createElement("ul",null,t,o.createElement("li",null,"Check your Graylog logs for more information.")))};Fu.propTypes={errors:s().array.isRequired};const jf=null;var Bu=l("VYuQb9st"),ku=l.n(Bu);const Wu=d.default.div`
display: flex;
gap: 3px;
flex-direction: column;
`,qs=d.default.div(({theme:e})=>(0,d.css)`
display: flex;
justify-content: space-between;
gap: 5px;
@media (max-width: ${e.breakpoints.max.md}) {
flex-wrap: wrap;
}
`),Gu=d.default.span(({theme:e})=>(0,d.css)`
cursor: help;
margin-left: 5px;
font-size: ${e.fonts.size.body};
line-height: 20px;
vertical-align: text-top;
`),Hu=d.default.div(({$hasMultipleChildren:e})=>(0,d.css)`
display: flex;
gap: 10px;
align-items: ${e?"center":"flex-start"};
`),Ku=d.default.div`
display: flex !important;
align-items: flex-end;
.btn-toolbar {
display: flex;
}
`,zu=d.default.p`
&&&& {
margin-top: 0;
}
`,ea={experimental:"This Graylog feature is new and should be considered experimental.",legacy:"This feature has been discontinued and will be removed in a future Graylog version."},Vu=({lifecycle:e,lifecycleMessage:t})=>{if(e===void 0)return null;const r=ku()(e),n=e==="experimental"?ea.experimental:ea.legacy,a=o.createElement(C.Tooltip,{id:e},t||n);return o.createElement(Gu,null,o.createElement(sr.A,{placement:"bottom",overlay:a},o.createElement(C.Label,{bsStyle:"primary"},r)))},ta=({children:e,subpage:t,title:r,actions:n,topActions:a,lifecycle:i,lifecycleMessage:u,documentationLink:m})=>{const E=t?"":"content";return o.createElement(di,{className:E},o.createElement(C.Col,{sm:12},o.createElement(Wu,null,o.createElement(qs,null,o.createElement("h1",null,r," ",o.createElement("small",null,o.createElement(Vu,{lifecycle:i,lifecycleMessage:u}))),(m||a)&&o.createElement(Hu,{$hasMultipleChildren:!!m&&!!a},m&&o.createElement(ps,{text:m.title,page:m.path,displayIcon:!0}),a)),o.createElement(qs,null,e&&o.createElement(zu,{className:"description no-bm"},e),n&&o.createElement(Ku,null,n)))))};ta.propTypes={title:s().node.isRequired,children:s().node,actions:s().node,lifecycle:s().oneOf(["experimental","legacy"]),lifecycleMessage:s().node,subpage:s().bool,documentationLink:s().object},ta.defaultProps={children:[],lifecycle:void 0,lifecycleMessage:void 0,topActions:void 0,actions:void 0,subpage:!1,documentationLink:void 0};const Yf=null;var ju=l("bcEkMz+H"),Yu=l.n(ju);const Ju=()=>{const{search:e}=nr();return(0,o.useMemo)(()=>Yu().parse(e,{ignoreQueryPrefix:!0}),[e])},oa=1,Po=[10,20,50,100],Qu=(e=Po,t=Po[0],r=!0)=>{const{page:n,pageSize:a}=Ju(),i=(0,nt.useNavigate)(),{search:u,pathname:m}=nr(),E=m+u,f=Number(n),_=Number.isInteger(f)&&f>0?f:oa,A=Number(a),H=r&&Number.isInteger(A)&&e!=null&&e.includes(A)?A:t,B=(0,o.useCallback)(({page:ee=_,pageSize:J=H})=>{const ce=new(Mt())(E).setSearch({page:ee,pageSize:r?String(J):void 0});i(ce.toString())},[i,_,H,E,r]),K=(0,o.useCallback)(()=>{B({page:oa})},[B]);return{page:_,resetPage:K,pageSize:H,setPagination:B}},Xu=(0,d.default)(C.DropdownButton)`
~ .dropdown-menu {
min-width: auto;
}
`,Zu=d.default.div`
display: flex;
align-items: center;
gap: 3px;
`,qr=({pageSizes:e,pageSize:t,onChange:r,className:n,showLabel:a})=>{const i=o.createElement(Xu,{className:n,id:"page-size-select",title:`${t} Rows`,"aria-label":"Configure page size",pullRight:!0,bsSize:"small",bsStyle:"default"},e.map(u=>o.createElement(C.MenuItem,{key:`option-${u}`,onSelect:()=>r(u)},u)));return a?o.createElement(Zu,{className:n},"Show",i):i};qr.propTypes={className:s().string,onChange:s().func.isRequired,pageSize:s().number.isRequired,pageSizes:s().arrayOf(s().number),showLabel:s().bool},qr.defaultProps={className:"",pageSizes:Po,showLabel:!0};const ra=qr,qu=o.createContext(!0),ep=(0,Pe.Gr)("views.components.contexts.InteractiveContext",()=>qu),tp=({children:e})=>o.createElement(ep.Consumer,null,t=>t?e:null);var zt=l("aKyEWaw1"),Vt=l("7QYyHavS");const op=(0,d.default)(zt.Pagination)(({theme:e})=>(0,d.css)`
&.pagination {
font-size: ${e.fonts.size.small};
margin-top: 10px;
margin-bottom: 0;
> li {
> a,
> span {
display: flex;
align-items: center;
justify-content: center;
color: ${e.utils.contrastingColor(e.colors.global.contentBackground)};
background-color: ${e.colors.global.contentBackground};
border-color: ${e.colors.variant.light.default};
border-radius: 0;
height: 32px;
&:hover,
&:focus {
color: ${e.utils.contrastingColor(e.colors.variant.lighter.default)};
background-color: ${e.colors.variant.lighter.default};
border-color: ${e.colors.variant.light.default};
}
}
&.active > a,
&.active > span {
&,
&:hover,
&:focus {
color: ${e.colors.pagination.active.color};
background-color: ${e.colors.pagination.active.background};
border-color: ${e.colors.pagination.active.border};
z-index: 1;
}
}
&.disabled {
> a,
> a:hover,
> a:focus,
> span,
> span:hover,
> span:focus {
color: ${e.colors.variant.light.default};
background-color: ${e.colors.global.contentBackground};
border-color: ${e.colors.variant.lighter.default};
}
}
}
}
`),rp=(0,Vt.uv)({WrapperComponent:op,itemTypeToComponent:{[Vt.w$.PAGE]:({value:e,isActive:t,onClick:r})=>{const n=t?"Active page":`Open page ${e}`;return o.createElement(zt.Pagination.Item,{active:t,onClick:r,title:n,"aria-label":n},e)},[Vt.w$.ELLIPSIS]:({isActive:e,onClick:t})=>{const r="Open following page";return o.createElement(zt.Pagination.Ellipsis,{disabled:e,onClick:t,title:r,"aria-label":r,className:"pagination-control"},o.createElement(Ie.A,{name:"more_horiz"}))},[Vt.w$.FIRST_PAGE_LINK]:({isActive:e,onClick:t})=>{const r="Open first page";return o.createElement(zt.Pagination.First,{disabled:e,onClick:t,title:r,"aria-label":r,className:"pagination-control"},o.createElement(Ie.A,{name:"keyboard_double_arrow_left"}))},[Vt.w$.PREVIOUS_PAGE_LINK]:({isActive:e,onClick:t})=>{const r="Open previous page";return o.createElement(zt.Pagination.Prev,{disabled:e,onClick:t,title:r,"aria-label":r,className:"pagination-control"},o.createElement(Ie.A,{name:"chevron_left"}))},[Vt.w$.NEXT_PAGE_LINK]:({isActive:e,onClick:t})=>{const r="Open next page";return o.createElement(zt.Pagination.Next,{disabled:e,onClick:t,title:r,"aria-label":r,className:"pagination-control"},o.createElement(Ie.A,{name:"chevron_right"}))},[Vt.w$.LAST_PAGE_LINK]:({isActive:e,onClick:t})=>{const r="Open last page";return o.createElement(zt.Pagination.Last,{disabled:e,onClick:t,title:r,"aria-label":r,className:"pagination-control"},o.createElement(Ie.A,{name:"keyboard_double_arrow_right"}))}}}),en=({currentPage:e,totalPages:t,boundaryPagesRange:r,siblingPagesRange:n,hideEllipsis:a,hidePreviousAndNextPageLinks:i,hideFirstAndLastPageLinks:u,disabled:m,onChange:E})=>t<=1?null:e>t?(console.warn("Graylog Pagination: `currentPage` prop should not be larger than `totalPages` prop."),null):o.createElement(rp,{currentPage:e,totalPages:t,boundaryPagesRange:r,siblingPagesRange:n,hideEllipsis:a,hidePreviousAndNextPageLinks:i,hideFirstAndLastPageLinks:u,disabled:m,onChange:E,"data-testid":"graylog-pagination"});en.propTypes={currentPage:s().number.isRequired,totalPages:s().number.isRequired,boundaryPagesRange:s().number,siblingPagesRange:s().number,hideEllipsis:s().bool,hidePreviousAndNextPageLinks:s().bool,hideFirstAndLastPageLinks:s().bool,disabled:s().bool,onChange:s().func},en.defaultProps={boundaryPagesRange:1,siblingPagesRange:1,hideEllipsis:!1,hidePreviousAndNextPageLinks:!1,hideFirstAndLastPageLinks:!1,disabled:!1,onChange:()=>{}};const np=en,Lo=1,na=({children:e,className:t,currentPage:r,currentPageSize:n,hideFirstAndLastPageLinks:a,hidePreviousAndNextPageLinks:i,onChange:u,pageSizes:m,setPagination:E,showPageSizeSelect:f,totalItems:_})=>{const A=(0,o.useMemo)(()=>n>0?Math.ceil(_/n):0,[n,_]),N=(0,o.useCallback)(B=>{E({page:Lo,pageSize:B}),u&&u(Lo,B)},[u,E]),H=(0,o.useCallback)(B=>{E({page:B,pageSize:n}),u&&u(B,n)},[E,n,u]);return(0,o.useEffect)(()=>{A>0&&r>A&&H(A)},[r,A,H]),o.createElement(o.Fragment,null,f&&o.createElement(ra,{pageSizes:m,pageSize:n,showLabel:!0,onChange:N,className:"pull-right"}),e,o.createElement(tp,null,o.createElement("div",{className:`text-center pagination-wrapper ${t!=null?t:""}`},o.createElement(np,{totalPages:A,currentPage:r,hidePreviousAndNextPageLinks:i,hideFirstAndLastPageLinks:a,onChange:H}))))},sp=({pageSizes:e,...t})=>{const{page:r,pageSize:n,setPagination:a}=Qu(e,t.pageSize,t.showPageSizeSelect);return o.createElement(na,{...t,currentPage:r,currentPageSize:n,setPagination:a,pageSizes:e})},ap=({activePage:e,pageSize:t,...r})=>{const[n,a]=(0,o.useState)(Math.max(e,Lo)),[i,u]=(0,o.useState)(t);(0,o.useEffect)(()=>{e>0&&a(e)},[e]),(0,o.useEffect)(()=>{u(t)},[t]);const m=(0,o.useCallback)(({page:E,pageSize:f})=>{u(f),a(E)},[]);return o.createElement(na,{...r,currentPage:n,currentPageSize:i,setPagination:m})},sa=({activePage:e,children:t,className:r,hideFirstAndLastPageLinks:n,hidePreviousAndNextPageLinks:a,onChange:i,pageSize:u,pageSizes:m,showPageSizeSelect:E,totalItems:f,useQueryParameter:_})=>_?o.createElement(sp,{className:r,hideFirstAndLastPageLinks:n,hidePreviousAndNextPageLinks:a,onChange:i,pageSizes:m,pageSize:u,showPageSizeSelect:E,totalItems:f},t):o.createElement(ap,{className:r,hideFirstAndLastPageLinks:n,hidePreviousAndNextPageLinks:a,onChange:i,pageSizes:m,pageSize:u,showPageSizeSelect:E,totalItems:f,activePage:e},t);sa.defaultProps={activePage:1,className:void 0,hideFirstAndLastPageLinks:!1,hidePreviousAndNextPageLinks:!1,pageSizes:Po,pageSize:Po[0],showPageSizeSelect:!0,onChange:void 0,useQueryParameter:!0};const aa=sa,la=({setFilteredRows:e,resetPagination:t,rows:r,...n})=>{const a=(i,u)=>{e(u&&u!==""?i:r),t()};return o.createElement(es,{...n,rows:r,onDataFiltered:a})};la.defaultProps={id:void 0,filterKeys:void 0,displayKey:void 0,filterBy:void 0,filterLabel:void 0};const lp=la,ip={page:1,perPage:10,query:""},cp=(e,t,r)=>{const n=t*(r-1),a=n+t;return e.slice(n,a)},ia=({rows:e=[],pagination:t,filterKeys:r,filterLabel:n,displayKey:a,filterBy:i,id:u,...m})=>{const[{perPage:E,page:f},_]=(0,o.useState)(t),[A,N]=(0,o.useState)(e),H=cp(A,E,f);(0,o.useEffect)(()=>{N(e),_(t)},[e,t]);const B=(ee,J)=>{_({page:ee,perPage:J})},K=()=>{_({perPage:E,page:t.page})};return o.createElement(aa,{totalItems:A.length,pageSize:E,activePage:f,onChange:B,showPageSizeSelect:!0,useQueryParameter:!1},o.createElement(Mi,{...m,id:u,customFilter:o.createElement(lp,{id:u,filterKeys:r,setFilteredRows:N,rows:e,resetPagination:K,displayKey:a,filterBy:i,filterLabel:n}),rows:H}))};ia.defaultProps={className:void 0,displayKey:void 0,filterBy:void 0,filterKeys:void 0,filterLabel:"Filter",headerCellFormatter:void 0,noDataText:void 0,pagination:ip,rowClassName:void 0,useResponsiveTable:!1},ia.propTypes={pagination:s().object};const Zf=null,qf=null,dp=300,up=d.default.div(({$buttonLeftMargin:e})=>(0,d.css)`
> :not(:last-child) {
margin-right: ${e}px;
}
> * {
display: inline-block;
vertical-align: top;
margin-bottom: 5px;
}
`),pp=d.default.div`
position: absolute;
right: 0;
top: 0;
display: flex;
align-items: center;
min-height: 34px;
padding-right: 3px;
`,mp=d.default.div(({$topMargin:e})=>(0,d.css)`
margin-top: ${e}px;
`),Ep=d.default.input(({$queryWidth:e,$feedbackContainerWidth:t})=>(0,d.css)`
width: ${e}px;
padding-right: ${t!=null?t:12}px;
`),hp=d.default.label`
margin-right: 5px;
`,gp=d.default.div`
display: inline-block;
position: relative;
`,fp=or()(({query:e,onSearch:t,useLoadingState:r,setLoadingState:n,resetLoadingState:a})=>{r?n().then(()=>{t(e,a)}):t(e)},dp),tn=({useLoadingState:e,queryHelpComponent:t,queryWidth:r,focusAfterMount:n,children:a,className:i,placeholder:u,buttonLeftMargin:m,label:E,onReset:f,onSearch:_,wrapperClass:A,topMargin:N,onQueryChange:H,query:B})=>{var K;const[ee,J]=(0,o.useState)(B),[ce,oe]=(0,o.useState)(!1),pe=(0,o.useRef)(void 0);(0,o.useEffect)(()=>{J(B)},[B]);const le=()=>new Promise(Z=>{e&&oe(!0),Z()}),xe=()=>{e&&oe(!1)},Y=()=>{xe(),J(B),typeof H=="function"&&H(B),typeof f=="function"&&f()},V=Z=>{Z.preventDefault(),Z.stopPropagation();const _e=Z.target.value;J(_e),typeof H=="function"&&H(_e),typeof _=="function"&&fp({query:_e,onSearch:_,useLoadingState:e,setLoadingState:le,resetLoadingState:xe})};return o.createElement(mp,{className:`${A} ${i}`,$topMargin:N},o.createElement(up,{$buttonLeftMargin:m},o.createElement("div",{className:"form-group"},E&&o.createElement(hp,{htmlFor:"common-search-form-query-input",className:"control-label"},E),o.createElement(gp,{className:"input-container"},o.createElement(Ep,{id:"common-search-form-query-input",autoFocus:n,onChange:V,value:ee,placeholder:u,type:"text",$queryWidth:r,className:"query form-control",autoComplete:"off",spellCheck:"false",$feedbackContainerWidth:(K=pe.current)==null?void 0:K.scrollWidth}),o.createElement(pp,{ref:pe},ce&&o.createElement(wt.A,{text:""}),ee&&typeof f=="function"&&o.createElement(vr,{name:"close",title:"Reset search",onClick:Y}),t))),a))};tn.propTypes={query:s().string,onQueryChange:s().func,onSearch:s().func,onReset:s().func,label:s().string,className:s().string,placeholder:s().string,wrapperClass:s().string,queryWidth:s().any,topMargin:s().number,buttonLeftMargin:s().number,useLoadingState:s().bool,queryHelpComponent:s().element,children:s().oneOfType([s().arrayOf(s().element),s().element]),focusAfterMount:s().bool},tn.defaultProps={query:"",className:"",onQueryChange:void 0,onSearch:null,onReset:null,label:null,placeholder:"Enter search query...",wrapperClass:"search",queryWidth:400,topMargin:0,buttonLeftMargin:5,useLoadingState:!1,queryHelpComponent:null,children:null,focusAfterMount:!1};const Cp=tn,vp=d.default.span(({theme:e})=>(0,d.css)`
display: flex;
padding: 10px;
background-color: ${e.colors.table.row.background};
&:nth-of-type(even) {
background-color: ${e.colors.table.row.backgroundAlt};
}
`),yp=d.default.div`
flex: 1;
margin-right: 5px;
`,_p=d.default.span`
flex: 2;
`,bp=(0,d.default)(vr)`
flex: 0;
`,on=({item:{name:e,description:t},onDeleteItem:r,item:n})=>{const a=typeof r=="function"?o.createElement(bp,{onClick:()=>r(n),name:"close",title:`Remove ${e}`}):null;return o.createElement(vp,null,o.createElement(yp,null,e),o.createElement(_p,null,t),a)};on.defaultProps={onDeleteItem:void 0},on.propTypes={onDeleteItem:s().func};const Tp=on,ca=[5,10,30],Sp={page:Lo,perPage:ca[0],query:""},Ap=({onLoad:e,overrideList:t,onDeleteItem:r,queryHelper:n,noDataText:a,resultsWrapperComponent:i,overrideItemComponent:u})=>{var m,E;const[f,_]=(0,o.useState)(),[A,N]=(0,o.useState)(Sp);if((0,o.useEffect)(()=>t&&_(t),[t]),(0,o.useEffect)(()=>{let K=!0;return e(A,K).then(ee=>{K&&_(ee)}),()=>{K=!1}},[A,e]),!f)return o.createElement(wt.A,null);const H=o.createElement(Yi,null,a);let B;return f.list&&f.list.size>=1&&(B=f.list.toArray().map(K=>u?o.createElement(u,{key:K.id,onDeleteItem:r,item:K}):o.createElement(Tp,{key:K.id,onDeleteItem:r,item:K}))),o.createElement(aa,{onChange:(K,ee)=>N({...A,page:K,perPage:ee}),pageSize:A.perPage,totalItems:(E=(m=f==null?void 0:f.pagination)==null?void 0:m.total)!=null?E:0,pageSizes:ca,activePage:A.page,useQueryParameter:!1},o.createElement(Cp,{onSearch:K=>N({...A,page:Lo,query:K}),label:"Filter",queryWidth:300,wrapperClass:"has-bm",placeholder:"Enter query to filter",queryHelpComponent:n}),o.createElement(i,{isEmptyResult:!B},B!=null?B:H))};Ap.defaultProps={onDeleteItem:void 0,overrideList:void 0,noDataText:"No items found to display.",queryHelper:void 0,resultsWrapperComponent:({children:e})=>o.createElement("div",null,e),overrideItemComponent:void 0};const eC=null;var Ip=Object.defineProperty,Dp=(e,t,r)=>t in e?Ip(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rp=(e,t,r)=>(Dp(e,typeof t!="symbol"?t+"":t,r),r);class Op extends o.Component{render(){return o.createElement("span",null,Hn.pluralize(this.props.value,this.props.singular,this.props.plural))}}Rp(Op,"propTypes",{singular:s().string.isRequired,plural:s().string.isRequired,value:s().oneOfType([s().number,s().string]).isRequired});const tC=null,da={animated:!1,bsStyle:"info",label:void 0,striped:!1,value:0},ua=e=>(0,d.css)`
box-shadow: ${e} ${({theme:t})=>ao()(t.colors.brand.secondary).alpha(.1).css()};
`,Pp=(0,d.keyframes)`
from {
background-position: 40px 0;
}
to {
background-position: 0 0;
}
`,Lp=(0,d.css)(({$bsStyle:e,theme:t})=>{if(e)return(0,d.css)`
background-color: ${t.colors.variant[e]};
color: ${t.utils.readableColor(t.colors.variant[e])};
`}),xp=d.default.div(({theme:e})=>(0,d.css)`
height: 20px;
margin-bottom: 20px;
overflow: hidden;
background-color: ${e.colors.gray[90]};
border-radius: 4px;
${ua("inset 0 1px 2px")}
display: flex;
align-items: center;
`),Np=d.default.div(({$animated:e,$striped:t,theme:r,value:n})=>{const a=ao()(r.colors.global.contentBackground).alpha(.25).css();return(0,d.css)`
height: 100%;
font-size: ${r.fonts.size.small};
text-align: center;
${ua("inset 0 -1px 0")}
transition: width 500ms ease-in-out;
width: ${n}%;
max-width: 100%;
text-shadow: 0 1px 2px ${ao()(r.colors.gray[10]).alpha(.4).css()}, 2px -1px 3px ${ao()(r.colors.gray[100]).alpha(.5).css()};
${(e||t)&&(0,d.css)`
background-image: linear-gradient(
45deg,
${a} 25%,
transparent 25%,
transparent 50%,
${a} 50%,
${a} 75%,
transparent 75%,
transparent
);
background-size: 40px 40px;
`}
${e&&(0,d.css)`
animation: ${Pp} 2s linear infinite;
`}
${Lp}
`}),pa=({bars:e,className:t})=>o.createElement(xp,{className:t},e.map((r,n)=>{const{label:a,animated:i,bsStyle:u,striped:m,value:E}={...da,...r};return o.createElement(Np,{role:"progressbar","aria-valuenow":E,"aria-valuemin":0,"aria-valuemax":100,"aria-valuetext":a,key:`bar-${n}`,$animated:i,$bsStyle:u,$striped:m,value:E},a)}));pa.propTypes={bars:s().arrayOf(s().shape({animated:s().bool,bsStyle:s().string,label:s().string,striped:s().bool,value:s().number})),className:s().string},pa.defaultProps={bars:[da],className:void 0};const oC=null,ma=({children:e,container:t})=>o.createElement(o.Fragment,null,(0,Vo.createPortal)(e,t));ma.defaultProps={container:document.body};const wp=ma,$p={id:e=>`Id of the ${e}, which is a unique reference.`,title:e=>`Title of the ${e}.`,name:e=>`Name of the ${e}.`,description:e=>`Short description of the ${e}.`,summary:e=>`Long summary of the ${e}.`},Mp=(0,d.default)(C.Button)`
padding: 6px 8px;
`,Ea=(e,t)=>o.createElement("tr",{key:`row-field-${e}`},o.createElement("td",null,e),o.createElement("td",null,t)),Up=o.createElement(o.Fragment,null,o.createElement("p",null,"Find entities with a description containing security:",o.createElement("br",null),o.createElement("code",null,"description:security"),o.createElement("br",null)),o.createElement("p",null,"Find a entities with the id 5f4dfb9c69be46153b9a9a7b:",o.createElement("br",null),o.createElement("code",null,"id:5f4dfb9c69be46153b9a9a7b"),o.createElement("br",null))),Fp=(e,t,r,n)=>o.createElement(o.Fragment,null,o.createElement("p",null,o.createElement("strong",null,"Available search fields")),o.createElement(C.Table,{condensed:!0},o.createElement("thead",null,o.createElement("tr",null,o.createElement("th",null,"Field"),o.createElement("th",null,"Description"))),o.createElement("tbody",null,e.map(a=>Ea(a,$p[a](n))),Object.keys(t).map(a=>Ea(a,t[a])))),o.createElement("p",null,o.createElement("strong",null,"Examples")),r||Up),Bp=({commonFields:e,fieldMap:t,example:r,entityName:n})=>o.createElement(sr.A,{trigger:"click",rootClose:!0,placement:"right",overlay:Fp(e,t,r,n),title:"Search Syntax Help",width:500},o.createElement(Mp,{bsStyle:"link"},o.createElement(Ie.A,{name:"help"})));Bp.defaultProps={commonFields:["id","title","description"],fieldMap:{},example:void 0,entityName:"entity"};const rC=null;var rn=l("ApKkJKuH"),nC=l("3QlCa1ps"),sC=l("NOzOyt6M"),aC=l("+yMRtROX"),lC=l("8FiOsj1x"),iC=l("kgwXBAoN");class xo{constructor(t,r,n,a){this._value={col:t,row:r,height:n,width:a}}static fromJSON(t){const{col:r,row:n,height:a,width:i}=t,u=r==="Infinity"?1/0:r,m=n==="Infinity"?1/0:n,E=a==="Infinity"?1/0:a,f=i==="Infinity"?1/0:i;return new xo(u,m,E,f)}get col(){return this._value.col}get row(){return this._value.row}get height(){return this._value.height}get width(){return this._value.width}toJSON(){const{col:t,row:r,height:n,width:a}=this._value;return{col:t===1/0?"Infinity":t,row:r===1/0?"Infinity":r,height:n===1/0?"Infinity":n,width:a===1/0?"Infinity":a}}toBuilder(){return new ha((0,Le.Map)(this._value))}static builder(){return new ha}equals(t){return t instanceof xo?this.col===t.col&&this.row===t.row&&this.height===t.height&&this.width===t.width:!1}}class ha{constructor(t=(0,Le.Map)()){this.value=t}col(t){return this.value=this.value.set("col",t),this}row(t){return this.value=this.value.set("row",t),this}height(t){return this.value=this.value.set("height",t),this}width(t){return this.value=this.value.set("width",t),this}build(){const{col:t,row:r,height:n,width:a}=this.value.toObject();return new xo(t,r,n,a)}}const cC=(0,Pe.Gr)("views.logic.widgets.WidgetPosition",()=>xo),dC=null,kp=({i:e,x:t,y:r,w:n,h:a})=>({id:e,col:t+1,row:r+1,height:a,width:n}),ga=e=>e.map(kp),Wp=([e,t])=>{const{col:r,row:n,height:a,width:i}=t;return{i:e,x:r?Math.max(r-1,0):0,y:n===void 0||n<=0?1/0:n-1,h:a||1,w:i||1}},fa=e=>Object.entries(e).map(Wp),uC=(e,t)=>{const r=omitBy(e,(u,m)=>!t[m]),n=fa(r),a=utils.compact(n,"vertical",12),i=keyBy(ga(a),"id");return mapValues(i,({col:u,row:m,width:E,height:f})=>WidgetPosition.builder().row(m).col(u).width(E).height(f).build())},Gp=(0,rn.WidthProvider)(rn.Responsive),nn=e=>{const{width:t}=e;return t?o.createElement(rn.Responsive,{...e}):o.createElement(Gp,{...e})};nn.propTypes={width:s().number},nn.defaultProps={width:void 0};const Hp=(0,d.default)(nn)(({theme:e})=>(0,d.css)`
&.locked {
.widget-drag-handle {
display: none;
}
}
&.unlocked {
.react-draggable {
cursor: move;
}
}
.react-grid-item.react-grid-placeholder {
background: ${e.colors.variant.info};
}
.actions {
cursor: default;
}
`),io=175,Kp=100,jt={xxl:12,xl:10,lg:8,md:6,sm:4,xs:2},zp={xxl:io*jt.xxl,xl:io*jt.xl,lg:io*jt.lg,md:io*jt.md,sm:io*jt.sm,xs:io*jt.xs},Vp=(e,t,r,n)=>{const a=`${n}`;return e||!t?`${a} locked`:r?a:`${a} unlocked`},Ca=(e,t)=>{if(typeof t!="function")return;const r=ga(e.filter(({i:n})=>!n.startsWith("gap")));return t(r)},va=e=>{const t=[];e.forEach((r,n)=>{r.i.startsWith("gap")&&t.push(n)}),t.reverse().forEach(r=>e.splice(r,1))},ya=({children:e,className:t,columns:r,draggableHandle:n,isResizable:a,locked:i,measureBeforeMount:u,onPositionsChange:m,onSyncLayout:E,positions:f,rowHeight:_,width:A})=>{const H=(0,d.useTheme)().spacings.px.xs,B=(0,o.useCallback)(ce=>Ca(ce,m),[m]),K=(0,o.useCallback)(ce=>Ca(ce,E),[E]),ee=Vp(i,a,n,t),J=(0,o.useMemo)(()=>fa(f),[f]);return o.createElement(Hp,{className:ee,width:A,breakpoints:zp,cols:r,layouts:{xxl:J,xl:J,lg:J,md:J,sm:J,xs:J},rowHeight:_,containerPadding:[0,0],margin:[H,H],isResizable:!i&&a,isDraggable:!i,measureBeforeMount:u,draggableCancel:".actions",onDragStart:va,onDragStop:B,onResizeStart:va,onResizeStop:B,onLayoutChange:K,useCSSTransforms:!1,draggableHandle:i?"":n},e)};ya.propTypes={children:s().node.isRequired,className:s().string,onPositionsChange:s().func.isRequired,positions:s().object.isRequired,locked:s().bool,isResizable:s().bool,rowHeight:s().number,columns:s().object,draggableHandle:s().string,measureBeforeMount:s().bool,width:s().number},ya.defaultProps={className:void 0,columns:jt,isResizable:!0,locked:!1,measureBeforeMount:!1,rowHeight:Kp,draggableHandle:void 0,width:void 0,onSyncLayout:void 0};const pC=null,jp=(0,d.default)(C.Row)`
&:not(:last-child) {
margin-bottom: 7px;
}
`,Yp=(0,d.default)(C.Col)(({theme:e})=>(0,d.css)`
font-weight: bold;
@media (min-width: ${e.breakpoints.min.md}) {
text-align: right;
}
`),Jp=(0,d.default)(Ie.A)(({theme:e,value:t})=>(0,d.css)`
color: ${t?e.colors.variant.success:e.colors.variant.danger};
`),Qp=({value:e})=>o.createElement(o.Fragment,null,o.createElement(Jp,{name:e?"check_circle":"cancel",value:e})," ",e?"yes":"no"),Xp=e=>typeof e=="boolean"?o.createElement(Qp,{value:e}):e||"-",Zp=({label:e,value:t,help:r,className:n})=>o.createElement(jp,{className:n},o.createElement(Yp,{sm:3},e),o.createElement(C.Col,{sm:9,className:"read-only-value-col"},Xp(t),r&&o.createElement(C.HelpBlock,null,r)));Zp.defaultProps={help:void 0,className:void 0};const mC=null,sn=({dateTime:e})=>{const t=e!=null?e:new Date,r=Xt(t),n=je(t,"internal");return o.createElement("time",{dateTime:n,title:n},r)};sn.propTypes={dateTime:s().oneOfType([s().string,s().object,s().number])},sn.defaultProps={dateTime:void 0};const qp=sn;var em=Object.defineProperty,tm=(e,t,r)=>t in e?em(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,No=(e,t,r)=>(tm(e,typeof t!="symbol"?t+"":t,r),r);const om=d.default.button(({theme:e})=>(0,d.css)`
opacity: 0.3;
background-color: ${e.colors.variant.primary};
width: 40px;
height: 40px;
position: fixed;
bottom: 60px;
right: 20px;
border-radius: 5px;
border: none;
&:hover {
opacity: 1;
}
&.middle {
right: 35%;
}
`),rm=(0,d.default)(Ie.A)(({theme:e})=>(0,d.css)`
color: ${e.utils.readableColor(e.colors.variant.primary)};
position: absolute;
top: 50%;
left: 50%;
margin-top: -9px;
margin-left: -5px;
`);class _a extends o.Component{constructor(){super(),No(this,"showButton",()=>{this.setState({hideButton:window.scrollY===0})}),No(this,"scrollStep",()=>{const{intervalId:t}=this.state,{scrollSteps:r}=this.props;window.pageYOffset===0&&clearInterval(t),window.scroll(0,window.pageYOffset-r)}),No(this,"scrollToTop",()=>{const{delay:t}=this.props,r=setInterval(this.scrollStep.bind(this),t);this.setState({intervalId:r})}),this.state={intervalId:0,hideButton:!0}}componentDidMount(){window.addEventListener("scroll",this.showButton)}componentWillUnmount(){window.removeEventListener("scroll",this.showButton)}render(){const{position:t}=this.props,{hideButton:r}=this.state;return r?o.createElement("span",null):o.createElement(om,{title:"Back to top",type:"button",className:t,onClick:this.scrollToTop},o.createElement(rm,{name:"expand_less"}))}}No(_a,"propTypes",{delay:s().number,scrollSteps:s().number,position:s().string}),No(_a,"defaultProps",{delay:5,scrollSteps:50,position:""});const EC=null;var nm=l("EeemBwNM"),sm=l.n(nm),am=l("YHdXwNS6"),lm=l.n(am),im=l("c59+uKGP"),cm=l.n(im),ar=l("ylPxorvM"),co={};co.styleTagTransform=Zo(),co.setAttributes=Qo(),co.insert=Jo().bind(null,"head"),co.domAPI=Yo(),co.insertStyleElement=Xo();var hC=jo()(ar.A,co);const ba=ar.A&&ar.A.locals?ar.A.locals:void 0;var dm=Object.defineProperty,um=(e,t,r)=>t in e?dm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,It=(e,t,r)=>(um(e,typeof t!="symbol"?t+"":t,r),r);class Ta extends o.Component{constructor(t){super(t),It(this,"handleSelectionChange",r=>{const{onItemSelect:n}=this.props;this.setState({selectedItems:r}),n(r,()=>this.overlay.hide())}),It(this,"clearItemSelection",()=>{this.handleSelectionChange([])}),It(this,"handleItemSelection",r=>()=>{const{multiple:n}=this.props,{selectedItems:a}=this.state;let i;n?i=a.includes(r)?lm()(a,r):sm()(a,r):i=[r],this.handleSelectionChange(i)}),It(this,"filterData",(r,n)=>{const a=n.filter(i=>i.match(new RegExp(r,"i")));this.setState({filterText:r,filteredItems:a})}),It(this,"handleFilterChange",r=>n=>{const a=n.target.value.trim();this.filterData(a,r)}),It(this,"renderDataFilter",r=>{const{filterPlaceholder:n}=this.props,{filterText:a}=this.state;return o.createElement(C.FormGroup,{controlId:"dataFilterInput",className:ba.dataFilterInput},o.createElement(C.FormControl,{type:"text",placeholder:n,value:a,onChange:this.handleFilterChange(r)}))}),It(this,"renderClearSelectionItem",()=>{const{clearSelectionText:r}=this.props;return o.createElement(C.ListGroupItem,{onClick:this.clearItemSelection},o.createElement(Ie.A,{name:"close",className:"text-danger"})," ",r)}),this.state={filterText:"",filteredItems:t.items,selectedItems:t.selectedItems}}UNSAFE_componentWillReceiveProps(t){const{items:r,selectedItems:n}=this.props,{filterText:a}=this.state;zo()(n,t.selectedItems)||this.setState({selectedItems:t.selectedItems}),r!==t.items&&this.filterData(a,t.items)}render(){const{displayDataFilter:t,itemFormatter:r,items:n,placement:a,triggerAction:i,triggerNode:u,disabled:m,title:E}=this.props,{filteredItems:f,selectedItems:_}=this.state,A=o.createElement(o.Fragment,null,t&&this.renderDataFilter(n),_.length>0&&this.renderClearSelectionItem(),o.createElement(cm(),{className:ba.scrollableList},o.createElement(C.ListGroup,null,f.map(N=>o.createElement(C.ListGroupItem,{key:N,onClick:m?()=>{}:this.handleItemSelection(N),active:_.includes(N),disabled:m},r(N))))));return o.createElement(sr.A,{ref:N=>{this.overlay=N},trigger:i,placement:a,overlay:A,title:E,rootClose:!0},u)}}It(Ta,"propTypes",{id:s().string.isRequired,placement:s().oneOf(["top","right","bottom","left"]),title:s().string.isRequired,triggerNode:s().node.isRequired,triggerAction:s().oneOf(["click","hover","focus"]),items:s().arrayOf(s().string),itemFormatter:s().func,multiple:s().bool,selectedItems:s().arrayOf(s().string),onItemSelect:s().func.isRequired,displayDataFilter:s().bool,filterPlaceholder:s().string,clearSelectionText:s().string,disabled:s().bool}),It(Ta,"defaultProps",{placement:"bottom",triggerAction:"click",items:[],itemFormatter:e=>e,multiple:!1,selectedItems:[],displayDataFilter:!0,filterPlaceholder:"Type to filter",clearSelectionText:"Clear selection",disabled:!1});const gC=null;var pm=Object.defineProperty,mm=(e,t,r)=>t in e?pm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uo=(e,t,r)=>(mm(e,typeof t!="symbol"?t+"":t,r),r);const Em=(0,d.default)(C.ListGroupItem)`
display: flex;
justify-content: space-between;
`;class Sa extends o.Component{constructor(){super(...arguments),uo(this,"_getOptionId",t=>typeof t=="string"?t:t[this.props.idKey]),uo(this,"_getOptionDisplayValue",t=>typeof t=="string"?t:t[this.props.displayKey]),uo(this,"_onAddOption",t=>{if(t==="")return;const r=this.props.selectedOptions.slice();this.props.selectedOptionsType==="string"?r.push(t):r.push(this.props.options.filter(n=>this._getOptionId(n)===t)[0]),typeof this.props.onChange=="function"&&this.props.onChange(r)}),uo(this,"_onRemoveOption",t=>()=>{const r=this.props.selectedOptions.filter((n,a)=>a!==t);typeof this.props.onChange=="function"&&this.props.onChange(r)})}UNSAFE_componentWillReceiveProps(t){this.props.selectedOptions!==t.selectedOptions&&this.select.clearValue()}render(){const t=this.props.selectedOptions.map((r,n)=>o.createElement(Em,{key:`${this._getOptionId(r)}-${n}`},o.createElement("div",null,this._getOptionDisplayValue(r)),o.createElement(C.Button,{bsStyle:"danger",bsSize:"xsmall",onClick:this._onRemoveOption(n)},"Remove")));return o.createElement("div",null,o.createElement(mt.A,{ref:r=>{this.select=r},autoFocus:this.props.autoFocus,options:this.props.options,onChange:this._onAddOption,clearable:!1}),t.length>0&&o.createElement(C.ListGroup,{style:{marginTop:10}},t))}}uo(Sa,"propTypes",{options:s().array,selectedOptionsType:s().oneOf(["string","object"]),selectedOptions:s().arrayOf(s().oneOfType([s().string,s().object])),displayKey:s().string,idKey:s().string,onChange:s().func,autoFocus:s().bool}),uo(Sa,"defaultProps",{autoFocus:void 0,displayKey:"label",idKey:"value",onChange:void 0,options:void 0,selectedOptions:void 0,selectedOptionsType:"string"});const fC=null,Aa=({type:e,description:t})=>{const r=n=>n.replaceAll("_"," ");return o.createElement(_s,{title:"Sharing not possible",pullRight:!1},t||`Only owners of this ${r(e)} are allowed to share it.`)};Aa.defaultProps={description:void 0};const hm=Aa,gm=({bsStyle:e,bsSize:t,entityId:r,entityType:n,onClick:a,disabledInfo:i})=>o.createElement(Pc,{id:r,type:n},({disabled:u})=>o.createElement(er.A,{bsStyle:e,bsSize:t,onClick:a,disabled:!!i||u,title:"Share"},o.createElement(Ie.A,{name:"person_add"})," Share ",(!!i||u)&&o.createElement(hm,{type:n,description:i})));gm.defaultProps={bsStyle:"default",disabledInfo:void 0,bsSize:void 0};const CC=null;var an=l("Nr7WAlY+");const fm=(0,d.default)(C.ListGroupItem)(({$alignItemContent:e})=>(0,d.css)`
display: flex;
align-items: ${e};
`),Cm=d.default.div`
margin-right: 5px;
`,Ia=(0,o.forwardRef)(({alignItemContent:e,item:t,index:r,className:n,customListItemRender:a,customContentRender:i,disableDragging:u,draggableProps:m,dragHandleProps:E},f)=>{const _=i?i({item:t,index:r}):t.title;return a?o.createElement(o.Fragment,null,a({className:n,disableDragging:u,draggableProps:m,dragHandleProps:E,index:r,item:t,ref:f})):o.createElement(fm,{$alignItemContent:e,ref:f,className:n,containerProps:{...m}},!u&&o.createElement(Cm,{...E,"data-testid":`sortable-item-${t.id}`},o.createElement(Ie.A,{name:"drag_indicator"})),_)});Ia.defaultProps={alignItemContent:"flex-start",className:void 0,disableDragging:!1,customListItemRender:void 0,customContentRender:void 0};const vm=Ia,ym=(0,d.default)(vm)(({$isDragging:e})=>(0,d.css)`
box-shadow: ${e?"rgba(0, 0, 0, 0.24) 0px 3px 8px":"none"};
`),Da=({alignItemContent:e,className:t,customContentRender:r,customListItemRender:n,disableDragging:a,displayOverlayInPortal:i,index:u,item:m})=>o.createElement(an.sx,{draggableId:m.id,index:u},({draggableProps:E,dragHandleProps:f,innerRef:_},{isDragging:A})=>{const N=o.createElement(ym,{alignItemContent:e,item:m,index:u,className:t,ref:_,customContentRender:r,customListItemRender:n,disableDragging:a,displayOverlayInPortal:i,draggableProps:E,dragHandleProps:f,$isDragging:A});return i&&A?o.createElement(wp,null,N):N});Da.defaultProps={alignItemContent:void 0,className:void 0,customContentRender:void 0,customListItemRender:void 0,disableDragging:!1};const _m=Da,Ra=({alignItemContent:e,customContentRender:t,customListItemRender:r,disableDragging:n,displayOverlayInPortal:a,items:i=[]})=>o.createElement(o.Fragment,null,i.map((u,m)=>o.createElement(_m,{alignItemContent:e,item:u,index:m,key:u.id,customContentRender:t,customListItemRender:r,disableDragging:n,displayOverlayInPortal:a})));Ra.defaultProps={displayOverlayInPortal:!1,alignItemContent:void 0,disableDragging:!1,customContentRender:void 0,customListItemRender:void 0};const bm=o.memo(Ra),Tm=(e,t,r)=>{const n=Array.from(e),[a]=n.splice(t,1);return n.splice(r,0,a),n},Oa=({alignItemContent:e,customContentRender:t,customListItemRender:r,disableDragging:n,displayOverlayInPortal:a,items:i,onMoveItem:u})=>{const m=(0,o.useCallback)(E=>{if(E.destination&&E.source.index!==E.destination.index){const f=Tm(i,E.source.index,E.destination.index);u(f,E.source.index,E.destination.index)}},[i,u]);return o.createElement(an.JY,{onDragEnd:m},o.createElement(an.gL,{droppableId:"droppable"},({droppableProps:E,innerRef:f,placeholder:_})=>o.createElement("div",{...E,ref:f},o.createElement(bm,{alignItemContent:e,items:i,disableDragging:n,displayOverlayInPortal:a,customContentRender:t,customListItemRender:r}),_)))};Oa.propTypes={disableDragging:s().bool,items:s().arrayOf(s().object),onMoveItem:s().func.isRequired,customContentRender:s().func,customListItemRender:s().func},Oa.defaultProps={alignItemContent:void 0,items:[],disableDragging:!1,displayOverlayInPortal:!1,customContentRender:void 0,customListItemRender:void 0};const vC=null,yC=null;var Sm=l("D4SbLiE/"),Pa=l.n(Sm);const _C=Pa()({displayName:"TimeUnit",propTypes:{value:s().number.isRequired,unit:s().oneOf(["NANOSECONDS","MICROSECONDS","MILLISECONDS","SECONDS","MINUTES","HOURS","DAYS"]).isRequired,zeroIsNever:s().bool},getDefaultProps(){return{zeroIsNever:!0}},UNITS:{NANOSECONDS:"nanoseconds",MICROSECONDS:"microseconds",MILLISECONDS:"milliseconds",SECONDS:"seconds",MINUTES:"minutes",HOURS:"hours",DAYS:"days"},render(){return this.props.value===0&&this.props.zeroIsNever?o.createElement("span",null,"Never"):o.createElement("span",null,this.props.value,"\xA0",this.UNITS[this.props.unit])}}),bC=null;var Am=l("M09juI6U"),Dt=l.n(Am),Im=l("p60vwpDe"),La=l.n(Im),Dm=l("FWpQ+Wjd"),Rm=l.n(Dm),Om=l("Ept3tno1"),wo=l.n(Om);const Pm={JAVA_INTEGER_MIN_VALUE:2**31*-1,JAVA_INTEGER_MAX_VALUE:2**31-1,normalizeNumber(e){switch(e){case"NaN":return NaN;case"Infinity":return Number.MAX_VALUE;case"-Infinity":return Number.MIN_VALUE;default:return e}},normalizeGraphNumber(e){switch(e){case"NaN":case"Infinity":case"-Infinity":return 0;default:return e}},formatNumber(e){try{return wo()(this.normalizeNumber(e)).format("0,0.[00]")}catch{return e}},formatPercentage(e){try{return wo()(this.normalizeNumber(e)).format("0.00%")}catch{return e}},formatBytes(e){wo().zeroFormat("0B");let t;try{t=wo()(this.normalizeNumber(e)).format("0.0ib")}catch{t=e}return wo().zeroFormat(null),t},isNumber(e){return e!==""&&!Number.isNaN(Number(e))}},Lm=e=>{const t={bubbles:!0,cancelable:!0};if(typeof Event=="function")return new Event(e,t);const r=document.createEvent("Event");return r.initEvent(e,t.bubbles,t.cancelable),r},po=e=>{switch(e.type){case"radio":return e.value==="true"||e.value==="false"?e.value==="true":e.value;case"checkbox":return e.checked;case"number":return e.value===""||!Pm.isNumber(e.value)?void 0:Number(e.value);default:return e.value}},xa=e=>{const t=e._valueTracker,r=Lm("change");r.simulated=!0,t&&t.setValue(""),e.dispatchEvent(r)},xm=(e={})=>Object.keys(e).length>0,Nm=(e,t,r)=>{switch(t){case"required":if(!e||(e==null?void 0:e.size)===0)return"Field is required.";break;case"min":if(eNumber(r))return`Must be smaller than ${r}.`;break;default:return}},wm={getValueFromInput:po,triggerInput:xa,formHasErrors:xm,validateField:(e={})=>t=>{let r;return Object.entries(e).some(([n,a])=>{const i=Nm(t,n,a);return i?(r=i,!0):!1}),r}},Na=["NANOSECONDS","MICROSECONDS","MILLISECONDS","SECONDS","MINUTES","HOURS","DAYS","MONTHS","YEARS"],$m=["NANOSECONDS","MICROSECONDS","MILLISECONDS","SECONDS","MINUTES","HOURS","DAYS"],wa=s().oneOf(Na),Mm=(0,d.default)(C.InputGroup)`
display: flex;
`,Um=(0,d.default)(C.InputGroup.Addon)`
display: flex;
justify-content: center;
align-items: center;
`,$o=(e,t)=>{if(e===void 0)return{duration:1,unit:La()(t)};const r=Io().duration(e),n=t.find(i=>{const u=r.as(i);return Rm()(u)&&u!==0})||La()(t);return{duration:r.as(n),unit:n}},ln=Pa()({displayName:"TimeUnitInput",propTypes:{update:s().func.isRequired,label:s().string,help:s().string,required:s().bool,enabled:s().bool,defaultEnabled:s().bool,value:s().number,defaultValue:s().number,unit:wa,units:s().arrayOf(wa),labelClassName:s().string,wrapperClassName:s().string,hideCheckbox:s().bool,pullRight:s().bool,clearable:s().bool,name:s().string,unitName:s().string},getDefaultProps(){return{defaultValue:1,value:void 0,unit:"SECONDS",units:$m,label:"",help:"",name:null,unitName:null,required:!1,enabled:void 0,defaultEnabled:!1,labelClassName:void 0,wrapperClassName:void 0,hideCheckbox:!1,pullRight:!1,clearable:!1}},getInitialState(){const{defaultEnabled:e,enabled:t,units:r}=this.props;return{enabled:Dt()(t,e),unitOptions:this._getUnitOptions(r)}},UNSAFE_componentWillReceiveProps(e){const{units:t}=this.props;zo()(t,e.units)||this.setState({unitOptions:this._getUnitOptions(e.units)})},_getEffectiveValue(){const{defaultValue:e,value:t,clearable:r}=this.props;return r?t:Dt()(t,e)},_getUnitOptions(e){return Na.filter(t=>e.includes(t)).map(t=>({value:t,label:t.toLowerCase()}))},_isChecked(){const{required:e,enabled:t}=this.props;if(e)return e;const{enabled:r}=this.state;return Dt()(t,r)},_propagateInput(e){const{update:t,unit:r}=this.props,a={...{value:this._getEffectiveValue(),unit:r,checked:this._isChecked()},...e};t(a.value,a.unit,a.checked)},_onToggleEnable(e){const t=e.target.checked;this.setState({enabled:t}),this._propagateInput({checked:t})},_onUpdate(e){const{defaultValue:t,clearable:r}=this.props;let n;r?n=po(e.target):n=Dt()(po(e.target),t),this._propagateInput({value:n})},_onUnitSelect(e){this._propagateInput({unit:e})},render(){const{unitOptions:e}=this.state,{label:t,wrapperClassName:r,help:n,labelClassName:a,unit:i,required:u,hideCheckbox:m,pullRight:E}=this.props,f=e.map(A=>o.createElement(C.MenuItem,{key:A.value,onSelect:()=>this._onUnitSelect(A.value),active:i===A.value},A.label)),_=o.createElement(Um,null,o.createElement("input",{type:"checkbox",checked:this._isChecked(),onChange:this._onToggleEnable,title:"Toggle time"}));return o.createElement(C.FormGroup,null,t&&o.createElement(C.ControlLabel,{className:a},t),o.createElement(C.InputWrapper,{className:r},o.createElement(Mm,null,!u&&!m&&_,o.createElement(C.FormControl,{type:"number",name:this.props.name,disabled:!this._isChecked(),"aria-label":t||"Time unit input",onChange:this._onUpdate,value:Dt()(this._getEffectiveValue(),"")}),o.createElement(C.DropdownButton,{componentClass:C.InputGroup.Button,id:"input-dropdown-addon",name:this.props.unitName,pullRight:E,title:e.filter(A=>A.value===i)[0].label,disabled:!this._isChecked()},f)),n&&o.createElement(C.HelpBlock,null,n)))}}),Fm=o.createContext(void 0),Bm=(0,Pe.Gr)("contexts.UserDateTimeContext",()=>Fm),cn=()=>{const e=(0,o.useContext)(Bm);if(!e)throw new Error("useUserDateTime hook needs to be used inside UserDateTimeContext.Provider");return e},dn=({dateTime:e,field:t,format:r,render:n,tz:a,className:i})=>{const{formatTime:u}=cn();if(!e)return o.createElement(o.Fragment,null);const m=a?je(e,r,a):u(e,r),E=je(e,"internal");return o.createElement("time",{dateTime:E,title:E,className:i},o.createElement(n,{value:m,field:t}))};dn.propTypes={dateTime:s().oneOfType([s().string,s().object,s().number]),format:s().string,field:s().string,tz:s().string,render:s().func},dn.defaultProps={dateTime:void 0,field:void 0,format:"default",render:({value:e})=>e,tz:void 0,className:void 0};const km=dn;var Wm=Object.defineProperty,Gm=(e,t,r)=>t in e?Wm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,mo=(e,t,r)=>(Gm(e,typeof t!="symbol"?t+"":t,r),r);class $a extends o.Component{constructor(){super(...arguments),mo(this,"_UNCLASSIFIED_AREA","Unclassified"),mo(this,"getValue",()=>this.timezone.getValue()),mo(this,"_formatTimezones",()=>{const t={};Ce().tz.names().forEach(n=>{const a=n.split("/"),i=a.length>1?a[0]:this._UNCLASSIFIED_AREA,u=a.length>1?a[1]:a[0];t[i]||(t[i]=[]),t[i].push(u)});const r=[];return Object.keys(t).sort().forEach(n=>{r.push({label:n,disabled:!0,value:n});const i=zn()(t[n]).sort().map(u=>({value:n===this._UNCLASSIFIED_AREA?u:`${n}/${u}`,label:u.replace("_"," ")}));r.push(...i)}),r}),mo(this,"_renderOption",t=>t.disabled?o.createElement("span",{key:t.value,title:t.value},t.label):o.createElement("span",{key:t.value,title:t.value},"\xA0 ",t.label))}render(){const t=this._formatTimezones(),{onChange:r,...n}=this.props;return o.createElement(mt.A,{ref:a=>{this.timezone=a},...n,inputId:"timezone-select",onChange:r,placeholder:"Pick a time zone",options:t,optionRenderer:this._renderOption})}}mo($a,"propTypes",{onChange:s().func}),mo($a,"defaultProps",{onChange:()=>{}});const RC=null;var OC=l("rM71Gv2q"),Hm=Object.defineProperty,Km=(e,t,r)=>t in e?Hm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,un=(e,t,r)=>(Km(e,typeof t!="symbol"?t+"":t,r),r);class Ma extends o.Component{constructor(){super(...arguments),un(this,"_getFilteredProps",()=>{let t=Dr().fromJS(this.props);return["valueLink","onChange"].forEach(r=>{t.has(r)&&(t=t.delete(r))}),t.toJS()})}componentDidMount(){if(this.fieldInput){const{autoFocus:t,valueLink:r,onChange:n}=this.props,a=Ye()(this.fieldInput.getInputDOMNode());(0,j.Ay)("GET",(0,X.H3)(ye.A.SystemApiController.fields().url)).then(u=>{a.typeahead({hint:!0,highlight:!0,minLength:1},{name:"fields",displayKey:"value",source:qn.substringMatcher(u.fields,"value",6)}),t&&(a.focus(),a.typeahead("close"))});const i=Vo.findDOMNode(this.fieldInput);Ye()(i).on("typeahead:change typeahead:selected",u=>{n&&n(u),r&&r.requestChange(u.target.value)})}}componentWillUnmount(){if(this.fieldInput){Ye()(this.fieldInput.getInputDOMNode()).typeahead("destroy");const r=Vo.findDOMNode(this.fieldInput);Ye()(r).off("typeahead:change typeahead:selected")}}render(){const{id:t,label:r,valueLink:n,error:a,onBlur:i}=this.props;return o.createElement(C.Input,{id:t,ref:u=>{this.fieldInput=u},label:r,onBlur:i,error:a,wrapperClassName:"typeahead-wrapper",defaultValue:n?n.value:null,...this._getFilteredProps()})}}un(Ma,"propTypes",{id:s().string.isRequired,valueLink:s().object,label:s().string,autoFocus:s().bool,onChange:s().func,onBlur:s().func,error:s().string}),un(Ma,"defaultProps",{valueLink:void 0,autoFocus:!1,label:void 0,onChange:()=>{},onBlur:()=>{},error:void 0});const PC=null;var zm=l("jdU8EhS8"),Vm=l("iG1AjSQm"),Mo=l.n(Vm),jm=l("PHWUskn4"),Ym=l.n(jm),lr=l("A2KAXP9g"),Jm=l("EJi6viJm"),pn=l.n(Jm),ir=l("466uocAC"),Eo={};Eo.styleTagTransform=Zo(),Eo.setAttributes=Qo(),Eo.insert=Jo().bind(null,"head"),Eo.domAPI=Yo(),Eo.insertStyleElement=Xo();var LC=jo()(ir.A,Eo);const xC=ir.A&&ir.A.locals?ir.A.locals:void 0,mn={debug:!1,positionClass:"toast-bottom-full-width",onclick:null,showDuration:300,hideDuration:1e3,timeOut:7e3,extendedTimeOut:1e3,escapeHtml:!0,closeButton:!0,closeHtml:"",progressBar:!0,preventDuplicates:!0},de={error(e,t){pn().error(e,t||"Error",{...mn,timeOut:1e4})},warning(e,t){pn().warning(e,t||"Attention",mn)},success(e,t){pn().success(e,t||"Information",mn)}},En={testNaturalDate(e,t){const{url:r}=ye.A.ToolsApiController.naturalDateTest(encodeURIComponent(e),encodeURIComponent(t)),n=(0,j.Ay)("GET",(0,X.H3)(r));return n.catch(a=>{a.additional.status!==422&&de.error(`Loading keyword preview failed with status: ${a}`,"Could not load keyword preview")}),n},testGrok(e,t,r){const{url:n}=ye.A.ToolsApiController.grokTest(),a=(0,j.Ay)("POST",(0,X.H3)(n),{pattern:e,string:r,named_captures_only:t});return a.catch(i=>{de.error(`Details: ${i}`,"We were not able to run the grok extraction. Please check your parameters.")}),a},testJSON(e,t,r,n,a,i,u,m){const{url:E}=ye.A.ToolsApiController.jsonTest(),f={flatten:e,list_separator:t,key_separator:r,kv_separator:n,replace_key_whitespace:a,key_whitespace_replacement:i,key_prefix:u,string:m},_=(0,j.Ay)("POST",(0,X.H3)(E),f);return _.catch(A=>{de.error(`Details: ${A}`,"We were not able to run the JSON extraction. Please check your parameters.")}),_},testRegexValidity(e){const t=Mt().encode(e),{url:r}=ye.A.ToolsApiController.regexValidate(t),n=(0,j.Ay)("GET",(0,X.H3)(r));return n.catch(a=>{de.error(`Details: ${a}`,"Could not validate regular expression. Make sure that it is valid.")}),n},urlWhiteListCheck(e){const{url:t}=ye.A.ToolsApiController.urlWhitelistCheck(),r=(0,j.Ay)("POST",(0,X.H3)(t),{url:e});return r.catch(n=>{de.error(`Details: ${n}`,"Could not verify if the url is in the whitelist.")}),r},urlWhiteListGenerateRegex(e,t){const{url:r}=ye.A.ToolsApiController.urlWhitelistGenerateRegex(),n=(0,j.Ay)("POST",(0,X.H3)(r),{url_template:e,placeholder:t});return n.catch(a=>{de.error(`Details: ${a}`,"Could not generate regex.")}),n},testRegex(e,t){const{url:r}=ye.A.ToolsApiController.regexTest(),n=(0,j.Ay)("POST",(0,X.H3)(r),{regex:e,string:t});return n.catch(a=>{de.error(`Details: ${a}`,"Could not try regular expression. Make sure that it is valid.")}),n},testRegexReplace(e,t,r,n){const{url:a}=ye.A.ToolsApiController.regexReplaceTest(),i={regex:e,replacement:t,replace_all:r,string:n},u=(0,j.Ay)("POST",(0,X.H3)(a),i);return u.catch(m=>{de.error(`Details: ${m}`,"Could not try regular expression. Make sure that it is valid.")}),u},testSplitAndIndex(e,t,r){const{url:n}=ye.A.ToolsApiController.splitAndIndexTest(),a={split_by:e,index:t,string:r},i=(0,j.Ay)("POST",(0,X.H3)(n),a);return i.catch(u=>{de.error(`Details: ${u}`,"We were not able to run the split and index extraction. Please check your parameters.")}),i},testSubstring(e,t,r){const{url:n}=ye.A.ToolsApiController.substringTest(),a={start:e,end:t,string:r},i=(0,j.Ay)("POST",(0,X.H3)(n),a);return i.catch(u=>{de.error(`Details: ${u}`,"We were not able to run the substring extraction. Please check index boundaries.")}),i},testContainsString(e,t){const{url:r}=ye.A.ToolsApiController.containsStringTest(),n=(0,j.Ay)("POST",(0,X.H3)(r),{search_string:e,string:t});return n.catch(a=>{de.error(`Details: ${a}`,"Could not check if field contains the string")}),n},testLookupTable(e,t){const{url:r}=ye.A.ToolsApiController.lookupTableTest(),n=(0,j.Ay)("POST",(0,X.H3)(r),{lookup_table_name:e,string:t});return n.catch(a=>{de.error(`Details: ${a}`,"Could not check if lookup table translates the string")}),n}};var hn=l("0miigXwP");const ho=()=>(0,hn.A)(),Qm=(0,d.default)(C.Table)`
margin-top: 10px;
`,Ua=async(e,t,r)=>{const n={title:{valid:!1},value:{valid:!1}};n.title=t.title.trim().length<=0?{valid:!1}:{valid:!0};let a={valid:!1};return t.type==="literal"?a=(0,X.Gz)(t.value)?{valid:!0}:{valid:!1}:t.type==="regex"&&t.value.trim().length>0&&(a=(await En.testRegexValidity(t.value)).is_valid?{valid:!0}:{valid:!1}),n.value=a,typeof r=="function"&&r(e,t,n),n},Xm=or()(Ua,200),gn=({urls:e,onUpdate:t,disabled:r,newEntryId:n})=>{const a="literal",i="regex",u=[{value:a,label:"Exact match"},{value:i,label:"Regex"}];let m={};const[E,f]=(0,o.useState)({entries:e,disabled:r}),[_,A]=(0,o.useState)({errors:[]}),N=(0,o.useRef)(!1),H=Y=>{Y.preventDefault(),f({...E,entries:[...E.entries,{id:ho(),title:"",value:"",type:a}]})},B=(Y,V)=>{Y.preventDefault();let Z=Mo()(E);const _e=Mo()(_);_e.errors[V]=null,A(_e),Z.entries.splice(V,1),f(Z)},K=(0,o.useCallback)(()=>{let Y=!0;return _.errors.length>0&&_.errors.find(V=>(V&&V.title&&V.title.valid)===!1||V&&V.value&&V.value.valid===!1)&&(Y=!1),Y},[_]),ee=(Y,V)=>{const Z=Mo()(E);Z.entries[Y]=V,f(Z)},J=(Y,V,Z)=>{A(_e=>{const Ue=Mo()(_e);return Ue.errors[Y]=Z,Ue}),ee(Y,V)},ce=async(Y,V,Z)=>{const _e={...E.entries[V],[Y]:Z};await Xm(V,_e,J)},oe=(Y,V)=>{ce(Y.target.name,V,po(Y.target))},pe=(Y,V)=>{ce("type",Y,V)},le=Y=>Y===i?"Not a valid Java regular expression":"Not a valid URL",xe=()=>E.entries.map((Y,V)=>o.createElement("tr",{key:Y.id},o.createElement("td",{style:{verticalAlign:"middle",textAlign:"center"}},V+1),o.createElement("td",null,o.createElement(lr.A,{type:"text",id:`title-input${V}`,ref:Z=>{m[`title${V}`]=Z},help:_.errors[V]&&_.errors[V].title&&!_.errors[V].title.valid?"Required field":null,name:"title",bsStyle:_.errors[V]&&_.errors[V].title&&!_.errors[V].title.valid?"error":null,onChange:Z=>oe(Z,V),defaultValue:Y.title,required:!0})),o.createElement("td",null,o.createElement(lr.A,{type:"text",id:`value-input${V}`,ref:Z=>{m[`value${V}`]=Z},help:_.errors[V]&&_.errors[V].value&&!_.errors[V].value.valid?le(Y.type):null,name:"value",bsStyle:_.errors[V]&&_.errors[V].value&&!_.errors[V].value.valid?"error":null,onChange:Z=>oe(Z,V),defaultValue:Y.value,required:!0})),o.createElement("td",null,o.createElement(lr.A,{id:`url-input-type-${V}`,required:!0,autoFocus:!0},o.createElement(mt.A,{clearable:!1,options:u,matchProp:"label",placeholder:"Select url type",onChange:Z=>pe(V,Z),value:Y.type}))),o.createElement("td",null,o.createElement(C.Button,{onClick:Z=>B(Z,V)},o.createElement(Ie.A,{name:"delete"}),o.createElement("span",{className:"sr-only"},"Delete entry")))));return(0,o.useEffect)(()=>{const Y=async()=>{const Z=E.entries.findIndex(et=>et.id===n);if(Z<0)return!1;const _e=E.entries[Z],Ue=await Ua(Z,_e,J);return Ym()(Ue,"valid").some(et=>!!et)};(async Z=>{const _e=Z&&n?await Y():K();t(E,_e)})(!N.current),N.current||(N.current=!0)},[E]),o.createElement(o.Fragment,null,o.createElement(lr.A,{type:"checkbox",id:"whitelist-disabled",label:"Disable Whitelist",checked:E.disabled,onChange:()=>f({...E,disabled:!E.disabled}),help:"Disable the whitelist functionality. Warning: Disabling this option will allow users to enter any URL in Graylog entities, which may pose a security risk."}),o.createElement(C.Button,{bsSize:"sm",onClick:Y=>H(Y)},"Add Url"),o.createElement(Qm,{striped:!0,bordered:!0},o.createElement("thead",null,o.createElement("tr",null,o.createElement("th",null,"#"),o.createElement("th",null,"Title"),o.createElement("th",null,"URL"),o.createElement("th",null,"Type"),o.createElement("th",null,"Actions"))),o.createElement("tbody",null,xe())),o.createElement(C.Button,{bsSize:"sm",onClick:Y=>H(Y)},"Add Url"))};gn.propTypes={urls:s().array,disabled:s().bool,onUpdate:s().func,newEntryId:s().string},gn.defaultProps={urls:[],disabled:!1,onUpdate:()=>{},newEntryId:void 0};const Zm=gn,Ze=(0,Pe.rN)("core.Configuration",()=>lt().createActions({list:{asyncResult:!0},listSearchesClusterConfig:{asyncResult:!0},listMessageProcessorsConfig:{asyncResult:!0},listEventsClusterConfig:{asyncResult:!0},listIndexSetsDefaultsClusterConfig:{asyncResult:!0},listWhiteListConfig:{asyncResult:!0},listPermissionsConfig:{asyncResult:!0},listUserConfig:{asyncResult:!0},update:{asyncResult:!0},updateWhitelist:{asyncResult:!0},updateIndexSetDefaults:{asyncResult:!0},updateMessageProcessorsConfig:{asyncResult:!0}})),qm=ye.A.ClusterConfigResource.config().url,eE=(0,Pe.Bv)("core.Configuration",()=>lt().createStore({listenables:[Ze],configuration:{},searchesClusterConfig:{},eventsClusterConfig:{},indexSetsDefaultConfig:{},getInitialState(){return this.getState()},getState(){return{configuration:this.configuration,searchesClusterConfig:this.searchesClusterConfig,eventsClusterConfig:this.eventsClusterConfig,indexSetsDefaultConfig:this.indexSetsDefaultConfig}},propagateChanges(){this.trigger(this.getState())},_url(e){return(0,X.H3)(qm+e)},list(e){const t=(0,j.Ay)("GET",this._url(`/${e}`));t.then(r=>(this.configuration={...this.configuration,[e]:r},this.propagateChanges(),r)),Ze.list.promise(t)},listSearchesClusterConfig(){const e=(0,j.Ay)("GET",this._url("/org.graylog2.indexer.searches.SearchesClusterConfig")).then(t=>(this.searchesClusterConfig=t,this.propagateChanges(),t));Ze.listSearchesClusterConfig.promise(e)},listMessageProcessorsConfig(e){const t=(0,j.Ay)("GET",(0,X.H3)("/system/messageprocessors/config")).then(r=>(this.configuration={...this.configuration,[e]:r},this.propagateChanges(),r));Ze.listMessageProcessorsConfig.promise(t)},listWhiteListConfig(e){const t=(0,j.Ay)("GET",(0,X.H3)("/system/urlwhitelist")).then(r=>(this.configuration={...this.configuration,[e]:r},this.propagateChanges(),r));Ze.listWhiteListConfig.promise(t)},listPermissionsConfig(e){const t=(0,j.Ay)("GET",this._url(`/${e}`)).then(r=>(this.configuration={...this.configuration,[e]:r||{allow_sharing_with_everyone:!0,allow_sharing_with_users:!0}},this.propagateChanges(),r));Ze.listPermissionsConfig.promise(t)},listUserConfig(e){const t=(0,j.Ay)("GET",this._url(`/${e}`)).then(r=>(this.configuration={...this.configuration,[e]:r||{enable_global_session_timeout:!1,global_session_timeout_interval:"PT1H"}},this.propagateChanges(),r));Ze.listUserConfig.promise(t)},listEventsClusterConfig(){const e=(0,j.Ay)("GET",this._url("/org.graylog.events.configuration.EventsConfiguration")).then(t=>(this.eventsClusterConfig=t,this.propagateChanges(),t));Ze.listEventsClusterConfig.promise(e)},listIndexSetsDefaultsClusterConfig(){const e=(0,j.Ay)("GET",this._url("/org.graylog2.configuration.IndexSetsDefaultConfiguration")).then(t=>(this.indexSetsDefaultConfig=t,this.propagateChanges(),t));Ze.listIndexSetsDefaultsClusterConfig.promise(e)},updateIndexSetDefaults(e,t){const r=(0,j.Ay)("PUT",(0,X.H3)("/system/indices/index_set_defaults"),t);r.then(()=>(this.configuration={...this.configuration,[e]:t},this.propagateChanges(),de.success("Index defaults configuration updated successfully"),t),n=>{de.error(n.additional.body.message,"Index defaults configuration update failed")}),Ze.updateIndexSetDefaults.promise(r)},update(e,t){const r=(0,j.Ay)("PUT",this._url(`/${e}`),t);r.then(n=>(this.configuration={...this.configuration,[e]:n},this.propagateChanges(),de.success("Configuration updated successfully"),n),n=>{de.error(`Search config update failed: ${n}`,`Could not update search config: ${e}`)}),Ze.update.promise(r)},updateWhitelist(e,t){const r=(0,j.Ay)("PUT",(0,X.H3)("/system/urlwhitelist"),t);r.then(()=>(this.configuration={...this.configuration,[e]:t},this.propagateChanges(),de.success("Url Whitelist Configuration updated successfully"),t),n=>{de.error(`Url Whitelist config update failed: ${n}`,`Could not update Url Whitelist: ${e}`)}),Ze.updateWhitelist.promise(r)},updateMessageProcessorsConfig(e,t){const r=(0,j.Ay)("PUT",(0,X.H3)("/system/messageprocessors/config"),t);r.then(n=>(this.configuration={...this.configuration,[e]:n},this.propagateChanges(),de.success("Configuration updated successfully"),n),n=>{de.error(`Message processors config update failed: ${n}`,`Could not update config: ${e}`)}),Ze.updateMessageProcessorsConfig.promise(r)}})),fn="org.graylog2.system.urlwhitelist.UrlWhitelist",Cn=({newUrlEntry:e,urlType:t,onUpdate:r})=>{const n=(0,o.useRef)(),[a,i]=(0,o.useState)({entries:[],disabled:!1}),[u,m]=(0,o.useState)(!1),[E,f]=(0,o.useState)(),[_,A]=(0,o.useState)(!1),{configuration:N}=ks(eE),H=N[fn],B=bo(),K=Wr();(0,o.useEffect)(()=>{_t(B.permissions,["urlwhitelist:read"])&&Ze.listWhiteListConfig(fn)},[B]);const ee=(0,o.useCallback)(le=>{const xe=ho(),Y={entries:[...le.entries,{id:xe,title:"",value:e,type:t!=null?t:"literal"}],disabled:le.disabled};f(xe),i(Y)},[e,t]);(0,o.useEffect)(()=>{const{entries:le}=a;H&&(le.length===0||n.current!==e)&&ee(H),n.current=e},[ee,H,a,e,t]);const J=()=>{A(!0)},ce=()=>{A(!1),ee(H)},oe=(le,xe)=>{i(le),m(xe)},pe=le=>{le&&(le.preventDefault(),le.stopPropagation()),K(so.URLWHITELIST_CONFIGURATION_UPDATED,{app_section:"urlwhitelist",app_action_value:"configuration-update"}),u&&Ze.updateWhitelist(fn,a).then(()=>{r(),ce()})};if(H){const{entries:le,disabled:xe}=a;return o.createElement(o.Fragment,null,o.createElement(Fc,{permissions:"urlwhitelist:write"},o.createElement(C.Button,{bsStyle:"info",bsSize:"xs",onClick:J},"Add to URL Whitelist")),o.createElement(zm.A,{show:_,bsSize:"lg",title:"Update Whitelist Configuration",onCancel:ce,onSubmitForm:pe,submitButtonDisabled:!u,submitButtonText:"Update configuration"},o.createElement("h3",null,"Whitelist URLs"),o.createElement(Zm,{key:E,urls:le,disabled:xe,onUpdate:oe,newEntryId:E})))}return null};Cn.propTypes={newUrlEntry:s().string,onUpdate:s().func,urlType:s().oneOf(["regex","literal"])},Cn.defaultProps={newUrlEntry:"",onUpdate:()=>{},urlType:void 0};const tE=Cn,Fa=({label:e,onChange:t,validationMessage:r,validationState:n,url:a,onValidationChange:i,labelClassName:u,wrapperClassName:m,urlType:E,autofocus:f})=>{const[_,A]=(0,o.useState)(!1),[N,H]=(0,o.useState)(n),[B,K]=(0,o.useState)(r),ee=(_e,Ue)=>Ue&&Ue==="regex"&&(0,X.Gz)(_e)?En.urlWhiteListGenerateRegex(_e,"${key}"):_e,[J,ce]=(0,o.useState)(a),oe=()=>N==="error"&&(0,X.Gz)(a),pe=(0,o.useRef)(),le=(0,o.useCallback)(()=>{a&&En.urlWhiteListCheck(a).then(Ue=>{if(!Ue.is_whitelisted&&n===null){H("error"),i("error");const et=(0,X.Gz)(a)?`URL ${a} is not whitelisted`:`URL ${a} is not a valid URL.`;K(et)}else K(r),H(n),i(n);A(Ue.is_whitelisted)})},[a,r,n,i]),xe=()=>{xa(pe.current.getInputDOMNode()),le()};(0,o.useEffect)(()=>{const _e=()=>{if(a){const et=ee(a,E);typeof et=="object"?et.then(Qt=>{ce(Qt.regex)}):ce(a)}},Ue=setTimeout(()=>_e(),250);return()=>clearTimeout(Ue)},[a,E]),(0,o.useEffect)(()=>{const _e=setTimeout(()=>le(),250);return()=>clearTimeout(_e)},[a,n,le]);const Y=oe()&&!_?o.createElement(tE,{newUrlEntry:J,onUpdate:xe,urlType:E}):"",V=o.createElement(o.Fragment,null,n===null?B:r," ",Y),Z=N===""?null:N;return o.createElement(C.Input,{type:"text",id:"url",name:"url",label:e,ref:pe,autoFocus:f,required:!0,onChange:t,help:V,bsStyle:Z,value:a,labelClassName:u,wrapperClassName:m})};Fa.propTypes={autofocus:s().bool,label:s().string.isRequired,onChange:s().func.isRequired,validationState:s().string,validationMessage:s().oneOfType([s().object,s().string]),url:s().string,onValidationChange:s().func,labelClassName:s().string,wrapperClassName:s().string,urlType:s().oneOf(["regex","literal"])},Fa.defaultProps={autofocus:!0,url:"",validationState:"",validationMessage:"",labelClassName:"",wrapperClassName:"",urlType:"literal",onValidationChange:()=>{}};const MC=null;var oE=l("zz8lN1pr"),rE=l.n(oE);const nE=(0,d.default)(C.Col)(({theme:e})=>(0,d.css)`
border-right: ${e.colors.gray[80]} solid 1px;
`),sE=(0,d.default)(C.Col)`
margin-bottom: 15px;
`,Ba=(0,d.default)(C.Nav)(({$style:e,theme:t})=>(0,d.css)`
${e==="stepper"?`
&.nav {
counter-reset: line-number;
> li {
counter-increment: line-number;
> a {
position: relative;
display: flex;
padding: 10px 0px;
justify-content: center;
align-items: center;
&:hover,
&:focus {
background-color: initial;
}
> div {
flex-shrink: 0;
}
&::before {
display: flex;
justify-content: center;
align-items: center;
flex-grow: 0;
flex-shrink: 0;
background-color: ${t.colors.global.contentBackground};
border-color: ${t.colors.variant.lighter.default};
margin-right: 10px;
content: counter(line-number);
width: 35px;
height: 35px;
border-radius: 50%;
border: 2px solid;
z-index: 2;
}
&::after {
display: flex;
justify-content: center;
align-items: center;
background-color: ${t.colors.global.contentBackground};
border-color: ${t.colors.variant.lighter.default};
margin-right: 10px;
content: ' ';
border: 1px solid ${t.colors.input.border};
width: 100%;
flex-shrink: 1;
flex-grow: 0;
align-self: center;
margin: 0 16px;
}
&:hover::after {
background-color: ${t.colors.variant.lightest.default};
}
}
&:last-child > a {
justify-content: flex-start;
&::after {
display:none;
}
}
&.disabled > a {
color: ${t.colors.variant.light.default};
&:hover,
&:focus {
color: ${t.colors.variant.light.default};
}
}
}
.open > a {
&,
&:hover,
&:focus {
background-color: inital;
border-color: ${t.colors.variant.primary};
}
}
&.nav-justified {
> li {
> a {
text-align: left;
}
}
}
&.nav-pills {
> li {
> a {
color: initial;
&:hover {
color: ${t.colors.global.link};
}
}
&.active > a {
&,
&:hover,
&:focus {
color: ${t.colors.global.link};
background-color: initial;
}
}
}
}
}
`:`&.nav {
> li {
border: 1px solid ${t.colors.variant.lighter.default};
border-left: 0;
&:first-child {
border-left: 1px solid ${t.colors.variant.lighter.default};
border-radius: 4px 0 0 4px;
> a {
border-radius: 4px 0 0 4px;
}
}
&:last-child {
border-radius: 0 4px 4px 0;
> a {
border-radius: 0 4px 4px 0;
}
}
&:not(:last-child) > a {
&::after {
transition: background-color 150ms ease-in-out;
background-color: ${t.colors.global.contentBackground};
border-color: ${t.colors.variant.lighter.default};
border-style: solid;
border-width: 0 1px 1px 0;
content: '';
display: block;
height: 15px;
position: absolute;
right: -1px;
top: 50%;
transform: translateY(-50%) translateX(50%) rotate(-45deg);
width: 15px;
z-index: 2;
}
&:hover::after {
background-color: ${t.colors.variant.lightest.default};
}
}
&.active a {
&,
&:hover,
&::after,
&:hover::after {
background-color: ${t.colors.global.link};
}
}
> a {
border-radius: 0;
}
}
}
@media (max-width: ${t.breakpoints.max.md}) {
&.nav {
> li {
border-right: 0;
border-left: 0;
&:last-child a,
&:first-child a {
border-radius: 0;
}
&:not(:last-child) {
border-bottom: 0;
}
&:not(:last-child) > a {
&::after {
bottom: 0;
left: 50%;
top: auto;
width: 10px;
height: 10px;
transform: translateY(50%) translateX(-50%) rotate(45deg);
}
}
}
&.nav-justified > li > a {
margin-bottom: 0;
}
}
}`}
`),aE=(0,d.default)(C.ButtonToolbar)`
padding: 7px;
`,ka=(e,t)=>e==null?!1:rE()(t,{key:e}),Wa=(e,t)=>{e!=null&&(ka(e,t)||console.warn(`activeStep ${e} is not a key in any element of the 'steps' prop!`))};class Ga extends o.Component{constructor(t){super(t),this._getSelectedStep=()=>{const{activeStep:r,steps:n}=this.props,{selectedStep:a}=this.state;return ka(r,n)?r:a},this._wizardChanged=r=>{const{activeStep:n,onStepChange:a}=this.props;a(r),n||this.setState({selectedStep:r})},this._disableButton=r=>{const{steps:n}=this.props,a=this._getSelectedStep(),i=n.length,u=r==="next"?i-1:0,m=n.findIndex(_=>_.key===this._getSelectedStep()),E=r==="next"?m+1:m-1,f=n[E];return n[u].key===a||(f==null?void 0:f.disabled)},this._onNext=()=>{const{steps:r}=this.props;this._wizardChanged(r[this._getSelectedIndex()+1].key)},this._onPrevious=()=>{const{steps:r}=this.props;this._wizardChanged(r[this._getSelectedIndex()-1].key)},this._getSelectedIndex=()=>{const{steps:r}=this.props,n=this._getSelectedStep();return r.map(a=>a.key).indexOf(n)},this._renderVerticalStepNav=()=>{const{justified:r,steps:n,hidePreviousNextButtons:a,style:i}=this.props,u=this._getSelectedStep();return o.createElement(nE,{md:2},o.createElement(Ba,{stacked:!0,bsStyle:"pills",$style:i,activeKey:u,onSelect:this._wizardChanged,justified:r},n.map(m=>o.createElement(C.NavItem,{key:m.key,eventKey:m.key,disabled:m.disabled},m.title))),!a&&o.createElement(o.Fragment,null,o.createElement("br",null),o.createElement(C.Row,null,o.createElement(C.Col,{xs:6},o.createElement(C.Button,{onClick:this._onPrevious,bsSize:"small",bsStyle:"info",disabled:this._disableButton("previous")},"Previous")),o.createElement(C.Col,{className:"text-right",xs:6},o.createElement(C.Button,{onClick:this._onNext,bsSize:"small",bsStyle:"info",disabled:this._disableButton("next")},"Next")))))},this._renderHorizontalStepNav=()=>{const r=this._getSelectedStep(),{justified:n,steps:a,hidePreviousNextButtons:i,style:u}=this.props;return o.createElement(sE,{sm:12},!i&&o.createElement("div",{className:"pull-right"},o.createElement(aE,null,o.createElement(C.Button,{onClick:this._onPrevious,"aria-label":"Previous",bsSize:"xsmall",bsStyle:"info",disabled:this._disableButton("previous")},o.createElement(Ie.A,{name:"arrow_left"})),o.createElement(C.Button,{onClick:this._onNext,"aria-label":"Next",bsSize:"xsmall",bsStyle:"info",disabled:this._disableButton("next")},o.createElement(Ie.A,{name:"arrow_right"})))),o.createElement(Ba,{bsStyle:"pills",activeKey:r,$style:u,onSelect:this._wizardChanged,justified:n},a.map(m=>o.createElement(C.NavItem,{key:m.key,eventKey:m.key,disabled:m.disabled},m.title))))},Wa(t.activeStep,t.steps),this.state={selectedStep:t.steps[0].key}}componentDidUpdate(){const{activeStep:t,steps:r}=this.props;Wa(t,r)}render(){const{steps:t,horizontal:r,containerClassName:n,children:a}=this.props;let i;a?i=7:i=r?12:10;const u=r?5:3;return o.createElement(C.Row,{className:n},r?this._renderHorizontalStepNav():this._renderVerticalStepNav(),o.createElement(C.Col,{md:i},t[this._getSelectedIndex()].component),a&&o.createElement(C.Col,{md:u},a))}}Ga.propTypes={steps:s().arrayOf(s().object).isRequired,activeStep:s().oneOfType([s().string,s().number]),onStepChange:s().func,children:s().element,horizontal:s().bool,justified:s().bool,containerClassName:s().string,hidePreviousNextButtons:s().bool,style:s().oneOf(["stepper",void 0])},Ga.defaultProps={children:void 0,activeStep:void 0,onStepChange:()=>{},horizontal:!1,justified:!1,containerClassName:"content",hidePreviousNextButtons:!1,style:void 0};const UC=null,FC=d.default.label(({theme:e})=>(0,d.css)`
display: flex;
align-items: center;
margin: 0;
input {
border: 0;
clip: rect(0 0 0 0);
clip-path: inset(50%);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
white-space: nowrap;
&:checked + .slider {
background-color: ${e.colors.variant.dark.default};
&::before {
transform: translate(16px, -50%);
}
}
&:disabled + .slider {
opacity: 0.5;
cursor: not-allowed;
&::before {
background-color: ${e.colors.variant.light.default};
}
}
}
.slider {
box-sizing: border-box;
margin: 0 9px;
width: 36px;
height: 22px;
border-radius: 30px;
background-color: ${e.colors.gray[80]};
box-shadow: inset 0 1px 3px 0 rgb(0 0 0 / 20%);
display: inline-block;
position: relative;
cursor: pointer;
&::before {
transition: transform 75ms ease-in-out;
content: '';
display: block;
width: 18px;
height: 18px;
background-color: ${e.colors.brand.secondary};
box-shadow: 0 2px 3px 0 rgb(0 0 0 / 25%), 0 2px 8px 0 rgb(32 37 50 / 16%);
position: absolute;
border-radius: 100%;
top: 11px;
transform: translate(2px, -50%);
}
}
`),BC=null,lE=d.default.div`
display: flex;
align-items: center;
`,iE=(0,d.default)(C.ButtonGroup)`
margin-left: 5px;
`,cE=d.default.div`
display: flex;
justify-content: flex-end;
`,dE=(0,d.default)(e=>o.createElement(_s,{...e}))`
margin-left: 5px;
`,uE=()=>o.createElement(o.Fragment,null,o.createElement("p",null,o.createElement("i",null,"Search filters")," contain their own query and extend the main query using the ",o.createElement("b",null,"AND")," operator."),o.createElement("p",null,"Filters can be saved separately and reused in saved searches and dashboards. Updating a saved filter will automatically affect the search results of searches which include the filter.")),pE=({onHide:e,pluggableControls:t})=>t.find(n=>n.id==="search-filters")?null:o.createElement(lE,null,"Filters",o.createElement(dE,{title:"Search Filters",trigger:["click"]},o.createElement(uE,null),o.createElement("p",null,"Search filters and parameters are available for the enterprise version."),o.createElement(cE,null,o.createElement(C.Button,{onClick:e,bsSize:"xs"},"Hide controls"))),o.createElement(iE,null,o.createElement(C.Button,{disabled:!0,bsSize:"small"},o.createElement(Ie.A,{name:"add"})),o.createElement(C.Button,{disabled:!0,bsSize:"small"},o.createElement(Ie.A,{name:"folder"}))));function Ha({filters:e,onChange:t,hideFiltersPreview:r}){var n;const i=((n=Vs("eventDefinitions.components.searchForm"))!=null?n:[]).map(f=>f()).filter(f=>!!f);o.useEffect(()=>r(!i.length),[]);const u=o.useMemo(()=>({searchFilters:(0,Le.OrderedMap)(e.map(_=>[_.id||(0,hn.A)(),{frontendId:_.id||(0,hn.A)(),..._}]))}),[e]);if(!i.length)return o.createElement(pE,{onHide:()=>r(!0),pluggableControls:i});const m=i[0].component,E=({searchFilters:f})=>{const _=f.map(({frontendId:A,...N})=>N);t(_)};return o.createElement(ge.Formik,{onSubmit:E,initialValues:u},o.createElement(m,null))}Ha.defaultProps={hideFiltersPreview:()=>{}};const mE=Ha,WC=D(()=>Promise.all([l.e("bf9ab447-802"),l.e("bf9ab447-422")]).then(l.bind(l,"ur/VwGJ4")));var EE=l("3VgbVypm"),hE=l.n(EE);const Ka=(e,t,r,n,a={})=>{let i=new(Mt())(e).addSearch("page",t).addSearch("per_page",r);return a&&Object.keys(a).forEach(u=>{const m=a[u],E=f=>typeof f.toString=="function"?f.toString():f;if(m!==void 0){if(Array.isArray(m)){m.forEach(f=>{i=i.addSearch(u,E(f))});return}i=i.addSearch(u,E(m))}}),n&&i.addSearch("query",encodeURIComponent(n)),i.toString()},Et=(0,Pe.rN)("Streams",()=>lt().createActions({searchPaginated:{asyncResult:!0},listStreams:{asyncResult:!0},load:{asyncResult:!0},get:{asyncResult:!0},remove:{asyncResult:!0},pause:{asyncResult:!0},resume:{asyncResult:!0},cloneStream:{asyncResult:!0},update:{asyncResult:!0},save:{asyncResult:!0},removeOutput:{asyncResult:!0},addOutput:{asyncResult:!0},testMatch:{asyncResult:!0}})),vn=(0,Pe.rN)("core.Preferences",()=>lt().createActions({loadUserPreferences:{asyncResult:!0},saveUserPreferences:{asyncResult:!0}})),gE=e=>{const t={};return Object.entries(e).forEach(([r,n])=>{n==="true"?t[r]=!0:n==="false"?t[r]=!1:t[r]=n}),t},HC=(0,Pe.Bv)("core.Preferences",()=>lt().createStore({listenables:[vn],URL:(0,X.H3)("/users/"),saveUserPreferences(e,t,r=()=>{},n=!0){const a=gE(t),i=`${this.URL+encodeURIComponent(e)}/preferences`,u=(0,j.Ay)("PUT",i,{preferences:a}).then(()=>{n&&de.success("User preferences successfully saved"),r(t)},m=>{de.error(`Saving of preferences for "${e}" failed with status: ${m}`,"Could not save user preferences")});return vn.saveUserPreferences.promise(u),u}})),fE=(0,Pe.Bv)("core.Startpage",()=>lt().createStore({listenables:[],set(e,t,r){const n=(0,X.H3)(ye.A.UsersApiController.update(e).url),a={};return t&&r&&(a.type=t,a.id=r),(0,j.Ay)("PUT",n,{startpage:a}).then(i=>(this.trigger(),de.success("Your start page was changed successfully"),i),i=>de.error(`Changing your start page failed with error: ${i}`,"Could not change your start page"))}})),yn=(0,Pe.Bv)("core.CurrentUser",()=>lt().createStore({listenables:[zr.SessionActions],currentUser:void 0,init(){this.listenTo(zr.SessionStore,this.sessionUpdate,this.sessionUpdate),this.listenTo(fE,this.reload,this.reload),vn.saveUserPreferences.completed.listen(this.reload)},getInitialState(){return{currentUser:this.currentUser}},get(){return this.currentUser},sessionUpdate(e){if(e.username){const{username:t}=e;this.update(t)}else this.currentUser=void 0,this.trigger({currentUser:this.currentUser})},reload(){return this.currentUser!==void 0?this.update(this.currentUser.username):Promise.resolve()},update(e){return(0,j.Ay)("GET",(0,X.H3)(ye.A.UsersApiController.loadByUsername(encodeURIComponent(e)).url)).then(t=>(this.currentUser=t,this.trigger({currentUser:this.currentUser}),t))}})),CE=(0,Pe.Bv)("Streams",()=>lt().createStore({listenables:[Et],callbacks:[],searchPaginated(e,t,r,n){const a=Ka(ye.A.StreamsApiController.paginated().url,e,t,r,n),i=(0,j.Ay)("GET",(0,X.H3)(a)).then(u=>{const{elements:m,query:E,attributes:f,pagination:{count:_,total:A,page:N,per_page:H}}=u;return{elements:m,attributes:f,pagination:{count:_,total:A,page:N,perPage:H,query:E}}});return Et.searchPaginated.promise(i),i},listStreams(){const t=(0,j.Ay)("GET",(0,X.H3)("/streams")).then(r=>r.streams).catch(r=>{de.error(`Loading streams failed with status: ${r}`,"Could not load streams")});return Et.listStreams.promise(t),t},load(e){this.listStreams().then(t=>{e(t)})},remove(e){const t=(0,X.H3)(ye.A.StreamsApiController.delete(e).url),r=(0,j.Ay)("DELETE",t).then(()=>yn.reload().then(this._emitChange.bind(this)));return Et.remove.promise(r),r},pause(e,t){const r=i=>{de.error(`Pausing Stream failed with status: ${i}`,"Could not pause Stream")},n=(0,X.H3)(ye.A.StreamsApiController.pause(e).url),a=(0,j.Ay)("POST",n).then(t,r).then(i=>(this._emitChange(),i));return Et.pause.promise(a),a},resume(e,t){const r=i=>{de.error(`Resuming Stream failed with status: ${i}`,"Could not resume Stream")},n=(0,X.H3)(ye.A.StreamsApiController.resume(e).url),a=(0,j.Ay)("POST",n).then(t,r).then(i=>(this._emitChange(),i));return Et.resume.promise(a),a},save(e,t){const r=i=>{de.error(`Saving Stream failed with status: ${i}`,"Could not save Stream")},n=(0,X.H3)(ye.A.StreamsApiController.create().url),a=(0,j.Ay)("POST",n,e).then(t,r).then(()=>yn.reload().then(this._emitChange.bind(this)));return Et.save.promise(a),a},update(e,t,r){const n=u=>{de.error(`Updating Stream failed with status: ${u}`,"Could not update Stream")},a=(0,X.H3)(ye.A.StreamsApiController.update(e).url),i=(0,j.Ay)("PUT",a,t).then(r,n).then(this._emitChange.bind(this));return Et.update.promise(i),i},cloneStream(e,t,r){const n=u=>{de.error(`Cloning Stream failed with status: ${u}`,"Could not clone Stream")},a=(0,X.H3)(ye.A.StreamsApiController.cloneStream(e).url),i=(0,j.Ay)("POST",a,t).then(r,n).then(()=>yn.reload().then(this._emitChange.bind(this)));return Et.cloneStream.promise(i),i},removeOutput(e,t,r){const n=(0,X.H3)(ye.A.StreamOutputsApiController.delete(e,t).url),a=(0,j.Ay)("DELETE",n).then(r,i=>{de.error(`Removing output from stream failed with status: ${i}`,"Could not remove output from stream")}).then(this._emitChange.bind(this));return Et.removeOutput.promise(a),a},addOutput(e,t,r){const n=(0,X.H3)(ye.A.StreamOutputsApiController.add(e).url),a=(0,j.Ay)("POST",n,{outputs:[t]}).then(r,i=>{de.error(`Adding output to stream failed with status: ${i}`,"Could not add output to stream")}).then(this._emitChange.bind(this));return Et.addOutput.promise(a),a},testMatch(e,t,r){const n=(0,X.H3)(ye.A.StreamsApiController.testMatch(e).url),a=(0,j.Ay)("POST",n,t).then(r,i=>{de.error(`Testing stream rules of stream failed with status: ${i.message}`,"Could not test stream rules of stream")});return Et.testMatch.promise(a),a},onChange(e){this.callbacks.push(e)},_emitChange(){this.callbacks.forEach(e=>e())},unregister(e){hE()(this.callbacks,e)}})),KC=null;function vE(e,t=[]){const r=e.displayName||e.name||"Component";class n extends o.Component{constructor(i){super(i),this.state={streams:void 0}}componentDidMount(){CE.load(i=>{let u=i.filter(m=>m.is_editable);t.length!==0&&(u=i.filter(m=>!t.includes(m.id))),this.setState({streams:u})})}render(){const{streams:i}=this.state;return i?o.createElement(e,{streams:i,...this.props}):o.createElement(wt.A,{text:"Loading Streams Information..."})}}return n.displayName=`withStreams(${r})`,n}var yE=l("DUKaTDO2");const Me={Compound:"compound",Enumerable:"enumerable",FullTextSearch:"full-text-search",Numeric:"numeric",Decorated:"decorated"},Uo=class Pn{constructor(t,r,n){this.value=Le.Map({type:t,properties:Le.Set(r),indexNames:Le.Set(n)})}get type(){return this.value.get("type")}get properties(){return this.value.get("properties")}get indexNames(){return this.value.get("indexNames")}isNumeric(){return this.properties.has(Me.Numeric)}isEnumerable(){return this.properties.has(Me.Enumerable)}isCompound(){return this.properties.has(Me.Compound)}isDecorated(){return this.properties.has(Me.Decorated)}static fromJSON(t){const{type:r,properties:n,index_names:a}=t;return new Pn(r,n,a)}static create(t,r=[],n=[]){return new Pn(t,r,n)}};Uo.Unknown=new Uo("unknown",[],[]),Uo.Decorated=new Uo("decorated field",[Me.Decorated],[]);let za=Uo;const _E=za,rt=(e,t=[])=>(r=[])=>za.create(e,t,r),zC={STRING:rt("string",[Me.Enumerable]),STRING_FTS:rt("string",[Me.FullTextSearch]),LONG:rt("long",[Me.Numeric,Me.Enumerable]),INT:rt("int",[Me.Numeric,Me.Enumerable]),SHORT:rt("short",[Me.Numeric,Me.Enumerable]),BYTE:rt("byte",[Me.Numeric,Me.Enumerable]),DOUBLE:rt("double",[Me.Numeric,Me.Enumerable]),FLOAT:rt("float",[Me.Numeric,Me.Enumerable]),DATE:rt("date",[Me.Enumerable]),BOOLEAN:rt("boolean",[Me.Enumerable]),BINARY:rt("binary",[]),GEO_POINT:rt("geo-point",[]),IP:rt("ip",[Me.Enumerable]),PERCENTAGE:rt("percentage",[Me.Numeric])};class cr{constructor(t,r){this.value={name:t,type:r}}get name(){return this.value.name}get type(){return this.value.type}static fromJSON(t){const{name:r,type:n}=t;return new cr(r,_E.fromJSON(n))}static create(t,r){return new cr(t,r)}}const bE=cr,TE=(0,X.H3)("/views/fields"),SE=e=>e.map(t=>bE.fromJSON(t)),AE=(e,t)=>{let r={};return e&&e.length>0&&(r={streams:e}),t&&(r={...r,timerange:t}),r},IE=(e,t)=>(0,j.Ay)("POST",TE,AE(e,t)).then(SE),DE=(e,t)=>{switch(e==null?void 0:e.type){case"absolute":return{type:"absolute",from:je(yt(e.from,t),"internal"),to:je(yt(e.to,t),"internal")};default:return e}},RE=(e,t)=>{const{userTimezone:r}=cn(),n=(0,o.useMemo)(()=>DE(t,r),[t,r]);return(0,yE.useQuery)(["fieldTypes",e,n],()=>IE(e,n),{staleTime:3e4,refetchOnWindowFocus:!1,cacheTime:0})},OE=(0,Pe.Gr)("hooks.useFieldTypes",()=>RE);var PE=l("NV2C8ebe"),Je=l.n(PE);function VC(e,t,r="asc"){const n=moment(e),a=moment(t);return r==="asc"?n.isBefore(a)?-1:a.isBefore(n)?1:0:a.isBefore(n)?-1:n.isBefore(a)?1:0}function _n(e,t,r="asc"){return r==="asc"?To(e.toLowerCase(),t.toLowerCase()):To(t.toLowerCase(),e.toLowerCase())}var LE=l("htp0RzwN"),bn=l.n(LE),xE=l("A56N27Uq"),Tn=l.n(xE),NE=l("2fG0j4rQ"),wE=l.n(NE),$E=l("rIfZdGtU"),ME=l.n($E),UE=l("XAlhTQ1W"),FE=l.n(UE);const BE=o.createContext(void 0),kE=(0,Pe.Gr)("contexts.FormWarningsContext",()=>BE);var WE=l("M4sGkTF0");const jC=(e="")=>({type:"elasticsearch",query_string:e}),GE=e=>Immutable.List(e.map(t=>Immutable.Map({type:"stream",id:t}))),YC=e=>{if(!e||e.length===0)return null;const t=GE(e);return Immutable.Map({type:"or",filters:t})},HE=e=>e?e.get("type")==="stream"?Immutable.Set([e.get("id")]):e.get("filters",Immutable.List()).map(HE).reduce((n,a)=>n.merge(a),Immutable.Set()):Immutable.Set(),dr=e=>e==null;class Yt{constructor(t,r,n,a,i,u){this._value={id:t,query:r,timerange:n,filter:a,filters:u,searchTypes:i}}get id(){return this._value.id}get query(){return this._value.query}get timerange(){return this._value.timerange}get filter(){return this._value.filter}get filters(){return this._value.filters}get searchTypes(){return this._value.searchTypes}toBuilder(){const{id:t,query:r,timerange:n,filter:a,filters:i,searchTypes:u}=this._value,m=Yt.builder().id(t).query(r).timerange(n).filter(a).filters(i).searchTypes(u);return a?m.filter(a):m}equals(t){return!(t===void 0||!(t instanceof Yt)||this.id!==t.id||!Ut(this.query,t.query)||!Ut(this.timerange,t.timerange)||!(dr(this.filter)&&dr(t.filter)||Ut(this.filter,t.filter))||!(dr(this.filters)&&dr(t.filters)||Ut(this.filters,t.filters))||!Ut(this.searchTypes,t.searchTypes))}toJSON(){const{id:t,query:r,timerange:n,filter:a,filters:i,searchTypes:u}=this._value;return{id:t,query:r,timerange:n,filter:a,filters:i==null?void 0:i.toArray(),search_types:u}}static builder(){return new Ft().searchTypes([])}static fromJSON(t){const{id:r,query:n,timerange:a,filter:i,filters:u,search_types:m}=t;return new Yt(r,n,a,Le.fromJS(i),m,u?Le.List(u):void 0)}}class Ft{constructor(t=Le.Map()){this.value=t}id(t){return new Ft(this.value.set("id",t))}newId(){return this.id(ho())}query(t){return new Ft(this.value.set("query",t))}timerange(t){return new Ft(this.value.set("timerange",t))}filter(t){return new Ft(this.value.set("filter",Le.fromJS(t)))}filters(t){return new Ft(this.value.set("filters",t&&Le.List(t)))}searchTypes(t){return new Ft(this.value.set("searchTypes",t))}build(){const{id:t,query:r,timerange:n,filter:a,filters:i,searchTypes:u}=this.value.toObject();return new Yt(t,r,n,a,u,i)}}var KE=l("7Rmdp+Rr"),zE=l.n(KE);const Va=class pl{constructor(t,r,n,a,i,u,m,E){this._value={type:t,name:r,title:n,description:a,dataType:i,defaultValue:u,optional:m,binding:E}}get type(){return this._value.type}get name(){return this._value.name}get title(){return this._value.title}get description(){return this._value.description}get dataType(){return this._value.dataType}get defaultValue(){return this._value.defaultValue}get optional(){return this._value.optional}get needsBinding(){return!0}get binding(){return this._value.binding}static fromJSON(t){const{type:r="value-parameter-v1"}=t,n=pl.__registrations[r.toLowerCase()];if(n)return n.fromJSON(t);throw new Error(`No class found for type <${r}>`)}static registerSubtype(t,r){this.__registrations[t.toLowerCase()]=r}toJSON(){throw new Error("Method toJSON has no implementation")}};Va.__registrations={};let VE=Va;const Sn=(0,Pe.Gr)("views.logic.parameters.Parameter",()=>VE);class ur{constructor(t,r,n){this._value={id:t,queries:Le.OrderedSet(r),parameters:Le.Set(n)}}static create(){return new Jt().newId().queries([]).parameters([]).build()}get id(){return this._value.id}get queries(){return this._value.queries}get parameters(){return this._value.parameters}get requiredParameters(){return this.parameters.filter(t=>!t.defaultValue&&!t.optional&&t.needsBinding).toSet()}toBuilder(){const{id:t,queries:r,parameters:n}=this._value;return new Jt(Le.Map({id:t,queries:r,parameters:n}))}toJSON(){const{id:t,queries:r,parameters:n}=this._value;return{id:t,queries:r.toJS(),parameters:n.toJS()}}static fromJSON(t){const{id:r,parameters:n}=t,a=t.queries.map(i=>Yt.fromJSON(i));return new ur(r,a,n.map(i=>Sn.fromJSON(i)))}static builder(){return new Jt}}class Jt{constructor(t=Le.Map()){this.value=t}id(t){return new Jt(this.value.set("id",t))}newId(){return this.id(new(zE())().toString())}queries(t){return new Jt(this.value.set("queries",t))}parameters(t){return new Jt(this.value.set("parameters",t))}build(){const{id:t,queries:r,parameters:n}=this.value.toObject();return new ur(t,r,n)}}const ja=class Wo extends Sn{constructor(t,r,n,a,i,u,m,E){super(Wo.type,t,r,n,a,i,u),this._value2={lookupTable:m,key:E}}static create(t,r,n,a,i,u,m,E,f){return new Wo(r,n,a,i,u,m,E,f)}toBuilder(){const{type:t,name:r,title:n,description:a,dataType:i,defaultValue:u,optional:m}=this._value,{lookupTable:E,key:f}=this._value2;return new it(Le.Map({type:t,name:r,title:n,description:a,dataType:i,defaultValue:u,optional:m,lookupTable:E,key:f}))}get needsBinding(){return!1}get lookupTable(){return this._value2.lookupTable}get key(){return this._value2.key}toJSON(){const{type:t,name:r,title:n,description:a,dataType:i,defaultValue:u,optional:m}=this._value,{lookupTable:E,key:f}=this._value2;return{type:t,name:r,title:n,description:a,data_type:i,default_value:u,optional:m,binding:void 0,lookup_table:E,key:f}}static fromJSON(t){const{name:r,title:n,description:a,data_type:i,default_value:u,optional:m,lookup_table:E,key:f}=t;return new Wo(r,n,a,i,u,m,E,f)}static builder(){return new it().type(Wo.type).optional(!1).dataType("any")}};ja.type="lut-parameter-v1";let An=ja;class it{constructor(t=Le.Map()){this.value=t}type(t){return new it(this.value.set("type",t))}name(t){return new it(this.value.set("name",t))}title(t){return new it(this.value.set("title",t))}description(t){return new it(this.value.set("description",t))}dataType(t){return new it(this.value.set("dataType",t))}defaultValue(t){return new it(this.value.set("defaultValue",t))}optional(t){return new it(this.value.set("optional",t))}lookupTable(t){return new it(this.value.set("lookupTable",t))}key(t){return new it(this.value.set("key",t))}build(){const{name:t,title:r,description:n,dataType:a,defaultValue:i,optional:u,lookupTable:m,key:E}=this.value.toObject();return new An(t,r,n,a,i,u,m,E)}}An.Builder=it;const ct=(0,Pe.rN)("core.LookupTables",()=>lt().createActions({searchPaginated:{asyncResult:!0},reloadPage:{asyncResult:!0},get:{asyncResult:!0},create:{asyncResult:!0},delete:{asyncResult:!0},update:{asyncResult:!0},getErrors:{asyncResult:!0},lookup:{asyncResult:!0},purgeKey:{asyncResult:!0},purgeAll:{asyncResult:!0},validate:{asyncResult:!0}})),jE=(0,Pe.Bv)("core.LookupTables",()=>lt().createStore({listenables:[ct],pagination:{page:1,per_page:10,total:0,count:0,query:null},errorStates:{tables:{},caches:{},dataAdapters:{}},table:null,cache:null,dataAdapter:null,tables:null,caches:null,dataAdapters:null,lookupResult:null,validationErrors:{},getInitialState(){return this.getState()},getState(){return{errorStates:this.errorStates,table:this.table,cache:this.cache,dataAdapter:this.dataAdapter,tables:this.tables,caches:this.caches,dataAdapters:this.dataAdapters,lookupResult:this.lookupResult,validationErrors:this.validationErrors,pagination:this.pagination}},propagateChanges(){this.trigger(this.getState())},reloadPage(){const e=this.searchPaginated(this.pagination.page,this.pagination.per_page,this.pagination.query);return ct.reloadPage.promise(e),e},searchPaginated(e,t,r=null,n=!0){const a=this._url(Ka("tables",e,t,r,{resolve:n})),i=(0,j.Ay)("GET",a);return i.then(u=>{this.pagination={count:u.count,total:u.total,page:u.page,per_page:u.per_page,query:u.query},this.tables=u.lookup_tables,this.caches=u.caches,this.dataAdapters=u.data_adapters,this.propagateChanges()},this._errorHandler("Fetching lookup tables failed","Could not retrieve the lookup tables")),ct.searchPaginated.promise(i),i},get(e){const t=this._url(`tables/${e}?resolve=true`),r=(0,j.Ay)("GET",t);return r.then(n=>{const a=n.lookup_tables[0];this.table=a,this.cache=n.caches[a.cache_id],this.dataAdapter=n.data_adapters[a.data_adapter_id],this.propagateChanges()},this._errorHandler(`Fetching lookup table ${e} failed`,"Could not retrieve lookup table")),ct.get.promise(r),r},create(e){const t=this._url("tables"),r=(0,j.Ay)("POST",t,e);return r.catch(this._errorHandler("Creating lookup table failed",`Could not create lookup table "${e.name}"`)),ct.create.promise(r),r},update(e){const t=this._url(`tables/${e.id}`),r=(0,j.Ay)("PUT",t,e);return r.catch(this._errorHandler("Updating lookup table failed",`Could not update lookup table "${e.name}"`)),ct.update.promise(r),r},delete(e){const t=this._url(`tables/${e}`),r=(0,j.Ay)("DELETE",t);return r.catch(this._errorHandler("Deleting lookup table failed",`Could not delete lookup table "${e}"`)),ct.delete.promise(r),r},getErrors(e,t,r){const n={};e&&(n.tables=e),t&&(n.caches=t),r&&(n.data_adapters=r);const a=(0,j.Ay)("POST",this._url("errorstates"),n);return a.then(i=>{this.errorStates={tables:i.tables||{},caches:i.caches||{},dataAdapters:i.data_adapters||{}},this.propagateChanges()},this._errorHandler("Fetching lookup table error state failed.","Could not error states")),ct.getErrors.promise(a),a},lookup(e,t){const r=(0,j.Ay)("GET",this._url(`tables/${e}/query?key=${encodeURIComponent(t)}`));return r.then(n=>{this.lookupResult=n,this.propagateChanges()},this._errorHandler("Lookup failed",`Could not lookup value for key "${t}" in lookup table "${e}"`)),ct.lookup.promise(r),r},purgeKey(e,t){const r=(0,j.Ay)("POST",this._urlClusterWise(`tables/${e.id}/purge?key=${encodeURIComponent(t)}`));return r.then(()=>{de.success(`Purging cache key "${t}" for lookup table "${e.name}"`,"Success!")},this._errorHandler(`Could not purge cache for key "${t}" in lookup table "${e.name}"`,"Failed!")),ct.purgeKey.promise(r),r},purgeAll(e){const t=(0,j.Ay)("POST",this._urlClusterWise(`tables/${e.id}/purge`));return t.then(()=>{de.success(`Purging cache for lookup table "${e.name}"`,"Success!")},this._errorHandler(`Could not purge cache for lookup table "${e.name}"`,"Failed!")),ct.purgeAll.promise(t),t},validate(e){const t=this._url("tables/validate"),r=(0,j.Ay)("POST",t,e);return r.then(n=>{this.validationErrors=n.errors,this.propagateChanges()},this._errorHandler("Lookup table validation failed",`Could not validate lookup table "${e.name}"`)),ct.validate.promise(r),r},_errorHandler(e,t,r){return n=>{try{if(n.additional.body[0].message_template)return}catch{}let a;try{a=n.additional.body.message}catch{a=n.message}de.error(`${e}: ${a}`,t),r&&r(n)}},_url(e){return(0,X.H3)(`/system/lookup/${e}`)},_urlClusterWise(e){return(0,X.H3)(`/cluster/system/lookup/${e}`)}})),QC=e=>"type"in e&&e.type==="absolute",Ya=e=>"type"in e&&e.type==="relative",YE=e=>Ya(e)&&"range"in e,JE=e=>Ya(e)&&"from"in e,XC=e=>"type"in e&&e.type==="keyword",ZC=e=>e!==void 0&&isEqual(e,{}),qC=e=>e&&"type"in e,ev=e=>isTypeRelativeWithEnd(e)&&e.from===RELATIVE_ALL_TIME||isTypeRelativeWithStartOnly(e)&&e.range===RELATIVE_ALL_TIME,tv=null,QE={value:5,unit:"minutes",isAllTime:!1},XE={value:0,unit:"seconds",isAllTime:!0},Ja=(e,t)=>e===null?QE:e===t?XE:RELATIVE_RANGE_TYPES.map(({type:r})=>{const n=moment.duration(e,"seconds").as(r);return n-Math.floor(n)===0?{value:n||0,unit:r,isAllTime:!1}:null}).filter(Boolean).pop(),Qa=e=>Ja(e,RELATIVE_ALL_TIME),Xa=e=>Ja(e,void 0),ov=e=>isTypeRelativeWithStartOnly(e)?{type:"relative",from:Qa(e.range),to:Xa(void 0)}:{type:"relative",from:Qa(e.from),to:Xa(e.to)},ZE=e=>e&&"type"in e&&e.type==="relative"&&"from"in e&&typeof(e==null?void 0:e.from)=="object"&&"to"in e&&typeof e.to=="object",Za=({value:e,unit:t,isAllTime:r})=>r?RELATIVE_ALL_TIME:moment.duration(e||1,t).asSeconds(),rv=e=>{if(ZE(e)){const t=e.from.value!==null?Za(e.from):null,r=e.to.value!==null?Za(e.to):null;return e.to.isAllTime?{type:"relative",from:t}:{type:"relative",from:t,to:r}}return e},qE=e=>"type"in e&&isAllMessagesRange(e)?{type:e.type,range:RELATIVE_ALL_TIME}:e,nv=e=>e?(r=>isTypeKeyword(r)?{type:r.type,timezone:r.timezone,keyword:r.keyword}:r)(qE(normalizeIfClassifiedRelativeTimeRange(e))):NO_TIMERANGE_OVERRIDE,eh=(e,t)=>{const{type:r}=e;switch(e.type){case"absolute":return{type:e.type,from:je(yt(e.from,t),"internal"),to:je(yt(e.to,t),"internal")};case"relative":if(YE(e))return{type:e.type,range:e.range};if(JE(e))return"to"in e?{type:e.type,from:e.from,to:e.to}:{type:e.type,from:e.from};throw new Error("Invalid relative time range");case"keyword":return e;default:throw new Error(`Invalid time range type: ${r}`)}},qa=e=>typeof e=="object"?!!e.query_string:!!e,th=({queryString:e,timeRange:t,streams:r,filter:n,...a},i)=>{if(!qa(e)&&!qa(n)&&!t&&(r==null?void 0:r.length)===0)return Promise.resolve({status:"OK",explanations:[],context:{searched_index_ranges:[]}});const u={query:e,timerange:t?eh(t,i):void 0,streams:r,filter:n,...a};return(0,j.Ay)("POST",(0,X.H3)("/search/validate"),u).then(m=>{var E;if(m){const f=(E=m.explanations)==null?void 0:E.map(({error_type:_,error_title:A,error_message:N,begin_line:H,end_line:B,begin_column:K,end_column:ee,related_property:J})=>({id:ho(),errorMessage:N,errorType:_,errorTitle:A,beginLine:H?H-1:0,endLine:B?B-1:0,beginColumn:K,endColumn:ee,relatedProperty:J}));return{status:m.status,explanations:f,context:m.context}}}).catch(m=>(de.error(`Validating search query failed with status: ${m}`),{status:"OK",explanations:[],context:{searched_index_ranges:[]}}))};class In{constructor(t){this._value={usedParameterNames:t}}get usedParameterNames(){return this._value.usedParameterNames}static fromJSON(t){return new In(Le.Set(t.used_parameters_names))}}class pr{constructor(t,r){const n=t.valueSeq().reduce((m,E)=>[...m,...E.usedParameterNames.toJS()],[]),a=r.keySeq().toJS(),i=Le.Set(n.filter(m=>a.includes(m)).map(m=>r.get(m))),u=Le.Set(n.filter(m=>!a.includes(m)));this._value={queryMetadata:t,declaredParameters:r,used:i,undeclared:u}}get queryMetadata(){return this._value.queryMetadata}get declaredParameters(){return this._value.declaredParameters}get used(){return this._value.used}get undeclared(){return this._value.undeclared}static empty(){return new pr(Le.Map(),Le.Map())}static fromJSON(t){const{query_metadata:r,declared_parameters:n}=t,a=Le.Map(r).map(u=>In.fromJSON(u)).toMap(),i=Le.Map(n).map(u=>Sn.fromJSON(u)).toMap();return new pr(a,i)}}const oh=X.H3("/views/search/metadata"),rh=e=>(0,j.Ay)("POST",oh,JSON.stringify(e)).then(t=>pr.fromJSON(t),()=>{}),nh=e=>{var t,r;return(r=(t=e==null?void 0:e.context)==null?void 0:t.searched_index_ranges)==null?void 0:r.filter(n=>n.is_warm_tiered)},sh=e=>(e==null?void 0:e.length)>0,Dn=(0,d.default)("code")`
margin: 0 0.25em;
white-space: nowrap;
`,el=({validationState:e,onChange:t,lookupTables:r,identifier:n,parameter:a,defaultExpandHelp:i})=>{var u,m,E,f,_;const{lookupTable:A,key:N,defaultValue:H,name:B}=a,K=`$${B}$`,ee=oe=>pe=>{t(oe,pe)},J=oe=>({target:{value:pe}})=>ee(oe)(pe);if(!r)return o.createElement(wt.A,{text:"Loading lookup tables"});const ce=r.sort((oe,pe)=>_n(oe.title,pe.title)).map(oe=>({label:oe.title,value:oe.name}));return o.createElement(o.Fragment,null,o.createElement(C.Input,{id:`lookup-table-parameter-table-${n}`,name:"query-param-table-name",label:"Lookup Table",bsStyle:(u=e==null?void 0:e.lookupTable)==null?void 0:u[0],error:(m=e==null?void 0:e.lookupTable)==null?void 0:m[1],help:"Select the lookup table Graylog should use to get the values."},o.createElement(mt.A,{placeholder:"Select lookup table",inputProps:{"aria-label":"Select lookup table"},onChange:ee("lookupTable"),options:ce,value:A,autoFocus:!0,clearable:!1,required:!0})),o.createElement(C.Input,{type:"text",id:`lookup-table-parameter-key-${n}`,label:"Lookup Table Key",name:"key",defaultValue:N,onChange:J("key"),bsStyle:(E=e==null?void 0:e.key)==null?void 0:E[0],help:"Select the lookup table key",error:((f=e==null?void 0:e.key)==null?void 0:f[0])==="error"?(_=e==null?void 0:e.key)==null?void 0:_[1]:void 0,spellCheck:!1,required:!0}),o.createElement(C.Input,{id:`lookup-table-parameter-default-value-${n}`,type:"text",name:"defaultValue",label:"Default Value",help:"Select a default value in case the lookup result is empty",defaultValue:H,spellCheck:!1,onChange:J("defaultValue")}),o.createElement(C.Panel,{id:"lookup-table-parameter-help",defaultExpanded:i},o.createElement(C.Panel.Heading,null,o.createElement(C.Panel.Title,{toggle:!0},"How to use lookup table parameters")),o.createElement(C.Panel.Collapse,null,o.createElement(C.Panel.Body,null,o.createElement("h5",null,"General Usage"),o.createElement("p",null,"After declaring it, the parameter",o.createElement(Dn,null,K),"in your query, will be replaced with the list of results from the lookup table. The list of results will be presented in the form of a Lucene BooleanQuery. E.g.:",o.createElement(Dn,null,'("foo" OR "bar" OR "baz")')),o.createElement("h5",null,"Behaviour on empty lookup result list"),o.createElement("p",null,"The event definition query is only executed if a value for the parameter is present. If the lookup result is empty, the execution will be skipped and treated as if the ",o.createElement("i",null,"Search Query")," found no messages. If an execution is desired a ",o.createElement("i",null,"Default Value")," that yields the desired search result needs to be provided. For example, (depending on the use case) a wildcard like",o.createElement(Dn,null,"*"),"can be a meaningful Default Value."),o.createElement("h5",null,"Limitations"),o.createElement("p",null,"Please note that maximum number of supported results is 1024. If the lookup table returns more results, the query is not executed.")))))};el.defaultProps={parameter:{},validationState:{},defaultExpandHelp:!0};const ah=el;class tl extends o.Component{constructor(t){super(t),this.openModal=()=>{this.setState({showModal:!0})},this._cleanState=()=>{const{queryParameter:n}=this.props;this.setState({queryParameter:n,showModal:!1})},this._saved=()=>{const{queryParameter:n}=this.state;this._validate(n)&&(this.propagateChanges(),this._cleanState())},this.propagateChanges=()=>{const{queryParameters:n,onChange:a,queryParameter:i}=this.props,{queryParameter:u}=this.state,m=[...n],E=n.findIndex(f=>f.name===i.name);if(E<0)throw new Error(`Query parameter "${u.name}" not found`);m[E]=u.toJSON(),a(m)},this.handleParameterChange=(n,a)=>{const{queryParameter:i}=this.state,u=i.toBuilder()[n](a).build();this.setState({queryParameter:u})},this._validate=n=>{const a={};return n.lookupTable||(a.lookupTable="Cannot be empty"),n.key||(a.key="Cannot be empty"),this.setState({validation:a}),Tn()(a)};const{queryParameter:r}=this.props;this.state={showModal:!1,queryParameter:r,validation:{}}}render(){const{lookupTables:t,embryonic:r}=this.props,{queryParameter:n,validation:a,showModal:i}=this.state,u={lookupTable:a.lookupTable?["error",a.lookupTable]:void 0,key:a.key?["error",a.key]:void 0};return o.createElement(o.Fragment,null,o.createElement(C.Button,{bsSize:"small",bsStyle:r?"primary":"info",onClick:()=>this.openModal()},n.name,r&&": undeclared"),o.createElement(C.BootstrapModalForm,{show:i,title:`Declare Query Parameter "${n.name}" from Lookup Table`,"data-telemetry-title":"Declare Query Parameter from Lookup Table",onSubmitForm:this._saved,onCancel:this._cleanState,submitButtonText:"Save"},o.createElement(ah,{validationState:u,identifier:n.name,parameter:n,onChange:this.handleParameterChange,lookupTables:t})))}}tl.propTypes={queryParameters:s().array.isRequired,queryParameter:s().object.isRequired,lookupTables:s().array.isRequired,onChange:s().func.isRequired,embryonic:s().bool.isRequired};const lh=tl;var mr=l("bffMS9iY"),go={};go.styleTagTransform=Zo(),go.setAttributes=Qo(),go.insert=Jo().bind(null,"head"),go.domAPI=Yo(),go.insertStyleElement=Xo();var lv=jo()(mr.A,go);const ih=mr.A&&mr.A.locals?mr.A.locals:void 0,ch="pluggableSearchBarControlsAreHidden",Bt=["HOURS","MINUTES","SECONDS"],dh=["lookuptables:read"],uh=e=>({name:e,embryonic:!0,type:"lut-parameter-v1",data_type:"any",title:"new title"}),ph=({currentUser:e,eventDefinition:t,onChange:r,streams:n,validation:a})=>{const{execute_every_ms:i,search_within_ms:u}=t.config,[m,E]=(0,o.useState)(t.config),f=$o(u,Bt),_=$o(i,Bt),{userTimezone:A}=cn(),{setFieldWarning:N,warnings:H}=(0,o.useContext)(kE),B=H==null?void 0:H.queryString,K=nh(B),{tables:ee}=ks(jE),{pathname:J}=nr(),ce=Wr(),oe=ho(),pe=ho(),[le,xe]=(0,o.useState)({}),[Y,V]=(0,o.useState)(!1),[Z,_e]=(0,o.useState)(f.unit),[Ue,et]=(0,o.useState)(_.unit),[Qt,Fo]=(0,o.useState)(f.duration),[Rn,Rt]=(0,o.useState)(_.duration),fo=(0,o.useCallback)(()=>_t(e.permissions,dh),[e.permissions]),il=(0,o.useCallback)((re,ie,me,Qe)=>{th({timeRange:me,queryString:re,streams:ie},Qe).then(We=>{(We==null?void 0:We.status)==="WARNING"||(We==null?void 0:We.status)==="ERROR"?N("queryString",We):N("queryString",void 0)})},[N]),Ah=re=>({type:"relative",from:re/1e3});(0,o.useEffect)(()=>{fo()&&ct.searchPaginated(1,0,void 0,!1)},[fo]),(0,o.useEffect)(()=>{il(t.config.query,t.config.streams,Ah(t.config.search_within_ms),A)},[t.config.query,t.config.streams,t.config.search_within_ms,N,A,il]);const Bo=(re,ie)=>{const me=Mo()(t.config);return me[re]=ie,E(me),me},Er=re=>{r("config",re)},Ih=wE()(re=>re.map(ie=>n.find(me=>me.id===ie)||ie).map(ie=>{const me=typeof ie=="object"?ie:{title:ie,id:ie};return{label:me.title,value:me.id}}).sort((ie,me)=>_n(ie.label,me.label)),re=>re.join("-")),Dh=(re,ie)=>{const me=(ie==null?void 0:ie.query_parameters)||[],Qe=[],Ot={};me.forEach(dt=>{re.has(dt.name)?Qe.push(dt):Ot[dt.name]=dt});const We=[];re.forEach(dt=>{Qe.find(Fh=>Fh.name===dt)||(le[dt]?We.push(le[dt]):We.push(uh(dt)))}),xe(eo()(le,Ot)),r("config",{...ie,query_parameters:Qe.concat(We)})},Rh=(re,ie,me=(0,Le.OrderedMap)())=>{if(!fo())return;const Ot=Yt.builder().id(oe).query({type:"elasticsearch",query_string:re}).timerange({type:"relative",range:1e3}).filters(me.toList()).searchTypes([{id:pe,type:"messages",limit:10,offset:0,filter:void 0,filters:void 0,name:void 0,query:void 0,timerange:void 0,streams:void 0,sort:[],decorators:[]}]).build(),We=ur.create().toBuilder().queries([Ot]).build();rh(We).then(dt=>{Dh(dt.undeclared,ie)})},cl=or()(Rh,250),dl=(re,ie)=>{re==="_is_scheduled"&&ce(so.EVENTDEFINITION_CONDITION.FILTER_EXECUTED_AUTOMATICALLY_TOGGLED,{app_pathname:(0,X.i)(J),app_section:"event-definition-condition",app_action_value:"enable-checkbox",is_scheduled:ie._is_scheduled}),Er(ie)},Oh=re=>{const{name:ie}=re.target,me=po(re.target),Qe=Bo(ie,me);dl(ie,Qe),cl(me,Qe)},Ph=re=>{const{query:ie}=t.config,me=Bo("filters",re.toArray());Er(me),cl(ie,me)},Lh=re=>{const{name:ie}=re.target,me=po(re.target),Qe=Bo(ie,me);dl(ie,Qe)},xh=re=>{WE.A.set(ch,re),V(re)},Nh=re=>{ce(so.EVENTDEFINITION_CONDITION.FILTER_STREAM_SELECTED,{app_pathname:(0,X.i)(J),app_section:"event-definition-condition",app_action_value:"stream-select"}),Er(Bo("streams",re))},ul=re=>(ie,me)=>{re==="search_within_ms"&&me!==Z?ce(so.EVENTDEFINITION_CONDITION.FILTER_SEARCH_WITHIN_THE_LAST_UNIT_CHANGED,{app_pathname:(0,X.i)(J),app_section:"event-definition-condition",app_action_value:"searchWithinMsUnit-select",new_unit:me}):re==="execute_every_ms"&&me!==Ue&&ce(so.EVENTDEFINITION_CONDITION.FILTER_EXECUTE_SEARCH_EVERY_UNIT_CHANGED,{app_pathname:(0,X.i)(J),app_section:"event-definition-condition",app_action_value:"executeEveryMsUnit-select",new_unit:me});const Qe=Io().duration(ME()([ie,1]),me).asMilliseconds();if(Er(Bo(re,Qe)),Yn()(re)==="searchWithinMs"){Fo(ie),_e(me);return}Rt(ie),et(me)},wh=()=>{var re;const ie=((re=t==null?void 0:t.config)==null?void 0:re.query_parameters)||[],me=We=>{const dt={...t.config,query_parameters:We||[]};return r("config",dt)};if(!fo())return o.createElement(C.Alert,{bsStyle:"info"},"This account lacks permission to declare Query Parameters from Lookup Tables.");const Qe=ie.map(We=>o.createElement(lh,{key:We.name,queryParameter:An.fromJSON(We),embryonic:!!We.embryonic,queryParameters:ie,lookupTables:Object.values(ee||{}),onChange:me}));if(Tn()(Qe))return null;const Ot=!Tn()(ie.filter(We=>We.embryonic));return o.createElement(C.FormGroup,{validationState:a.errors.query_parameters?"error":null},o.createElement(C.ControlLabel,null,"Query Parameters"),o.createElement(C.Alert,{bsStyle:Ot?"danger":"info"},o.createElement(C.ButtonToolbar,null,Qe)),Ot&&o.createElement(C.HelpBlock,null,a.errors.query_parameters?bn()(a,"errors.query_parameters[0]"):"Please declare missing query parameters by clicking on the buttons above."))},$h=()=>{const re=K.map(ie=>ie.end).sort((ie,me)=>me-ie)[0];return o.createElement(qp,{dateTime:re})},On=t._scope==="ILLUMINATE",Mh=FE()(n.map(re=>re.id),Dt()(t.config.streams,[])),Uh=Ih(Mh);return o.createElement("fieldset",null,o.createElement("h2",{className:ih.title},"Filter"),o.createElement("p",null,"Add information to filter the log messages that are relevant for this Event Definition."),On||o.createElement(C.Input,{id:"filter-query",name:"query",label:"Search Query",type:"text",help:o.createElement("span",null,"Search query that Messages should match. You can use the same syntax as in the Search page, including declaring Query Parameters from Lookup Tables by using the ",o.createElement("code",null,"$newParameter$")," syntax."),value:Dt()(m.query,""),onChange:Oh}),On||wh(),!Y&&o.createElement(C.FormGroup,{controlId:"search-filters"},o.createElement(C.ControlLabel,null,"Search Filters ",o.createElement("small",{className:"text-muted"},"(Optional)")),o.createElement("div",{style:{margin:"16px 0"}},o.createElement(mE,{filters:t.config.filters,onChange:Ph,hideFiltersPreview:xh}))),On||o.createElement(o.Fragment,null,o.createElement(C.FormGroup,{controlId:"filter-streams"},o.createElement(C.ControlLabel,null,"Streams ",o.createElement("small",{className:"text-muted"},"(Optional)")),o.createElement(zs,{id:"filter-streams",matchProp:"label",onChange:re=>Nh(re===""?[]:re.split(",")),options:Uh,value:Dt()(t.config.streams,[]).join(",")}),o.createElement(C.HelpBlock,null,"Select streams the search should include. Searches in all streams if empty.")),sh(K)&&o.createElement(C.Alert,{bsStyle:"danger",title:"Warm Tier Warning"},"The selected time range will include data stored in the Warm Tier. Events that must frequently retrieve data from the Warm Tier may cause performance problems. A value for ",o.createElement("strong",null,"Search within the last")," exceeding the following duration will fall into the Warm Tier: ",$h(),"."),o.createElement(C.FormGroup,{controlId:"search-within",validationState:a.errors.search_within_ms?"error":null},o.createElement(ln,{label:"Search within the last",update:ul("search_within_ms"),value:Qt,unit:Z,units:Bt,clearable:!0,required:!0}),a.errors.search_within_ms&&o.createElement(C.HelpBlock,null,bn()(a,"errors.search_within_ms[0]"))),o.createElement(C.FormGroup,{controlId:"execute-every",validationState:a.errors.execute_every_ms?"error":null},o.createElement(ln,{label:"Execute search every",update:ul("execute_every_ms"),value:Rn,unit:Ue,units:Bt,clearable:!0,required:!0}),a.errors.execute_every_ms&&o.createElement(C.HelpBlock,null,bn()(a,"errors.execute_every_ms[0]"))),o.createElement(C.Input,{id:"schedule-checkbox",type:"checkbox",name:"_is_scheduled",label:"Enable",help:"Should this event definition be executed automatically?",checked:Dt()(t.config._is_scheduled,!0),onChange:Lh})))},iv=null;ph.propTypes={eventDefinition:s().object.isRequired,validation:s().object.isRequired,streams:s().array.isRequired,onChange:s().func.isRequired,currentUser:s().object.isRequired};var mh=Object.defineProperty,Eh=(e,t,r)=>t in e?mh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ol=(e,t,r)=>(Eh(e,typeof t!="symbol"?t+"":t,r),r);class rl extends o.Component{constructor(t){super(t),ol(this,"handleTimeRangeChange",(r,n)=>{const a=Io().duration(Je().max([r,1]),n).asMilliseconds();this.setState({duration:r,unit:n}),this.props.update(a)}),this.state=$o(t.value,Bt)}render(){const{label:t,errors:r}=this.props,{duration:n,unit:a}=this.state;return o.createElement(C.FormGroup,{validationState:r?"error":null},o.createElement(ln,{label:t,update:this.handleTimeRangeChange,value:n,unit:a,units:Bt,clearable:!0,required:!0}),r&&o.createElement(C.HelpBlock,null,r[0]))}}ol(rl,"propTypes",{value:s().number.isRequired,label:s().string.isRequired,update:s().func.isRequired,errors:s().array.isRequired});const nl=rl;var hh=Object.defineProperty,gh=(e,t,r)=>t in e?hh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qe=(e,t,r)=>(gh(e,typeof t!="symbol"?t+"":t,r),r);class sl extends o.Component{constructor(){super(...arguments),qe(this,"formatFields",Je().memoize(t=>t.sort((r,n)=>To(r.name,n.name)).map(r=>({label:`${r.name} \u2013 ${r.value.type.type}`,value:r.name})),t=>t.map(r=>r.name).join("-"))),qe(this,"formatStreamIds",()=>{const{streams:t}=this.props;return t.map(r=>r.id).map(r=>t.find(n=>n.id===r)||r).map(r=>{const n=typeof r=="object"?r:{title:r,id:r};return{label:n.title,value:n.id}}).sort((r,n)=>_n(r.label,n.label))}),qe(this,"propagateChange",(t,r)=>{const{eventDefinition:n,onChange:a}=this.props,i=Je().cloneDeep(n.config);i[t]=r,a("config",i)}),qe(this,"handleChange",t=>{const{name:r}=t.target;this.propagateChange(r,wm.getValueFromInput(t.target))}),qe(this,"handleSearchWithinMsChange",t=>{this.propagateChange("search_within_ms",t)}),qe(this,"handleExecuteEveryMsChange",t=>{this.propagateChange("execute_every_ms",t)}),qe(this,"handleStreamChange",t=>{this.propagateChange("stream",t)}),qe(this,"handleAdditionalStreamChange",t=>{this.propagateChange("additional_stream",t)}),qe(this,"handleAdditionalThresholdTypeChange",t=>{this.propagateChange("additional_threshold_type",t)}),qe(this,"handleThresholdTypeChange",t=>{this.propagateChange("threshold_type",t)}),qe(this,"handleMessagesOrderChange",t=>{this.propagateChange("messages_order",t)}),qe(this,"handleGroupByChange",t=>{const r=t===""?[]:t.split(",");this.propagateChange("grouping_fields",r)}),qe(this,"availableThresholdTypes",()=>[{value:"MORE",label:"more than"},{value:"LESS",label:"less than"}]),qe(this,"availableMessagesOrder",()=>[{value:"BEFORE",label:"additional messages before main messages"},{value:"AFTER",label:"additional messages after main messages"},{value:"ANY",label:"any order"}])}render(){const{eventDefinition:t,validation:r,allFieldTypes:n}=this.props,a=this.formatStreamIds(),i=this.formatFields(n);return o.createElement(o.Fragment,null,o.createElement(C.FormGroup,{controlId:"stream",validationState:r.errors.stream?"error":null},o.createElement(C.ControlLabel,null,"Stream"),o.createElement(mt.A,{id:"stream",placeholder:"Select Stream",required:!0,options:a,matchProp:"value",value:Je().defaultTo(t.stream,t.config.stream),onChange:this.handleStreamChange}),o.createElement(C.HelpBlock,null,"Select streams the search should include. Searches in all streams if empty.")),o.createElement(C.FormGroup,{controlId:"threshold_type",validationState:r.errors.threshold_type?"error":null},o.createElement(C.ControlLabel,null,"Threshold Type"),o.createElement(mt.A,{id:"threshold_type",required:!0,options:this.availableThresholdTypes(),matchProp:"value",value:Je().defaultTo(t.threshold_type,t.config.threshold_type),onChange:this.handleThresholdTypeChange}),o.createElement(C.HelpBlock,null,"Select condition to trigger alert: when there are more or less messages in the main stream than the threshold")),o.createElement(C.ControlLabel,null,"Threshold"),o.createElement(C.Input,{id:"threshold",type:"number",name:"threshold",help:"Value which triggers an alert if crossed",value:Je().defaultTo(t.threshold,t.config.threshold),onChange:this.handleChange}),o.createElement(C.ControlLabel,null,"Search Query ",o.createElement("small",{className:"text-muted"},"(Optional)")),o.createElement(C.Input,{id:"search_query",type:"text",name:"search_query",help:"Query string that should be used to filter messages in the main stream",value:Je().defaultTo(t.search_query,t.config.search_query),onChange:this.handleChange}),o.createElement(C.FormGroup,{controlId:"additional_stream",validationState:r.errors.additional_stream?"error":null},o.createElement(C.ControlLabel,null,"Additional Stream"),o.createElement(mt.A,{id:"additional_stream",placeholder:"Select Additional Stream",required:!0,options:a,matchProp:"value",value:Je().defaultTo(t.additional_stream,t.config.additional_stream),onChange:this.handleAdditionalStreamChange}),o.createElement(C.HelpBlock,null,"Select the stream to correlate with the main stream")),o.createElement(C.FormGroup,{controlId:"additional_threshold_type",validationState:r.errors.additional_threshold_type?"error":null},o.createElement(C.ControlLabel,null,"Additional Threshold Type"),o.createElement(mt.A,{id:"additional_threshold_type",required:!0,options:this.availableThresholdTypes(),matchProp:"value",value:Je().defaultTo(t.additional_threshold_type,t.config.additional_threshold_type),onChange:this.handleAdditionalThresholdTypeChange}),o.createElement(C.HelpBlock,null,"Select condition to trigger alert: when there are more or less messages in the additional stream than the threshold")),o.createElement(C.ControlLabel,null,"Additional Threshold"),o.createElement(C.Input,{id:"additional_threshold",type:"number",name:"additional_threshold",help:"Value which triggers an alert if crossed",value:Je().defaultTo(t.additional_threshold,t.config.additional_threshold),onChange:this.handleChange}),o.createElement(C.ControlLabel,null,"Additional Search Query ",o.createElement("small",{className:"text-muted"},"(Optional)")),o.createElement(C.Input,{id:"additional_search_query",type:"text",name:"additional_search_query",help:"Query string that should be used to filter messages in the additional stream",value:Je().defaultTo(t.additional_search_query,t.config.additional_search_query),onChange:this.handleChange}),o.createElement(C.FormGroup,{controlId:"messages_order",validationState:r.errors.messages_order?"error":null},o.createElement(C.ControlLabel,null,"Messages Order"),o.createElement(mt.A,{id:"messages_order",required:!0,options:this.availableMessagesOrder(),matchProp:"value",value:Je().defaultTo(t.messages_order,t.config.messages_order),onChange:this.handleMessagesOrderChange}),o.createElement(C.HelpBlock,null,"Select condition to trigger alert: when the messages of the additional stream come in any order relative to/before/after the messages of the main stream")),o.createElement(nl,{label:"Search within the last",value:Je().defaultTo(t.search_within_ms,t.config.search_within_ms),update:this.handleSearchWithinMsChange,errors:r.errors.search_within_ms}),o.createElement(nl,{label:"Execute search every",value:Je().defaultTo(t.execute_every_ms,t.config.execute_every_ms),update:this.handleExecuteEveryMsChange,errors:r.errors.execute_every_ms}),o.createElement(C.FormGroup,{controlId:"group-by"},o.createElement(C.ControlLabel,null,"Group by Field(s) ",o.createElement("small",{className:"text-muted"},"(Optional)")),o.createElement(zs,{id:"group-by",matchProp:"label",onChange:this.handleGroupByChange,options:i,ignoreAccents:!1,value:Je().defaultTo(t.config.grouping_fields,[]).join(","),allowCreate:!0}),o.createElement(C.HelpBlock,null,"Fields that should be checked to count messages with the same values")),o.createElement(C.ControlLabel,null,"Comment ",o.createElement("small",{className:"text-muted"},"(Optional)")),o.createElement(C.Input,{id:"comment",type:"text",name:"comment",help:"Comment about the configuration",value:Je().defaultTo(t.comment,t.config.comment),onChange:this.handleChange}))}}qe(sl,"propTypes",{eventDefinition:s().object.isRequired,validation:s().object.isRequired,onChange:s().func.isRequired,streams:s().array.isRequired,allFieldTypes:s().array.isRequired});const fh=sl,Ch=["000000000000000000000002","000000000000000000000003"],al=e=>{const{data:t}=OE([],Fd);return t?o.createElement(fh,{allFieldTypes:t,...e}):o.createElement(wt.A,{text:"Loading Filter & Correlation Count Information..."})};al.propTypes={eventDefinition:s().object.isRequired,validation:s().object.isRequired,onChange:s().func.isRequired,streams:s().array.isRequired,fieldTypes:s().object.isRequired};const vh=vE(al,Ch);var yh=Object.defineProperty,_h=(e,t,r)=>t in e?yh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bh=(e,t,r)=>(_h(e,typeof t!="symbol"?t+"":t,r),r);class ll extends o.Component{render(){const{config:t}=this.props,r=$o(t.search_within_ms,Bt),n=$o(t.execute_every_ms,Bt);return o.createElement(o.Fragment,null,o.createElement("tr",null,o.createElement("td",null,"Stream:"),o.createElement("td",null,t.stream||"No stream for this condition.")),o.createElement("tr",null,o.createElement("td",null,"Threshold Type:"),o.createElement("td",null,t.threshold_type||"No threshold type for this condition.")),o.createElement("tr",null,o.createElement("td",null,"Threshold:"),o.createElement("td",null,t.threshold)),o.createElement("tr",null,o.createElement("td",null,"Search Query:"),o.createElement("td",null,t.search_query)),o.createElement("tr",null,o.createElement("td",null,"Additional Stream:"),o.createElement("td",null,t.additional_stream||"No additional stream for this condition.")),o.createElement("tr",null,o.createElement("td",null,"Additional Threshold Type:"),o.createElement("td",null,t.additional_threshold_type||"No additional threshold type for this condition.")),o.createElement("tr",null,o.createElement("td",null,"Additional Threshold:"),o.createElement("td",null,t.additional_threshold)),o.createElement("tr",null,o.createElement("td",null,"Additional Search Query:"),o.createElement("td",null,t.additional_search_query)),o.createElement("tr",null,o.createElement("td",null,"Messages Order:"),o.createElement("td",null,t.messages_order||"No messages order for this condition.")),o.createElement("tr",null,o.createElement("td",null,"Search within:"),o.createElement("td",null,r.duration," ",r.unit.toLowerCase())),o.createElement("tr",null,o.createElement("td",null,"Execute search every:"),o.createElement("td",null,n.duration," ",n.unit.toLowerCase())),o.createElement("tr",null,o.createElement("td",null,"Grouping Fields:"),o.createElement("td",null,t.grouping_fields.join(", ")||"No grouping fields for this condition.")),o.createElement("tr",null,o.createElement("td",null,"Comment:"),o.createElement("td",null,t.comment)))}}bh(ll,"propTypes",{config:s().string.isRequired});const Th=ll,Sh={stream:"",threshold_type:"MORE",threshold:"0",search_query:"*",additional_stream:"",additional_threshold_type:"MORE",additional_threshold:"0",additional_search_query:"*",search_within_ms:60*1e3,execute_every_ms:60*1e3,messages_order:"ANY",grouping_fields:[],comment:""};h.d.register(new h.b({},{eventDefinitionTypes:[{type:"correlation-count",displayName:"Correlation Count Alert Condition",sortOrder:1,description:"This condition is triggered when the number of messages in the main stream is higher/lower than a defined threshold and when the number of messages in the additional stream is higher/lower than another defined threshold in a given time range.",formComponent:vh,summaryComponent:Th,defaultConfig:Sh}]}))},"WN+LQtRW":y=>{"use strict";y.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAwCAYAAAB5R9gVAAAABGdBTUEAALGPC/xhBQAAAVVJREFUWAnN2G0KgjAYwPHpGfRkaZeqvgQaK+hY3SUHrk1YzNLay/OiEFp92I+/Mp2F2Mh2lLISWnflFjzH263RQjzMZ19wgs73ez0o1WmtW+dgA01VxrE3p6l2GLsnBy1VYQOtVSEH/atCCgqpQgKKqYIOiq2CBkqtggLKqQIKgqgCBjpJ2Y5CdJ+zrT9A7HHSTA1dxUdHgzCqJIEwq0SDsKsEg6iqBIEoq/wEcVRZBXFV+QJxV5mBtlDFB5VjYTaGZ2sf4R9PM7U9ZU+lLuaetPP/5Die3ToO1+u+MKtHs06qODB2zBnI/jBd4MPQm1VkY79Tb18gB+C62FdBFsZR6yeIo1YQiLJWMIiqVjQIu1YSCLNWFgijVjYIuhYYCKoWKAiiFgoopxYaKLUWOii2FgkophYp6F3r42W5A9s9OcgNvva8xQaysKXlFytoqdYmQH6tF3toSUo0INq9AAAAAElFTkSuQmCC"},glNHDCWm:y=>{"use strict";y.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAwCAYAAAB5R9gVAAAABGdBTUEAALGPC/xhBQAAAXRJREFUWAnN119ugjAcwPHWzJ1gnmxzB/BBE0n24m4xfNkTaOL7wOtsl3AXMMb+Vjaa1BG00N8fSEibPpAP3xAKKs2yjzTPH9RAjhEo9WzPr/Vm8zgE0+gXATAxxuxtqeJ9t5tIwv5AtQAApsfT6TPdbp+kUBcgVwvO51KqVhMkXKsVJFXrOkigVhCIs1Y4iKlWZxB1rX4gwlpRIIpa8SDkWmggrFq4IIRaJKCYWnSgnrXIQV1r8YD+1Vrn+bReagysIFfLABRt31v8oBu1xEBttfRbltmfjgEcWh9snUS2kNdBK6WN1vrOWxObWsz+fjxevsxmB1GQDfINWiev83nhaoiB/CoOU438oPrhXS0WpQ9xc1ZQWxWHqUYe0I0qrKCQKjygDlXIQV2r0IF6ViEBxVTBBSFUQQNhVYkHIVeJAtkNsbQ7c1LtzP6FsObhb2rCKv7NBIGoq4SDmKoEgTirXAcJVGkFSVVpgoSrXICGUMUH/QBZNSUy5XWUhwAAAABJRU5ErkJggg=="},OUOTPsAr:y=>{"use strict";y.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+"},hLK4KFKM:(y,T,l)=>{y.exports=l("5knLEQW+")(1468)},"J6y4/h8P":(y,T,l)=>{y.exports=l("5knLEQW+")(1893)},"D4SbLiE/":(y,T,l)=>{y.exports=l("5knLEQW+")(2555)},UiXZqrDE:(y,T,l)=>{y.exports=l("5knLEQW+")(2598)},JnTtTRmZ:(y,T,l)=>{y.exports=l("5knLEQW+")(3001)},DUKaTDO2:(y,T,l)=>{y.exports=l("5knLEQW+")(3109)},yAXMqwrl:(y,T,l)=>{y.exports=l("5knLEQW+")(335)},"9oVghaOd":(y,T,l)=>{y.exports=l("5knLEQW+")(381)},zKLlqmvB:(y,T,l)=>{y.exports=l("5knLEQW+")(3935)},omFLJsSD:(y,T,l)=>{y.exports=l("5knLEQW+")(4644)},"L3UIULT/":(y,T,l)=>{y.exports=l("5knLEQW+")(54567)},Z7aTuO5B:(y,T,l)=>{y.exports=l("5knLEQW+")(7294)},aKyEWaw1:(y,T,l)=>{y.exports=l("5knLEQW+")(7588)},"ASBo/Til":(y,T,l)=>{y.exports=l("5knLEQW+")(8)},rDmUG0Dk:(y,T,l)=>{y.exports=l("5knLEQW+")(917)},"ww+BtWnX":(y,T,l)=>{y.exports=l("5knLEQW+")(947)},"kqAR+wt5":(y,T,l)=>{y.exports=l("5knLEQW+")(9755)},"5knLEQW+":y=>{"use strict";y.exports=__vendor},"/Gr37E0h":()=>{}},xn={};function te(y){var T=xn[y];if(T!==void 0)return T.exports;var l=xn[y]={id:y,loaded:!1,exports:{}};return Ln[y].call(l.exports,l,l.exports,te),l.loaded=!0,l.exports}te.m=Ln,te.amdD=function(){throw new Error("define cannot be used indirect")},(()=>{var y=[];te.O=(T,l,h,o)=>{if(l){o=o||0;for(var p=y.length;p>0&&y[p-1][2]>o;p--)y[p]=y[p-1];y[p]=[l,h,o];return}for(var s=1/0,p=0;p=o)&&Object.keys(te.O).every(R=>te.O[R](l[g]))?l.splice(g--,1):(c=!1,o{var T=y&&y.__esModule?()=>y.default:()=>y;return te.d(T,{a:T}),T},(()=>{var y=Object.getPrototypeOf?l=>Object.getPrototypeOf(l):l=>l.__proto__,T;te.t=function(l,h){if(h&1&&(l=this(l)),h&8||typeof l=="object"&&l&&(h&4&&l.__esModule||h&16&&typeof l.then=="function"))return l;var o=Object.create(null);te.r(o);var p={};T=T||[null,y({}),y([]),y(y)];for(var s=h&2&&l;typeof s=="object"&&!~T.indexOf(s);s=y(s))Object.getOwnPropertyNames(s).forEach(c=>p[c]=()=>l[c]);return p.default=()=>l,te.d(o,p),o}})(),te.d=(y,T)=>{for(var l in T)te.o(T,l)&&!te.o(y,l)&&Object.defineProperty(y,l,{enumerable:!0,get:T[l]})},te.f={},te.e=y=>Promise.all(Object.keys(te.f).reduce((T,l)=>(te.f[l](y,T),T),[])),te.u=y=>""+y+"."+{"bf9ab447-802":"39aba3741f48ac8801d9","bf9ab447-422":"74c73d7e5a61d66bcbd1"}[y]+".js",te.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),te.o=(y,T)=>Object.prototype.hasOwnProperty.call(y,T),(()=>{var y={},T="CorrelationCount:";te.l=(l,h,o,p)=>{if(y[l]){y[l].push(h);return}var s,c;if(o!==void 0)for(var g=document.getElementsByTagName("script"),b=0;b{s.onerror=s.onload=null,clearTimeout(d);var O=y[l];if(delete y[l],s.parentNode&&s.parentNode.removeChild(s),O&&O.forEach(w=>w(R)),S)return S(R)},d=setTimeout(D.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=D.bind(null,s.onerror),s.onload=D.bind(null,s.onload),c&&document.head.appendChild(s)}})(),te.r=y=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(y,"__esModule",{value:!0})},te.nmd=y=>(y.paths=[],y.children||(y.children=[]),y),(()=>{var y;te.g.importScripts&&(y=te.g.location+"");var T=te.g.document;if(!y&&T&&(T.currentScript&&(y=T.currentScript.src),!y)){var l=T.getElementsByTagName("script");if(l.length)for(var h=l.length-1;h>-1&&(!y||!/^http(s?):/.test(y));)y=l[h--].src}if(!y)throw new Error("Automatic publicPath is not supported in this browser");y=y.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),te.p=y})(),(()=>{te.b=document.baseURI||self.location.href;var y={"bf9ab447-579":0};te.f.j=(h,o)=>{var p=te.o(y,h)?y[h]:void 0;if(p!==0)if(p)o.push(p[2]);else{var s=new Promise((I,D)=>p=y[h]=[I,D]);o.push(p[2]=s);var c=te.p+te.u(h),g=new Error,b=I=>{if(te.o(y,h)&&(p=y[h],p!==0&&(y[h]=void 0),p)){var D=I&&(I.type==="load"?"missing":I.type),d=I&&I.target&&I.target.src;g.message="Loading chunk "+h+` failed.
(`+D+": "+d+")",g.name="ChunkLoadError",g.type=D,g.request=d,p[1](g)}};te.l(c,b,"chunk-"+h,h)}},te.O.j=h=>y[h]===0;var T=(h,o)=>{var[p,s,c]=o,g,b,I=0;if(p.some(d=>y[d]!==0)){for(g in s)te.o(s,g)&&(te.m[g]=s[g]);if(c)var D=c(te)}for(h&&h(o);Ite("wBAtif2F"));Nn=te.O(Nn)})();})();
//# sourceMappingURL=plugin.com.airbus_cyber_security.graylog.CorrelationCountPlugin.9f671905db489b1329d4.js.map