(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[20200],{48369:(e,t,l)=>{var a=l(596221);e.exports=function(e,t){var l=a(e),n=a(t);return l.getTime()===n.getTime()}},201384:(e,t,l)=>{"use strict";l.d(t,{A:()=>r});var a=l(296540),n=l(152632);const r=({children:e})=>{const[t,l]=a.useState(null),r=null!==t,c=a.useCallback(e=>{l(e)},[]),s=a.useCallback(e=>{l(e)},[]),i=a.useCallback(()=>{l(null)},[]),o=a.useMemo(()=>({isMaximized:r,maximizedId:t,maximize:s,minimize:i}),[r,t,s,i]),m="function"==typeof e?e({isMaximized:r,maximizedId:t,maximize:s,minimize:i}):e;return a.createElement(n.zX.Provider,{value:o},a.createElement(n.YC.Provider,{value:c},m))}},514625:(e,t,l)=>{"use strict";l.d(t,{A:()=>r});var a=l(296540),n=l(629318);const r=(0,l(51946).w)(e=>(0,a.createElement)("svg",(0,n.d)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,a.createElement)("path",{d:"M4 3.5a.5.5 0 0 0-1 0v13a.5.5 0 0 0 1 0v-13Z",fill:"currentColor",className:e.baseclassname}),(0,a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m11.708 15.5 4.793-4.794.354-.353a.5.5 0 0 0 0-.707l-5.138-5.138-.009-.008a.5.5 0 0 0-.707.707l.009.008 4.284 4.284H6.5a.501.501 0 0 0-.002 1.003l2.013.008h6.77L11 14.793a.5.5 0 0 0 .707.707Z",fill:"currentColor",className:e.baseclassname}),(0,a.createElement)("path",{d:"M4.5 3.75a.75.75 0 1 0-1.5 0v12.5a.75.75 0 0 0 1.5 0V3.75Zm7.03.778a.751.751 0 0 0-.53 1.28l3.411 3.413H6.75a.75.75 0 1 0 0 1.5h7.718L11 14.188a.75.75 0 0 0 1.06 1.06l4.72-4.719a.75.75 0 0 0 0-1.061l-4.72-4.72a.745.745 0 0 0-.53-.22Z",fill:"currentColor",className:e.fillclassname})))},518089:(e,t,l)=>{"use strict";l.d(t,{CW:()=>s,Ot:()=>o,kp:()=>i});var a=l(822336),n=l(71479),r=l(566723),c=l(294303);const s=(0,n.A)(c.A,{shouldForwardProp:e=>"hasOverflow"!==e})`
  width: 184px;
  position: relative;
  border: 1px solid ${({theme:{themeName:e}})=>a.Ay[`desktop-color-divider-border-${e}`]};
  border-radius: ${a.Ay["desktop-radius-base"]};
  gap: ${r.kc};
  flex-direction: column;
  padding: ${({hasOverflow:e})=>e?`${r.kc} 0 ${r.kc} ${r.kc}`:r.kc};
`,i=(0,n.A)(c.A)`
  flex-direction: column;
  overflow: auto;
  padding-bottom: ${r.fS};
  > div:nth-child(2) > div:first-child > label {
    padding-left: 0;
  }
  > span:first-child {
    margin-bottom: ${r.YC};
  }
`,o=(0,n.A)(c.A)`
  align-items: center;
  justify-content: space-between;
  position: absolute;
  bottom: 0;
  min-height: 36px;
  background-color: ${({theme:{themeName:e}})=>a.Ay[`desktop-color-neutral-00-${e}`]};
  width: calc(100% - (${r.Er}));
  padding-bottom: ${r.Ln};
`},720548:(e,t,l)=>{"use strict";l.d(t,{w:()=>r});var a=l(664967),n=l(496507);const r=[a.E[n.U.ONE_HOUR],a.E[n.U.ONE_DAY],a.E[n.U.ONE_WEEK],a.E[n.U.ONE_MONTH]]},764784:(e,t,l)=>{"use strict";l.d(t,{A:()=>r});var a=l(296540),n=l(629318);const r=(0,l(51946).w)(e=>(0,a.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,a.createElement)("path",{d:"M2.5 15.5 5 3h14l2.5 12.5v5l-.5 1H3.5l-1-.5v-5.5Z",fill:"currentColor",className:e.twotonedclassname}),(0,a.createElement)("path",{d:"M13.2 8.8c0 .552-.537 1-1.2 1-.663 0-1.2-.448-1.2-1s.537-1 1.2-1c.663 0 1.2.448 1.2 1Z",fill:"currentColor",className:e.baseclassname}),(0,a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.6 8.8c0 1.933-2.06 3.5-4.6 3.5-2.54 0-4.6-1.567-4.6-3.5S9.46 5.3 12 5.3c2.54 0 4.6 1.567 4.6 3.5Zm-1 0c0 .587-.31 1.19-.953 1.679-.643.49-1.576.821-2.647.821-1.071 0-2.004-.332-2.647-.821C8.71 9.99 8.4 9.387 8.4 8.8s.31-1.19.953-1.68c.643-.488 1.576-.82 2.647-.82 1.071 0 2.004.332 2.647.82.643.49.953 1.093.953 1.68Z",fill:"currentColor",className:e.baseclassname}),(0,a.createElement)("path",{d:"M19 17.6a.5.5 0 0 1 1 0v1.8a.5.5 0 0 1-1 0v-1.8Zm-1.5-.5a.5.5 0 0 0-.5.5v1.8a.5.5 0 0 0 1 0v-1.8a.5.5 0 0 0-.5-.5Z",fill:"currentColor",className:e.baseclassname}),(0,a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m2.057 15.665 2.2-12.834A1 1 0 0 1 5.244 2h13.514a1 1 0 0 1 .985.831l2.2 12.834A.998.998 0 0 1 22 16v5a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-5c0-.117.02-.23.057-.335ZM5.243 3h13.514l2.057 12H3.186L5.243 3ZM3 16v5h18v-5H3Z",fill:"currentColor",className:e.baseclassname}),(0,a.createElement)("path",{d:"M17.5 17.1a.5.5 0 0 0-.5.5v1.8a.5.5 0 0 0 1 0v-1.8a.5.5 0 0 0-.5-.5Zm1.5.5a.5.5 0 0 1 1 0v1.8a.5.5 0 0 1-1 0v-1.8Z",fill:"currentColor",className:e.fillclassname}),(0,a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6 8.8c0 .587-.31 1.19-.953 1.679-.643.49-1.576.82-2.647.82-1.071 0-2.004-.33-2.647-.82C8.71 9.99 8.4 9.387 8.4 8.799c0-.587.31-1.19.953-1.678C9.996 6.63 10.929 6.3 12 6.3c1.071 0 2.004.331 2.647.82.643.49.953 1.092.953 1.68Zm-2.4 0c0 .552-.537 1-1.2 1-.663 0-1.2-.448-1.2-1s.537-1 1.2-1c.663 0 1.2.448 1.2 1Z",fill:"currentColor",className:e.fillclassname}),(0,a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m4.258 2.831-2.2 12.834A.999.999 0 0 0 2 16v5a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1v-5c0-.117-.02-.23-.057-.335l-2.2-12.834A1 1 0 0 0 18.756 2H5.243a1 1 0 0 0-.985.831ZM3 21v-5h18v5H3ZM16.6 8.8c0 1.933-2.06 3.5-4.6 3.5-2.54 0-4.6-1.567-4.6-3.5S9.46 5.3 12 5.3c2.54 0 4.6 1.567 4.6 3.5Z",fill:"currentColor",className:e.fillclassname})))},809536:(e,t,l)=>{"use strict";l.d(t,{A:()=>E});var a=l(296540),n=l(338992),r=l(246463),c=l(522225),s=l(722860),i=l(325898);const o=(0,s.c)(c.A),m=a.forwardRef((e,t)=>{const{className:l,motif:n,...r}=e,{motif:c}=(0,i.A)(n);return a.createElement("div",{ref:t,slot:"header","data-uic-component":"Disclosure.StaticHeader",className:o.concat(l)("header",`header-${c}`),...r})});m.displayName="DisclosureStaticHeader";var d=l(811130),u=l(231755);const E=a.forwardRef((e,t)=>{const{label:l,caption:c,symbol:s,tooltipProps:i,children:o,size:E,isDisabled:A,hasDivider:C=!0,hasPaddedContent:h=!0,...p}=e;return a.createElement(n.A,{ref:t,isDisabled:A,isExpanded:!0,"data-uic-component":"Disclosure_Static",...p},a.createElement(a.Fragment,null,a.createElement(m,null,a.createElement(d.A,{label:l,caption:c,symbol:s,tooltipProps:i,isDisabled:A,size:E,width:"auto"})),o&&a.createElement(r.A,{hasPaddedContent:h,hasDivider:C},o),C&&a.createElement(u.A,null)))});E.displayName="Disclosure_Static"},835237:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>ia});var a=l(956347),n=l(296540),r=l(136048),c=l(592510),s=l(834959),i=l(604482),o=l(413357),m=l(582724),d=l(860923),u=l(105540),E=l(627440),A=l(596731),C=l(469733),h=l(415331),p=l(568977);const b=e=>{const t=(0,C.useSelector)(p.mJ);return n.createElement(h.A,{routes:t,...e})};var S=l(670180),O=l(257143),g=l(457311),v=l(71177),f=l(736388),N=l(15095),T=l(900752),I=l(595369),M=l(629318),_=l(51946);const w=(0,_.w)(e=>(0,n.createElement)("svg",(0,M.d)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,n.createElement)("path",{d:"M9.644 8.596a.5.5 0 0 0 .707-.707L7.108 4.646a.5.5 0 0 0-.707 0L3.158 7.89a.5.5 0 0 0 .707.707l2.39-2.39v8.959c0 .185.224.335.5.335s.5-.15.5-.335V6.207l2.39 2.389Zm6.487 2.808a.5.5 0 0 1 .707.707l-3.243 3.243a.5.5 0 0 1-.707 0l-3.243-3.243a.5.5 0 0 1 .707-.707l2.39 2.39V4.836c0-.185.224-.335.5-.335s.5.15.5.335v8.958l2.39-2.389Z",fill:"currentColor",className:e.baseclassname}),(0,n.createElement)("path",{d:"M9.644 8.596a.5.5 0 0 0 .707-.707L7.108 4.646a.5.5 0 0 0-.707 0L3.157 7.89a.5.5 0 0 0 .707.707l2.391-2.39v8.959c0 .185.224.335.5.335s.5-.15.5-.335V6.207l2.39 2.389Zm6.487 2.808a.5.5 0 0 1 .707.707l-3.243 3.243a.5.5 0 0 1-.707 0L9.645 12.11a.5.5 0 0 1 .707-.707l2.39 2.39V4.836c0-.185.224-.335.5-.335s.5.15.5.335v8.958l2.39-2.389Z",fill:"currentColor",className:e.fillclassname})));var L=l(699784);const k=[{icon:n.createElement(w,{size:"original"}),label:n.createElement(L.sA,{id:"COMMON_FLOWS"}),id:S.H.FLOWS},{icon:n.createElement(I.A,{size:"original"}),label:n.createElement(L.sA,{id:"COMMON_ACTIVITY"}),id:S.H.ACTIVITY}],D=(0,n.memo)(({insightsRoute:e})=>{const t=(0,a.W6)(),l=(0,C.useSelector)(p.mJ),r=(0,N.A)(`${E.VO.INSIGHTS}/${S.H.FLOWS}`),c=(0,N.A)(`${E.VO.INSIGHTS}/${S.H.ACTIVITY}`),s=(0,n.useCallback)(({id:e})=>{switch(e){case S.H.FLOWS:t.push(r);break;case S.H.ACTIVITY:t.push(c)}},[t,r,c]),i=(0,n.useMemo)(()=>k.filter(({id:e})=>l[e][E.o9.NAVIGATION][E.mx.AVAILABLE]),[l]);return n.createElement(T.A,{tabs:i,selectedTab:e,onSelectTab:s})});var R;!function(e){e.FLOWS="flows"}(R||(R={}));var y=l(46685),P=l(861878),$=l(17441),F=l(9535),H=l(445054),Z=l(580176),x=l(716654),W=l(451723),z=l(398300),Y=l(845030);const U=(0,n.memo)(()=>{const e=(0,C.useDispatch)(),t=(0,n.useCallback)(()=>{e((0,Y.XP)({id:z.H.FLOWS_DOWNLOAD,type:z.H.FLOWS_DOWNLOAD}))},[e]);return(0,W.A)().isFlowsDownloadAvailable?n.createElement(P.A,{onPress:t,labelId:"COMMON_DOWNLOAD"}):null}),B=()=>{const e=(0,C.useDispatch)(),t=(0,C.useSelector)(x._S),l=(0,H.A)({leftFilterPageId:i.g1.INSIGHTS,leftFilterColumnsId:R.FLOWS}),a=(0,n.useCallback)(()=>{e((0,y.A)())},[e]),r=(0,n.useCallback)(()=>{e((0,Z.GD)({leftFilterPageId:i.g1.INSIGHTS,leftFilterColumnsId:R.FLOWS}))},[e]);return n.createElement($.A,null,n.createElement(F.A,{onClear:a,disabled:t}),n.createElement(U,null),n.createElement(P.A,{onPress:r,labelId:"COMMON_CUSTOMIZE_COLUMNS",disabled:l}))};var V=l(264863),j=l(267094),G=l(238761),X=l(758649),K=l(928085),q=l(39512),J=l(445535),Q=l(196010),ee=l(765051),te=l(277517),le=l(302167),ae=l(792072),ne=l(959341),re=l(71479),ce=l(294303);const se=(0,re.A)(ce.A)`
  > div:first-child > div {
    width: fit-content;
  }
`,ie=()=>{const e=(0,C.useDispatch)(),t=(0,C.useSelector)(x.zB),{areAllFlowsSupported:l,areAllFlowsEnabled:a}=(0,W.A)(),r=(0,C.useSelector)(ae.Ty),c=(0,C.useSelector)(te.YX),s=(0,C.useSelector)(le.fu),i=(0,K.A)(`${ne.bB}/${ne.Uy.SSL_INSPECTION}`),o=(0,n.useCallback)(t=>()=>{e((0,q.A)(t))},[e]),m=(0,n.useCallback)(()=>{e((0,g.oz)({...s,enabled_allowed_traffic:!0})).then(()=>{e((0,q.A)(ee.L1.ALL_FLOWS))})},[e,s]),d=(0,n.useMemo)(()=>[{id:ee.L1.ALL_FLOWS,label:"FLOWS_ALL_FLOWS",available:l,disabled:!a,description:s.enabled_allowed_traffic?null:n.createElement("span",null,n.createElement(L.sA,{id:"COMMON_FLOWS_BLOCKED_TRAFFIC_ONLY",values:{link:n.createElement(X.A,{variant:"inline",type:"button",size:"small",onClick:m},n.createElement(L.sA,{id:"COMMON_CHANGE_TO_ALL_TRAFFIC"}))}}))},{id:ee.L1.BLOCKED,label:"COMMON_BLOCKED",available:!0,disabled:!1,description:null},{id:ee.L1.THREATS,label:"COMMON_THREATS",available:!0,disabled:!1,description:null},{id:ee.L1.NEXT_AI,label:"COMMON_NEXT_AI",available:r,disabled:!c,description:c?null:n.createElement(L.sA,{id:"FLOWS_NEXT_AI_DISABLED_TOOLTIP",values:{link:n.createElement(Q.A,{to:i},n.createElement(L.sA,{id:"FLOWS_VIEW_INSPECTION_SETTINGS"}))}})}].filter(({available:e})=>e).map(({id:e,label:l,disabled:a,description:r})=>({id:e,children:n.createElement(L.sA,{id:l}),onChange:o(e),checked:t===e,disabled:a,tooltipProps:{description:r}})),[t,o,l,r,s.enabled_allowed_traffic,m,c,i,a]);return n.createElement(J.A,{label:n.createElement(L.sA,{id:"COMMON_FLOWS"}),hasPaddedContent:!0},n.createElement(se,null,n.createElement(G.A,{items:d,spacing:"flush"})))};var oe=l(436017),me=l(217439),de=l(644659),ue=l(469987);const Ee=()=>{const e=(0,C.useDispatch)(),t=(0,C.useSelector)(x.Lw),l=(0,C.useSelector)(de.t),a=(0,n.useCallback)(({target:{checked:t}})=>{e((0,ue.dU)(t))},[e]);return l?n.createElement(J.A,null,n.createElement(oe.A,{onChange:a,checked:t,full:!0,size:"small"},n.createElement(me.A,{size:"small",color:"text-1",weight:"bold"},n.createElement(L.sA,{id:"FLOWS_FLOW_SUMMARY"})))):null};var Ae=l(764784),Ce=l(822336),he=l(566723);const pe=(0,re.A)(ce.A)`
  width: 100%;
  justify-content: space-between;
  border-radius: ${Ce.Ay["desktop-radius-global"]};
  padding: ${he.kc};
  background: ${({theme:{themeName:e}})=>Ce.Ay[`desktop-color-neutral-01-${e}`]};
  gap: ${he.kc};
`,be=(0,n.memo)(()=>(0,W.A)().showExternalDiskMessage?n.createElement(pe,null,n.createElement(Ae.A,{size:"original",variant:"fill",isActive:!0}),n.createElement(me.A,{size:"medium"},n.createElement(L.sA,{id:"COMMON_FLOWS_ADD_STORAGE_MESSAGE"}))):null);var Se=l(64741),Oe=l(105925),ge=l(874807),ve=l(382915),fe=l(597073),Ne=l(513587),Te=l(584916);const Ie={opacity:.5,pointerEvents:"none"},Me=(0,re.A)(ce.A)`
  background: ${({theme:{themeName:e}})=>Ce.Ay[`desktop-color-neutral-01-${e}`]};
  border-radius: ${Ce.Ay["desktop-radius-base"]};
  padding: ${he.kc};
  cursor: pointer;
  align-items: center;
  height: ${he.fS};
`,_e=(0,n.memo)(()=>{const e=(0,C.useDispatch)(),[t,l]=(0,n.useState)(!1),a=(0,C.useSelector)(x.tT),r=(0,Ne.A)(),c=(0,n.useCallback)(()=>{r&&(e((0,ue.bD)({...a,endDate:new Date})),l(!0),setTimeout(()=>{l(!1)},750))},[e,a,r]);return n.createElement(Me,null,n.createElement(fe.A,{size:"original",style:{...t||a.preset===Te.j?Ie:{}},onClick:c,actionable:!0}))});var we=l(361485);const Le=(0,re.A)(ce.A)`
  > div:first-child {
    width: 100%;
  }
  align-items: center;
  gap: ${he.YC};
`,ke=(0,n.memo)(()=>{const e=(0,C.useDispatch)(),{formatMessage:t}=(0,L.tz)(),l=(0,C.useSelector)(x.xM),[a,r]=(0,n.useState)(l||we.X),c=(0,n.useCallback)(t=>{e((0,ue.lB)(t))},[e]),s=(0,n.useMemo)(()=>(0,Se.A)(e=>{c(e)},we.i),[c]),i=(0,n.useCallback)(()=>{r(we.X),s(we.X),s.flush()},[s]),o=(0,n.useCallback)((e,t)=>{r(t),s(t)},[s]),m=(0,n.useCallback)((e,t)=>{s(t),s.flush()},[s]),d=(0,n.useMemo)(()=>t({id:"COMMON_SEARCH"}),[t]);return(0,n.useEffect)(()=>{r(l)},[l]),n.createElement(Le,null,n.createElement(Oe.A,{onAddTag:ge.P1,onRemoveTag:ge.P1,onReset:i,onChange:o,value:a,placeholder:d,onSubmit:m,width:ve.Em}),n.createElement(_e,null))});var De=l(718073);const Re=(0,_.w)(e=>(0,n.createElement)("svg",(0,M.d)({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2Zm3.54 12.83c.19.19.19.51 0 .71-.2.19-.52.19-.71 0L12 12.71l-2.83 2.83c-.19.19-.51.19-.71 0a.513.513 0 0 1 0-.71L11.29 12 8.46 9.17a.513.513 0 0 1 0-.71c.2-.19.52-.19.71 0L12 11.29l2.83-2.83c.19-.19.51-.19.71 0 .19.2.19.52 0 .71L12.71 12l2.83 2.83Z",fill:"currentColor",className:e.twotonedclassname}),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3a9 9 0 1 1 0 18 9 9 0 0 1 0-18Zm10 9c0-5.523-4.477-10-10-10S2 6.477 2 12s4.477 10 10 10 10-4.477 10-10Zm-6.465 3.535a.5.5 0 0 1-.707 0L12 12.707l-2.829 2.829a.5.5 0 0 1-.707-.707L11.293 12 8.464 9.171a.5.5 0 1 1 .707-.707L12 11.293l2.828-2.828a.5.5 0 1 1 .707.707L12.707 12l2.828 2.828a.5.5 0 0 1 0 .707Z",fill:"currentColor",className:e.baseclassname}),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2Zm3.713 13.712a.75.75 0 0 1-1.06 0L12 13.061l-2.652 2.652a.75.75 0 0 1-1.06-1.061L10.94 12 8.288 9.348a.75.75 0 1 1 1.061-1.06l2.652 2.651 2.651-2.651a.75.75 0 1 1 1.06 1.06L13.063 12l2.65 2.651a.75.75 0 0 1 0 1.061Z",fill:"currentColor",className:e.fillclassname})));var ye=l(27075),Pe=l(286388);const $e=(0,re.A)(ce.A)`
  align-items: center;
  gap: ${he.YC};
`,Fe=(0,re.A)(ce.A,{shouldForwardProp:e=>!["isActive"].includes(e)})`
  padding: ${"1px 7px"};
  cursor: pointer;
  border-radius: ${Ce.Ay["desktop-radius-base"]};
  border: 1px solid
    ${({theme:{themeName:e},isActive:t})=>Ce.Ay[`desktop-color-${t?"ublue-06":"neutral-03"}-${e}`]};
  border-radius: ${Ce.Ay["desktop-radius-base"]};
`,He=(0,n.memo)(()=>{const e=(0,C.useDispatch)(),t=(0,C.useSelector)(x.ti),l=(0,n.useCallback)(l=>()=>{e((0,ue.th)(t.includes(l)?t.filter(e=>e!==l):[...t,l]))},[e,t]);return n.createElement($e,null,n.createElement(De.A,{description:n.createElement(L.sA,{id:"COMMON_ALLOWED"})},n.createElement(Fe,{isActive:t.includes(Pe.HI.ALLOWED),onClick:l(Pe.HI.ALLOWED)},n.createElement(ye.A,{size:"original"}))),n.createElement(De.A,{description:n.createElement(L.sA,{id:"COMMON_BLOCKED"})},n.createElement(Fe,{isActive:t.includes(Pe.HI.BLOCKED),onClick:l(Pe.HI.BLOCKED)},n.createElement(Re,{size:"original"}))))});var Ze=l(323406),xe=l(471113);const We=(0,n.memo)(({flowsRisk:e,flowsRisks:t})=>{const l=(0,C.useDispatch)(),a=(0,n.useMemo)(()=>t.includes(e),[e,t]),r=(0,n.useCallback)(()=>{l((0,ue.Ce)(a?t.filter(t=>t!==e):[...t,e]))},[l,e,t,a]);return n.createElement(De.A,{description:n.createElement(L.sA,{id:Ze.r$[e]})},n.createElement(xe.zn,{isActive:a,flowsRisk:e,onClick:r},n.createElement(xe.Di,null),n.createElement(xe.Di,null),n.createElement(xe.Di,null)))}),ze=(0,re.A)(ce.A,{shouldForwardProp:e=>!["fullWidth"].includes(e)})`
  width: 100%;
  align-items: center;
  gap: ${he.YC};
  > div {
    width: ${({fullWidth:e})=>e?"100%":"auto"};
  }
`,Ye=(0,n.memo)(({fullWidth:e})=>{const t=(0,C.useSelector)(x.IG);return n.createElement(ze,{fullWidth:e},n.createElement(We,{flowsRisk:Pe.GD.LOW,flowsRisks:t}),n.createElement(We,{flowsRisk:Pe.GD.MEDIUM,flowsRisks:t}),n.createElement(We,{flowsRisk:Pe.GD.HIGH,flowsRisks:t}))}),Ue=(0,re.A)(ce.A)`
  align-items: center;
  gap: ${he.xO};
`,Be=()=>{const e=(0,C.useSelector)(x.lX);return n.createElement(J.A,{label:n.createElement(L.sA,{id:"FLOWS_RISK"})},n.createElement(Ue,null,n.createElement(Ye,{fullWidth:!e}),e?n.createElement(He,null):null))};var Ve=l(753103),je=l(966425),Ge=l(314370);const Xe=({id:e})=>n.createElement(J.A,{id:Ge.j1[e],label:n.createElement(L.sA,{id:Ge.ZC[e]}),initialExpanded:!1},n.createElement(je.A,{id:e})),Ke=()=>n.createElement(Xe,{id:Ve.Z.SOURCE_ZONE}),qe=()=>n.createElement(Xe,{id:Ve.Z.SOURCE_REGION}),Je=()=>n.createElement(Xe,{id:Ve.Z.SOURCE_PORT}),Qe=()=>n.createElement(Xe,{id:Ve.Z.SOURCE}),et=()=>n.createElement(Xe,{id:Ve.Z.SOURCE_NETWORK}),tt=()=>n.createElement(Xe,{id:Ve.Z.SOURCE_MAC}),lt=()=>n.createElement(Xe,{id:Ve.Z.SOURCE_IP}),at=()=>n.createElement(Xe,{id:Ve.Z.SERVICE}),nt=()=>n.createElement(Xe,{id:Ve.Z.PROTOCOL}),rt=()=>n.createElement(Xe,{id:Ve.Z.POLICY_TYPE}),ct=()=>n.createElement(Xe,{id:Ve.Z.POLICY}),st=()=>{const e=(0,C.useSelector)(ae.Ty),t=(0,C.useSelector)(te.YX);return e&&t?n.createElement(Xe,{id:Ve.Z.NEXT_AI_QUERY}):null},it=()=>n.createElement(Xe,{id:Ve.Z.INTERFACE_OUT}),ot=()=>n.createElement(Xe,{id:Ve.Z.INTERFACE_IN}),mt=()=>n.createElement(Xe,{id:Ve.Z.DESTINATION_ZONE}),dt=()=>n.createElement(Xe,{id:Ve.Z.DESTINATION_REGION}),ut=()=>n.createElement(Xe,{id:Ve.Z.DESTINATION_PORT}),Et=()=>n.createElement(Xe,{id:Ve.Z.DESTINATION}),At=()=>n.createElement(Xe,{id:Ve.Z.DESTINATION_NETWORK}),Ct=()=>n.createElement(Xe,{id:Ve.Z.DESTINATION_MAC}),ht=()=>n.createElement(Xe,{id:Ve.Z.DESTINATION_IP}),pt=()=>n.createElement(j.A,null,n.createElement(Qe,null),n.createElement(Ke,null),n.createElement(et,null),n.createElement(tt,null),n.createElement(lt,null),n.createElement(Je,null),n.createElement(qe,null),n.createElement(Et,null),n.createElement(mt,null),n.createElement(At,null),n.createElement(Ct,null),n.createElement(ht,null),n.createElement(ut,null),n.createElement(dt,null),n.createElement(at,null),n.createElement(nt,null),n.createElement(ot,null),n.createElement(it,null),n.createElement(ct,null),n.createElement(rt,null),n.createElement(st,null));var bt=l(958178),St=l(609950),Ot=l(388287),gt=l(160087);const vt=(0,re.A)(gt.s)``,ft=(0,re.A)(ce.A)`
  width: 100%;
  align-items: center;
  justify-content: space-between;
`,Nt=(0,re.A)(ce.A)`
  width: 100%;
  height: 120px;
`,Tt=(0,n.memo)(()=>{const e=(0,C.useDispatch)(),t=(0,C.useSelector)(de.t),l=(0,C.useSelector)(bt.o),a=(0,C.useSelector)(x.FW),r=(0,n.useCallback)(({target:{checked:t}})=>{e((0,ue.BN)(t))},[e]);return t||l?n.createElement(vt,null,n.createElement(ft,null,n.createElement(oe.A,{onChange:r,checked:a,full:!0,size:"small"},n.createElement(me.A,{size:"small",color:"text-1",weight:"bold"},n.createElement(L.sA,{id:t?"FLOWS_ON_MAP":"FLOWS_GEO_MAP"})))),n.createElement(Nt,null,t?n.createElement(Ot.A,{minimized:!0}):n.createElement(St.A,{minimized:!0}))):null});var It=l(156372),Mt=l(407652),_t=l(872797),wt=l(961390),Lt=l(275737);const kt={[Pe.ss.INCOMING]:n.createElement(Lt.A,{size:"original"}),[Pe.ss.OUTGOING]:n.createElement(wt.A,{size:"original"}),[Pe.ss.LOCAL]:n.createElement(_t.A,{size:"original"})},Dt=(0,re.A)(ce.A)`
  justify-content: space-between;
  align-items: center;
  width: 100%;
`,Rt=(0,re.A)(ce.A)`
  align-items: center;
  gap: ${he.YC};
`,yt=(0,re.A)(ce.A,{shouldForwardProp:e=>"isActive"!==e})`
  padding: 1px 7px;
  cursor: pointer;
  border-radius: ${Ce.Ay["desktop-radius-base"]};
  border: 1px solid
    ${({theme:{themeName:e},isActive:t})=>Ce.Ay[`desktop-color-${t?"ublue-06":"neutral-03"}-${e}`]};
  border-radius: ${Ce.Ay["desktop-radius-base"]};
`,Pt=()=>{const e=(0,C.useDispatch)(),t=(0,C.useSelector)(x._K),l=(0,n.useCallback)(l=>()=>{e((0,ue.A6)(t.includes(l)?t.filter(e=>e!==l):[...t,l]))},[e,t]);return n.createElement(J.A,null,n.createElement(Dt,null,n.createElement(me.A,{size:"small",color:"text-1",weight:"bold"},n.createElement(L.sA,{id:"COMMON_DIRECTION"})),n.createElement(Rt,null,Mt.XC.map(e=>n.createElement(De.A,{key:e,description:n.createElement(L.sA,{id:It.Z[e]})},n.createElement(yt,{isActive:t.includes(e),onClick:l(e)},kt[e]))))))};var $t=l(149188),Ft=l(801081),Ht=l(48369),Zt=l.n(Ht),xt=l(720548);const Wt=(0,Ft.Mz)(x.tT,({startDate:e,endDate:t})=>xt.w.map(l=>{return a=l.getRange(new Date),{...l,id:l.id,range:a,selected:Zt()(e,a.startDate)&&Zt()(t,a.endDate)};var a}));var zt=l(50746),Yt=l(250639),Ut=l(496507),Bt=l(979106);(0,re.A)(ce.A)`
  width: 100%;
`;const Vt=(0,re.A)(Bt.A)`
  min-height: ${he.fS};
  > div > button:last-of-type {
    padding: 0;
  }
`,jt=(0,n.memo)(()=>{const e=(0,C.useDispatch)(),t=(0,C.useSelector)(x.tT),l=(0,C.useSelector)(Wt),[a,r]=(0,n.useState)(null===t.preset?Te.j:t.preset),[c,s]=(0,n.useState)(null===t.preset?{startDate:t.startDate,endDate:t.endDate}:null),i=(0,n.useCallback)(({id:t})=>{const a=l.find(e=>e.id===t);a?e((0,ue.bD)({...a.getRange(new Date),preset:t})):c&&e((0,ue.bD)({...c,preset:Te.j})),r(t)},[c,e,l]),o=(0,n.useCallback)(()=>{i({id:Ut.U.ONE_MONTH})},[i]),m=(0,n.useCallback)(e=>{s(e),r(Te.j)},[]),d=(0,n.useMemo)(()=>t.preset===Te.j,[t.preset]),u=(0,n.useCallback)(()=>{e((0,ue.Rh)(Yt.J.HEADER))},[e]),E=(0,n.useMemo)(()=>({id:Te.j,label:n.createElement(zt.A,{currentFlowsCalendarId:Yt.J.HEADER,onRangeSelected:m,onClear:o},n.createElement($t.A,{size:"original",actionable:!0,isActive:d,onClick:u}))}),[d,u,o,m]);(0,n.useEffect)(()=>{t.preset===Te.j&&a!==Te.j&&r(Te.j)},[t.preset,a]);const A=(0,n.useMemo)(()=>[...l.map(({id:e,message:t,messageValues:l})=>({id:e,label:n.createElement(L.sA,{id:t,values:l})})),E],[l,E]);return n.createElement(Vt,{tabs:A,selectedTab:a,onSelectTab:i,variant:"filter",stretched:!0})});var Gt=l(592563),Xt=l(256856),Kt=l(316144),qt=l(503793),Jt=l(532419),Qt=l(171073);const el=(0,re.A)(ce.A)`
  align-items: center;
  gap: ${he.kc};
  justify-content: center;
  padding: ${he.YC};
  border-radius: ${Ce.Ay["desktop-radius-base"]};
  border: 1px solid ${({theme:{themeName:e}})=>Ce.Ay[`desktop-color-neutral-02-${e}`]};
`,tl=(0,re.A)(ce.A)`
  align-items: center;
  gap: ${he.YC};
  white-space: nowrap;
`,ll=()=>{const e=(0,a.W6)(),t=(0,C.useSelector)(ae.$c),{isAvailable:l,isSubscribed:r,unavailabilityReason:s,redirect:i}=(0,qt.g)(),o=(0,C.useSelector)(Jt.$x),d=(0,K.A)(`${ne.bB}/${ne.Uy.CYBERSECURE}`),u=(0,Kt.Ad)(o),E=(0,n.useCallback)(()=>{e.push(d)},[e,d]);return(0,m.A)([(0,v.m)(void 0,{crudCacheStrategy:{type:c.e.CACHE}}),(0,Qt.Uc)(void 0,{crudCacheStrategy:{type:c.e.CACHE}})],t?n.createElement(el,null,n.createElement(De.A,{description:r?null:n.createElement(L.sA,{id:"FLOWS_CYBERSECURE_TOOLTIP"})},n.createElement(tl,null,n.createElement(Xt.A,{size:"original",isActive:r}),n.createElement(me.A,{size:"medium",color:"inherit"},n.createElement(L.sA,{id:r?u?"COMMON_CYBERSECURE_ENTERPRISE":"COMMON_CYBERSECURE":"COMMON_CYBERSECURE_ENHANCED"})))),r?n.createElement(Gt.A,{type:"button",fontSize:"medium",onPress:E},n.createElement(me.A,{size:"medium",color:"inherit"},n.createElement(L.sA,{id:"COMMON_ACTIVE"}))):n.createElement(De.A,{description:l?void 0:s},n.createElement("span",null,n.createElement(Gt.A,{type:"button",fontSize:"medium",onPress:i,isDisabled:!l},n.createElement(L.sA,{id:"COMMON_ACTIVATE"}))))):null)},al=()=>(0,C.useSelector)(x.x7)?n.createElement(n.Fragment,{key:S.H.FLOWS},n.createElement(V.A,null,n.createElement(ll,null),n.createElement(be,null),n.createElement(j.A,null,n.createElement(ke,null),n.createElement(Be,null))),n.createElement(j.A,null,n.createElement(V.A,null,n.createElement(jt,null),n.createElement(Ee,null),n.createElement(ie,null),n.createElement(Tt,null),n.createElement(Pt,null)),n.createElement(pt,null))):null;var nl=l(429252),rl=l.n(nl),cl=l(314714),sl=l(523275),il=l(77247),ol=l(67716),ml=l(518089),dl=l(42222),ul=l(198494),El=l(415246),Al=l(789768),Cl=l(362412);const hl=(0,re.A)(ce.A)`
  flex-direction: column;
  gap: ${he.kc};
`,pl=(0,n.memo)(()=>{const e=(0,C.useDispatch)(),{formatMessage:t}=(0,L.tz)(),l=(0,C.useSelector)(x.zB),a=(0,C.useSelector)(ae.Ty),r=(0,C.useSelector)(te.YX),{areAllFlowsSupported:c,areAllFlowsEnabled:s}=(0,W.A)(),i=(0,n.useMemo)(()=>[...c?[{value:ee.L1.ALL_FLOWS,label:t({id:"FLOWS_ALL_FLOWS"}),disabled:!s}]:[],{value:ee.L1.BLOCKED,label:t({id:"COMMON_BLOCKED"})},{value:ee.L1.THREATS,label:t({id:"COMMON_THREATS"})},...a?[{value:ee.L1.NEXT_AI,label:t({id:"COMMON_NEXT_AI"}),disabled:!r}]:[]],[t,a,r,c,s]),o=(0,n.useCallback)(({value:t})=>{e((0,q.A)(t))},[e]);return n.createElement(hl,null,n.createElement(me.A,{size:"small",color:"text-1"},n.createElement(L.sA,{id:"COMMON_CUSTOMIZE_COLUMNS"})),n.createElement(Cl.A,{options:i,variant:"secondary",width:"100%",value:l,onChange:o}))}),bl=(0,re.A)(ml.CW)``,Sl=(0,re.A)(ml.kp)`
  gap: ${he.kc};
  > label:first-child {
    margin-bottom: ${he.xO};
  }
`,Ol=(0,n.memo)(()=>{const e=(0,C.useDispatch)(),t=(0,n.useRef)(null),l=(0,il.A)(t),a=(0,C.useSelector)(x.bB),r=(0,C.useSelector)(x.zB),c=(0,n.useCallback)(({target:{checked:t,name:l}})=>{e((0,ue.jo)(t?[...a,l]:a.filter(e=>e!==l)))},[e,a]),s=(0,n.useMemo)(()=>rl()(a,Mt.RI[r]),[a,r]),{tablePresets:o}=(0,C.useSelector)(ul.Gm),{sizes:m}=(0,n.useMemo)(()=>o[r],[o,r]),d=(0,n.useMemo)(()=>rl()(m,(0,sl.A)()),[m]),u=(0,C.useSelector)(x.mE),E=(0,n.useCallback)(({target:{ariaChecked:t}})=>{switch(t){case"true":return e((0,ue.jo)([])),null;case"false":case"mixed":return e((0,ue.jo)(u)),null;default:return null}},[e,u]),A=(0,n.useCallback)(()=>{e((0,Z.Zi)(i.g1.INSIGHTS))},[e]),h=(0,n.useCallback)(()=>{(0,C.batch)(()=>{s||e((0,ue.jo)(Mt.RI[r])),d||e((0,Al.dR)({[El.lR.TABLE_PRESETS]:{...o,[r]:{...o[r],sizes:(0,sl.A)()}}}))})},[e,r,s,o,d]),p=(0,n.useMemo)(()=>!!a.length&&(a.length===u.length||"mixed"),[a.length,u.length]),b=(0,n.useMemo)(()=>s&&d,[s,d]);return n.createElement(bl,{hasOverflow:l},n.createElement(pl,null),n.createElement(Sl,null,n.createElement(cl.A,{id:"flows-all-columns",checked:p,onChange:E},n.createElement(me.A,{size:"medium",color:"text-2"},n.createElement(L.sA,{id:"COMMON_ALL"}))),u.map(e=>n.createElement(cl.A,{key:e,id:e,checked:a.includes(e),name:e,onChange:c},n.createElement(me.A,{size:"medium",color:"text-2"},n.createElement(L.sA,{id:dl.eu[e]})))),n.createElement(ml.Ot,null,n.createElement(ol.d$,null),n.createElement(Gt.A,{type:"button",onPress:h,isDisabled:b},n.createElement(me.A,{size:"medium",color:"inherit"},n.createElement(L.sA,{id:"COMMON_ACTION_RESTORE"}))),n.createElement(Gt.A,{type:"button",onPress:A},n.createElement(me.A,{size:"medium",color:"inherit"},n.createElement(L.sA,{id:"COMMON_ACTION_DONE"}))))))}),gl=(0,n.memo)(()=>n.createElement(Ol,null));var vl=l(54227),fl=l(705145),Nl=l(177846),Tl=l(260411),Il=l(120205);const Ml=(0,re.A)(ce.A)`
  flex-direction: row;
  gap: ${he.Ln};
  > label {
    max-width: 50%;
    p {
      max-width: 100%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }
`,_l=()=>{const e=(0,C.useDispatch)(),t=(0,C.useSelector)(Nl.nc),l=(0,n.useCallback)(t=>()=>{e((0,Tl.P7)(t))},[e]),a=(0,n.useMemo)(()=>[{id:Il.f.APPS,children:n.createElement(L.sA,{id:"COMMON_APPLICATIONS"}),onChange:l(Il.f.APPS),checked:t===Il.f.APPS},{id:Il.f.CLIENTS,children:n.createElement(L.sA,{id:"COMMON_CLIENTS"}),onChange:l(Il.f.CLIENTS),checked:t===Il.f.CLIENTS}],[t,l]);return n.createElement(V.A,null,n.createElement(J.A,{label:n.createElement(L.sA,{id:"ACTIVITY_ANCHOR_BY"}),hasPaddedContent:!0},n.createElement(Ml,null,a.map(({id:e,checked:t,onChange:l,children:a})=>n.createElement(vl.A,{key:e,id:e,checked:t,onChange:l},n.createElement(fl.A,{isTruncated:!0,color:"inherit",size:"inherit"},a))))))};var wl=l(903216),Ll=l(509426),kl=l(310067),Dl=l(224323),Rl=l(86747),yl=l(792542);const Pl=(0,Ft.Mz)(yl.Sm,e=>e.reduce((e,t)=>e+t["rx_byte-r"]*t.interval_seconds,0)),$l=(0,Ft.Mz)(yl.Sm,e=>e.reduce((e,t)=>e+t["tx_byte-r"]*t.interval_seconds,0)),Fl=(0,re.A)(ce.A)`
  border: 1px solid ${({theme:{themeName:e}})=>Ce.Ay[`desktop-color-neutral-03-${e}`]};
  border-radius: ${Ce.Ay["desktop-radius-base"]};
  padding: ${he.kc};
  gap: ${he.kc};
  width: 100%;
  flex-direction: column;
`,Hl=(0,re.A)(ce.A)`
  justify-content: space-between;
  width: 100%;
  align-items: center;
`,Zl=()=>{const e=(0,C.useDispatch)(),{formatMessage:t}=(0,L.tz)(),l=(0,C.useSelector)(Nl.Vn),a=(0,C.useSelector)(Nl.mE),r=(0,C.useSelector)(Pl),c=(0,C.useSelector)($l),s=(0,n.useCallback)(({target:{checked:t}})=>{e((0,Tl.dm)(t))},[e]),i=(0,n.useCallback)(({value:t})=>{e((0,Tl.YO)(t))},[e]),o=(0,n.useMemo)(()=>[{value:Rl.u.INTERNET_ACTIVITY,image:n.createElement(kl.A,null),label:t({id:"COMMON_INTERNET_ACTIVITY"}),additionalInfo:(0,wl.FI)(r+c)},{value:Rl.u.DOWNLOAD,image:n.createElement(Dl.A,null),label:t({id:"COMMON_DOWNLOAD"}),additionalInfo:(0,wl.FI)(r)},{value:Rl.u.UPLOAD,image:n.createElement(Ll.A,null),label:t({id:"COMMON_UPLOAD"}),additionalInfo:(0,wl.FI)(c)}],[t,r,c]);return n.createElement(V.A,null,n.createElement(Fl,null,n.createElement(Hl,null,n.createElement(me.A,{size:"medium",color:"text-2"},n.createElement(L.sA,{id:"COMMON_STATS"})),n.createElement(oe.A,{style:{width:"auto"},onChange:s,checked:l,full:!0,size:"small"})),l?n.createElement(Cl.A,{style:{whiteSpace:"nowrap"},options:o,width:"100%",variant:"secondary",value:a,onChange:i}):null))};var xl=l(156870),Wl=l(89716),zl=l(888964),Yl=l(703447);const Ul=({total_bytes:e},{total_bytes:t})=>t-e,Bl=({client:e,client:{mac:t,name:l}})=>({id:t,type:"CHECKBOX",checkboxProps:{symbol:n.createElement(Yl.A,{client:e,width:20,height:20})},title:l,children:[]}),Vl=(0,n.memo)(({queryParams:e,label:t})=>{const l=(0,n.useRef)(void 0),a=(0,C.useDispatch)(),r=(0,C.useSelector)(Nl.Wq),c=(0,C.useSelector)((0,n.useMemo)(()=>(0,Wl.WY)(e),[e])),s=(0,n.useMemo)(()=>{return l.current?(e=[l.current,...c]).filter((e=>({mac:t},l)=>e.findIndex((e=>t=>t.mac===e)(t))===l)(e)):c;var e},[c,l]),i=(0,n.useMemo)(()=>s.sort(Ul).map(Bl),[s]),o=(0,n.useMemo)(()=>c.map(({mac:e})=>e),[c]),m=(0,n.useMemo)(()=>r.length===o.length?"all":new Set(r),[o.length,r]),d=(0,n.useCallback)(e=>{a((0,Tl._b)("all"===e?o:Array.from(e)))},[a,o]),u=(0,n.useCallback)(e=>{a((0,Tl._b)(Array.from(e)))},[a]),E=(0,n.useCallback)(()=>{a((0,Tl._b)([]))},[a]);return(0,n.useEffect)(()=>{const e=c.find(({mac:e})=>r.includes(e));e&&(l.current=e)},[c,r]),n.createElement(J.A,{id:zl.R.ACTIVITY_CLIENTS,label:t},n.createElement(xl.A,{id:zl.R.ACTIVITY_CLIENTS,items:i,selectedKeys:m,onSelectionChange:d,onSelectAll:u,onDeselectAll:E}))});var jl=l(767974),Gl=l(668995),Xl=l(601242),Kl=l(455155),ql=l(175522);const Jl=({total_bytes:e},{total_bytes:t})=>t-e,Ql=({category:e,application:t})=>(({name:l,iconFileName:a})=>({id:[e,t].join(ql.A),type:"CHECKBOX",title:l,checkboxProps:{symbol:n.createElement(Kl.A,{iconFileName:a,dimension:20})},children:[]}))((0,Xl.HH)((0,Gl.h)(e,t))),ea=(0,n.memo)(({queryParams:e,label:t})=>{const l=(0,C.useDispatch)(),a=(0,C.useSelector)(Nl.Uz),r=(0,C.useSelector)((0,n.useMemo)(()=>(0,Wl.mH)(e),[e])),c=(0,n.useMemo)(()=>r.sort(Jl).map(Ql),[r]),s=(0,n.useMemo)(()=>a.length===r.length?"all":new Set(a.map(e=>[e[jl.wA.CAT],e[jl.wA.APP]].join(ql.A))),[a,r.length]),i=(0,n.useCallback)(e=>{l((0,Tl.yJ)("all"===e?a:Array.from(e).map(e=>(([e,t])=>({[jl.wA.CAT]:+e,[jl.wA.APP]:+t}))(e.toString().split(ql.A)))))},[l,a]),o=(0,n.useCallback)(e=>{l((0,Tl.yJ)((e&&"all"!==e?r.filter(({category:t,application:l})=>e.has([t,l].join(ql.A))):r).map(({category:e,application:t})=>({[jl.wA.CAT]:e,[jl.wA.APP]:t}))))},[l,r]),m=(0,n.useCallback)(()=>{l((0,Tl.yJ)([]))},[l]);return n.createElement(J.A,{id:zl.R.ACTIVITY_APPS,label:t},n.createElement(xl.A,{id:zl.R.ACTIVITY_APPS,items:c,selectedKeys:s,onSelectionChange:i,onSelectAll:o,onDeselectAll:m}))}),ta=(0,n.memo)(()=>{const e=(0,C.useSelector)(Nl.Bw),t=(0,C.useSelector)(Nl.nc),l=(0,n.useMemo)(()=>({start:e.startDate.getTime(),end:e.endDate.getTime(),includeUnidentified:!0}),[e]);return(0,n.useMemo)(()=>{switch(t){case Il.f.CLIENTS:return n.createElement(Vl,{queryParams:l,label:n.createElement(L.sA,{id:"COMMON_CLIENTS"})});case Il.f.APPS:return n.createElement(ea,{queryParams:l,label:n.createElement(L.sA,{id:"COMMON_APPLICATIONS"})});default:return null}},[t,l])}),la=(0,n.memo)(()=>{const e=(0,C.useDispatch)(),t=(0,C.useSelector)(Nl.ij),l=(0,n.useCallback)(()=>{e((0,Tl.qx)())},[e]);return n.createElement($.A,null,n.createElement(F.A,{onClear:l,disabled:t}))});var aa=l(857828),na=l(739177);const ra=(0,n.memo)(()=>{const e=(0,C.useDispatch)(),t=(0,C.useSelector)(Nl.Bw),[l,a]=(0,n.useState)(null===t.preset?Te.j:t.preset),[r,c]=(0,n.useState)(null===t.preset?{startDate:t.startDate,endDate:t.endDate}:null),s=(0,n.useCallback)(({id:t})=>{const l=na.i8.find(e=>e.id===t);l?e((0,Tl.Xy)({...l.getRange(new Date),preset:t})):r&&e((0,Tl.Xy)({...r,preset:Te.j})),a(t)},[r,e]),i=(0,n.useCallback)(t=>{c(t),e((0,Tl.Xy)({...t,preset:Te.j})),a(Te.j)},[e]),o=(0,n.useMemo)(()=>na.i8.map(({id:e,message:t,messageValues:l})=>({id:e,label:n.createElement(L.sA,{id:t,values:l})})).concat({id:Te.j,label:n.createElement($t.A,null)}),[]);return n.createElement(V.A,null,n.createElement(aa.A,{presets:o,selectedPreset:l,range:t,onSelectTab:s,onSelectCustomRange:i,showCalendar:l===Te.j}))}),ca={[S.H.FLOWS]:{footer:n.createElement(B,null),columns:n.createElement(gl,null),children:n.createElement(al,null)},[S.H.ACTIVITY]:{footer:n.createElement(la,null),columns:void 0,children:n.createElement(n.Fragment,{key:S.H.ACTIVITY},n.createElement(Zl,null),n.createElement(ra,null),n.createElement(_l,null),n.createElement(ta,null))}},sa=(0,n.memo)(({insightsRoute:e})=>{const{footer:t,columns:l,children:a}=(0,n.useMemo)(()=>ca[e],[e]),r=(0,n.useMemo)(()=>{if(e===S.H.FLOWS)return R.FLOWS},[e]);return n.createElement(f.A,{leftFilterPageId:i.g1.INSIGHTS,leftFilterColumnsId:r,tabs:n.createElement(D,{insightsRoute:e}),footer:t,columns:l},a)}),ia=({match:{path:e,params:t,params:{section:l=S.H.FLOWS}}})=>(0,m.A)([(0,g.Uc)(void 0,{crudCacheStrategy:{type:c.e.CACHE}}),(0,v.m)(void 0,{crudCacheStrategy:{type:c.e.CACHE}}),(0,o.Zi)(s.B.FLOWS),(0,o.Zi)(s.B.COUNTRIES),(0,o.Zi)(s.B.ACTIVITY),(0,o.Zi)(s.B.HOTSPOT)],n.createElement(d.A,null,n.createElement(u.A,{leftFilterPageId:i.g1.INSIGHTS,content:n.createElement(sa,{insightsRoute:l})},n.createElement(n.Suspense,{fallback:null},n.createElement(a.dO,null,n.createElement(r.F,{path:O.K[S.H.FLOWS],render:e=>n.createElement(b,{id:S.H.FLOWS,...e})}),n.createElement(r.F,{path:O.K[S.H.ACTIVITY],render:e=>n.createElement(b,{id:S.H.ACTIVITY,...e})}),n.createElement(r.F,{exact:!0,path:A.Si[E.VO.INSIGHTS]},n.createElement(a.rd,{to:(0,a.tW)(e,{...t,section:S.H.FLOWS})})))))),{trackingName:E.VO.INSIGHTS})},857828:(e,t,l)=>{"use strict";l.d(t,{A:()=>A});var a=l(469733),n=l(296540),r=l(979106),c=l(540277);var s=l(208288),i=l(874807),o=l(566723),m=l(294303),d=l(602021),u=l(778085);const E=(0,l(71479).A)(u.A)`
  [data-uic-component='RangeCalendar.Container'] {
    padding: 0;
  }
`,A=({presets:e=[],selectedPreset:t,range:l,onSelectTab:u=i.P1,onSelectCustomRange:A=i.P1,showCalendar:C=!1})=>{const h=(0,a.useSelector)(d.hq),p=(0,n.useMemo)(()=>(0,s.A)(new Date,"ZonedDateTime",h),[h]),b=(0,n.useMemo)(()=>{return(e={start:(0,s.A)(l?.startDate,"ZonedDateTime",h),end:(0,s.A)(l?.endDate,"ZonedDateTime",h)}).start&&e.end?{start:(0,c.gw)(e.start),end:(0,c.gw)(e.end)}:null;var e},[l,h]),S=(0,n.useCallback)(({start:e,end:t})=>{A({startDate:e.toDate(h),endDate:t.toDate(h)})},[A,h]);return n.createElement("div",null,e.length?n.createElement(r.A,{variant:"filter",tabs:e,selectedTab:t,onSelectTab:u,stretched:!0}):null,C?n.createElement(m.A,{marginTop:o.xO},n.createElement(E,{value:b,onChange:S,maxValue:p})):null)}},900752:(e,t,l)=>{"use strict";l.d(t,{A:()=>E});var a=l(296540),n=l(979106),r=l(67716),c=l(71479),s=l(566723);const i=(0,c.A)("div")`
  > nav > button {
    display: flex;
    flex-direction: row;
    gap: ${s.YC};
  }
`;var o=l(132196);const m=o.AH`
  height: 32px;
`,d=o.AH`
  padding: ${s.YC} !important;
`,u=o.AH`
  padding: ${s.YC} ${s.Ln} !important;
`,E=({selectedTab:e,tabs:t,...l})=>{const c=(0,a.useMemo)(()=>t.map(t=>e===t.id?t:{...t,label:void 0}),[t,e]);return c.length>1?a.createElement(r.T_,null,a.createElement(i,null,a.createElement(n.A,{variant:"capsule",stretched:!0,className:m,tabsClassName:m,tabClassName:d,selectedTabClassName:u,tabs:c,selectedTab:e,...l}))):null}}}]);