web-interface.assets.1255d548-1149.5a24f2309d40a78fe7aa.js Maven / Gradle / Ivy
(()=>{(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["1255d548-1149"],{ojMHq0dv:(D,A,e)=>{"use strict";e.d(A,{Z:()=>m});var t=e("pmX897Fv"),o=e.n(t),f=e("DjJvgDaP"),i=e.n(f),u=i()(o());u.push([D.id,`.Lrll75Yl_6CGdqA_fws8 {
vertical-align: baseline;
}`,"",{version:3,sources:["webpack://./src/components/sidecars/administration/FiltersSummary.css"],names:[],mappings:"AAAA;IACI,wBAAwB;AAC5B",sourcesContent:[`:local(.deleteButton) {
vertical-align: baseline;
}`],sourceRoot:""}]),u.locals={deleteButton:"Lrll75Yl_6CGdqA_fws8"};const m=u},"lxV/WNDc":(D,A,e)=>{"use strict";e.d(A,{Z:()=>m});var t=e("pmX897Fv"),o=e.n(t),f=e("DjJvgDaP"),i=e.n(f),u=i()(o());u.push([D.id,`.zL2vwyqmPLuE_eSRQt1q {
margin-top: 10px;
}
.zL2vwyqmPLuE_eSRQt1q dt {
float: left;
clear: left;
}
.zL2vwyqmPLuE_eSRQt1q dd {
margin-left: 160px;
}
.m4So8k7QXl39uuSoP2WS {
margin-top: 10px;
}
.Bfhoisypey7je2baSbGs {
opacity: 0.5;
z-index: 20;
}
`,"",{version:3,sources:["webpack://./src/components/sidecars/common/CommonSidecarStyles.css"],names:[],mappings:"AAAA;IACI,gBAAgB;AACpB;;AAEA;IACI,WAAW;IACX,WAAW;AACf;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,gBAAgB;AACpB;;AAEA;IACI,YAAY;IACZ,WAAW;AACf",sourcesContent:[`:local(.deflist) {
margin-top: 10px;
}
:local(.deflist) dt {
float: left;
clear: left;
}
:local(.deflist) dd {
margin-left: 160px;
}
:local(.topMargin) {
margin-top: 10px;
}
:local(.greyedOut) {
opacity: 0.5;
z-index: 20;
}
`],sourceRoot:""}]),u.locals={deflist:"zL2vwyqmPLuE_eSRQt1q",topMargin:"m4So8k7QXl39uuSoP2WS",greyedOut:"Bfhoisypey7je2baSbGs"};const m=u},ETE5k4rC:(D,A,e)=>{"use strict";e.d(A,{Z:()=>m});var t=e("pmX897Fv"),o=e.n(t),f=e("DjJvgDaP"),i=e.n(f),u=i()(o());u.push([D.id,`.popover.i3CKk4UXmnkyBYYZ5r2x {
max-width: 500px;
}`,"",{version:3,sources:["webpack://./src/components/sidecars/common/SidecarSearchForm.css"],names:[],mappings:"AAAA;IACI,gBAAgB;AACpB",sourcesContent:[`.popover:local(.popoverWide) {
max-width: 500px;
}`],sourceRoot:""}]),u.locals={popoverWide:"i3CKk4UXmnkyBYYZ5r2x"};const m=u},"TsXT+bAI":(D,A,e)=>{"use strict";e.d(A,{Z:()=>m});var t=e("pmX897Fv"),o=e.n(t),f=e("DjJvgDaP"),i=e.n(f),u=i()(o());u.push([D.id,`.xUMQPeRwYREG_QMMJHzD {
white-space: nowrap;
}`,"",{version:3,sources:["webpack://./src/components/sidecars/common/StatusIndicator.css"],names:[],mappings:"AAAA;IACI,mBAAmB;AACvB",sourcesContent:[`:local(.indicator) {
white-space: nowrap;
}`],sourceRoot:""}]),u.locals={indicator:"xUMQPeRwYREG_QMMJHzD"};const m=u},XyJ0Mvpg:(D,A,e)=>{"use strict";e.d(A,{Z:()=>i});var t=e("Z7aTuO5B"),o=e("rVdVsuGH");const i=(u,m)=>function(a){const I=(0,o.ZP)(m==null?void 0:m.pageSizes);return t.createElement(u,{...a,paginationQueryParameter:I})}},vUZx0iZy:(D,A,e)=>{"use strict";e.d(A,{Z:()=>pt});var t=e("Z7aTuO5B"),o=e("ii0bleBb"),f=e.n(o),i=e("/GOzvPf6"),u=e("uZqmR+ju"),m=e("dFpwyWHg"),y=e.n(m),a=e("C2ikvoS0"),I=e.n(a),x=e("1IntWRSu"),M=e.n(x),L=e("8nGWeFnd"),P=e.n(L),R=e("TeAcaicX"),B=e.n(R),$=e("eE3+5goe"),b=e.n($),z=e("ETE5k4rC"),W={};W.styleTagTransform=b(),W.setAttributes=P(),W.insert=M().bind(null,"head"),W.domAPI=I(),W.insertStyleElement=B();var U=y()(z.Z,W);const et=z.Z&&z.Z.locals?z.Z.locals:void 0,q=t.createElement(u.Popover,{id:"search-query-help",className:et.popoverWide,title:"Search Syntax Help"},t.createElement("p",null,t.createElement("strong",null,"Available search fields")),t.createElement(u.Table,{condensed:!0},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null,"Field"),t.createElement("th",null,"Description"))),t.createElement("tbody",null,t.createElement("tr",null,t.createElement("td",null,"name"),t.createElement("td",null,"Sidecar name")),t.createElement("tr",null,t.createElement("td",null,"status"),t.createElement("td",null,"Status of the sidecar as it appears in the list, i.e. running, failing, or unknown")),t.createElement("tr",null,t.createElement("td",null,"operating_system"),t.createElement("td",null,"Operating system the sidecar is running on")),t.createElement("tr",null,t.createElement("td",null,"last_seen"),t.createElement("td",null,"Date and time when the sidecar last communicated with Graylog")),t.createElement("tr",null,t.createElement("td",null,"node_id"),t.createElement("td",null,"Identifier of the sidecar")),t.createElement("tr",null,t.createElement("td",null,"sidecar_version"),t.createElement("td",null,"Sidecar version")))),t.createElement("p",null,t.createElement("strong",null,"Examples")),t.createElement("p",null,"Find sidecars that did not communicate with Graylog since a date:",t.createElement("br",null),t.createElement("kbd",null,"last_seen:<=2018-04-10"),t.createElement("br",null)),t.createElement("p",null,"Find sidecars with ",t.createElement("code",null,"failing")," or ",t.createElement("code",null,"unknown")," status:",t.createElement("br",null),t.createElement("kbd",null,"status:failing status:unknown"),t.createElement("br",null))),J=t.createElement(i.Ox,{trigger:"click",rootClose:!0,placement:"right",overlay:q},t.createElement(u.Button,{bsStyle:"link"},t.createElement(i.JO,{name:"question-circle"}))),H=({query:Et,onSearch:ct,onReset:V,children:St})=>t.createElement(i.UI,{query:Et,onSearch:ct,onReset:V,placeholder:"Find sidecars",queryHelpComponent:J,topMargin:0,useLoadingState:!0},St);H.propTypes={query:f().string.isRequired,onSearch:f().func.isRequired,onReset:f().func.isRequired,children:f().element},H.defaultProps={children:void 0};const pt=H},"nP+JCm88":(D,A,e)=>{"use strict";e.d(A,{Z:()=>V});var t=e("Z7aTuO5B"),o=e("ii0bleBb"),f=e.n(o),i=e("Dg7SLLbb"),u=e.n(i),m=e("uZqmR+ju"),y=e("/GOzvPf6"),a=e("Y7XN0VBN"),I=e("IZYxBTgT"),x=e("O/XpfGnR"),M=e("dFpwyWHg"),L=e.n(M),P=e("C2ikvoS0"),R=e.n(P),B=e("1IntWRSu"),$=e.n(B),b=e("8nGWeFnd"),z=e.n(b),W=e("TeAcaicX"),U=e.n(W),et=e("eE3+5goe"),q=e.n(et),J=e("TsXT+bAI"),H={};H.styleTagTransform=q(),H.setAttributes=z(),H.insert=$().bind(null,"head"),H.domAPI=R(),H.insertStyleElement=U();var pt=L()(J.Z,H);const Et=J.Z&&J.Z.locals?J.Z.locals:void 0,ct=({message:St,status:Tt,lastSeen:Bt,id:Ot})=>{const{toUserTimezone:nt}=(0,x.Z)();let At=St;const It=u()(a.Z.toString(Tt)),T=nt(Bt);let st,at;switch(Tt){case a.Z.RUNNING:at="text-success",st="play";break;case a.Z.FAILING:at="text-danger",st="exclamation-triangle";break;case a.Z.STOPPED:at="text-danger",st="stop";break;default:at="text-info",st="question-circle",At+=` (${(0,I.Qc)(T)})`}if(At&&Ot){const Pt=t.createElement(m.Popover,{id:`${Ot}-status-tooltip`},At);return t.createElement(y.Ox,{placement:"top",overlay:Pt,rootClose:!0,trigger:"hover"},t.createElement("span",{className:`${at} ${Et.indicator}`},t.createElement(y.JO,{name:st,fixedWidth:!0})," ",It))}return t.createElement("span",{className:`${at} ${Et.indicator}`},t.createElement(y.JO,{name:st,fixedWidth:!0})," ",It)};ct.propTypes={id:f().string,lastSeen:f().string,message:f().string,status:f().number},ct.defaultProps={id:"",lastSeen:void 0,message:"",status:-1};const V=ct},Y7XN0VBN:(D,A,e)=>{"use strict";e.d(A,{Z:()=>m});var t=e("PH5VRLCQ"),o=e.n(t),f=e("ueJll2OF"),i=e.n(f);const m={RUNNING:0,UNKNOWN:1,FAILING:2,STOPPED:3,properties:{0:{name:"running"},1:{name:"unknown"},2:{name:"failing"},3:{name:"stopped"}},isValidStatusCode(y){return Object.keys(this.properties).includes(String(y))},toStatusCode(y){const a=o()(y);return a===this.properties[this.RUNNING].name?this.RUNNING:a===this.properties[this.FAILING].name?this.FAILING:a===this.properties[this.STOPPED].name?this.STOPPED:this.UNKNOWN},toString(y){switch(i()(y)){case this.RUNNING:return"running";case this.FAILING:return"failing";case this.STOPPED:return"stopped";default:return"unknown"}}}},nivIhX0y:(D,A,e)=>{"use strict";e.r(A),e.d(A,{default:()=>en});var t=e("Z7aTuO5B"),o=e("uZqmR+ju"),f=e("E+CaPsQD"),i=e("/GOzvPf6"),u=e("D4SbLiE/"),m=e.n(u),y=e("ii0bleBb"),a=e.n(y),I=e("JnTtTRmZ"),x=e.n(I),M=e("IW7priiX"),L=e.n(M),P=e("alU4HbhK"),R=e.n(P),B=e("oc9db6Tt"),$=e.n(B),b=e("1/PeS1Oa"),z=e("XyJ0Mvpg"),W=e("djwd899R"),U=e("kHvj/lAD"),et=e("r6oYOZXJ"),q=e("Dg7SLLbb"),J=e.n(q),H=e("MdYBRjRJ"),pt=e("jAGDuYSC"),Et=e("eFxcQyPT"),ct=e("IA3Ku5lS");const V=(0,ct.ei)("core.SidecarsAdministration",()=>x().createActions({list:{asyncResult:!0},refreshList:{asyncResult:!0},setAction:{asyncResult:!0}})),St=(0,ct.dS)("core.SidecarsAdministration",()=>x().createStore({listenables:[V],sourceUrl:"/sidecar",sidecars:void 0,filters:void 0,pagination:{count:void 0,page:void 0,pageSize:void 0,total:void 0},query:void 0,getInitialState(){return{sidecars:this.sidecars,filters:this.filters,query:this.query,pagination:this.pagination}},propagateChanges(){this.trigger({sidecars:this.sidecars,filters:this.filters,query:this.query,pagination:this.pagination})},list({query:s="",page:r=1,pageSize:n=50,filters:g}){const h={query:s,page:r,per_page:n,filters:g},d=(0,Et.vl)("POST",H.DC(`${this.sourceUrl}/administration`),h);d.then(c=>(this.sidecars=c.sidecars,this.query=c.query,this.filters=c.filters,this.pagination={total:c.pagination.total,count:c.pagination.count,page:c.pagination.page,pageSize:c.pagination.per_page},this.propagateChanges(),c),c=>{pt.Z.error(c.status===400?c.responseMessage:`Fetching Sidecars failed with status: ${c.message}`,"Could not retrieve Sidecars")}),V.list.promise(d)},refreshList(){this.list({query:this.query,page:this.pagination.page,pageSize:this.pagination.pageSize,filters:this.filters})},setAction(s,r){const g=Object.keys(r).map(c=>({sidecar_id:c,collector_ids:r[c]})),h={action:s,collectors:g},d=(0,Et.vl)("PUT",H.DC(`${this.sourceUrl}/administration/action`),h);d.then(c=>(pt.Z.success("",`${J()(s)} for ${g.length} collectors requested`),c),c=>{pt.Z.error(`Requesting ${s} failed with status: ${c}`,`Could not ${s} collectors`)}),V.setAction.promise(d)}}));var Tt=e("yA/mTvIZ"),Bt=e.n(Tt),Ot=e("efAt+LzL"),nt=e.n(Ot),At=e("LLTH+mT+"),It=e.n(At),T=e("J6y4/h8P"),st=e("ty2gyrHp"),at=e("d4kzUuQm"),Pt=e("1LOzeRr1"),Wt=e("UXJZ+NkS"),kt=e("vUZx0iZy"),qt=e("nP+JCm88"),te=e("kZOSo4r4"),ee=e("tr19tF7z"),ne=e.n(ee),oe=e("ZyOJ+T1N"),se=e.n(oe),Zt=e("8OvTct/Z"),jt=e("v4GbOr/o"),ae=e("+KM7MH1U"),Nt=e.n(ae),_t=e("kj1rMO+m"),re=e("kwpLVeht");const le=T.default.div`
overflow: auto;
height: 360px;
margin-top: 8px;
`,ie=(0,T.default)(o.Table)`
margin-bottom: 0;
`,ce=T.default.div`
display: flex;
justify-content: center;
`,de=T.default.div`
display: flex;
justify-content: center;
align-items: center;
`,ue=T.default.div`
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: #aaa;
margin-top: -4px;
margin-bottom: -2px;
`,Kt=T.default.tr(({disabled:s=!1})=>(0,T.css)`
cursor: ${s?"auto":"pointer"};
background-color: ${s?"#E8E8E8 !important":"initial"};
border-bottom: 1px solid lightgray;
height: 49px;
`),me=T.default.tr`
height: 32px;
position: sticky;
bottom: -1px;
`,Ft=T.default.td`
width: 32px;
`,ge=T.default.td`
width: 140px;
text-align: right;
`,fe=T.default.td`
flex: 1;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
max-width: 0;
`,Ee=T.default.td`
width: 32px;
text-align: center;
`,he=(0,T.default)(o.Modal.Title)`
font-size: 1.266rem !important;
line-height: 1.1;
`,pe=T.default.div`
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
`,ve=(0,T.default)(i.UI)`
.form-group,
.query {
width: 100% !important;
}
`,Ce=(0,T.default)(re.Z)`
border: unset;
margin-bottom: 0;
margin-top: 4px;
`,ye=s=>{try{return new RegExp(s,"i")}catch{return" "}},$t=({show:s,onCancel:r,onSave:n,selectedCollectorName:g,selectedSidecarNames:h,initialAssignedConfigs:d,initialPartiallyAssignedConfigs:c,unassignedConfigs:p,getRowData:O})=>{const[N,ot]=(0,t.useState)(""),[Y,rt]=(0,t.useState)(d),[Q,w]=(0,t.useState)(c),tt=()=>{rt(d),w(c),ot("")},lt=Nt()(Y,d)&&Nt()(Q,c),Z=[...d,...c,...p].filter(F=>F.match(ye(N))).map(F=>{const{configuration:ut,collector:k,sidecars:ht,autoAssignedTags:mt}=O(F),it=Y.includes(F),gt=!it&&Q.includes(F),Ct=it&&h.join(", ")||gt&&ht.map(v=>v.node_name).join(", ")||"",ft=mt.length>0;return t.createElement(Kt,{key:F,disabled:ft,onClick:()=>{ft||(gt?w(Q.filter(v=>v!==F)):rt(it?Y.filter(v=>v!==F):[...Y,F]))}},t.createElement(Ft,null,it&&t.createElement(i.JO,{name:"check",title:`${F} is selected`}),gt&&t.createElement(i.JO,{type:"regular",name:"square-minus",title:`${F} is selected`})),t.createElement(Ft,null,t.createElement(Pt.Z,{color:ut.color,size:"xsmall"})),t.createElement(fe,null,F,t.createElement(ue,{title:Ct},t.createElement("small",null,Ct))),t.createElement(Ft,null,ft&&t.createElement(i.JO,{name:"lock",title:`Assigned from tags: ${mt.join(", ")}`})),t.createElement(ge,null,t.createElement("small",null,k?t.createElement(_t.Z,{collector:k.name,operatingSystem:k.node_operating_system}):t.createElement("em",null,"Unknown collector"))),t.createElement(Ee,null,(it||gt)&&!ft&&t.createElement(i.JO,{name:"times",title:`Remove ${F}`})))});return t.createElement(o.BootstrapModalWrapper,{showModal:s,onHide:r},t.createElement(o.Modal.Header,null,t.createElement(he,null,"Edit ",t.createElement("b",null,g)," Configurations",t.createElement(pe,null,t.createElement("small",null,`${h.length} sidecar${h.length>1?"s":""}: `,h.join(", "))))),t.createElement(o.Modal.Body,null,t.createElement(ve,{query:N,onQueryChange:F=>ot(F),topMargin:0}),Z.length>0&&t.createElement(Ce,{bsStyle:"info"},"Collector configurations that have a lock icon \xA0",t.createElement(i.JO,{name:"lock",size:"xs"}),"\xA0 have been assigned using tags and cannot be changed here."),t.createElement(le,null,t.createElement(ie,{className:"table-condensed table-hover"},t.createElement("tbody",null,Z.length===0?t.createElement(Kt,null,t.createElement("td",{colSpan:6},t.createElement(ce,null,"No configurations available for the selected log collector."))):Z,t.createElement(me,null,t.createElement("td",{colSpan:6},t.createElement(de,null,t.createElement(st.r,{to:at.ZP.SYSTEM.SIDECARS.NEW_CONFIGURATION},t.createElement(i.JO,{name:"add"}),"\xA0Add a new configuration")))))))),t.createElement(o.Modal.Footer,null,t.createElement(o.Button,{type:"button",onClick:r},"Cancel"),t.createElement(o.Button,{type:"button",onClick:tt},"Reset"),t.createElement(o.Button,{type:"submit",bsStyle:"primary",disabled:lt,onClick:()=>n(Y,Q)},"Save")))};$t.propTypes={show:a().bool.isRequired,selectedCollectorName:a().string.isRequired,selectedSidecarNames:a().array.isRequired,initialAssignedConfigs:a().array.isRequired,initialPartiallyAssignedConfigs:a().array.isRequired,unassignedConfigs:a().array.isRequired,onCancel:a().func.isRequired,onSave:a().func.isRequired,getRowData:a().func.isRequired};const Se=$t,Ae=T.default.div`
word-break: break-all;
`,bt=({collectors:s,configurations:r,selectedSidecarCollectorPairs:n,onConfigurationSelectionChange:g,show:h,onCancel:d})=>{const[c,p]=(0,t.useState)([]),[O,N]=(0,t.useState)([]),[ot,Y]=(0,t.useState)(!1),rt=(0,Zt.Z)(),Q=()=>nt()(n.map(({collector:v})=>v))[0],w=v=>v.sort((C,S)=>(0,b.Q)(C.name,S.name)).map(C=>C.name),tt=(v,C)=>{const _=v.map(({sidecar:G})=>G).reduce((G,l)=>G.concat(l.assignments),[]).map(G=>r.find(l=>l.id===G.configuration_id)).filter(G=>(C==null?void 0:C.id)===G.collector_id);return w(_)},lt=(v,C)=>{const S=r.filter(_=>!v.includes(_.name)&&(C==null?void 0:C.id)===_.collector_id);return w(S)},dt=v=>{const C=ne()(v);return[nt()(v.filter(S=>C[S]===n.length)),nt()(v.filter(S=>C[S]{p(v),N(C),Y(!0)},F=()=>{p([]),N([]),Y(!1)},ut=v=>{const C=r.filter(S=>c.includes(S.name));n.forEach(S=>{let _=C;if(O.length){const G=Q(),l=tt([S],G),E=se()(l,O),K=r.filter(j=>E.includes(j.name));_=[...C,...K]}rt(jt.A.SIDECARS.CONFIGURATION_ASSIGNED,{app_pathname:"sidecars",app_section:"administration"}),g([S],_,v)}),F(),d()},k=v=>r.find(C=>C.name===v),ht=v=>{const C=k(v);return s.find(S=>S.id===C.collector_id)},mt=v=>{const C=k(v);return n.filter(({sidecar:S})=>S.assignments.map(_=>_.configuration_id).includes(C.id)).map(S=>S.sidecar)},it=(v,C,S)=>{const _=S.reduce((G,l)=>G.concat(l.assignments.find(E=>E.collector_id===C&&E.configuration_id===v).assigned_from_tags),[]);return nt()(_)},gt=v=>{const C=k(v),S=ht(v),_=mt(v),G=it(C.id,S.id,_);return{configuration:C,collector:S,sidecars:_,autoAssignedTags:G}},Ct=()=>{const v=n.map(({sidecar:_})=>_.node_name).join(", "),C=`${n.length} sidecars`,S=n.length<=5?v:C;return t.createElement(o.BootstrapModalConfirm,{showModal:ot,title:"Configuration summary",onConfirm:ut,onCancel:F},t.createElement(Ae,null,t.createElement("p",null,"Are you sure you want to proceed with this action for ",t.createElement("b",null,S),"?")))},ft=(0,t.useMemo)(()=>()=>{const C=Q(),S=tt(n,C),_=lt(S,C),[G,l]=dt(S);return t.createElement(Se,{show:h,selectedCollectorName:(C==null?void 0:C.name)||"",selectedSidecarNames:n.map(({sidecar:E})=>E.node_name),initialAssignedConfigs:G,initialPartiallyAssignedConfigs:l,unassignedConfigs:_,onCancel:d,onSave:Z,getRowData:gt})},[h]);return t.createElement(t.Fragment,null,t.createElement(ft,null),Ct())};bt.propTypes={collectors:a().array.isRequired,configurations:a().array.isRequired,selectedSidecarCollectorPairs:a().array.isRequired,onConfigurationSelectionChange:a().func.isRequired,show:a().bool.isRequired,onCancel:a().func.isRequired};const zt=bt;var Pe=e("13uboeDm"),Qt=e.n(Pe);const Re=["start","restart","stop"],Gt=({selectedSidecarCollectorPairs:s,onProcessAction:r})=>{const[n,g]=(0,t.useState)(""),[h,d]=(0,t.useState)(!1),[c,p]=(0,t.useState)(!1),O=(0,Zt.Z)(),N=()=>{g(void 0)},ot=(Z,F)=>{F(),g(Z?Z[0]:void 0),p(!0)},Y=()=>{N(),p(!1)},rt=Z=>{const F=()=>{Z&&typeof Z=="function"&&Z(),Y()};O(jt.A.SIDECARS.PROCESS_ACTION_SET,{app_pathname:"sidecars",app_section:"administration",event_details:{action:n}}),r(n,s,F)},Q=()=>{d(!0)},w=Z=>t.createElement(t.Fragment,null,t.createElement("p",null,"You are going to ",t.createElement("strong",null,n)," log collectors in\xA0",t.createElement(i.qX,{singular:"this sidecar",plural:"these sidecars",value:Z.length}),":"),t.createElement("p",null,Z.join(", ")),t.createElement("p",null,"Are you sure you want to proceed with this action?")),tt=()=>t.createElement(o.Panel,{bsStyle:"info",header:"Collectors without Configuration"},t.createElement("p",null,"At least one selected Collector is not configured yet. To start a new Collector, assign a Configuration to it and the Sidecar will start the process for you."),t.createElement("p",null,Qt()(n),"ing a Collector without Configuration will have no effect."),t.createElement(o.Button,{bsSize:"xsmall",bsStyle:"primary",onClick:Q},"Understood, continue anyway")),lt=()=>{const Z=nt()(s.map(({sidecar:k})=>k.node_name)),F=s.every(({collector:k,sidecar:ht})=>ht.assignments.some(({collector_id:mt})=>mt===k.id)),ut=!h&&!F;return t.createElement(o.BootstrapModalConfirm,{showModal:c,title:"Process action summary",confirmButtonDisabled:ut,onConfirm:rt,onCancel:Y},t.createElement("div",null,ut?tt():w(Z)))},dt=Z=>Qt()(Z);return t.createElement("span",null,t.createElement(i.vA,{id:"process-management-action",title:"Manage collector processes",triggerNode:t.createElement(o.Button,{bsStyle:"primary",bsSize:"small"},"Process"),items:Re,itemFormatter:dt,selectedItems:n?[n]:[],displayDataFilter:!1,onItemSelect:ot}),lt())};Gt.propTypes={selectedSidecarCollectorPairs:a().array.isRequired,onProcessAction:a().func.isRequired};const Te=Gt,Oe=(0,T.default)(o.Button)`
margin-right: 6px;
`,Xt=({collectors:s,configurations:r,selectedSidecarCollectorPairs:n,onConfigurationSelectionChange:g,onProcessAction:h})=>{const[d,c]=(0,t.useState)(!1),p=(0,t.useCallback)(()=>c(!1),[]),O=nt()(n.map(({collector:Y})=>Y.name)),N=!n.length||O.length!==1,ot=()=>n.length?O.length!==1?`Cannot change configurations of ${O.join(", ")} collectors simultaneously.`:"Assign Configurations":"Incompatible collectors, please check your sidecar configuration.";return t.createElement(o.ButtonToolbar,null,t.createElement(Oe,{title:ot(),bsStyle:"primary",bsSize:"small",disabled:N,onClick:()=>c(!0)},t.createElement(i.JO,{name:"edit"})," Assign Configurations"),t.createElement(zt,{collectors:s,configurations:r,selectedSidecarCollectorPairs:n,onConfigurationSelectionChange:g,show:d,onCancel:p}),t.createElement(Te,{selectedSidecarCollectorPairs:n,onProcessAction:h}))};Xt.propTypes={collectors:a().array.isRequired,configurations:a().array.isRequired,selectedSidecarCollectorPairs:a().array.isRequired,onConfigurationSelectionChange:a().func.isRequired,onProcessAction:a().func.isRequired};const Ie=Xt;var xt=e("Y7XN0VBN");const De=m()({propTypes:{collectors:a().array.isRequired,configurations:a().array.isRequired,filters:a().object.isRequired,filter:a().func.isRequired},onFilterChange(s,r,n){const{filter:g}=this.props;g(s,r),n()},getCollectorsFilter(){const{collectors:s,filters:r}=this.props,n=p=>`${p.id};${p.name}`,g=s.sort((p,O)=>(0,b.Q)(p.name,O.name)).map(n),h=p=>{const[O]=p.split(";"),N=R()(s,{id:O});return t.createElement(_t.Z,{collector:N.name,operatingSystem:N.node_operating_system})},d=([p],O)=>{const[N]=p?p.split(";"):[];this.onFilterChange("collector",N,O)};let c;if(r.collector){const p=s.find(O=>O.id===r.collector);c=p?n(p):void 0}return t.createElement(i.vA,{id:"collector-filter",title:"Filter by collector",triggerNode:t.createElement(o.Button,{bsSize:"small",bsStyle:"link"},"Collector ",t.createElement("span",{className:"caret"})),items:g,itemFormatter:h,onItemSelect:d,selectedItems:c?[c]:[],filterPlaceholder:"Filter by collector"})},getConfigurationFilter(){const{configurations:s,filters:r}=this.props,n=p=>`${p.id};${p.name}`,g=s.sort((p,O)=>(0,b.Q)(p.name,O.name)).map(n),h=p=>{const[O]=p.split(";"),N=R()(s,{id:O});return t.createElement("span",null,t.createElement(Pt.Z,{color:N.color,size:"xsmall"})," ",N.name)},d=([p],O)=>{const[N]=p?p.split(";"):[];this.onFilterChange("configuration",N,O)};let c;if(r.configuration){const p=s.find(O=>O.id===r.configuration);c=p?n(p):void 0}return t.createElement(i.vA,{id:"configuration-filter",title:"Filter by configuration",triggerNode:t.createElement(o.Button,{bsSize:"small",bsStyle:"link"},"Configuration ",t.createElement("span",{className:"caret"})),items:g,itemFormatter:h,onItemSelect:d,selectedItems:c?[c]:[],filterPlaceholder:"Filter by configuration"})},getOSFilter(){const{collectors:s,filters:r}=this.props,n=nt()(s.map(d=>J()(d.node_operating_system))).sort(b.Q),g=([d],c)=>this.onFilterChange("os",d,c),h=r.os;return t.createElement(i.vA,{id:"os-filter",title:"Filter by OS",triggerNode:t.createElement(o.Button,{bsSize:"small",bsStyle:"link"},"OS ",t.createElement("span",{className:"caret"})),items:n,onItemSelect:g,selectedItems:h?[h]:[],filterPlaceholder:"Filter by OS"})},getStatusFilter(){const{filters:s}=this.props,r=Object.keys(xt.Z.properties).map(d=>String(d)),n=([d],c)=>this.onFilterChange("status",d,c),g=s.status,h=d=>J()(xt.Z.toString(d));return t.createElement(i.vA,{id:"status-filter",title:"Filter by collector status",triggerNode:t.createElement(o.Button,{bsSize:"small",bsStyle:"link"},"Collector Status ",t.createElement("span",{className:"caret"})),items:r,itemFormatter:h,onItemSelect:n,selectedItems:g?[g]:[],filterPlaceholder:"Filter by collector status"})},render(){return t.createElement(o.ButtonToolbar,null,this.getCollectorsFilter(),this.getConfigurationFilter(),this.getStatusFilter(),this.getOSFilter())}});var Me=e("dFpwyWHg"),Be=e.n(Me),Fe=e("C2ikvoS0"),xe=e.n(Fe),Le=e("1IntWRSu"),Ue=e.n(Le),We=e("8nGWeFnd"),Ze=e.n(We),je=e("TeAcaicX"),Ne=e.n(je),_e=e("eE3+5goe"),Ke=e.n(_e),Dt=e("ojMHq0dv"),vt={};vt.styleTagTransform=Ke(),vt.setAttributes=Ze(),vt.insert=Ue().bind(null,"head"),vt.domAPI=xe(),vt.insertStyleElement=Ne();var on=Be()(Dt.Z,vt);const $e=Dt.Z&&Dt.Z.locals?Dt.Z.locals:void 0;var be=Object.defineProperty,ze=(s,r,n)=>r in s?be(s,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):s[r]=n,Lt=(s,r,n)=>(ze(s,typeof r!="symbol"?r+"":r,n),n);class Jt extends t.Component{constructor(){super(...arguments),Lt(this,"formatFilter",(r,n)=>{const{collectors:g,configurations:h}=this.props;if(r==="collector"){const d=g.find(c=>c.id===n);return`${d.name} on ${d.node_operating_system}`}return r==="configuration"?h.find(d=>d.id===n).name:r==="status"?xt.Z.toString(n):n}),Lt(this,"formatFilters",r=>Object.keys(r).map(n=>t.createElement("li",{key:n},n,": ",this.formatFilter(n,r[n]))))}render(){const{filters:r,onResetFilters:n}=this.props;return $()(r)?null:t.createElement(o.Row,{className:"row-sm"},t.createElement(o.Col,{md:10},t.createElement("ul",{className:"list-inline"},t.createElement("li",null,t.createElement("b",null,"Filters")),this.formatFilters(r),t.createElement("li",null,t.createElement(o.Button,{bsStyle:"link",bsSize:"xsmall",className:$e.deleteButton,onClick:n},t.createElement(i.JO,{name:"times"})," Clear all")))))}}Lt(Jt,"propTypes",{collectors:a().array.isRequired,configurations:a().array.isRequired,filters:a().object.isRequired,onResetFilters:a().func.isRequired});const Qe=Jt,Ge=T.default.div(({theme:s})=>(0,T.css)`
float: right;
margin: 5px 0;
.btn-link {
color: ${s.colors.variant.darker.default};
}
.btn-toolbar {
display: flex;
max-height: 29px;
}
`),Ht=T.default.div`
.row {
margin-bottom: 5px;
}
.form-group {
display: inline-block;
margin: 0 10px 0 0;
}
.checkbox {
margin-top: 5px;
margin-bottom: 5px;
}
.checkbox label {
font-size: 1rem; /* theme.fonts.size.body */
}
`,Xe=(0,T.default)(Ht)(({theme:s})=>(0,T.css)`
color: ${s.colors.variant.light.default};
margin-left: 20px;
`),Yt=T.default.span`
display: flex;
margin-top: 5px;
flex-wrap: wrap;
`,Je=T.default.span`
margin-left: 20px;
`,He=T.default.div`
.page-size {
padding-top: 4px;
}
.search {
margin-bottom: 15px;
}
`,Ye=T.default.span`
.color-label-wrapper {
display: flex;
}
`,Vt=[10,25,50,100],wt=({configurations:s,collectors:r,onPageChange:n,pagination:g,query:h,sidecarCollectorPairs:d,filters:c,onFilter:p,onQueryChange:O,onConfigurationChange:N,onProcessAction:ot})=>{const[Y,rt]=(0,t.useState)(!1),[Q,w]=(0,t.useState)([]),tt=(0,t.useRef)(null),lt=d.filter(({collector:l})=>!$()(l)),dt=(l,E)=>`${l.node_id}-${E.name}`,Z=(l,E)=>l.length>0&&l.length===E.length;(0,t.useEffect)(()=>{const l=tt?tt.current.getInputDOMNode():void 0;l&&(l.indeterminate=Q.length>0&&!Z(r,Q))},[tt,r,Q]);const F=(l,E,K)=>{N(l,E,K)},ut=(l,E,K)=>{const j={};E.forEach(({sidecar:Rt,collector:yt})=>{j[Rt.node_id]?j[Rt.node_id].push(yt.id):j[Rt.node_id]=[yt.id]}),ot(l,j,K)},k=l=>{const E=l.target.checked?lt.map(({sidecar:K,collector:j})=>dt(K,j)):[];w(E)},ht=l=>{const E=Q.length;let K;return E===0?K=t.createElement(De,{collectors:r,configurations:s,filters:c,filter:p}):K=t.createElement(Ie,{selectedSidecarCollectorPairs:l,collectors:r,configurations:s,onConfigurationSelectionChange:F,onProcessAction:ut}),t.createElement(i.dr.Header,null,t.createElement(Ge,null,K),t.createElement(o.Input,{ref:tt,id:"select-all-checkbox",type:"checkbox",label:E===0?"Select all":`${E} selected`,disabled:lt.length===0,checked:Z(lt,Q),onChange:k,wrapperClassName:"form-group-inline"}))},mt=l=>E=>{const K=E.target.checked?Bt()(Q,[l]):It()(Q,l);w(K)},it=l=>t.createElement(i.dr.Item,{key:`sidecar-${l.node_id}`},t.createElement(Xe,null,t.createElement(o.Row,null,t.createElement(o.Col,{md:12},t.createElement("h4",{className:"list-group-item-heading"},l.node_name," ",t.createElement(Wt.Z,{operatingSystem:l.node_details.operating_system}),"\u2003",t.createElement("small",null,l.node_id)))),t.createElement(o.Row,null,t.createElement(o.Col,{md:12},t.createElement("span",null,"No collectors compatible with ",l.node_details.operating_system))))),gt=(l,E,K)=>{const j=dt(l,E),Rt=l.assignments.filter(X=>X.collector_id===E.id).map(X=>X.configuration_id),yt=K.filter(X=>Rt.includes(X.id)).sort((X,Ut)=>(0,b.Q)(X.name,Ut.name));let Mt={status:null,message:null,id:null};try{const X=l.node_details.status.collectors.find(Ut=>Ut.collector_id===E.id);X&&(Mt={status:X.status,message:X.message,id:X.collector_id})}catch{}return t.createElement(o.Row,{key:j},t.createElement(o.Col,{lg:1,md:2,xs:3},t.createElement(o.Input,{id:`${j}-checkbox`,type:"checkbox",label:E.name,checked:Q.includes(j),onChange:mt(j)})),t.createElement(o.Col,{lg:1,md:2,xs:3},t.createElement(Yt,null,yt.length>0&&t.createElement(qt.Z,{status:Mt.status,message:Mt.message,id:Mt.id,lastSeen:l.last_seen}))),t.createElement(o.Col,{lg:10,md:8,xs:6},t.createElement(Yt,null,yt.length>0&&t.createElement(i.hU,{name:"edit",onClick:()=>{w([j]),rt(!0)}}),yt.map(X=>t.createElement(st.r,{key:X.id,to:at.ZP.SYSTEM.SIDECARS.EDIT_CONFIGURATION(X.id)},t.createElement(Ye,null,t.createElement(Pt.Z,{color:X.color,text:X.name})))))))},Ct=(l,E,K)=>E.length===0?it(l):t.createElement(i.dr.Item,{key:`sidecar-${l.node_id}`},t.createElement(Ht,null,t.createElement(o.Row,null,t.createElement(o.Col,{md:12},t.createElement(Je,{className:`list-group-item-heading ${!l.active&&te.Z.greyedOut}`},l.node_name," ",t.createElement(Wt.Z,{operatingSystem:l.node_details.operating_system}),"\u2003",t.createElement("small",null,l.node_id," ",!l.active&&t.createElement("b",null,"\u2014 inactive"))))),E.map(j=>gt(l,j,K)))),ft=(l,E)=>{O(l,E)},v=()=>{O()},C=()=>{p()},S=(l,E)=>{w([]),n(l,E)},_=Q.map(l=>d.find(({sidecar:E,collector:K})=>dt(E,K)===l)).filter(l=>!!(l!=null&&l.collector)&&!!(l!=null&&l.sidecar));let G;return d.length===0?G=t.createElement(i.dr.Item,null,d.length===0?"There are no collectors to display":"Filters do not match any collectors"):G=nt()(d.map(({sidecar:E})=>E)).map(E=>{const K=d.filter(({sidecar:j})=>j.node_id===E.node_id).map(({collector:j})=>j).filter(j=>!$()(j));return Ct(E,K,s)}),t.createElement(He,null,t.createElement(i.l9,{pageSizes:Vt,totalItems:g.total,onChange:S},t.createElement(kt.Z,{query:h,onSearch:ft,onReset:v}),t.createElement(Qe,{collectors:r,configurations:s,filters:c,onResetFilters:C}),t.createElement(o.Row,null,t.createElement(o.Col,{md:12},t.createElement(i.dr,null,ht(_),G)))),t.createElement(zt,{collectors:r,configurations:s,selectedSidecarCollectorPairs:_,onConfigurationSelectionChange:F,show:Y,onCancel:()=>{w([]),rt(!1)}}))};wt.propTypes={sidecarCollectorPairs:a().array.isRequired,collectors:a().array.isRequired,configurations:a().array.isRequired,pagination:a().object.isRequired,query:a().string.isRequired,filters:a().object.isRequired,onPageChange:a().func.isRequired,onFilter:a().func.isRequired,onQueryChange:a().func.isRequired,onConfigurationChange:a().func.isRequired,onProcessAction:a().func.isRequired};const Ve=wt,we=m()({propTypes:{nodeId:a().string,paginationQueryParameter:a().object.isRequired},mixins:[x().connect(U.d,"collectors"),x().connect(St,"sidecars"),x().connect(W.m,"configurations")],getDefaultProps(){return{nodeId:void 0}},componentDidMount(){this.loadData(this.props.nodeId),this.interval=setInterval(this.reloadSidecars,5e3)},componentDidUpdate(s){s.nodeId!==this.props.nodeId&&this.loadData(this.props.nodeId)},componentWillUnmount(){this.interval&&clearInterval(this.interval)},handlePageChange(s,r){const{filters:n,query:g}=this.state.sidecars;V.list({query:g,filters:n,page:s,pageSize:r})},handleFilter(s,r){const{resetPage:n,pageSize:g}=this.props.paginationQueryParameter,{filters:h,query:d}=this.state.sidecars;let c;s?(c=L()(h),c[s]=r):c={},n(),V.list({query:d,filters:c,pageSize:g,page:1})},handleQueryChange(s="",r=()=>{}){const{resetPage:n,pageSize:g}=this.props.paginationQueryParameter,{filters:h}=this.state.sidecars;n(),V.list({query:s,filters:h,pageSize:g,page:1}).finally(r)},handleConfigurationChange(s,r,n){et.V.assignConfigurations(s,r).then(g=>{n();const{query:h,filters:d}=this.state.sidecars,{page:c,pageSize:p}=this.props.paginationQueryParameter;return V.list({query:h,filters:d,pageSize:p,page:c}),g})},handleProcessAction(s,r,n){V.setAction(s,r).then(g=>(n(),g))},reloadSidecars(){this.state.sidecars&&V.refreshList()},loadData(s){const{page:r,pageSize:n}=this.props.paginationQueryParameter,g=s?`node_id:${s}`:"";U.v.all(),V.list({query:g,page:r,pageSize:n}),W.Z.all()},render(){const{collectors:s,configurations:r,sidecars:n}=this.state;if(!s||!s.collectors||!n||!n.sidecars||!r||!r.configurations)return t.createElement(i.$j,{text:"Loading collector list..."});const g=[];return n.sidecars.sort((h,d)=>(0,b.Q)(h.node_name,d.node_name)).forEach(h=>{const d=h.collectors;if($()(d)){g.push({collector:{},sidecar:h});return}d.map(c=>R()(s.collectors,{id:c})).forEach(c=>{g.push({collector:c,sidecar:h})})}),t.createElement(Ve,{sidecarCollectorPairs:g,collectors:s.collectors,configurations:r.configurations,pagination:n.pagination,query:n.query,filters:n.filters,onPageChange:this.handlePageChange,onFilter:this.handleFilter,onQueryChange:this.handleQueryChange,onConfigurationChange:this.handleConfigurationChange,onProcessAction:this.handleProcessAction})}}),ke=(0,z.Z)(we,{pageSizes:Vt});var qe=e("tBcsAR17"),tn=e("brbjQOmY");const en=()=>{const{node_id:s}=(0,tn.Z)();return t.createElement(i.$4,{title:"Collectors Administration"},t.createElement(qe.Z,null),t.createElement(i.mr,{title:"Collectors Administration",documentationLink:{title:"Sidecar documentation",path:f.Z.PAGES.COLLECTOR_SIDECAR}},t.createElement("span",null,"The Graylog collectors can reliably forward contents of log files or Windows EventLog from your servers.")),t.createElement(o.Row,{className:"content"},t.createElement(o.Col,{md:12},t.createElement(ke,{nodeId:s}))))}},r6oYOZXJ:(D,A,e)=>{"use strict";e.d(A,{V:()=>I,b:()=>x});var t=e("JnTtTRmZ"),o=e.n(t),f=e("oCSEoDew"),i=e.n(f),u=e("MdYBRjRJ"),m=e("jAGDuYSC"),y=e("eFxcQyPT"),a=e("IA3Ku5lS");const I=(0,a.ei)("core.Sidecars",()=>o().createActions({listPaginated:{asyncResult:!0},getSidecar:{asyncResult:!0},getSidecarActions:{asyncResult:!0},restartCollector:{asyncResult:!0},assignConfigurations:{asyncResult:!0}})),x=(0,a.dS)("core.Sidecars",()=>o().createStore({listenables:[I],sourceUrl:"/sidecars",sidecars:void 0,onlyActive:void 0,pagination:{count:void 0,page:void 0,pageSize:void 0,total:void 0},query:void 0,sort:{field:void 0,order:void 0},init(){this.propagateChanges()},propagateChanges(){this.trigger({sidecars:this.sidecars,query:this.query,onlyActive:this.onlyActive,pagination:this.pagination,sort:this.sort})},listPaginated({query:M="",page:L=1,pageSize:P=50,onlyActive:R=!1,sortField:B="node_name",order:$="asc"}){const b={query:M,page:L,per_page:P,only_active:R,sort:B,order:$},z=i()(this.sourceUrl).search(b).toString(),W=(0,y.vl)("GET",u.DC(z));W.then(U=>(this.sidecars=U.sidecars,this.query=U.query,this.onlyActive=U.only_active,this.pagination={total:U.pagination.total,count:U.pagination.count,page:U.pagination.page,pageSize:U.pagination.per_page},this.sort={field:U.sort,order:U.order},this.propagateChanges(),U),U=>{m.Z.error(U.status===400?U.responseMessage:`Fetching Sidecars failed with status: ${U.message}`,"Could not retrieve Sidecars")}),I.listPaginated.promise(W)},getSidecar(M){const L=(0,y.vl)("GET",u.DC(`${this.sourceUrl}/${M}`));L.catch(P=>{let R=`Fetching Sidecar failed with status: ${P}`;P.status===404&&(R=`Unable to find a sidecar with ID <${M}>, maybe it was inactive for too long.`),m.Z.error(R,"Could not retrieve Sidecar")}),I.getSidecar.promise(L)},restartCollector(M,L){const P={};P.collector=L,P.properties={},P.properties.restart=!0;const R=(0,y.ZP)("PUT",u.DC(`${this.sourceUrl}/${M}/action`),[P]);R.catch(B=>{m.Z.error(`Restarting Sidecar failed with status: ${B}`,"Could not restart Sidecar")}),I.restartCollector.promise(R)},getSidecarActions(M){const L=(0,y.vl)("GET",u.DC(`${this.sourceUrl}/${M}/action`));L.catch(P=>{m.Z.error(`Fetching Sidecar actions failed with status: ${P}`,"Could not retrieve Sidecar actions")}),I.getSidecarActions.promise(L)},toConfigurationAssignmentDto(M,L,P){return{node_id:M,collector_id:L,configuration_id:P}},assignConfigurations(M,L){const P=M.map(({sidecar:B,collector:$})=>{const b=B.assignments.filter(z=>z.collector_id!==$.id);return L.forEach(z=>{b.push({collector_id:$.id,configuration_id:z.id})}),{node_id:B.node_id,assignments:b}}),R=(0,y.ZP)("PUT",u.DC(`${this.sourceUrl}/configurations`),{nodes:P});R.then(B=>(m.Z.success("",`Configuration change for ${M.length} collectors requested`),B),B=>{m.Z.error(`Fetching Sidecar actions failed with status: ${B}`,"Could not retrieve Sidecar actions")}),I.assignConfigurations.promise(R)}}))},"1/PeS1Oa":(D,A,e)=>{"use strict";e.d(A,{Q:()=>u,d:()=>i});var t=e("9oVghaOd"),o=e.n(t),f=e("4E3oowBb");function i(m,y,a="asc"){const I=o()(m),x=o()(y);return a==="asc"?I.isBefore(x)?-1:x.isBefore(I)?1:0:x.isBefore(I)?-1:I.isBefore(x)?1:0}function u(m,y,a="asc"){return a==="asc"?(0,f.S)(m.toLowerCase(),y.toLowerCase()):(0,f.S)(y.toLowerCase(),m.toLowerCase())}},"Rs/36W+w":(D,A,e)=>{var t=e("8ltHcpdL"),o=e("pSuustBB"),f=e("yvNqE1Lg"),i=e("4FGLTY2N"),u=e("Ijh8Dquo"),m=e("fO1Ag3P5"),y=Math.min;function a(I,x,M){for(var L=M?f:o,P=I[0].length,R=I.length,B=R,$=Array(R),b=1/0,z=[];B--;){var W=I[B];B&&x&&(W=i(W,u(x))),b=y(W.length,b),$[B]=!M&&(x||P>=120&&W.length>=120)?new t(B&&W):void 0}W=I[0];var U=-1,et=$[0];t:for(;++U{var t=e("Ynj+YPJQ");function o(f){return t(f)?f:[]}D.exports=o},tr19tF7z:(D,A,e)=>{var t=e("mKCr8FEe"),o=e("aB24O9M4"),f=Object.prototype,i=f.hasOwnProperty,u=o(function(m,y,a){i.call(m,a)?++m[a]:t(m,a,1)});D.exports=u},"ZyOJ+T1N":(D,A,e)=>{var t=e("4FGLTY2N"),o=e("Rs/36W+w"),f=e("Ce+nMSm/"),i=e("aP7cRxzs"),u=f(function(m){var y=t(m,i);return y.length&&y[0]===m[0]?o(y):[]});D.exports=u},PH5VRLCQ:(D,A,e)=>{var t=e("R+B8SaP1"),o=t(function(f,i,u){return f+(u?" ":"")+i.toLowerCase()});D.exports=o},"yA/mTvIZ":(D,A,e)=>{var t=e("IcUPdRuX"),o=e("Ce+nMSm/"),f=e("VHLeKS5G"),i=e("Ynj+YPJQ"),u=o(function(m){return f(t(m,1,i,!0))});D.exports=u},kZOSo4r4:(D,A,e)=>{"use strict";e.d(A,{Z:()=>$});var t=e("dFpwyWHg"),o=e.n(t),f=e("C2ikvoS0"),i=e.n(f),u=e("1IntWRSu"),m=e.n(u),y=e("8nGWeFnd"),a=e.n(y),I=e("TeAcaicX"),x=e.n(I),M=e("eE3+5goe"),L=e.n(M),P=e("lxV/WNDc"),R={};R.styleTagTransform=L(),R.setAttributes=a(),R.insert=m().bind(null,"head"),R.domAPI=i(),R.insertStyleElement=x();var B=o()(P.Z,R);const $=P.Z&&P.Z.locals?P.Z.locals:void 0}}]);})();
//# sourceMappingURL=1255d548-1149.5a24f2309d40a78fe7aa.js.map