"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[5378],{597073:(e,t,a)=>{a.d(t,{A:()=>r});var l=a(296540),n=a(629318);const r=(0,a(51946).w)(e=>(0,l.createElement)("svg",(0,n.d)({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,l.createElement)("path",{d:"M12 21.6a9.6 9.6 0 0 0 9.6-9.6 9.6 9.6 0 1 0-9.6 9.6Z",fill:"currentColor",className:e.twotonedclassname}),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.084 2.906c-.224.243-.36.567-.36.922v4.738c0 .355.26.673.614.707a.682.682 0 0 0 .747-.679V4.845a8.246 8.246 0 0 1 4.153 7.153c0 4.543-3.695 8.239-8.238 8.239-.464 0-.92-.038-1.362-.113v1.378c.446.064.899.096 1.362.096 5.293 0 9.6-4.307 9.6-9.6a9.602 9.602 0 0 0-4.564-8.17h3.815a.682.682 0 0 0 .678-.747c-.034-.354-.351-.614-.706-.614h-4.738c-.396 0-.753.169-1 .44ZM3.762 11.998C3.762 7.456 7.457 3.76 12 3.76c.464 0 .92.038 1.362.113V2.495A9.555 9.555 0 0 0 12 2.398c-5.293 0-9.6 4.307-9.6 9.6a9.602 9.602 0 0 0 4.564 8.17l.005.004H3.15a.682.682 0 0 0-.678.747c.034.354.351.614.707.614h4.737c.396 0 .753-.168 1-.44.226-.242.362-.566.362-.921v-4.766a.682.682 0 0 0-.748-.678c-.354.034-.614.351-.614.706v3.718a8.246 8.246 0 0 1-4.153-7.154Z",fill:"currentColor",className:e.baseclassname}),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.085 2.906a1.352 1.352 0 0 0-.361.922v4.738c0 .355.26.673.614.707a.682.682 0 0 0 .747-.679V4.845a8.246 8.246 0 0 1 4.153 7.153c0 4.543-3.695 8.239-8.238 8.239-.464 0-.919-.038-1.362-.113v1.378c.446.064.9.096 1.362.096 5.293 0 9.6-4.307 9.6-9.6a9.602 9.602 0 0 0-4.564-8.17h3.815a.682.682 0 0 0 .678-.747c-.034-.354-.35-.614-.706-.614h-4.738c-.396 0-.753.169-1 .44ZM3.762 11.998C3.762 7.456 7.458 3.76 12 3.76c.464 0 .92.038 1.362.113V2.495A9.554 9.554 0 0 0 12 2.398c-5.293 0-9.6 4.307-9.6 9.6a9.602 9.602 0 0 0 4.565 8.17l.005.004H3.15a.682.682 0 0 0-.679.747c.034.354.352.614.707.614h4.737c.397 0 .753-.168 1.001-.44.225-.242.361-.566.361-.921v-4.766a.682.682 0 0 0-.748-.678c-.354.034-.614.351-.614.706v3.718a8.246 8.246 0 0 1-4.153-7.154Z",fill:"currentColor",className:e.fillclassname})))},459659:(e,t,a)=>{a.r(t),a.d(t,{default:()=>Pt});var l=a(296540),n=a(956347),r=a(469733),s=a(415331),c=a(482419);const o=e=>{const t=(0,r.useSelector)(c._);return l.createElement(s.A,{routes:t,...e})};var i=a(530864),u=a(627440),m=a(596731),d=a(582724),A=a(296968),E=a(413357),S=a(834959);const O={[A.x.MAIN]:`${m.Si[u.VO.SYSLOG]}`.replace(m.wk,A.x.MAIN),[A.x.SETTINGS]:`${m.Si[u.VO.SYSLOG]}`.replace(m.wk,A.x.SETTINGS)};var C=a(305434),T=a(334779),h=a(71177),p=a(592510),D=a(270701),_=a(105540),N=a(604482),M=a(622624),b=a(598796),R=a(751862),v=a(524332),g=a(556456);const I=e=>e[v.rR.PATH].slice(e[v.rR.PATH].indexOf("/")+1,e[v.rR.PATH].length);var w,f=a(706574),k=a(512759);!function(e){e.ID="id",e.SECTION="section"}(w||(w={}));const G=e=>{const t=(0,r.useDispatch)(),a=(0,r.useSelector)(k.PA),n=(0,r.useSelector)(g.YQ);return(0,l.useEffect)(()=>{const a=n.map(e=>({[w.ID]:e[v.rR.PATH],[w.SECTION]:I(e)})).find(t=>t[w.SECTION]===e.section);t(a?(0,f.pi)(a[w.ID]):(0,f.pi)(void 0))},[e.section,t,a,n]),null};var L=a(550495),$=a(282556),P=a(782290),y=a(732775),x=a(421289),B=a(459449),V=a(635937),U=a(71479),H=a(822336),Y=a(294303),F=a(566723);const z=(0,U.A)(Y.A,{shouldForwardProp:e=>!["isActive","logSeverity"].includes(e)})`
  border: 1px solid
    ${({isActive:e,theme:{themeName:t}})=>H.Ay[`desktop-color-${e?"ublue-06":"neutral-03"}-${t}`]};
  cursor: pointer;
  border-radius: ${H.Ay["desktop-radius-base"]};
  padding: ${F.kc} 0;
  width: 100%;
  justify-content: center;
