"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})))},344312:(e,t,a)=>{a.r(t),a.d(t,{default:()=>Ut});var l=a(296540),n=a(956347),r=a(469733),s=a(415331),c=a(691633);const o=e=>{const t=(0,r.useSelector)(c._);return l.createElement(s.A,{routes:t,...e})};var i=a(530864),u=a(627440),d=a(596731),m=a(582724),A=a(296968),E=a(413357),S=a(834959);const O={[A.x.MAIN]:`${d.Si[u.VO.SYSLOG]}`.replace(d.wk,A.x.MAIN),[A.x.SETTINGS]:`${d.Si[u.VO.SYSLOG]}`.replace(d.wk,A.x.SETTINGS)};var C=a(305434),T=a(334779),h=a(71177),p=a(592510),_=a(270701),D=a(105540),N=a(604482),b=a(622624),M=a(598796),v=a(751862),R=a(524332),g=a(556456);const w=e=>e[R.rR.PATH].slice(e[R.rR.PATH].indexOf("/")+1,e[R.rR.PATH].length);var f,k=a(706574),I=a(512759);!function(e){e.ID="id",e.SECTION="section"}(f||(f={}));const G=e=>{const t=(0,r.useDispatch)(),a=(0,r.useSelector)(I.PA),n=(0,r.useSelector)(g.YQ);return(0,l.useEffect)(()=>{const a=n.map(e=>({[f.ID]:e[R.rR.PATH],[f.SECTION]:w(e)})).find(t=>t[f.SECTION]===e.section);t(a?(0,k.pi)(a[f.ID]):(0,k.pi)(void 0))},[e.section,t,a,n]),null};var L=a(427907),P=a(282556),$=a(67716),y=a(782290),x=a(732775),B=a(896405),V=a(459449),U=a(635937),H=a(71479),Y=a(822336),F=a(294303),z=a(566723);const Z=(0,H.A)(F.A,{shouldForwardProp:e=>!["isActive","logSeverity"].includes(e)})`
  border: 1px solid
    ${({isActive:e,theme:{themeName:t}})=>Y.Ay[`desktop-color-${e?"ublue-06":"neutral-03"}-${t}`]};
  cursor: pointer;
  border-radius: ${Y.Ay["desktop-radius-base"]};
  padding: ${z.kc} 0;
  width: 100%;
  justify-content: center;
`;var W=a(628999);const j=(0,l.memo)(({logSeverity:e,isActive:t,onClick:a})=>l.createElement(B.A,{description:l.createElement(V.sA,{id:U.lU[e]})},l.createElement(Z,{onClick:a,isActive:t,logSeverity:e},l.createElement(W.A,{logSeverity:e})))),X=(0,H.A)(F.A,{shouldForwardProp:e=>"disabled"!==e})`
  gap: ${z.YC};
  ${({disabled:e})=>e?"pointer-events: none; opacity: 0.4;":""}