`;var Z=a(628999);const j=(0,l.memo)(({logSeverity:e,isActive:t,onClick:a})=>l.createElement(x.A,{description:l.createElement(B.sA,{id:V.lU[e]})},l.createElement(z,{onClick:a,isActive:t,logSeverity:e},l.createElement(Z.A,{logSeverity:e})))),W=(0,U.A)(Y.A,{shouldForwardProp:e=>"disabled"!==e})`
  gap: ${F.YC};
  ${({disabled:e})=>e?"pointer-events: none; opacity: 0.4;":""}
`,X=(0,l.memo)(({disabled:e})=>{const t=(0,r.useDispatch)(),a=(0,r.useSelector)(k.RU),n=(0,l.useCallback)(e=>()=>{t((0,f.tx)(a.includes(e)?a.filter(t=>t!==e):[e,...a]))},[t,a]);return l.createElement(W,{disabled:e},(0,y.A)()[P.O.SEVERITIES].map(e=>l.createElement(j,{key:e,logSeverity:e,isActive:a.includes(e),onClick:n(e)})))});var K=a(445535),Q=a(691189),q=a(887831),J=a(987617);const ee=`${J.A2}/counters`,te=`${J.o2}/count`;var ae=a(429252),le=a.n(ae);const ne=({queryParams:e},{queryParams:t})=>le()(e,t),re=(e={},t={})=>{return(0,Q.Kd)((a=e.data,[ee,JSON.stringify(a)].join()),te,ee,e,{method:q.A.POST,fetchConfig:{getAllPostResponse:!0},compareFunction:ne,...t});var a};var se,ce,oe=a(801081),ie=a(87485),ue=a(25553);!function(e){e.EVENTS="events",e.SUBCATEGORIES="subcategories"}(se||(se={})),function(e){e.COUNT="count",e.NAME="name"}(ce||(ce={}));const me=e=>(0,ue.uh)(re({data:e})),de=(e,t)=>(0,oe.Mz)((e=>(0,oe.Mz)(me(e),ie.i6))(e),e=>(e[t]||[]).reduce((e,t)=>(e[t[ce.NAME]]=t[ce.COUNT],e),{})),Ae=e=>(0,oe.Mz)(me(e),ie.us);var Ee=a(708984),Se=a(627068),Oe=a(918060),Ce=a(165126),Te=a(151033);const he=(0,oe.Mz)(k.CU,e=>(0,Ce.A)(e,[Te.hD.PAGE_NUMBER,Te.hD.PAGE_SIZE,Te.hD.EVENTS,Te.hD.SUBCATEGORIES])),pe=(e,t,a,l,n,r)=>`${t({id:e})}${a?"":` (${r.format(l[n]||0)})`}`;var De;!function(e){e.NUMBER_FORMAT="numberFormat"}(De||(De={}));const _e={[De.NUMBER_FORMAT]:void 0},Ne=(0,l.createContext)(_e),Me=(0,l.memo)(()=>{const e=(0,r.useDispatch)(),{formatMessage:t}=(0,B.tz)(),{numberFormat:a}=(0,l.useContext)(Ne),n=(0,r.useSelector)(k.q),s=(0,r.useSelector)(Se.zm),c=(0,r.useSelector)(he),o=(0,r.useSelector)((0,l.useMemo)(()=>de(c,se.SUBCATEGORIES),[c])),i=(0,r.useSelector)((0,l.useMemo)(()=>Ae(c),[c])),u=(0,y.A)(),m=(0,l.useMemo)(()=>V.AS.flatMap(e=>[{id:e,type:"SECTION",title:t({id:V.Vx[e]})},...u[P.O.SUBCATEGORIES].filter(t=>s[Ee.o4.SUBCATEGORY_TO_CATEGORY][t].includes(e)).map(e=>({id:e,type:"CHECKBOX",title:pe(V.$4[e],t,i,o,e,a),children:[]}))]),[t,u,s,o,i,a]),d=(0,l.useMemo)(()=>n.length===u[P.O.SUBCATEGORIES].length?"all":new Set(n),[n,u]),A=(0,l.useCallback)(t=>{e((0,f.aD)("all"===t?u[P.O.SUBCATEGORIES]:Array.from(t)))},[e,u]),E=(0,l.useCallback)(()=>{e((0,f.aD)(u[P.O.SUBCATEGORIES]))},[e,u]),S=(0,l.useCallback)(()=>{e((0,f.aD)([]))},[e]),O=(0,l.useCallback)((e,a)=>e.toLowerCase().includes(a.toLowerCase())||(s[Ee.o4.CATEGORY_TO_SUBCATEGORY][e.toUpperCase()]||[]).map(e=>t({id:V.$4[e]})).some(e=>e.toLowerCase().includes(a.toLowerCase())),[t,s]);return l.createElement(Oe.A,{items:m,selectedKeys:d,onSelectionChange:A,onSelectAll:E,onDeselectAll:S,customSearchFilter:O})}),be=(0,l.memo)(()=>{const e=(0,r.useDispatch)(),{formatMessage:t}=(0,B.tz)(),{numberFormat:a}=(0,l.useContext)(Ne),n=(0,r.useSelector)(k.Vl),s=(0,r.useSelector)(he),c=(0,r.useSelector)((0,l.useMemo)(()=>de(s,se.EVENTS),[s])),o=(0,r.useSelector)((0,l.useMemo)(()=>Ae(s),[s])),i=(0,y.A)(),u=(0,l.useMemo)(()=>i[P.O.EVENTS].map(e=>({id:e,type:"CHECKBOX",title:pe(`${Te.yQ.SYS_LOG_EVENT}_${V.Nc[e]}`,t,o,c,e,a),children:[]})).sort(({title:e},{title:t})=>e.localeCompare(t)),[i,t,c,o,a]),m=(0,l.useMemo)(()=>n.length===i[P.O.EVENTS].length?"all":new Set(n),[n,i]),d=(0,l.useCallback)(t=>{e((0,f.bR)("all"===t?i[P.O.EVENTS]:Array.from(t)))},[e,i]),A=(0,l.useCallback)(()=>{e((0,f.bR)(i[P.O.EVENTS]))},[e,i]),E=(0,l.useCallback)(()=>{e((0,f.bR)([]))},[e]);return l.createElement(Oe.A,{items:u,selectedKeys:m,onSelectionChange:d,onSelectAll:A,onDeselectAll:E})}),Re=(0,U.A)(Y.A,{shouldForwardProp:e=>"disabled"!==e})`
  gap: ${F.kc};
  flex-direction: column;
  ${({disabled:e})=>e?"pointer-events: none; opacity: 0.4;":""}
`,ve=(0,l.memo)(({disabled:e})=>{const t=(0,r.useDispatch)(),a=(0,r.useSelector)(he);return(0,l.useEffect)(()=>{t(re({data:a}))},[t,a]),l.createElement(Re,{disabled:e},l.createElement(K.A,{label:l.createElement(B.sA,{id:"LOGS_EVENT_TYPES"})},l.createElement(be,null)),l.createElement(K.A,{label:l.createElement(B.sA,{id:"LOGS_SUBCATEGORY"}),initialExpanded:!1},l.createElement(Me,null)))});var ge=a(206422),Ie=a(149188),we=a(208288),fe=a(814942),ke=a.n(fe),Ge=a(497336),Le=a.n(Ge),$e=a(979106),Pe=a(584916),ye=a(609392),xe=a(664967),Be=a(93404),Ve=a.n(Be),Ue=a(76671),He=a.n(Ue),Ye=a(686798),Fe=a.n(Ye);var ze=a(74750);const Ze=(0,U.A)(ze.A)`
  background: none !important;
  color: inherit !important;
  padding: 0px !important;
  font: inherit !important;
  cursor: pointer !important;
  outline: none !important;
  max-height: 24px !important;
  max-width: 24px !important;
  margin: 0 !important;
`,je=(0,U.A)(Y.A)`
  width: 100%;