`,K=(0,l.memo)(({disabled:e})=>{const t=(0,r.useDispatch)(),a=(0,r.useSelector)(I.RU),n=(0,l.useCallback)(e=>()=>{t((0,k.tx)(a.includes(e)?a.filter(t=>t!==e):[e,...a]))},[t,a]);return l.createElement(X,{disabled:e},(0,x.A)()[y.O.SEVERITIES].map(e=>l.createElement(j,{key:e,logSeverity:e,isActive:a.includes(e),onClick:n(e)})))});var q=a(445535),Q=a(691189),J=a(887831),ee=a(987617);const te=`${ee.A2}/counters`,ae=`${ee.o2}/count`;var le=a(429252),ne=a.n(le);const re=({queryParams:e},{queryParams:t})=>ne()(e,t),se=(e={},t={})=>{return(0,Q.Kd)((a=e.data,[te,JSON.stringify(a)].join()),ae,te,e,{method:J.A.POST,fetchConfig:{getAllPostResponse:!0},compareFunction:re,...t});var a};var ce,oe,ie=a(801081),ue=a(87485),de=a(25553);!function(e){e.EVENTS="events",e.SUBCATEGORIES="subcategories"}(ce||(ce={})),function(e){e.COUNT="count",e.NAME="name"}(oe||(oe={}));const me=e=>(0,de.uh)(se({data:e})),Ae=(e,t)=>(0,ie.Mz)((e=>(0,ie.Mz)(me(e),ue.i6))(e),e=>(e[t]||[]).reduce((e,t)=>(e[t[oe.NAME]]=t[oe.COUNT],e),{})),Ee=e=>(0,ie.Mz)(me(e),ue.us);var Se=a(708984),Oe=a(627068),Ce=a(980500),Te=a(165126),he=a(151033);const pe=(0,ie.Mz)(I.CU,e=>(0,Te.A)(e,[he.hD.PAGE_NUMBER,he.hD.PAGE_SIZE,he.hD.EVENTS,he.hD.SUBCATEGORIES])),_e=(e,t)=>t({id:e}),De=(e,t,a,l)=>e?"":` (${t.format(a[l]||0)})`;var Ne;!function(e){e.NUMBER_FORMAT="numberFormat"}(Ne||(Ne={}));const be={[Ne.NUMBER_FORMAT]:void 0},Me=(0,l.createContext)(be),ve=(0,l.memo)(({disabled:e})=>{const t=(0,r.useDispatch)(),{formatMessage:a}=(0,V.tz)(),{numberFormat:n}=(0,l.useContext)(Me),s=(0,r.useSelector)(I.q),c=(0,r.useSelector)(Oe.zm),o=(0,r.useSelector)(pe),i=(0,r.useSelector)((0,l.useMemo)(()=>Ae(o,ce.SUBCATEGORIES),[o])),u=(0,r.useSelector)((0,l.useMemo)(()=>Ee(o),[o])),d=(0,x.A)(),m=(0,l.useMemo)(()=>U.AS.flatMap(e=>[{id:e,type:"SECTION",title:a({id:U.Vx[e]})},...d[y.O.SUBCATEGORIES].filter(t=>c[Se.o4.SUBCATEGORY_TO_CATEGORY][t].includes(e)).map(e=>({id:e,type:"CHECKBOX",title:_e(U.$4[e],a),checkboxProps:{data:De(u,n,i,e),isTruncated:!0},children:[]}))]),[a,d,c,i,u,n]),A=(0,l.useMemo)(()=>s.length===d[y.O.SUBCATEGORIES].length?"all":new Set(s),[s,d]),E=(0,l.useMemo)(()=>e?new Set(d[y.O.SUBCATEGORIES]):new Set([]),[e,d]),S=(0,l.useCallback)(e=>{t((0,k.aD)("all"===e?d[y.O.SUBCATEGORIES]:Array.from(e)))},[t,d]),O=(0,l.useCallback)(e=>{t((0,k.aD)(Array.from(e)))},[t]),C=(0,l.useCallback)(()=>{t((0,k.aD)([]))},[t]),T=(0,l.useCallback)((e,t)=>e.toLowerCase().includes(t.toLowerCase())||(c[Se.o4.CATEGORY_TO_SUBCATEGORY][e.toUpperCase()]||[]).map(e=>a({id:U.$4[e]})).some(e=>e.toLowerCase().includes(t.toLowerCase())),[a,c]);return l.createElement(Ce.A,{items:m,selectedKeys:A,onSelectionChange:S,onSelectAll:O,onDeselectAll:C,customSearchFilter:T,disabledKeys:E})}),Re=(0,l.memo)(({disabled:e})=>{const t=(0,r.useDispatch)(),{formatMessage:a}=(0,V.tz)(),{numberFormat:n}=(0,l.useContext)(Me),s=(0,r.useSelector)(I.Vl),c=(0,r.useSelector)(pe),o=(0,r.useSelector)((0,l.useMemo)(()=>Ae(c,ce.EVENTS),[c])),i=(0,r.useSelector)((0,l.useMemo)(()=>Ee(c),[c])),u=(0,x.A)(),d=(0,l.useMemo)(()=>u[y.O.EVENTS].map(e=>({id:e,type:"CHECKBOX",title:_e(`${he.yQ.SYS_LOG_EVENT}_${U.Nc[e]}`,a),checkboxProps:{data:De(i,n,o,e),isTruncated:!0},children:[]})).sort(({title:e},{title:t})=>e.localeCompare(t)),[u,a,o,i,n]),m=(0,l.useMemo)(()=>s.length===u[y.O.EVENTS].length?"all":new Set(s),[s,u]),A=(0,l.useMemo)(()=>e?new Set(u[y.O.EVENTS]):new Set([]),[e,u]),E=(0,l.useCallback)(e=>{t((0,k.bR)("all"===e?u[y.O.EVENTS]:Array.from(e)))},[t,u]),S=(0,l.useCallback)(e=>{t((0,k.bR)(Array.from(e)))},[t]),O=(0,l.useCallback)(()=>{t((0,k.bR)([]))},[t]);return l.createElement(Ce.A,{items:d,selectedKeys:m,onSelectionChange:E,onSelectAll:S,onDeselectAll:O,disabledKeys:A})}),ge=(0,H.A)(F.A,{shouldForwardProp:e=>"disabled"!==e})`
  flex-direction: column;
  ${({disabled:e})=>e?"pointer-events: none; opacity: 0.8;":""}