`;var We=a(244961);const Xe=()=>{const e=(0,n.W6)(),{pathname:t}=(0,n.zy)(),a=(0,r.useSelector)(k.PA),{startDate:s,endDate:c}=(0,r.useSelector)(k.Nv);(0,l.useEffect)(()=>{const l=new URL(window.location.href);a?(s&&(l.searchParams.has(We.mX)?l.searchParams.set(We.mX,s.toISOString()):l.searchParams.append(We.mX,s.toISOString())),c&&(l.searchParams.has(We.t_)?l.searchParams.set(We.t_,c.toISOString()):l.searchParams.append(We.t_,c.toISOString()),e.push(`${t}${l.search}`))):(l.searchParams.has(We.mX)||l.searchParams.has(We.t_))&&(l.searchParams.delete(We.mX),l.searchParams.delete(We.t_),e.push(`${t}${l.search}`))},[s,c,e,t,a])},Ke=[{id:Pe.l.ONE_DAY,label:l.createElement(B.sA,{id:"COMMON_DATE_RANGE_SHORT_1D"})},{id:Pe.l.THREE_DAYS,label:l.createElement(B.sA,{id:"COMMON_DATE_RANGE_SHORT_3D"})},{id:Pe.l.ONE_WEEK,label:l.createElement(B.sA,{id:"COMMON_DATE_RANGE_SHORT_1W"})},{id:Pe.l.TWO_WEEKS,label:l.createElement(B.sA,{id:"COMMON_DATE_RANGE_SHORT_2W"})},{id:Pe.l.ONE_MONTH,label:l.createElement(B.sA,{id:"COMMON_DATE_RANGE_SHORT_1M"})}],Qe=(0,l.memo)(()=>{const e=(0,r.useDispatch)();Xe();const[t,a]=(0,l.useState)(!1),n=(0,r.useSelector)(k.Nv),s=(0,r.useSelector)(k.e6),{formatMessage:c}=(0,B.tz)(),o=(0,l.useMemo)(()=>({startsAtLabel:c({id:"COMMON_STARTS_AT"}),endsAtLabel:c({id:"COMMON_ENDS_AT"}),applyButton:c({id:"COMMON_ACTION_APPLY"}),cancelButton:c({id:"COMMON_ACTION_CANCEL"})}),[c]),{startValue:i,endValue:u}=(0,l.useMemo)(()=>n.startDate&&n.endDate?{startValue:(0,we.A)(n.startDate,"CalendarDateTime"),endValue:(0,we.A)(ke()(n.endDate,1),"CalendarDateTime")}:{},[n.endDate,n.startDate]),[m,d]=(0,l.useState)({start:i,end:u}),[A,E]=(0,l.useState)(!1),S=(0,l.useCallback)(()=>{a(!1)},[]),O=(0,l.useCallback)(e=>{e&&!m&&Boolean(i)&&Boolean(u)&&d({start:i,end:u}),e||A||d(null),a(e)},[A,i,u,m]),C=(0,l.useCallback)(e=>{d(e),E(Boolean(e))},[]),T=(0,l.useCallback)(()=>{E(!1),d(null)},[]),h=(0,l.useCallback)(({id:t})=>{e((0,f.wu)(t)),t!==Pe.j&&e((0,f.F6)(xe.E[t].getRange(new Date)))},[e]),p=(0,l.useCallback)(t=>{t&&(0,ye.Q)(t)&&(e((0,f.F6)({startDate:new Date(t.start.toString()),endDate:new Date(t.end.toString())})),a(!1),h({id:Pe.j}))},[e,h]),{maxValue:D,minValue:_}=(0,l.useMemo)(()=>({maxValue:(0,we.A)(Le()(new Date),"CalendarDateTime"),minValue:(0,we.A)(new Date(0),"CalendarDateTime")}),[]),N=(0,l.useMemo)(()=>({start:(0,we.A)(n.startDate,"CalendarDateTime"),end:(0,we.A)(n.endDate,"CalendarDateTime")}),[n.endDate,n.startDate]),M=(0,l.useMemo)(()=>(e=>[{id:"lastHour",title:e({id:"COMMON_DATES_LAST_N_HOURS"},{hours:1}),value:{start:(0,we.A)(Ve()(new Date,1),"CalendarDateTime"),end:(0,we.A)(new Date,"CalendarDateTime")}},{id:"today",title:e({id:"COMMON_DATES_TODAY"}),value:{start:(0,we.A)(He()(new Date),"CalendarDateTime"),end:(0,we.A)(new Date,"CalendarDateTime")}},{id:"last24Hours",title:e({id:"COMMON_DATES_LAST_N_HOURS"},{hours:24}),value:{start:(0,we.A)(Ve()(new Date,24),"CalendarDateTime"),end:(0,we.A)(new Date,"CalendarDateTime")}},{id:"last7Days",title:e({id:"COMMON_DATES_LAST_N_DAYS"},{days:7}),value:{start:(0,we.A)(Fe()(new Date,7),"CalendarDateTime"),end:(0,we.A)(new Date,"CalendarDateTime")}},{id:"last30Days",title:e({id:"COMMON_DATES_LAST_N_DAYS"},{days:30}),value:{start:(0,we.A)(Fe()(new Date,30),"CalendarDateTime"),end:(0,we.A)(new Date,"CalendarDateTime")}}])(c),[c]),b=(0,l.useMemo)(()=>Ke.concat({id:Pe.j,label:l.createElement(ge.X,{isOpen:t,value:m,defaultValue:N,localizationTexts:o,twoMonthCalendar:!0,onOpenChange:O,onChange:C,onClear:T,onSave:p,onCancel:S,maxValue:D,minValue:_,presets:M},l.createElement(Ze,{width:"square"},l.createElement(Ie.A,{size:"medium",isActive:s===Pe.j})))}),[s,t,m,N,o,D,_,M,O,C,T,p,S]);return l.createElement(je,null,l.createElement($e.A,{variant:"filter",tabs:b,selectedTab:s,onSelectTab:h,stretched:!0}))});var qe=a(9535),Je=a(449256),et=a(15095),tt=a(968906),at=a(861878),lt=a(928085),nt=a(959341),rt=a(166048);const st=(0,U.A)(Y.A)`
  flex-direction: column;
  gap: ${F.kc};
  margin-bottom: ${F.Ln};
`,ct=(0,l.memo)(()=>{const e=(0,n.W6)(),t=(0,et.A)(`${u.VO.SYSLOG}/${A.x.MAIN}`),a=(0,et.A)(`${u.VO.SYSLOG}/${A.x.SETTINGS}`),s=(0,r.useDispatch)(),c=(0,r.useSelector)(k.rQ),o=(0,r.useSelector)(k.Qb),i=(0,l.useCallback)(()=>{s((0,f.nd)((0,Ce.A)(c,Je.jI))),e.push(t)},[s,e,c,t]),m=(0,l.useCallback)(()=>{e.push(a)},[e,a]),d=(0,lt.A)(`${nt.bB}/${nt.Uy.TRAFFIC_LOGGING}?${rt.Mp}`),E=(0,l.useCallback)(()=>{e.push(d)},[e,d]);return l.createElement(st,null,l.createElement(qe.A,{onClear:i,disabled:o}),l.createElement(at.A,{onPress:m,labelId:"LOGS_PUSH_NOTIFICATION_SETTINGS",...tt.A.addDataTestId(tt.A.TestId.LOGS_SETTINGS)}),l.createElement(at.A,{onPress:E,labelId:"LOGS_EXPORT_TO_SIEM_SERVER"}))});var ot=a(64741),it=a(105925),ut=a(874807),mt=a(382915);const dt=(0,l.memo)(()=>{const e=(0,r.useDispatch)(),t=(0,r.useSelector)(k.Z2),[a,n]=(0,l.useState)(t||Je.fN),s=(0,l.useCallback)(t=>{e((0,f.oz)(t))},[e]),c=(0,l.useMemo)(()=>(0,ot.A)(e=>{s(e)},2e3),[s]),o=(0,l.useCallback)(()=>{n(Je.fN),c(Je.fN),c.flush()},[c]),i=(0,l.useCallback)((e,t)=>{n(t),c(t)},[c]),u=(0,l.useCallback)((e,t)=>{c(t),c.flush()},[c]);return(0,l.useEffect)(()=>{n(t)},[t]),l.createElement(it.A,{onAddTag:ut.A,onRemoveTag:ut.A,onReset:o,onChange:i,value:a,onSubmit:u,width:mt.Em})}),At=(0,l.memo)(()=>{const e=(0,n.W6)(),{pathname:t}=(0,n.zy)(),a=(0,r.useSelector)(k.Z2),[s,c]=(0,l.useState)(a||""),o=(0,l.useCallback)(a=>{const l=new URL(window.location.href);l.searchParams.set(We.Rx,encodeURIComponent(a)),e.push(`${t}${l.search}`)},[e,t]),i=(0,l.useCallback)(a=>{const l=new URL(window.location.href);l.searchParams.append(We.Rx,encodeURIComponent(a)),e.push(`${t}${l.search}`)},[e,t]),u=(0,l.useCallback)(()=>{const a=new URL(window.location.href);a.searchParams.delete(We.Rx),e.push(`${t}${a.search}`)},[e,t]),m=(0,l.useCallback)(()=>{c(""),u()},[u]),d=(0,l.useCallback)((e,t)=>{c(t)},[]),A=(0,l.useCallback)((e,t)=>{const a=new URL(window.location.href);t?(a.searchParams.has(We.Rx)?o:i)(t):u()},[o,i,u]);return l.createElement(it.A,{onAddTag:ut.A,onRemoveTag:ut.A,onReset:m,onChange:d,value:s,onSubmit:A,width:mt.Em})}),Et=(0,U.A)(Y.A)`
  width: 100%;
  align-items: center;
  gap: ${F.YC};