`,we=(0,l.memo)(({disabled:e})=>{const t=(0,r.useDispatch)(),a=(0,r.useSelector)(pe);return(0,l.useEffect)(()=>{t(se({data:a}))},[t,a]),l.createElement(ge,{disabled:e},l.createElement(q.A,{label:l.createElement(V.sA,{id:"LOGS_EVENT_TYPES"})},l.createElement(Re,{disabled:e})),l.createElement(q.A,{label:l.createElement(V.sA,{id:"LOGS_SUBCATEGORY"}),initialExpanded:!1},l.createElement(ve,{disabled:e})))});var fe=a(48450),ke=a(149188),Ie=a(208288),Ge=a(814942),Le=a.n(Ge),Pe=a(497336),$e=a.n(Pe),ye=a(979106),xe=a(584916),Be=a(609392),Ve=a(664967),Ue=a(93404),He=a.n(Ue),Ye=a(76671),Fe=a.n(Ye),ze=a(686798),Ze=a.n(ze);var We=a(74750);const je=(0,H.A)(We.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;
`,Xe=(0,H.A)(F.A)`
  width: 100%;
`;var Ke=a(244961);const qe=()=>{const e=(0,n.W6)(),{pathname:t}=(0,n.zy)(),a=(0,r.useSelector)(I.PA),{startDate:s,endDate:c}=(0,r.useSelector)(I.Nv);(0,l.useEffect)(()=>{const l=new URL(window.location.href);a?(s&&(l.searchParams.has(Ke.mX)?l.searchParams.set(Ke.mX,s.toISOString()):l.searchParams.append(Ke.mX,s.toISOString())),c&&(l.searchParams.has(Ke.t_)?l.searchParams.set(Ke.t_,c.toISOString()):l.searchParams.append(Ke.t_,c.toISOString()),e.push(`${t}${l.search}`))):(l.searchParams.has(Ke.mX)||l.searchParams.has(Ke.t_))&&(l.searchParams.delete(Ke.mX),l.searchParams.delete(Ke.t_),e.push(`${t}${l.search}`))},[s,c,e,t,a])},Qe=[{id:xe.l.ONE_DAY,label:l.createElement(V.sA,{id:"COMMON_DATE_RANGE_SHORT_1D"})},{id:xe.l.THREE_DAYS,label:l.createElement(V.sA,{id:"COMMON_DATE_RANGE_SHORT_3D"})},{id:xe.l.ONE_WEEK,label:l.createElement(V.sA,{id:"COMMON_DATE_RANGE_SHORT_1W"})},{id:xe.l.TWO_WEEKS,label:l.createElement(V.sA,{id:"COMMON_DATE_RANGE_SHORT_2W"})},{id:xe.l.ONE_MONTH,label:l.createElement(V.sA,{id:"COMMON_DATE_RANGE_SHORT_1M"})}],Je=(0,l.memo)(()=>{const e=(0,r.useDispatch)();qe();const[t,a]=(0,l.useState)(!1),n=(0,r.useSelector)(I.Nv),s=(0,r.useSelector)(I.e6),{formatMessage:c}=(0,V.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,Ie.A)(n.startDate,"CalendarDateTime"),endValue:(0,Ie.A)(Le()(n.endDate,1),"CalendarDateTime")}:{},[n.endDate,n.startDate]),[d,m]=(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&&!d&&Boolean(i)&&Boolean(u)&&m({start:i,end:u}),e||A||m(null),a(e)},[A,i,u,d]),C=(0,l.useCallback)(e=>{m(e),E(Boolean(e))},[]),T=(0,l.useCallback)(()=>{E(!1),m(null)},[]),h=(0,l.useCallback)(({id:t})=>{e((0,k.wu)(t)),t!==xe.j&&e((0,k.F6)(Ve.E[t].getRange(new Date)))},[e]),p=(0,l.useCallback)(t=>{t&&(0,Be.Q)(t)&&(e((0,k.F6)({startDate:new Date(t.start.toString()),endDate:new Date(t.end.toString())})),a(!1),h({id:xe.j}))},[e,h]),{maxValue:_,minValue:D}=(0,l.useMemo)(()=>({maxValue:(0,Ie.A)($e()(new Date),"CalendarDateTime"),minValue:(0,Ie.A)(new Date(0),"CalendarDateTime")}),[]),N=(0,l.useMemo)(()=>({start:(0,Ie.A)(n.startDate,"CalendarDateTime"),end:(0,Ie.A)(n.endDate,"CalendarDateTime")}),[n.endDate,n.startDate]),b=(0,l.useMemo)(()=>(e=>[{id:"lastHour",title:e({id:"COMMON_DATES_LAST_N_HOURS"},{hours:1}),value:{start:(0,Ie.A)(He()(new Date,1),"CalendarDateTime"),end:(0,Ie.A)(new Date,"CalendarDateTime")}},{id:"today",title:e({id:"COMMON_DATES_TODAY"}),value:{start:(0,Ie.A)(Fe()(new Date),"CalendarDateTime"),end:(0,Ie.A)(new Date,"CalendarDateTime")}},{id:"last24Hours",title:e({id:"COMMON_DATES_LAST_N_HOURS"},{hours:24}),value:{start:(0,Ie.A)(He()(new Date,24),"CalendarDateTime"),end:(0,Ie.A)(new Date,"CalendarDateTime")}},{id:"last7Days",title:e({id:"COMMON_DATES_LAST_N_DAYS"},{days:7}),value:{start:(0,Ie.A)(Ze()(new Date,7),"CalendarDateTime"),end:(0,Ie.A)(new Date,"CalendarDateTime")}},{id:"last30Days",title:e({id:"COMMON_DATES_LAST_N_DAYS"},{days:30}),value:{start:(0,Ie.A)(Ze()(new Date,30),"CalendarDateTime"),end:(0,Ie.A)(new Date,"CalendarDateTime")}}])(c),[c]),M=(0,l.useMemo)(()=>Qe.concat({id:xe.j,label:l.createElement(fe.X,{isOpen:t,value:d,defaultValue:N,localizationTexts:o,twoMonthCalendar:!0,onOpenChange:O,onChange:C,onClear:T,onSave:p,onCancel:S,maxValue:_,minValue:D,presets:b},l.createElement(je,{width:"square"},l.createElement(ke.A,{size:"medium",isActive:s===xe.j})))}),[s,t,d,N,o,_,D,b,O,C,T,p,S]);return l.createElement(Xe,null,l.createElement(ye.A,{variant:"filter",tabs:M,selectedTab:s,onSelectTab:h,stretched:!0}))});var et=a(9535),tt=a(15095),at=a(968906),lt=a(861878),nt=a(928085),rt=a(959341),st=a(166048),ct=a(17441),ot=a(792072),it=a(55983),ut=a(57867);const dt=(0,l.memo)(()=>{const e=(0,n.W6)(),t=(0,r.useDispatch)(),a=(0,tt.A)(`${u.VO.SYSLOG}/${A.x.MAIN}`),s=(0,tt.A)(`${u.VO.SYSLOG}/${A.x.SETTINGS}`),c=(0,nt.A)(it.Ai),o=(0,nt.A)(`${rt.bB}/${rt.Uy.TRAFFIC_LOGGING}?${st.Mp}`),i=(0,r.useSelector)(ot._),d=(0,r.useSelector)(I.Qb),m=(0,l.useCallback)(()=>{t((0,ut.A)()),e.push(a)},[t,e,a]),E=(0,l.useCallback)(()=>{e.push(s)},[e,s]),S=(0,l.useCallback)(()=>{e.push(i?c:o)},[e,i,c,o]);return l.createElement(ct.A,null,l.createElement(et.A,{onClear:m,disabled:d}),l.createElement(lt.A,{onPress:E,labelId:"LOGS_PUSH_NOTIFICATION_SETTINGS",...at.A.addDataTestId(at.A.TestId.LOGS_SETTINGS)}),l.createElement(lt.A,{onPress:S,labelId:"LOGS_EXPORT_TO_SIEM_SERVER"}))});var mt=a(64741),At=a(105925),Et=a(874807),St=a(449256),Ot=a(382915);const Ct=(0,l.memo)(()=>{const e=(0,r.useDispatch)(),t=(0,r.useSelector)(I.Z2),[a,n]=(0,l.useState)(t||St.fN),s=(0,l.useCallback)(t=>{e((0,k.oz)(t))},[e]),c=(0,l.useMemo)(()=>(0,mt.A)(e=>{s(e)},2e3),[s]),o=(0,l.useCallback)(()=>{n(St.fN),c(St.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(At.A,{onAddTag:Et.Ay,onRemoveTag:Et.Ay,onReset:o,onChange:i,value:a,onSubmit:u,width:Ot.Em})}),Tt=(0,l.memo)(()=>{const e=(0,n.W6)(),{pathname:t}=(0,n.zy)(),a=(0,r.useSelector)(I.Z2),[s,c]=(0,l.useState)(a||""),o=(0,l.useCallback)(a=>{const l=new URL(window.location.href);l.searchParams.set(Ke.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(Ke.Rx,encodeURIComponent(a)),e.push(`${t}${l.search}`)},[e,t]),u=(0,l.useCallback)(()=>{const a=new URL(window.location.href);a.searchParams.delete(Ke.Rx),e.push(`${t}${a.search}`)},[e,t]),d=(0,l.useCallback)(()=>{c(""),u()},[u]),m=(0,l.useCallback)((e,t)=>{c(t)},[]),A=(0,l.useCallback)((e,t)=>{const a=new URL(window.location.href);t?(a.searchParams.has(Ke.Rx)?o:i)(t):u()},[o,i,u]);return l.createElement(At.A,{onAddTag:Et.Ay,onRemoveTag:Et.Ay,onReset:d,onChange:m,value:s,onSubmit:A,width:Ot.Em})}),ht=(0,H.A)(F.A)`
  width: 100%;
  align-items: center;
  gap: ${z.YC};
`;var pt=a(597073),_t=a(513587);const Dt={opacity:.5,pointerEvents:"none"},Nt=(0,H.A)(F.A)`
  background: ${({theme:{themeName:e}})=>Y.Ay[`desktop-color-neutral-01-${e}`]};
  border-radius: ${Y.Ay["desktop-radius-base"]};
  padding: ${z.kc};
  cursor: pointer;
  align-items: center;
  height: ${z.fS};
`,bt=(0,l.memo)(()=>{const e=(0,r.useDispatch)(),[t,a]=(0,l.useState)(!1),n=(0,r.useSelector)(I.Nv),s=(0,r.useSelector)(I.e6),c=(0,_t.A)(),o=(0,l.useCallback)(()=>{c&&(e((0,k.F6)({...n,endDate:new Date})),a(!0),setTimeout(()=>{a(!1)},750))},[e,n,c]);return l.createElement(Nt,{...at.A.addDataTestId(at.A.TestId.LOGS_RELOAD)},l.createElement(pt.A,{size:"original",style:{...t||s===xe.j?Dt:{}},onClick:o,actionable:!0}))});var Mt=a(217439),vt=a(436017);const Rt=(0,H.A)(F.A)`
  width: 100%;
  align-items: center;
  justify-content: space-between;
`,gt="LOGS_CATEGORY_SWAI_ROUTE_PATH_PLACEHOLDER",wt=(0,l.memo)(()=>{const e=(0,n.W6)(),t=(0,r.useSelector)(g.jO),a=(0,r.useSelector)(I.PA),s=(0,tt.A)(`${u.VO.SYSLOG}/${A.x.MAIN}`),c=(0,tt.A)(`${u.VO.SYSLOG}/${gt}`),o=(0,l.useCallback)(t=>({target:{checked:a}})=>{e.push(a?c.replace(gt,w(t)):s)},[s,c,e]);return t.length?l.createElement(q.A,{label:l.createElement(V.sA,{id:"COMMON_UNIFI_OS"}),initialExpanded:!1,hasPaddedContent:!0},t.map(e=>l.createElement(Rt,{key:e[R.rR.PATH]},l.createElement(Mt.E,{color:"text-2",size:"medium"},e[R.rR.LABEL]),l.createElement(vt.A,{checked:a===e[R.rR.PATH],onChange:o(e),size:"small"})))):null});var ft=a(162420),kt=a(699948),It=a(196010),Gt=a(670180),Lt=a(775699),Pt=a(198494);const $t=(0,H.A)(F.A)`
  flex-direction: column;
  gap: ${z.kc};
`,yt=(0,H.A)(F.A)`
  width: 100%;
  justify-content: space-between;
  border-radius: ${Y.Ay["desktop-radius-global"]};
  padding: ${z.kc};
  background: ${({theme:{themeName:e}})=>Y.Ay[`desktop-color-neutral-01-${e}`]};
`,xt=(0,H.A)(F.A)`
  gap: ${z.YC};
`,Bt=(0,l.memo)(()=>{const e=(0,r.useDispatch)(),t=(0,tt.A)(`${u.VO.INSIGHTS}/${Gt.H.FLOWS}`),a=(0,l.useCallback)(()=>{e((0,Lt.rd)(!0))},[e]),n=(0,r.useSelector)(Pt.mS),s=(0,l.useMemo)(()=>n?null:l.createElement(yt,null,l.createElement(xt,null,l.createElement(ft.A,{size:"original",variant:"fill",isActive:!0}),l.createElement(Mt.A,{size:"medium"},l.createElement(V.sA,{id:"LOGS_FLOWS_BANNER",values:{link:l.createElement(It.A,{to:t},l.createElement(V.sA,{id:"COMMON_FLOWS"}))}}))),l.createElement(kt.A,{size:"original",actionable:!0,onClick:a})),[n,t,a]);return(0,l.useMemo)(()=>[s].some(Boolean),[s])?l.createElement($t,null,s):null}),Vt=(0,l.memo)(()=>{const e=Boolean((0,r.useSelector)(I.PA)),t=(0,r.useSelector)(P.zi),a=(0,l.useMemo)(()=>new Intl.NumberFormat(t,{notation:"standard"}),[t]),n=(0,l.useMemo)(()=>({[Ne.NUMBER_FORMAT]:a}),[a]);return l.createElement(L.A,{leftFilterPageId:N.g1.LOGS,footer:l.createElement(dt,null)},l.createElement(Me.Provider,{value:n},l.createElement(ht,null,e?l.createElement(Tt,null):l.createElement(Ct,null),l.createElement(bt,null)),l.createElement(Bt,null),l.createElement(Je,null),l.createElement(K,{disabled:e}),l.createElement($.Wk,null,l.createElement(we,{disabled:e}),l.createElement(wt,null))))}),Ut=({match:{path:e,params:t}})=>{const a=(0,C.A)(T.Z.SYSLOG);return G(t),(0,m.A)([(0,_.X)(void 0,{crudCacheStrategy:{type:p.e.CACHE}}),(0,b.D)(M.Xj.AFC_CAPABLE_AP_ADOPTED),(0,b.D)(M.Xj.LTE_BACKUP_ADOPTED),(0,b.D)(M.Xj.MISSION_CRITICAL_ADOPTED),(0,b.D)(M.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(D.A,{leftFilterPageId:t.section!==A.x.SETTINGS?N.g1.LOGS:void 0,content:l.createElement(Vt,null)},l.createElement(v.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:d.Si[u.VO.SYSLOG]},l.createElement(n.rd,{to:(0,n.tW)(e,{...t,section:A.x.MAIN})})))))),{trackingName:u.VO.SYSLOG})}},17441:(e,t,a)=>{a.d(t,{A:()=>r});var l=a(296540),n=a(713769);const r=({children:e})=>l.createElement(n.y,null,e)},713769:(e,t,a)=>{a.d(t,{y:()=>s});var l=a(71479),n=a(294303),r=a(566723);const s=(0,l.A)(n.A)`
  flex-direction: column;
  gap: ${r.kc};
  margin: 0 0 ${r.Ln} ${r.kc};
`},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}}}]);