`;var St=a(597073),Ot=a(513587);const Ct={opacity:.5,pointerEvents:"none"},Tt=(0,U.A)(Y.A)`
  background: ${({theme:{themeName:e}})=>H.Ay[`desktop-color-neutral-01-${e}`]};
  border-radius: ${H.Ay["desktop-radius-base"]};
  padding: ${F.kc};
  cursor: pointer;
  align-items: center;
  height: ${F.fS};
`,ht=(0,l.memo)(()=>{const e=(0,r.useDispatch)(),[t,a]=(0,l.useState)(!1),n=(0,r.useSelector)(k.Nv),s=(0,r.useSelector)(k.e6),c=(0,Ot.A)(),o=(0,l.useCallback)(()=>{c&&(e((0,f.F6)({...n,endDate:new Date})),a(!0),setTimeout(()=>{a(!1)},750))},[e,n,c]);return l.createElement(Tt,{...tt.A.addDataTestId(tt.A.TestId.LOGS_RELOAD)},l.createElement(St.A,{size:"original",style:{...t||s===Pe.j?Ct:{}},onClick:o,actionable:!0}))});var pt=a(217439),Dt=a(436017);const _t=(0,U.A)(Y.A)`
  width: 100%;
  align-items: center;
  justify-content: space-between;
`,Nt="LOGS_CATEGORY_SWAI_ROUTE_PATH_PLACEHOLDER",Mt=(0,l.memo)(()=>{const e=(0,n.W6)(),t=(0,r.useSelector)(g.jO),a=(0,r.useSelector)(k.PA),s=(0,et.A)(`${u.VO.SYSLOG}/${A.x.MAIN}`),c=(0,et.A)(`${u.VO.SYSLOG}/${Nt}`),o=(0,l.useCallback)(t=>({target:{checked:a}})=>{e.push(a?c.replace(Nt,I(t)):s)},[s,c,e]);return t.length?l.createElement(K.A,{label:l.createElement(B.sA,{id:"COMMON_UNIFI_OS"}),initialExpanded:!1},t.map(e=>l.createElement(_t,{key:e[v.rR.PATH]},l.createElement(pt.E,{color:"text-2",size:"medium"},e[v.rR.LABEL]),l.createElement(Dt.A,{checked:a===e[v.rR.PATH],onChange:o(e),size:"small"})))):null});var bt=a(162420),Rt=a(699948),vt=a(196010),gt=a(670180),It=a(775699),wt=a(198494);const ft=(0,U.A)(Y.A)`
  flex-direction: column;
  gap: ${F.kc};
`,kt=(0,U.A)(Y.A)`
  width: 100%;
  justify-content: space-between;
  border-radius: ${H.Ay["desktop-radius-global"]};
  padding: ${F.kc};
  background: ${({theme:{themeName:e}})=>H.Ay[`desktop-color-neutral-01-${e}`]};
`,Gt=(0,U.A)(Y.A)`
  gap: ${F.YC};
`,Lt=(0,l.memo)(()=>{const e=(0,r.useDispatch)(),t=(0,et.A)(`${u.VO.INSIGHTS}/${gt.H.FLOWS}`),a=(0,l.useCallback)(()=>{e((0,It.rd)(!0))},[e]),n=(0,r.useSelector)(wt.mS),s=(0,l.useMemo)(()=>n?null:l.createElement(kt,null,l.createElement(Gt,null,l.createElement(bt.A,{size:"original",variant:"fill",isActive:!0}),l.createElement(pt.A,{size:"medium"},l.createElement(B.sA,{id:"LOGS_FLOWS_BANNER",values:{link:l.createElement(vt.A,{to:t},l.createElement(B.sA,{id:"COMMON_FLOWS"}))}}))),l.createElement(Rt.A,{size:"original",actionable:!0,onClick:a})),[n,t,a]);return(0,l.useMemo)(()=>[s].some(Boolean),[s])?l.createElement(ft,null,s):null}),$t=(0,l.memo)(()=>{const e=Boolean((0,r.useSelector)(k.PA)),t=(0,r.useSelector)($.zi),a=(0,l.useMemo)(()=>new Intl.NumberFormat(t,{notation:"standard"}),[t]),n=(0,l.useMemo)(()=>({[De.NUMBER_FORMAT]:a}),[a]);return l.createElement(L.A,{leftFilterPageId:N.g1.LOGS,footer:l.createElement(ct,null)},l.createElement(Ne.Provider,{value:n},l.createElement(Et,null,e?l.createElement(At,null):l.createElement(dt,null),l.createElement(ht,null)),l.createElement(Lt,null),l.createElement(Qe,null),l.createElement(X,{disabled:e}),l.createElement(ve,{disabled:e}),l.createElement(Mt,null)))}),Pt=({match:{path:e,params:t}})=>{const a=(0,C.A)(T.Z.SYSLOG);return G(t),(0,d.A)([(0,D.X)(void 0,{crudCacheStrategy:{type:p.e.CACHE}}),(0,M.D)(b.Xj.AFC_CAPABLE_AP_ADOPTED),(0,M.D)(b.Xj.LTE_BACKUP_ADOPTED),(0,M.D)(b.Xj.MISSION_CRITICAL_ADOPTED),(0,M.D)(b.Xj.MOBILE_BROADBAND_ADOPTED),(0,h.m)(void 0,{crudCacheStrategy:{type:p.e.CACHE}}),(0,E.Zi)(S.B.LOGS),(0,E.Zi)(S.B.LOG_EVENTS),(0,E.Zi)(S.B.LOG_MESSAGES),(0,E.Zi)(S.B.SYSTEM_LOG_ACTION),(0,E.Zi)(S.B.LOG_SECTION),(0,E.Zi)(S.B.ADMIN_CHANGES),(0,E.Zi)(S.B.SYSTEM_LOG)],l.createElement(_.A,{leftFilterPageId:t.section!==A.x.SETTINGS?N.g1.LOGS:void 0,content:l.createElement($t,null)},l.createElement(R.U,null,l.createElement(l.Suspense,{fallback:null},l.createElement(n.dO,null,l.createElement(i.F,{path:O[A.x.MAIN],render:e=>l.createElement(o,{id:A.x.MAIN,...e})}),l.createElement(i.F,{path:O[A.x.SETTINGS],render:e=>l.createElement(o,{id:A.x.SETTINGS,...e})}),a,l.createElement(i.F,{exact:!0,path:m.Si[u.VO.SYSLOG]},l.createElement(n.rd,{to:(0,n.tW)(e,{...t,section:A.x.MAIN})})))))),{trackingName:u.VO.SYSLOG})}},513587:(e,t,a)=>{a.d(t,{A:()=>n});var l=a(296540);const n=()=>{const e=(0,l.useRef)(!1);return(0,l.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}}}]);