(window.webpackJsonpunifiNetworkUi=window.webpackJsonpunifiNetworkUi||[]).push([[8],{1197:function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),a.d(t,"b",(function(){return d})),a.d(t,"c",(function(){return u}));var n=a(237),r=a.n(n),i=a(0);let l,c,o="";function s(e,t){return o=t,(a,n=!0,r=!0)=>{const i=localStorage&&localStorage.getItem("app.invocationTrigger");localStorage.removeItem("app.invocationTrigger"),n&&window.location&&i&&(l=a({name:"Network -- Uncategorized",op:null!=i?i:"pageload",tags:{"routing.instrumentation":"network-controller-react-router"}})),r&&e.listen&&(c=e.listen((e,n)=>{if(n&&("PUSH"===n||"POP"===n)){l&&l.finish();const n={"routing.instrumentation":"network-controller-react-router"};l=a({name:`${t}${e.pathname}`,op:"navigation",tags:n})}}))}}function d(e){return()=>{c&&c(),l.endTimestamp||l.finish(),e.close()}}function u(e){const t=e.displayName||e.name,a=t=>(l&&t&&t.computedMatch&&t.computedMatch.isExact&&l.setName(`${o}${t.computedMatch.path}`),i.createElement(e,Object.assign({},t)));return a.displayName=`sentryRoute(${t})`,r()(a,e),a}},2611:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n=a(15),r=a(16);const i=e=>{const t=Object(r.selectIsIpsDisabled)(e),a=Object(n.selectWanNetworks)(e).every(({wan_smartq_enabled:e})=>!e);return t&&a}},2618:function(e,t,a){"use strict";var n=a(0),r=a.n(n),i=a(29),l=a(2),c=a(1),o=a(3),s=a(99),d=Object(o.a)("text-align:right;");function u(e){var t=e.start,a=e.end,n=e.intl,l=e.timezone,c="",o="";return Object(s.h)(t,l)&&Object(s.h)(a,l)?c=n.formatMessage({id:"COMMON_DATES_TODAY"}):Object(i.differenceInMonths)(a,t)>1?(c=Object(s.e)(t,l,"MMM Do, YYYY"),o=Object(s.e)(a,l,"MMM Do, YYYY")):Object(i.differenceInDays)(a,t)<1?c=Object(s.e)(t,l,"MMM Do, YYYY"):(c=Object(s.e)(t,l,"MMM Do"),o=Object(s.e)(a,l,"MMM Do")),r.a.createElement("div",{className:d},"".concat(c," ").concat(o&&" - ".concat(o)))}u.propTypes={start:l.PropTypes.instanceOf(Date).isRequired,end:l.PropTypes.instanceOf(Date).isRequired,timezone:l.PropTypes.string.isRequired,intl:c.f.isRequired},t.a=Object(c.e)(u)},2821:function(e,t,a){"use strict";var n=a(0),r=a.n(n),i=a(3),l=a(1671),c=a(5),o=a(34);const s=Object(i.c)(c.a)`
  border-bottom: 1px ${({theme:e})=>e.colors.border} solid;
  box-sizing: border-box;

  @media ${o.a.VIEWPORT_M_UP} {
    padding: 0 ${({theme:e})=>e.space[4]}px;
  }
`,d=Object(i.c)(l.a)`
  bottom: -1px;
`;t.a=({isLoading:e,children:t,...a})=>r.a.createElement(s,Object.assign({},a,{flex:"none",className:"base-control-panel",position:"relative",alignItems:"center",justifyContent:"space-between",height:50}),t,r.a.createElement(d,{isLoading:e,placement:"bottom"}))},2822:function(e,t,a){"use strict";var n=a(0),r=a.n(n),i=a(3),l=a(5),c=a(1),o=a(47),s=a(481),d=a(2821),u=a(2823),b=a(2832),m=a(31),E=a(179);const p=Object(i.c)(o.a,{shouldForwardProp:e=>"addMargin"!==e})`
  font-size: 14px;
  ${({addMargin:e})=>e&&"margin-left: 50%;"}
  position: absolute;
  transform: translateX(-50%);
  left: 50%;
`;t.a=({routes:e=[],hideFilterButton:t=!1,isLoading:a,children:n,filterTitleLabel:i,filtersActive:o,title:O,leftContent:f,isDisplayOptionsDisabled:_})=>{const g=(null==e?void 0:e.length)>1,h=!g&&1===e.length;return r.a.createElement(d.a,{isLoading:a},f&&f,g&&r.a.createElement(u.a,{routes:e}),h&&r.a.createElement(p,{weight:"bold"},e[0].label),O&&r.a.createElement(p,{weight:"bold",addMargin:t&&!f},r.a.createElement(c.b,{id:O})),r.a.createElement(l.a,{height:"100%",flex:g||O||h?"none":1,alignItems:"center",justifyContent:"flex-end",marginLeft:"auto"},n,!t&&r.a.createElement(E.a,{condition:_,wrapper:e=>r.a.createElement(s.a,{position:"bottom",width:"208px",portal:!0,message:r.a.createElement(m.p,null,r.a.createElement(c.b,{id:"COMMON_DISPLAY_OPTS_DISABLED"}))},e)},r.a.createElement(b.a,{disabled:_,filterTitleLabel:i,filtersActive:o}))))}},2823:function(e,t,a){"use strict";var n=a(0),r=a.n(n),i=a(3),l=a(25),c=a(807);var o=({items:e,...t})=>{const{params:a,path:n}=Object(l.n)(),i=Object(l.l)(),o=Object(l.k)(),s=e.find(({path:e})=>e===n)||((e,{pathname:t})=>e.find(({path:e})=>new RegExp(e.replace(/\/:\w+\?.*/g,"/?.*").replace(/:\w+/g,"\\w+").replace(/\//g,"\\$&")).test(t)))(e,i);return r.a.createElement(c.a,Object.assign({tabs:e,selectedTab:null==s?void 0:s.id,onSelectTab:({path:e,params:t={}})=>o.push(Object(l.i)(e,{...a,...t}))},t))};const s=Object(i.c)(o)`
  height: 100%;
  position: absolute;
  left: 0;
  right: 0;
  div,
  button {
    height: 100% !important;
  }
`;t.a=({routes:e})=>{const t=Object(n.useMemo)(()=>e&&e.map(({id:e,label:t,disabled:a,path:n,...r})=>({id:e,label:t,disabled:"function"==typeof a?a(r):a,path:n})),[e]);return t?r.a.createElement(s,{selectedTabBold:!0,items:t}):null}},2824:function(e,t,a){"use strict";a.d(t,"b",(function(){return n.a})),a.d(t,"a",(function(){return l})),a.d(t,"d",(function(){return c})),a.d(t,"e",(function(){return b})),a.d(t,"c",(function(){return m.a}));a(2821);var n=a(2828),r=a(3),i=a(173);var l=Object(r.c)(i.a)`
  padding-left: ${({theme:e})=>e.space[3]}px;
  padding-right: ${({theme:e})=>e.space[3]}px;
  color: ${({theme:e})=>e.colors.subtlerText};
  &:hover {
    color: ${({theme:e})=>e.colors.mediumText};
  }
`;var c=Object(r.c)("span")`
  border-right: 1px ${({theme:e})=>e.colors.border} solid;
  margin: 0 ${({theme:e})=>e.space[4]}px;
  position: relative;
  height: 100%;
  display: block;
`,o=a(0),s=a.n(o),d=a(807);const u=r.a`
  align-items: center;
  display: flex;
  height: 100%;
  width: auto;
  justify-content: flex-end;
  overflow-x: unset;

  > div {
    margin: initial;
  }
`;function b(e){return s.a.createElement(d.a,Object.assign({className:u},e))}a(2823),a(2822);var m=a(2826)},2826:function(e,t,a){"use strict";var n=a(0),r=a.n(n),i=a(3),l=a(1),c=a(47),o=a(2600);const s=Object(i.c)(c.a)`
  line-height: 24px;
  color: ${({theme:e})=>e.motifPalette.text01};
`,d=Object(i.c)("div",{shouldForwardProp:e=>"toggleStyle"!==e})`
  justify-content: space-between;
  margin-top: ${({toggleStyle:e})=>{var t;return null!==(t=null==e?void 0:e.marginTop)&&void 0!==t?t:8}}px;
  margin-right: ${({toggleStyle:e})=>{var t;return null!==(t=null==e?void 0:e.marginRight)&&void 0!==t?t:0}}px;
  margin-bottom: ${({toggleStyle:e})=>{var t;return null!==(t=null==e?void 0:e.marginBottom)&&void 0!==t?t:0}}px;
  margin-left: ${({toggleStyle:e})=>{var t;return null!==(t=null==e?void 0:e.marginLeft)&&void 0!==t?t:0}}px;
  width: auto !important;

  label {
    margin-left: 0;
  }
`;t.a=({checked:e,disabled:t,id:a,onChange:n,text:i,toggleStyle:c})=>r.a.createElement(d,{toggleStyle:c},r.a.createElement(o.a,{checked:e,id:a,onChange:n,disabled:t},"string"==typeof i?r.a.createElement(s,{size:"body"},r.a.createElement(l.b,{id:i})):i))},2828:function(e,t,a){"use strict";var n=a(0),r=a.n(n),i=a(1),l=a(4),c=a(20);const o=e=>{var t;return null===(t=null==e?void 0:e.filters)||void 0===t?void 0:t.isFilterOpen};var s=a(1192),d=a(3),u=a(2769),b=a(3116),m=a(3108),E=a(464),p=a(3059);const O=Object(d.c)(p.a)`
  padding: 24px;
`;var f=({columns:e,columnLabels:t,tableType:a,hidden:o=[]})=>{var s;const d=Object(l.useDispatch)(),u=(null===(s=Object(l.useSelector)(Object(c.B)(a)))||void 0===s?void 0:s.initialColumns)||[],b=Object(n.useMemo)(()=>Object.values(e).every(e=>u.includes(e)),[u]),m=Object(n.useCallback)(()=>{const t=b||(null==u?void 0:u.length)?[]:Object.values(e);d(Object(c.L)(a,{initialColumns:t},!0))},[d,b,a,u]),E=Object(n.useMemo)(()=>[{full:!0,id:"showAllFields",checked:b||!!(null==u?void 0:u.length)&&"mixed",children:r.a.createElement(i.b,{id:"COMMON_ALL"}),onChange:m}].concat(Object.values(e).filter(e=>!o.includes(e)).map(e=>({full:!0,id:e,checked:u.includes(e),children:(null==t?void 0:t[e])?r.a.createElement(i.a,{id:t[e]}):e,onChange:({target:{checked:t}})=>{const n=t?[...u,e]:u.filter(t=>t!==e);d(Object(c.L)(a,{initialColumns:n},!0))}}))),[u,a]);return r.a.createElement(O,{spacing:"flush",items:E,variant:"list"})};const _=Object(d.c)(u.a)`
  width: 258px !important;
`;var g;!function(e){e.COLUMNS="columns",e.FILTERS="filters"}(g||(g={}));var h=({filterTitleLabel:e,isOpen:t,onClose:a,columnTabProps:o,renderFilterDrawerContent:s,footerProps:d,side:u="left"})=>{var p;const[O,h]=Object(n.useState)(g.FILTERS),{tableType:v}=o||{tableType:null},T=Object(l.useDispatch)(),S=(null===(p=Object(l.useSelector)(Object(c.B)(v)))||void 0===p?void 0:p.initialColumns)||[],I=d&&O===g.COLUMNS,j=Object(n.useMemo)(()=>{var e,t;return I&&Object(E.a)(null===(t=null===(e=null===c.c||void 0===c.c?void 0:c.c.tables)||void 0===e?void 0:e[v])||void 0===t?void 0:t.initialColumns,S)},[I,v,S]),R=Object(n.useCallback)(()=>{var e,t,a;const n=[...null!==(a=null===(t=null===(e=null===c.c||void 0===c.c?void 0:c.c.tables)||void 0===e?void 0:e[v])||void 0===t?void 0:t.initialColumns)&&void 0!==a?a:[]];T(Object(c.L)(v,{initialColumns:n},!0))},[T,v]),y=Object(n.useCallback)(({id:e})=>h(e),[h]),C=o?r.a.createElement(b.a,{onSelectTab:y,tabs:[{id:g.FILTERS,label:r.a.createElement(i.b,{id:"COMMON_CONTROL_PANEL_FILTERS"}),render:s},{id:g.COLUMNS,label:r.a.createElement(i.b,{id:"COMMON_CONTROL_PANEL_COLUMNS"}),render:()=>r.a.createElement(f,{columns:o.columns,hidden:o.hidden,columnLabels:o.columnLabels,tableType:v})}]}):s(),A=Object(n.useMemo)(()=>I?{label:r.a.createElement(i.b,{id:"COMMON_CONTROL_PANEL_FILTER_FOOTER_RESTORE_COLUMNS"}),onClick:R,disabled:j}:d,[I,d,j,R]),D=Object(n.useCallback)(()=>{a(),h(g.FILTERS)},[a,h]);return r.a.createElement(_,{in:t,renderHeader:()=>null,onClose:a,side:u},t&&r.a.createElement(m.a,{footerProps:A,headerProps:{label:e},onClose:D},C))},v=a(2822);t.a=Object(i.e)(({routes:e=[],hideFilterButton:t=!1,isLoading:a,children:i,filterFooterProps:d,columnTabProps:u,renderFilterDrawerContent:b,filterTitleLabel:m,filtersActive:E,title:p,onClose:O,intl:f,leftContent:_,isDisplayOptionsDisabled:g})=>{var T;const S=Object(l.useDispatch)(),I=Object(l.useSelector)(o),j=(null===(T=Object(l.useSelector)(Object(c.B)(null==u?void 0:u.tableType)))||void 0===T?void 0:T.initialColumns)||[],R=f.formatMessage({id:m||"COMMON_CONTROL_PANEL_FILTER_TITLE"});Object(n.useEffect)(()=>()=>{S(Object(s.b)(!1))},[]);const y=Object(n.useCallback)(()=>{S(Object(s.b)(!1)),null==O||O(),(null==u?void 0:u.tableType)&&S(Object(c.L)(u.tableType,{initialColumns:j}))},[S,O,null==u?void 0:u.tableType,j]);return r.a.createElement(r.a.Fragment,null,r.a.createElement(h,{isOpen:I,filterTitleLabel:R,onClose:y,columnTabProps:u,renderFilterDrawerContent:()=>I&&b,footerProps:d,side:"right"}),r.a.createElement(v.a,{leftContent:_,routes:e,hideFilterButton:t,isLoading:a,filterTitleLabel:R,filtersActive:E,title:p,isDisplayOptionsDisabled:g},i))})},2832:function(e,t,a){"use strict";var n=a(0),r=a.n(n),i=a(3),l=a(4),c=a(3117),o=a(34),s=a(5),d=a(1192);const u=Object(i.c)(c.a,{shouldForwardProp:e=>"disabled"!==e})`
  pointer-events: ${({disabled:e})=>e?"none":"auto"};
  opacity: ${({disabled:e})=>e?.45:1};
  cursor: ${({disabled:e})=>e?"default":"pointer"};
  padding: 0 8px 0 0;
  z-index: 5;

  // Hides the text element on smaller screens
  button div > span {
    display: none;
  }

  button svg {
    margin-right: 0;
  }

  button {
    padding: 0 8px;
  }

  @media ${o.a.VIEWPORT_M_UP} {
    button {
      padding: 0 16px;
    }

    button svg {
      margin-right: 4px;
    }

    button div > span {
      display: inline-block;
    }
  }
`;t.a=({filterTitleLabel:e,filtersActive:t,items:a,disabled:n})=>{const i=Object(l.useDispatch)();return r.a.createElement(s.a,{height:"100%"},r.a.createElement(u,{disabled:n,title:e,onClick:()=>!n&&i(Object(d.b)(!0)),filtersActive:t}),a)}},2841:function(e,t,a){"use strict";var n=a(0),r=a.n(n),i=a(3);const l=Object(i.c)("div")`
  width: 100%;
  table:after {
    content: '';
    display: block;
    position: absolute;
    right: -32px;
    width: 32px;
    height: 1px;
  }
`;t.a=({children:e})=>r.a.createElement(l,null,e)},2934:function(e,t,a){"use strict";var n=a(2986);a.d(t,"TableWrapper",(function(){return n.a}));a(2978)},2978:function(e,t){},2986:function(e,t,a){"use strict";var n=a(0),r=a.n(n),i=a(3),l=a(1),c=a(61),o=a(1670),s=a(47),d=a(113);var u=Object(d.a)(({message:e,motif:t="light",...a})=>r.a.createElement(s.a,Object.assign({color:"inherit",size:"caption",weight:"bold"},a),r.a.createElement(l.b,{id:e})));const b=i.a`
  padding-right: 8px !important;
`,m=i.a`
  padding-left: 24px;
`,E=i.a`
  table {
    margin-bottom: 0;
  }
`;function p(e){return!(!e||!e.condensed)}function O({columns:e,options:t}){return{columns:e.map((e,a)=>{const{headerLabel:n,...i}=e;if(!n)return e;const c=0===a,o=!p(t)&&c?m:null;return{label:r.a.createElement(l.b,{id:n}),renderLabel:()=>r.a.createElement(u,{className:o,message:n}),...i}}),options:t}}function f({columns:e,options:t}){return{columns:e.map((e,a)=>0===a&&e.renderCell?{...e,renderCell:(...a)=>r.a.createElement("div",{className:p(t)?void 0:m},e.renderCell(...a))}:e),options:t}}t.a=function({columns:e,className:t=null,component:a=o.a,options:l={},...s}){const{columns:d}=Object(n.useMemo)(()=>Object(c.compose)(O,f)({columns:e,options:l}),[e,l]);return r.a.createElement(a,Object.assign({cellClassName:p(l)?b:null,className:Object(i.b)(E,t),columns:d,rowHeight:35},s))}},3095:function(e,t,a){"use strict";a.r(t);var n=a(98),r=a.n(n),i=a(83),l=a.n(i),c=a(0),o=a.n(c),s=a(2),d=a.n(s),u=a(3),b=a(4),m=a(25),E=a(61),p=a(6),O=a(15),f=a(16),_=a(215),g=a(75),h=a(256),v=a(867),T=a(754),S=a(22),I=a(288),j=a(8),R=a(362),y=a(532),C=a(269),A=a(825),D=Object(C.a)((function(){return Promise.all([a.e(0),a.e(9)]).then(a.bind(null,3102))})),L=Object(u.c)("div",{target:"e1dz2xsd0"})("min-height:",A.c,"px;width:100%;");function N(e){return o.a.createElement(c.Suspense,{fallback:o.a.createElement(L,null)},o.a.createElement(D,e))}var P=a(1),w=a(10),M=a(623),x=a(47),H=a(2763),F=a(2824),k=a(168),q=a(307),B=a(115),G=a(70),U=a(99),Y=a(2618),W=a(2611),$=a(20),V=a(35),z=a(572),K=a(9),J=a(62),X=a(187),Q=a(141),Z=a(427),ee=a(2757),te=a(186),ae=a(189),ne=a.n(ae),re=a(48),ie=a(978),le=a(2764),ce={LOW:re.a["white-7"],MEDIUM:re.a["scale-5"],HIGH:re.a["red-1"]},oe=a(474),se=Object(u.c)("div",{target:"e1rnc69m0"})("display:flex;align-items:center;"),de=Object(u.c)(x.a,{target:"e1rnc69m1"})("margin-left:4px;"),ue={LOW:"IPS_SEVERITY_LOW",MEDIUM:"IPS_SEVERITY_MEDIUM",HIGH:"IPS_SEVERITY_HIGH"};function be(e){var t=e.severity,a=Object(c.useMemo)((function(){return{backgroundColor:ce[t]}}),[t]),n=ue[t]||"IPS_SEVERITY_LOW";return o.a.createElement(se,null,o.a.createElement(oe.a,{style:a}),o.a.createElement(de,{htmlFor:"nil",size:"small"},o.a.createElement(P.b,{id:n})))}be.propTypes={severity:d.a.oneOf(["LOW","MEDIUM","HIGH"]).isRequired};var me=Object(u.c)("div",{target:"e1eq62q70"})("display:flex;flex-direction:column;height:",232,"px;"),Ee=Object(u.c)("div",{target:"e1eq62q71"})("display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-top:16px;"),pe=Object(u.c)("div",{target:"e1eq62q72"})("display:flex;height:48px;align-items:center;"),Oe=Object(u.c)("div",{target:"e1eq62q73"})("display:flex;flex-direction:column;width:110px;"),fe=Object(u.c)("div",{target:"e1eq62q74"})("display:flex;justify-content:space-between;margin:8px 0;"),_e=Object(u.c)("hr",{target:"e1eq62q75"})("border:0.5px solid ",(function(e){var t=e.motif;return re.a["dark"===t?"black-3":"white-6"]}),";width:100%;margin:0;"),ge=[{id:"low",color:ce.LOW,value:100}];function he(e){var t=e.data,a=e.width,n=e.isEventDataLoading,r=Object(c.useMemo)((function(){return{width:a}}),[a]),i=Object(c.useContext)(ie.a).motif,l=Object(c.useState)(0),s=ne()(l,2),d=s[0],u=s[1],b=Object(c.useState)(ge),m=ne()(b,2),E=m[0],p=m[1],O=t.filter((function(e){return"LOW"===e.severity})),f=t.filter((function(e){return"MEDIUM"===e.severity})),_=t.filter((function(e){return"HIGH"===e.severity}));return Object(c.useEffect)((function(){if(!n){if(!t.length)return p(ge),void u(0);u(t.length),p([{id:"low",color:ce.LOW,value:O.length},{id:"med",color:ce.MEDIUM,value:f.length},{id:"high",color:ce.HIGH,value:_.length}])}}),[t,n]),o.a.createElement(me,{style:r},o.a.createElement(pe,null,o.a.createElement(x.a,{size:"small",weight:"bold"},o.a.createElement(P.b,{id:"IPS_DASHBOARD_THREAT_DONUT_TITLE"}))),o.a.createElement(_e,{motif:i}),o.a.createElement(Ee,null,o.a.createElement(P.b,{id:"IPS_DASHBOARD_THREAT_DONUT_DESCRIPTION"},(function(e){return o.a.createElement(le.a,{title:d,description:e,items:E})})),o.a.createElement(Oe,null,o.a.createElement(fe,null,o.a.createElement(be,{severity:"HIGH"}),o.a.createElement(x.a,{size:"large",weight:"bold"},_.length)),o.a.createElement(_e,{motif:i}),o.a.createElement(fe,null,o.a.createElement(be,{severity:"MEDIUM"}),o.a.createElement(x.a,{size:"large",weight:"bold"},f.length)),o.a.createElement(_e,{motif:i}),o.a.createElement(fe,null,o.a.createElement(be,{severity:"LOW"}),o.a.createElement(x.a,{size:"large",weight:"bold"},O.length)))))}he.propTypes={data:d.a.array,width:d.a.number,isEventDataLoading:d.a.bool.isRequired},he.defaultProps={data:[],width:300};var ve=a(626),Te=a(364),Se=a.n(Te),Ie=a(143),je=a.n(Ie),Re=a(150),ye=a.n(Re),Ce=a(155),Ae=a.n(Ce),De=a(151),Le=a.n(De),Ne=a(152),Pe=a.n(Ne),we=a(106),Me=a.n(we),xe=a(33),He=a.n(xe),Fe=a(29),ke=a(2601),qe=a(2596),Be=a(1035),Ge=a(436);function Ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,n=Me()(e);if(t){var r=Me()(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return Pe()(this,a)}}var Ye=Object(u.c)("div",{target:"e1fnqr3y0"})("display:flex;flex-direction:column;position:relative;"),We=Object(u.c)("div",{target:"e1fnqr3y1"})("display:flex;flex-direction:column;align-items:center;"),$e=function(e,t,a){return Object(u.a)("first"===t?"border-bottom-left-radius: 0":"border-bottom-right-radius: 0",";&::before{left:",e,"px;width:0;height:0;border-top:10px solid transparent;border-bottom:10px solid transparent;","first"===t?"border-left: 9px solid ".concat(a.colors.border,";"):"border-right: 9px solid ".concat(a.colors.border,";\n         border-left: 0;")," background-color:initial;transform:none;}&::after{content:'';display:block;position:absolute;left:",e-("first"===t?-1:1),"px;width:0;height:0;border-top:9px solid transparent;border-bottom:9px solid transparent;","first"===t?"border-left: 9px solid ".concat(a.colors.background,";"):"border-right: 9px solid ".concat(a.colors.background,";"),"}")},Ve=function(e,t,a){return Object(u.a)("border-radius:16px;opacity:0.8;","first"===t?$e(e,"first",a):null," ","last"===t?$e(e,"last",a):null)},ze=[{value:15538428e5,label:null},{value:15539292e5,label:null},{value:15540156e5,label:null},{value:1554102e6,label:null},{value:15541884e5,label:null},{value:15542748e5,label:null},{value:15543612e5,label:null},{value:15544476e5,label:null},{value:1554534e6,label:null}],Ke=Object(u.c)("div",{target:"e1fnqr3y2"})("display:flex;justify-content:space-around;align-items:center;"),Je=function(e){Le()(a,e);var t=Ue(a);function a(){var e;je()(this,a);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e=t.call.apply(t,[this].concat(r)),He()(Ae()(e),"tooltipContainer",o.a.createRef()),e}return ye()(a,[{key:"render",value:function(){var e=this,t=this.props,a=t.labelsAxis,n=t.lineColor,r=t.margin,i=t.data,l=t.width,c=t.height,s=t.xAxis,d=t.title,u=t.withLegend,b=t.theme,m=Math.max.apply(Math,Se()(i.map((function(e){return e.y})))),E=[{value:m>0?1.1*m:1},{value:0}],p=i[0].x,O=i[i.length-1].x;return o.a.createElement(Ye,null,o.a.createElement(x.a,{weight:"bold"},o.a.createElement(P.b,{id:d})),o.a.createElement(ke.a,{xAxis:s.length>1?s:ze,yAxis:E,width:l,height:c,margin:r,renderChartElements:function(t,r,c){return o.a.createElement(o.a.Fragment,null,u&&o.a.createElement("foreignObject",{width:200,height:20,x:l-200},o.a.createElement(Ke,null,o.a.createElement(x.a,{size:"small"},o.a.createElement(P.b,{id:"IPS_DASHBOARD_SECURITY_ALERTS_CHART_LEGEND_SEVERITY"})),o.a.createElement(be,{severity:"LOW"}),o.a.createElement(be,{severity:"MEDIUM"}),o.a.createElement(be,{severity:"HIGH"}))),i.length>1&&o.a.createElement(qe.a,{interpolation:"curved",variant:"gradientArea",lineColor:n,mouseData:r,data:i,getCoordinates:t,maxY:c,dashed:!1,tooltipPortal:e.tooltipContainer?e.tooltipContainer.current:void 0,renderTooltip:function(e){var t,n,i,l=e.hidden,c=e.left,s=e.top,d=e.y,u=e.x,m=c;if(!l){var E=Object(Fe.closestIndexTo)(r.seriesX,a.map((function(e){return e.value})))||0;n=a[E].tooltipLabel}return p===u&&(m+=60,t=-1,i="first"),O===u&&(m-=60,t=110,i="last"),o.a.createElement(Be.a,{left:m,top:s,message:o.a.createElement(We,null,o.a.createElement(x.a,{size:"larger",weight:"bold"},d),o.a.createElement(x.a,{color:"secondary"},n)),hidden:l,topMargin:4,tooltipProps:{width:120,tooltipClassName:Ve(t,i,b)}})}}))}}),o.a.createElement("div",{ref:this.tooltipContainer}))}}]),a}(c.Component);Je.propTypes={labelsAxis:d.a.array.isRequired,lineColor:d.a.string.isRequired,margin:d.a.array.isRequired,data:d.a.array.isRequired,width:d.a.number.isRequired,height:d.a.number.isRequired,xAxis:d.a.array.isRequired,title:d.a.string.isRequired,withLegend:d.a.bool,theme:d.a.object.isRequired},Je.defaultProps={withLegend:!1};var Xe=Object(Ge.b)(Je);const Qe=u.a`
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 24px ${30}px;
`;function Ze(e){return e.map(e=>({x:e.value,y:0}))}function et(e,t){return e&&e.getTime?e.getTime():t}function tt({data:e,dateRange:t,width:a}){const{timeAxis:n,noLabelsAxis:r}=Object(c.useMemo)(()=>{const a=e.map(e=>e.time),n=et(t.start,Math.min(...a)),r=et(t.end,Math.max(...a)),i=Object(ve.c)(n,r),l=i.map(e=>({...e,label:null}));return{timeAxis:i,noLabelsAxis:l}},[e]),i=Object(c.useMemo)(()=>e.reduce((e,t)=>{const a=n.findIndex(e=>t.time<e.value)-1;return a>=0&&("LOW"===t.severity?e.lowPrioritySeries[a].y+=1:"MEDIUM"===t.severity?e.medPrioritySeries[a].y+=1:"HIGH"===t.severity&&(e.highPrioritySeries[a].y+=1)),e},{lowPrioritySeries:Ze(n),medPrioritySeries:Ze(n),highPrioritySeries:Ze(n)}),[e,n]);if(!a)return null;const{lowPrioritySeries:l,medPrioritySeries:s,highPrioritySeries:d}=i,u=a-60,b=[30,0,30,0];return o.a.createElement("div",{className:Qe},a?o.a.createElement(o.a.Fragment,null,o.a.createElement(Xe,{data:d,lineColor:ce.HIGH,xAxis:r,labelsAxis:n,width:u,height:160,margin:b,title:"IPS_DASHBOARD_SECURITY_ALERTS_CHART_TITLE_HIGH",withLegend:!0}),o.a.createElement(Xe,{data:s,lineColor:ce.MEDIUM,xAxis:r,labelsAxis:n,width:u,height:160,margin:b,title:"IPS_DASHBOARD_SECURITY_ALERTS_CHART_TITLE_MEDIUM"}),o.a.createElement(Xe,{data:l,lineColor:ce.LOW,xAxis:n,labelsAxis:n,width:u,height:160,margin:b,title:"IPS_DASHBOARD_SECURITY_ALERTS_CHART_TITLE_LOW"})):null)}tt.propTypes={data:d.a.array,width:d.a.number,dateRange:d.a.object},tt.defaultProps={data:[],width:null,dateRange:null};var at=a(1651),nt=a(3093),rt=a(2715),it=a(1670),lt=a(363),ct=function(e,t){return"LOW"!==e&&("HIGH"===e||("LOW"===t||"HIGH"!==t))},ot=a(185),st=Object(u.c)("div",{target:"e16e2dlo0"})("position:absolute;left:0px;top:56px;height:160px;background-color:",(function(e){var t=e.motif;return re.a["dark"===t?"black-3":"white-2"]}),";padding:40px 0;display:flex;flex-direction:column;justify-content:space-around;align-items:center;");function dt(e){var t=e.width,a=Object(c.useMemo)((function(){return{width:t}}),[t]),n=Object(c.useContext)(ie.a).motif;return o.a.createElement(st,{motif:n,style:a},o.a.createElement(w.r,{size:"large",fill:re.a["color-success"]}),o.a.createElement(ot.a,{message:"IPS_NO_THREATS_DETECTED_INLINE"}))}dt.propTypes={width:d.a.number.isRequired};var ut=a(1211),bt=Object(u.c)(x.a,{target:"e55iqpz0"})("text-transform:none;"),mt=Object(u.a)("padding:0 8px;");function Et(e){var t=e.data,a=e.intl,n=e.networks,r=e.siteCountryCode,i=e.siteName,l=e.width,s=Object(c.useMemo)((function(){return{width:l,height:232}}),[l]),d=Object(c.useMemo)((function(){return[{id:"country",compare:function(e,t){return e.name>t.name},renderLabel:function(){return o.a.createElement(bt,{size:"small",weight:"bold"},o.a.createElement(P.b,{id:"IPS_DASHBOARD_GEO_THREATS_TABLE_HEADER_COUNTRY"}))},renderCell:function(e,t){var a=e[t.id];return o.a.createElement(o.a.Fragment,null,o.a.createElement(lt.a,{countryCode:a.code||"",className:"mr-2"}),o.a.createElement(x.a,{size:"small"},a.name))},sortable:!0,minWidth:110},{id:"attempts",renderLabel:function(){return o.a.createElement(bt,{size:"small"},o.a.createElement(P.b,{id:"IPS_DASHBOARD_GEO_THREATS_TABLE_HEADER_ATTEMPTS"}))},sortable:!0,minWidth:70},{id:"severity",sortable:!0,compare:ct,renderLabel:function(){return o.a.createElement(bt,{size:"small"},o.a.createElement(P.b,{id:"IPS_DASHBOARD_GEO_THREATS_TABLE_HEADER_SEVERITY"}))},renderCell:function(e,t){var a=e[t.id];return o.a.createElement(be,{severity:a})},minWidth:70},{id:"source",sortable:!1,renderLabel:function(){return o.a.createElement(bt,{size:"small"},o.a.createElement(P.b,{id:"IPS_DASHBOARD_GEO_THREATS_TABLE_HEADER_SOURCE"}))},renderCell:function(e,t){var a=e[t.id];return 0===a.length?o.a.createElement(x.a,{size:"small"},"-"):o.a.createElement(x.a,{size:"small"},a.length>1?o.a.createElement(P.b,{id:"IPS_DASHBOARD_GEO_THREATS_SOURCE_MULTIPLE"}):a[0])},minWidth:70}]}),[i]),u=Object(c.useMemo)((function(){var e=Object(at.a)(t,(function(e){return Object(ut.b)(e,n,r)}));return Object(nt.a)(e,(function(e){var t="LOW";e.find((function(e){return"HIGH"===e.severity}))?t="HIGH":e.find((function(e){return"MEDIUM"===e.severity}))&&(t="MEDIUM");var i=Object(rt.a)(e.map((function(e){return e.src_ip}))),l=Object(ut.b)(e[0],n,r),c=a.formatMessage({id:Object(ut.a)(l)});return{id:c,attempts:e.length,country:{code:l,name:c},severity:t,source:i}}))}),[t,a,n,r]);return o.a.createElement("div",{style:s},o.a.createElement(it.a,{initialSortBy:"attempts",initiallySortAscending:!0,disableColumnFilters:!0,cellClassName:mt,columns:d,items:u,rowHeight:35,rowLimit:5,width:l,renderPlaceholder:function(){return o.a.createElement(dt,{width:l})}}))}Et.propTypes={intl:d.a.object.isRequired,networks:d.a.array.isRequired,siteCountryCode:d.a.string.isRequired,siteName:d.a.string.isRequired,data:d.a.array,width:d.a.number},Et.defaultProps={data:[],width:400};var pt=Object(E.compose)(P.e,Object(b.connect)((function(e){return{networks:Object(O.selectNetworksData)(e),siteName:Object(Q.b)(e),siteCountryCode:Object(f.selectCountryCode)(e)}})))(Et),Ot=a(165),ft=a(241),_t=Object(u.c)(x.a,{target:"e1a8hg6p0"})("text-transform:none;"),gt=[{id:"class",renderCell:function(e,t){var a=e[t.id],n=Object(Ot.a)(ft.e.find((function(e){return e.value===a})),"label","IPS_CATEGORY_UNKNOWN");return o.a.createElement(P.b,{id:n})},renderLabel:function(){return o.a.createElement(_t,{size:"small",weight:"bold"},o.a.createElement(P.b,{id:"IPS_DASHBOARD_CLASS_THREATS_TABLE_HEADER_CLASS"}))},sortable:!0,minWidth:110},{id:"attempts",renderLabel:function(){return o.a.createElement(_t,{size:"small"},o.a.createElement(P.b,{id:"IPS_DASHBOARD_CLASS_THREATS_TABLE_HEADER_ATTEMPTS"}))},sortable:!0,minWidth:70},{id:"severity",sortable:!0,compare:ct,renderLabel:function(){return o.a.createElement(_t,{size:"small"},o.a.createElement(P.b,{id:"IPS_DASHBOARD_CLASS_THREATS_TABLE_HEADER_SEVERITY"}))},renderCell:function(e,t){var a=e[t.id];return o.a.createElement(be,{severity:a})},minWidth:70}];function ht(e){var t=e.data,a=e.width,n=Object(c.useMemo)((function(){return{width:a,height:232}}),[a]),r=Object(c.useMemo)((function(){var e=Object(at.a)(t,"category");return Object(nt.a)(e,(function(e){var t="LOW";e.find((function(e){return"HIGH"===e.severity}))?t="HIGH":e.find((function(e){return"MEDIUM"===e.severity}))&&(t="MEDIUM");var a=e[0].category||o.a.createElement(P.b,{id:"IPS_CATEGORY_UNKNOWN"});return{id:a,attempts:e.length,class:a,severity:t}}))}),[t]);return o.a.createElement("div",{style:n},o.a.createElement(it.a,{initialSortBy:"attempts",initiallySortAscending:!0,disableColumnFilters:!0,columns:gt,items:r,width:a,rowHeight:35,rowLimit:5,renderPlaceholder:function(){return o.a.createElement(dt,{width:a})}}))}ht.propTypes={data:d.a.array,width:d.a.number},ht.defaultProps={data:[],width:400};var vt=Object(u.a)("display:flex;flex-direction:column;height:100%;width:100%;"),Tt=Object(u.c)("div",{target:"e1eqve4x0"})("display:flex;flex-wrap:wrap;justify-content:space-evenly;padding:0 ",30,"px;");function St(e){var t=e.$goToSettingsSection,a=e.dateRange,n=e.filteredEventData,r=e.history,i=e.ipsDisabled,l=e.isEventDataLoading,s=e.siteName,d=e.usgSettings,u=Object(c.useRef)(null),m=Object(S.q)(u),E=Object(b.useSelector)(J.c),p=Object(b.useSelector)(Object(J.j)(s)),O=Math.max(270,Math.min(.25*m,320)),f=Math.max(470,(m-O-120)/3);return!(d&&d.geo_ip_filtering_enabled)&&i?o.a.createElement("div",{className:vt,ref:u},o.a.createElement(ee.a,{title:o.a.createElement(P.b,{id:"IPS_DASHBOARD_NO_CONTENT_TITLE"}),details:o.a.createElement(P.b,{id:"IPS_DASHBOARD_NO_CONTENT_DETAILS"}),button:o.a.createElement(te.c,{name:"ips-dashboard-enable-ips",type:"button",variant:"primary"},o.a.createElement(P.b,{id:"IPS_DASHBOARD_NO_CONTENT_BUTTON"})),icon:"noIsp",onClick:function(){E?t("ipsSettings"):r.push("".concat(p,"/settings/security/threat-management"))}})):i?null:o.a.createElement("div",{className:vt,ref:u},o.a.createElement(Tt,null,o.a.createElement(he,{data:n,width:O,isEventDataLoading:l}),o.a.createElement(pt,{data:n,width:f}),o.a.createElement(ht,{data:n,width:f})),o.a.createElement(tt,{dateRange:a,data:n,width:m}))}St.propTypes={$goToSettingsSection:d.a.func.isRequired,dateRange:d.a.object,filteredEventData:d.a.array,history:d.a.object.isRequired,ipsDisabled:d.a.bool.isRequired,isEventDataLoading:d.a.bool.isRequired,siteName:d.a.string.isRequired,usgSettings:d.a.object.isRequired},St.defaultProps={dateRange:null,filteredEventData:[]};var It=o.a.memo(St),jt=Object(m.o)(It),Rt={$goToSettingsSection:Z.a,fetchHealth:X.a,fetchIpsEventsRange:k.f},yt=Object(E.compose)(Object(b.connect)((function(e){return{dateRange:Object(z.a)(e),filteredEventData:Object(z.c)(e),ipsDisabled:Object(f.selectIsIpsDisabled)(e),isEventDataLoading:Object(z.j)(e),isMapLoaded:Object(z.g)(e),siteName:Object(Q.b)(e),usgSettings:Object(f.selectUsgSettings)(e)}}),Rt),Object(T.b)((function(e){var t=e.dateRange,a=e.fetchHealth,n=e.fetchIpsEventsRange;return Promise.all([a(),n(t.start,t.end)])})))(jt),Ct=a(41),At=a(18),Dt=a(2594),Lt=a(5),Nt=a(2934),Pt=a(17),wt=Object(u.a)("align-self:flex-start;> svg{stroke-width:1px;}");function Mt(e){var t=e.title,a=e.details,n=e.icon;return o.a.createElement(ee.a,{className:wt,title:o.a.createElement(ot.a,{message:t}),details:o.a.createElement(ot.a,{message:a}),icon:n})}Mt.propTypes={title:d.a.string,details:d.a.string,icon:d.a.node},Mt.defaultProps={title:"IPS_NO_THREATS_DETECTED_TITLE",details:"IPS_TRAFFIC_LOG_NO_RESULTS_DETAIL",icon:"noIsp"};var xt=a(42),Ht=a(69),Ft=function(e){if(e)return"IPS_VALUES_CATEGORY_".concat(e.toUpperCase())};function kt(e){var t=e.rowData.catname,a=Ft(t);return o.a.createElement(ot.a,{message:a,size:"small"})}kt.propTypes={rowData:d.a.object.isRequired};var qt=Object(u.a)("display:flex;align-items:center;"),Bt=Object(u.a)("white-space:nowrap;overflow:hidden;text-overflow:ellipsis;");function Gt(e){var t=e.rowData,a=Object(b.useSelector)(O.selectNetworksData),n=Object(b.useSelector)(f.selectCountryCode),r=Object(ut.b)(t,a,n);return o.a.createElement("div",{className:qt},o.a.createElement(lt.a,{width:20,countryCode:r||"",className:"mr-2"}),o.a.createElement(ot.a,{className:Bt,size:"small"},o.a.createElement(P.b,{id:Object(ut.a)(r)})))}Gt.propTypes={rowData:d.a.object.isRequired};var Ut=Object(u.a)("text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;");function Yt(e){var t=e.cellData,a="string"==typeof t?t:new Date(1e3*t);return o.a.createElement("div",{className:Ut},o.a.createElement(ot.a,{size:"small"},Object(Fe.format)(a,"MM/DD/YYYY hh:mm:ss A")))}function Wt(e){var t=e.rowData,a=t.service,n=t.servicename,r=void 0===n?"":n;return o.a.createElement("span",null,"".concat(r," (").concat(a,")"))}Yt.propTypes={cellData:d.a.oneOfType([d.a.number,d.a.string]).isRequired},Wt.propTypes={rowData:d.a.object.isRequired};var $t=a(216),Vt=Object(u.c)(ot.a,{target:"edu8y1e0"})("margin-left:5px;"),zt=Object(u.a)("display:flex;align-items:center;");function Kt(e){switch(e){case 1:return"IPS_SEVERITY_HIGH";case 2:return"IPS_SEVERITY_MEDIUM";case 3:case 4:default:return"IPS_SEVERITY_LOW"}}function Jt(e){var t=e.rowData.inner_alert_severity,a=Kt(t);return o.a.createElement("div",{className:zt},o.a.createElement(oe.a,{variant:$t.h[t]}),o.a.createElement(Vt,null,o.a.createElement(P.b,{id:a})))}Jt.propTypes={rowData:d.a.object.isRequired};var Xt=Object(u.c)("span",{target:"eo3acbl0"})("text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;");function Qt(e){var t=e.cellData;return o.a.createElement(Xt,null,t)}Qt.propTypes={cellData:d.a.string},Qt.defaultProps={cellData:""};const Zt=[{compare:Object(xt.b)(({src_ip:e})=>Object(Ht.c)(e)),id:"honeypot-table-src_ip",headerLabel:"IPS_HONEYPOT_TABLE_HEADER_SRC_IP",renderCell:({src_ip:e})=>e||"",sortable:!0},{compare:Object(xt.b)(({service:e})=>e||""),id:"honeypot-table-service",headerLabel:"IPS_HONEYPOT_TABLE_HEADER_DEST_PORT",renderCell:e=>o.a.createElement(Wt,{rowData:e}),sortable:!0},{compare:Object(xt.b)(({timestamp:e})=>e||0),id:"honeypot-table-timestamp",headerLabel:"IPS_HONEYPOT_TABLE_HEADER_DATETIME",renderCell:({timestamp:e})=>o.a.createElement(Yt,{cellData:e}),sortable:!0}],ea=(e,t,a)=>{const n=Object(xt.c)(e);return[{compare:n((e,{catname:t})=>Ft(t)),id:"traffic-log-table-catname",headerLabel:"IPS_TRAFFIC_LOG_TABLE_HEADER_CATNAME",minWidth:100,renderCell:e=>o.a.createElement(kt,{rowData:e}),sortable:!0},{compare:Object(xt.b)(({inner_alert_category:e})=>(e||"").toLowerCase()),id:"traffic-log-table-inner_alert_category",headerLabel:"IPS_TRAFFIC_LOG_TABLE_HEADER_INNER_ALERT_CATEGORY",minWidth:160,renderCell:({inner_alert_category:e})=>o.a.createElement(Qt,{cellData:e}),sortable:!0},{compare:n((e,{inner_alert_severity:t})=>Kt(t)),id:"traffic-log-table-inner_alert_severity",headerLabel:"IPS_TRAFFIC_LOG_TABLE_HEADER_INNER_ALERT_SEVERITY",minWidth:100,renderCell:e=>o.a.createElement(Jt,{rowData:e}),sortable:!0},{compare:n((e,n)=>Object(ut.a)(Object(ut.b)(n,t,a))),id:"traffic-log-table-dstipGeo",headerLabel:"IPS_TRAFFIC_LOG_TABLE_HEADER_DSTIPGEO",minWidth:200,renderCell:e=>o.a.createElement(Gt,{rowData:e}),sortable:!0},{compare:Object(xt.b)(({src_ip:e})=>Object(Ht.e)(e)),id:"traffic-log-table-src_ip",headerLabel:"IPS_TRAFFIC_LOG_TABLE_HEADER_SRC_IP",minWidth:100,renderCell:({src_ip:e,src_port:t})=>o.a.createElement(x.a,null,t?`${e} : ${t}`:e),sortable:!0},{compare:Object(xt.b)(({dest_ip:e})=>Object(Ht.e)(e)),id:"traffic-log-table-dest_ip",headerLabel:"IPS_TRAFFIC_LOG_TABLE_HEADER_DEST_IP",minWidth:100,renderCell:({dest_ip:e,dest_port:t})=>o.a.createElement(x.a,null,t?`${e} : ${t}`:e),sortable:!0},{compare:Object(xt.b)(({datetime:e})=>e),id:"traffic-log-table-datetime",headerLabel:"IPS_TRAFFIC_LOG_TABLE_HEADER_DATETIME",minWidth:160,renderCell:({datetime:e})=>o.a.createElement(Yt,{cellData:e}),sortable:!0}]},ta=[{compare:Object(xt.b)(({Host:e})=>Object(Ht.c)(e)),id:"endpoint-scans-table-Host",headerLabel:"COMMON_IP_ADDRESS",renderCell:({Host:e})=>e||"",sortable:!0},{compare:Object(xt.b)(({OS:e})=>e||""),id:"endpoint-scans-table-OS",headerLabel:"IPS_ENDPOINT_SCANNER_TABLE_HEADER_OS",renderCell:({OS:e})=>e||"-",sortable:!0},{compare:Object(xt.b)(({time:e})=>e||0),id:"endpoint-scans-table-time",headerLabel:"IPS_ENDPOINT_SCANNER_TABLE_HEADER_DATETIME",renderCell:({time:e})=>o.a.createElement(Yt,{cellData:e}),sortable:!0},{compare:Object(xt.b)(({Ports:e})=>Object.keys(e||{}).length),id:"endpoint-scans-table-Ports",headerLabel:"IPS_ENDPOINT_SCANNER_TABLE_HEADER_OPEN_PORTS",renderCell:({Ports:e})=>Object.keys(e||{}).length,sortable:!0}];var aa={datetime:{label:"COMMON_WORD_DATE",getValue:function(e){return Object(Fe.format)(e,"MM/DD/YYYY")}},time:{label:"IPS_HONEYPOT_TABLE_HEADER_DATETIME",getValue:function(e){return Object(Fe.format)(e,"hh:mm:ss A")}},inner_alert_severity:{label:"IPS_CONTROL_PANEL_FILTER_SEVERITY_LABEL",getValue:function(e){return o.a.createElement(Jt,{rowData:{inner_alert_severity:e}})}},inner_alert_category:{label:"IPS_TRAFFIC_LOG_TABLE_HEADER_INNER_ALERT_CATEGORY"},category:{label:"IPS_TRAFFIC_LOG_TABLE_HEADER_CATNAME",getValue:function(e){var t=Ft(e);return t?o.a.createElement(P.b,{id:t}):null}},in_iface:{label:"IPS_TRAFFIC_LOG_MODAL_INTERFACE"},src_ip:{label:"IPS_TRAFFIC_LOG_TABLE_HEADER_SRC_IP",getValue:function(e,t){var a=Object(Ot.a)(t,"src_port",null);return"".concat(e).concat(a?" : ".concat(a):"")}},"dstipGeo.country_name":{label:"IPS_TRAFFIC_LOG_TABLE_HEADER_DSTIPGEO",getValue:function(e,t){return o.a.createElement(Gt,{rowData:t})}},dest_ip:{label:"IPS_TRAFFIC_LOG_TABLE_HEADER_DEST_IP",getValue:function(e,t){var a=Object(Ot.a)(t,"dest_port",null);return"".concat(e).concat(a?" : ".concat(a):"")}},app_proto:{label:"COMMON_WORD_PROTOCOL"},dstipASN:{label:"IPS_TRAFFIC_LOG_MODAL_ASN"},classification:{label:""},client:{label:""},inner_alert_signature:{label:"IPS_TRAFFIC_DETAIL"}};function na(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function ra(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?na(Object(a),!0).forEach((function(t){He()(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):na(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var ia=Object(u.a)("flex:1;>:last-child{flex:1;}"),la=Object(u.c)(Lt.a,{target:"e1oh3zu0"})("padding:30px;");function ca(e){var t=e.intl,a=e.networks,n=e.showModal,r=e.siteCountryCode,i=e.trafficLog,l=i&&i.length;return o.a.createElement(la,{flex:"1",flexDirection:"column"},l?o.a.createElement(Nt.TableWrapper,{className:ia,columns:ea(t,a,r),component:Dt.a,disableColumnFilters:!0,disableSelection:!0,idField:"_id",items:i,onRowClick:function(t){var a;n({modalType:G.a.TRAFFIC_LOG_DETAIL,modalProps:{detail:(a=t,Object.keys(aa).reduce((function(e,t){var n=Object(Ot.a)(a,t,void 0);if(n){var r=aa[t],i=r.label,l=r.getValue;e[t]={label:i,value:l?l(n,a):n}}return e}),{})),title:"IPS_TRAFFIC_DETAIL",blacklist:function(){return function(t){var a=t.src_ip,n=e.networks;return(0,e.blacklistClient)(a,n)}(t)},block:function(){return function(t){var a=t.src_ip,n=t.dest_ip,r=e.networks;return(0,e.blockClient)(a,n,r)}(t)},whitelist:function(){return a=t.src_ip,n=e.saveSettings,r=e.ipsSettings,i=e.createToast,n(ra(ra({},r),{},{suppression:ra(ra({},r.suppression),{},{whitelist:[].concat(Se()(r.suppression.whitelist),[{direction:"both",mode:"ip",value:a}])})})).then((function(){i({icon:Pt.a.success,message:"IPS_TRAFFIC_LOG_SETTINGS_SAVE_SUCCESS"})})).catch((function(e){i({icon:Pt.a.danger,message:"IPS_TRAFFIC_LOG_SETTINGS_SAVE_FAILURE",errorMessage:e.msg,errorValues:e})}));var a,n,r,i},suppress:function(){return n=(a=t).inner_alert_signature,r=a.inner_alert_signature_id,i=a.inner_alert_gid,l=a.src_ip,c=e.saveSettings,o=e.ipsSettings,s=e.createToast,(d=o.suppression.alerts).some((function(e){return e.id===r}))?c(ra(ra({},o),{},{suppression:ra(ra({},o.suppression),{},{alerts:d.map((function(e){return e.id!==r?e:ra(ra({},e),{},{tracking:[].concat(Se()(e.tracking),[{direction:"both",mode:"ip",value:l}])})}))})})).then((function(){s({icon:Pt.a.success,message:"IPS_TRAFFIC_LOG_SETTINGS_SAVE_SUCCESS"})})).catch((function(e){s({icon:Pt.a.danger,message:"IPS_TRAFFIC_LOG_SETTINGS_SAVE_FAILURE",errorMessage:e.msg,errorValues:e})})):c(ra(ra({},o),{},{suppression:ra(ra({},o.suppression),{},{alerts:[].concat(Se()(d),[{category:"IPS_VALUES_CATEGORY_EMERGING-USERAGENT",gid:i,id:r,signature:n,type:"track",tracking:[{direction:"both",mode:"ip",value:l}]}])})})).then((function(){s({icon:Pt.a.success,message:"IPS_TRAFFIC_LOG_SETTINGS_SAVE_SUCCESS"})})).catch((function(e){s({icon:Pt.a.danger,message:"IPS_TRAFFIC_LOG_SETTINGS_SAVE_FAILURE",errorMessage:e.msg,errorValues:e})}));var a,n,r,i,l,c,o,s,d},ipsEventId:t._id,style:{content:{width:520}}}})}}):o.a.createElement(Mt,null))}ca.propTypes={intl:d.a.object.isRequired,showModal:d.a.func.isRequired,siteCountryCode:d.a.string.isRequired,trafficLog:d.a.array.isRequired,saveSettings:d.a.func.isRequired,ipsSettings:d.a.object.isRequired,createToast:d.a.func.isRequired,blockClient:d.a.func.isRequired,blacklistClient:d.a.func.isRequired,networks:d.a.array.isRequired};var oa=Object(E.compose)(P.e,Object(b.connect)((function(e){return{dateRange:Object(z.a)(e),ipsSettings:Object(f.selectIpsSettings)(e),networks:Object(O.selectNetworksData)(e),siteCountryCode:Object(f.selectCountryCode)(e),trafficLog:Object(z.k)(e)}}),{showModal:V.g,hideModal:V.e,blacklistClient:Ct.blacklistClient,blockClient:Ct.blockClient,fetchFirewallRules:Ct.fetchFirewallRules,saveSettings:f.saveSettings,createToast:At.a,fetchIpsEventsRange:k.f}),Object(T.b)((function(e){var t=e.fetchFirewallRules,a=e.fetchIpsEventsRange,n=e.dateRange;return Promise.all([t(),a(n.start,n.end)])})))(ca),sa=a(839),da=a(157),ua=a(2769),ba=a(2701),ma=a(831),Ea=a(89);const pa=Object(u.c)("div")`
  padding: 24px;
`,Oa=Object(u.c)("div")`
  padding-top: 16px;
`,fa=Object(u.c)(Lt.a)`
  padding: 30px;
`,_a=Object(u.c)("div")`
  border-bottom: 1px solid ${({theme:e})=>e.colors.border};
  margin-bottom: 16px;
  padding-bottom: 8px;
`,ga=Object(u.c)(Lt.a)`
  padding-bottom: 16px;
`,ha=e=>o.a.createElement(ga,Object.assign({justifyContent:"space-between"},e)),va=Object(u.c)("header")`
  align-items: center;
  border-bottom: 1px solid ${({theme:e})=>e.colors.border};
  display: flex;
  height: 50px;
  justify-content: space-between;
  padding-left: 16px;
  padding-right: 16px;
`,Ta=Object(u.c)("span")`
  color: ${({theme:e})=>e.themeName===ma.a.dark?re.a["color-dark-text-secondary"]:re.a["color-light-text-secondary"]};
  line-height: 1.5;
  max-width: 75%;
  text-align: right;
`,Sa=u.a`
  padding: 0 0 20px 0;
  margin: 0;
`;var Ia=()=>{const e=Object(b.useDispatch)(),t=Object(b.useSelector)(z.a),a=Object(b.useSelector)(z.e),[n,r]=Object(S.c)(!1),[i,l]=Object(S.c)({Host:"",openPorts:"",OS:"-",portArray:[],Ports:{},time:""}),s=Object(c.useCallback)(e=>{const t=Object.keys(e.Ports),a={...e,openPorts:t.join(", "),portArray:t.map(t=>({...e.Ports[t],port:t}))};l(a)},[]);Object(c.useEffect)(()=>{function e(e){"Escape"===e.key&&r(!1)}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[]);const d=a&&a.length>0;return Object(S.g)(()=>Promise.all([e(Object(Ea.fetchClients)()),e(Object(p.fetchDevices)()),e(Object(k.c)(t.start,t.end))]),o.a.createElement(fa,{height:"100%",width:"100%"},d?o.a.createElement(o.a.Fragment,null,o.a.createElement(Nt.TableWrapper,{columns:ta,disableColumnFilters:!0,disableSelection:!0,idField:"_id",items:a,onRowClick:e=>{r(!0),s(e)}}),Object(da.createPortal)(o.a.createElement(ua.a,{in:n,header:o.a.createElement(P.b,{id:"IPS_ENDPOINT_SCANNER_SIDE_PANEL_TITLE"}),onClose:()=>r(!1),renderHeader:({onClose:e})=>o.a.createElement(va,null,o.a.createElement(x.a,{heading:"primary",size:"header-l"},o.a.createElement(P.b,{id:"IPS_ENDPOINT_SCANNER_SIDE_PANEL_TITLE"})),o.a.createElement(w.z,{actionable:!0,onClick:e}))},o.a.createElement(pa,null,o.a.createElement(ba.a,{variant:"tertiary",contentClassName:Sa,multiOpen:!0,items:[{id:"overview",openByDefault:!0,label:o.a.createElement(P.b,{id:"IPS_ENDPOINT_SCANNER_SIDE_PANEL_SECTION_OVERVIEW_LABEL"}),renderContent:()=>o.a.createElement(Oa,null,o.a.createElement(ha,null,o.a.createElement(Ta,null,o.a.createElement(P.b,{id:"COMMON_IP_ADDRESS"})),o.a.createElement(Ta,null,i.Host)),o.a.createElement(ha,null,o.a.createElement(Ta,null,o.a.createElement(P.b,{id:"IPS_ENDPOINT_SCANNER_SIDE_PANEL_SECTION_OVERVIEW_FIELD_OS"})),o.a.createElement(Ta,null,i.OS||"-")),o.a.createElement(ha,null,o.a.createElement(Ta,null,o.a.createElement(P.b,{id:"IPS_ENDPOINT_SCANNER_SIDE_PANEL_SECTION_OVERVIEW_FIELD_TIME"})),o.a.createElement(Ta,null,i.time)),o.a.createElement(ha,null,o.a.createElement(Ta,null,o.a.createElement(P.b,{id:"IPS_ENDPOINT_SCANNER_SIDE_PANEL_SECTION_OVERVIEW_FIELD_OPEN_PORTS"})),o.a.createElement(Ta,null,i.openPorts)))},{id:"open_ports",openByDefault:!0,label:o.a.createElement(P.b,{id:"IPS_ENDPOINT_SCANNER_SIDE_PANEL_SECTION_OPEN_PORTS_LABEL"}),renderContent:()=>o.a.createElement(Oa,null,i.portArray.map(e=>o.a.createElement(_a,null,o.a.createElement(ha,null,o.a.createElement(Ta,null,o.a.createElement(P.b,{id:"IPS_ENDPOINT_SCANNER_SIDE_PANEL_SECTION_OPEN_PORTS_FIELD_PORT"})),o.a.createElement(Ta,null,e.port)),o.a.createElement(ha,null,o.a.createElement(Ta,null,o.a.createElement(P.b,{id:"IPS_ENDPOINT_SCANNER_SIDE_PANEL_SECTION_OPEN_PORTS_FIELD_STATE"})),o.a.createElement(Ta,null,e.state)),o.a.createElement(ha,null,o.a.createElement(Ta,null,o.a.createElement(P.b,{id:"IPS_ENDPOINT_SCANNER_SIDE_PANEL_SECTION_OPEN_PORTS_FIELD_APPLICATION"})),o.a.createElement(Ta,null,e.application)),o.a.createElement(ha,null,o.a.createElement(Ta,null,o.a.createElement(P.b,{id:"IPS_ENDPOINT_SCANNER_SIDE_PANEL_SECTION_OPEN_PORTS_FIELD_VENDOR"})),o.a.createElement(Ta,null,e.vendor)),o.a.createElement(ha,null,o.a.createElement(Ta,null,o.a.createElement(P.b,{id:"IPS_ENDPOINT_SCANNER_SIDE_PANEL_SECTION_OPEN_PORTS_FIELD_PROTOCOL"})),o.a.createElement(Ta,null,e.protocol)))))}]}))),document.getElementById("ips-container"))):o.a.createElement(Mt,null)))},ja=a(2841),Ra=a(845);const ya=Object(u.c)(Lt.a)`
  padding: 30px;

  th:last-of-type {
    flex: 0 !important;
  }
`;var Ca=()=>{const e=Object(b.useDispatch)(),t=Object(b.useSelector)(Ra.a),a=Object(b.useSelector)(z.a),n=Object(b.useSelector)(z.d),r=Object(b.useSelector)(O.selectNetworksData),i=n&&n.length>0;return Object(S.g)(()=>Promise.all([e(Object(k.d)(a.start,a.end)),e(Object(Ct.fetchFirewallRules)())]),o.a.createElement(ya,{height:"100%",width:"100%",flexDirection:"column"},i?o.a.createElement(ja.a,null,o.a.createElement(Nt.TableWrapper,{columns:Zt,disableColumnFilters:!0,disableSelection:!0,idField:"_id",items:n,onRowClick:a=>{e(Object(V.g)({modalType:G.a.BLOCK_CLIENT,modalProps:{style:{content:{width:520}},title:"IPS_HONEYPOT_MODAL_TITLE",blacklist:()=>{e(Object(Ct.blacklistClient)(a.src_ip,r)),e(Object(V.e)())},disableBlackList:t.some(e=>e.src_ip===a.src_ip)||!1}}))}})):o.a.createElement(Mt,null)))};const Aa=Object(K.a)(g.l,J.i,(e,t)=>(e=>[{id:sa.a.dashboard,label:o.a.createElement(P.b,{id:"IPS_SECTION_DASHBOARD"}),path:`${e}/ips/${sa.a.dashboard}`,component:yt},{id:sa.a["traffic-log"],label:o.a.createElement(P.b,{id:"IPS_SECTION_TRAFFIC_LOG"}),path:`${e}/ips/${sa.a["traffic-log"]}`,component:oa},{id:sa.a["endpoint-scans"],label:o.a.createElement(P.b,{id:"IPS_SECTION_ENDPOINT_SCANS"}),path:`${e}/ips/${sa.a["endpoint-scans"]}`,component:Ia,disabled:({isUdm:e})=>!e},{id:sa.a["honey-pot"],label:o.a.createElement(P.b,{id:"IPS_SECTION_HONEYPOT"}),path:`${e}/ips/${sa.a["honey-pot"]}`,component:Ca,disabled:({isUdm:e})=>!e}])(t).map(({disabled:t,...a})=>t?{...a,disabled:"function"==typeof t?t({isUdm:e}):t}:a));var Da=a(2587),La=a(613),Na=a(3059);function Pa(e,t){var a;return null===(a=null==e?void 0:e.severity)||void 0===a?void 0:a.includes(t)}function wa(e,t,a){return Object(Da.a)(e,t).map(e=>({label:a?a(e):e[t],value:e[t]}))}const Ma=Object(u.c)(ba.a)`
  padding: 24px;
`;var xa=Object(P.e)(({filters:e,onChangeFilter:t,intl:a})=>{var n,r,i;const l=Object(b.useSelector)(z.i);return o.a.createElement(Ma,{multiOpen:!0,variant:"filters",items:[{id:"category",openByDefault:!0,label:o.a.createElement(P.b,{id:"IPS_CONTROL_PANEL_FILTER_CATEGORY_LABEL"}),renderContent:()=>o.a.createElement(La.a,{multi:!0,width:"100%",onChange:e=>t("category",e.value),options:wa(l,"category",({category:e})=>a.formatMessage({id:e?"IPS_VALUES_CATEGORY_"+e.toUpperCase():"IPS_CATEGORY_UNKNOWN"})),value:e.category||[]})},{id:"severity",openByDefault:(null===(n=e.severity)||void 0===n?void 0:n.length)>0,label:o.a.createElement(P.b,{id:"IPS_CONTROL_PANEL_FILTER_SEVERITY_LABEL"}),renderContent:()=>o.a.createElement(Na.a,{spacing:"flush",variant:"list",items:[{id:"low",checked:Pa(e,"LOW"),children:o.a.createElement(be,{severity:"LOW"}),onChange:()=>t("severity","LOW")},{id:"med",checked:Pa(e,"MEDIUM"),children:o.a.createElement(be,{severity:"MEDIUM"}),onChange:()=>t("severity","MEDIUM")},{id:"high",checked:Pa(e,"HIGH"),children:o.a.createElement(be,{severity:"HIGH"}),onChange:()=>t("severity","HIGH")}]})},{id:"country",openByDefault:(null===(r=e.countryName)||void 0===r?void 0:r.length)>0,label:o.a.createElement(P.b,{id:"IPS_CONTROL_PANEL_FILTER_COUNTRY_LABEL"}),renderContent:()=>o.a.createElement(La.a,{multi:!0,width:"100%",onChange:e=>t("countryName",e.value),options:wa(l,"countryName",({countryCode:e})=>a.formatMessage({id:e?"COUNTRY_"+e.toUpperCase():"IPS_COUNTRY_UNKNOWN"})),value:e.countryName||[]})},{id:"ipaddr",openByDefault:(null===(i=e.ip)||void 0===i?void 0:i.length)>0,label:o.a.createElement(P.b,{id:"COMMON_IP_ADDRESS"}),renderContent:()=>o.a.createElement(La.a,{multi:!0,width:"100%",onChange:e=>t("ip",e.value),options:wa(l,"ip"),value:e.ip||[]})}],renderOnlyExpandedContent:!0})});const Ha=Object(u.c)(M.a)`
  justify-content: flex-end;
`,Fa=Object(u.c)(q.a)`
  align-items: center;
  // fixme for hybrid prd build
  display: flex !important;
  flex-shrink: 0;
  padding: 0 !important;
  white-space: nowrap;

  &:hover {
    > * {
      color: ${B.c};
    }
  }
`,ka=u.a`
  justify-content: flex-start;
`,qa=Object(u.c)(w.e)`
  margin-left: 12px;
  // fixme: prod hybrid build
  width: 10px !important;
`,Ba=u.a`
  box-shadow: unset;
  padding: 0;
`,Ga=u.a`
  &:not(:last-child) {
    margin-right: 24px;
  }
`,Ua=u.a`
  cursor: pointer;
  margin-right: 12px;
`,Ya=Object(u.c)("div")`
  align-items: center;
  color: ${e=>e.theme.colors.subtleText};
  display: flex;
`,Wa=Object(u.c)(x.a)`
  user-select: none;
`,$a=Object(u.c)("div")`
  align-items: center;
  display: flex !important;
  justify-content: flex-end;
  width: 0;
`;var Va=Object(P.e)(({intl:e,isMapLoaded:t})=>{const a=Object(b.useSelector)(Aa),n=Object(b.useSelector)(z.b),r=Object(b.useSelector)(z.a),i=Object(b.useSelector)(W.a),l=Object(b.useSelector)(f.selectIsIpsEnabled),s=Object(b.useSelector)(p.selectIsUsg),d=Object(b.useSelector)(f.selectLocaleSettings),m=Object(b.useSelector)(f.selectUsgSettings),E=Object(b.useSelector)($.J),O=Object(b.useSelector)(g.d),_=Object(b.useDispatch)(),{geo_ip_filtering_enabled:h,geo_ip_filtering_traffic_direction:v}=m,T=k.n[v||k.o.BOTH],S=T?T.icon:null,I=Object(U.d)(E,d,O),j=Object(c.useCallback)((e,t)=>{_(Object(y.k)(e,t))},[_]),R=Object(c.useMemo)(()=>[{value:k.o.INCOMING,label:e.formatMessage({id:"IPS_TRAFFIC_DIRECTION_INCOMING"}),image:o.a.createElement(w.yc,null)},{value:k.o.OUTGOING,label:e.formatMessage({id:"IPS_TRAFFIC_DIRECTION_OUTGOING"}),image:o.a.createElement(w.zc,null)},{value:k.o.BOTH,label:e.formatMessage({id:"IPS_TRAFFIC_DIRECTION_BOTH"}),image:o.a.createElement(w.xc,null)}],[e]),C=Object(c.useMemo)(()=>{var e;return!(null===(e=Object.values(n).flat())||void 0===e?void 0:e.length)},[n]),A=Object(c.useCallback)(()=>{_(Object(y.h)())},[_]);return o.a.createElement(F.b,{isLoading:!t,renderFilterDrawerContent:o.a.createElement(xa,{filters:n,onChangeFilter:j}),filterFooterProps:{label:o.a.createElement(P.b,{id:"COMMON_CONTROL_PANEL_FILTER_FOOTER_RESTORE_DEFAULTS"}),onClick:A,disabled:C},routes:a,filtersActive:!C},o.a.createElement(o.a.Fragment,null,o.a.createElement($a,null,(!s||i&&h)&&o.a.createElement(Fa,{className:Object(u.b)(ka,Ga),name:"traffic-direction",onClick:()=>{_(Object(V.g)({modalType:G.a.TRAFFIC_DIRECTION,modalProps:{label:e.formatMessage({id:"IPS_TRAFFIC_DIRECTION_MODAL_TRAFFIC_DIRECTION_PLACEHOLDER"}),options:R}}))}},o.a.createElement(Ya,null,T&&S&&o.a.createElement(o.a.Fragment,null,o.a.createElement(S,{className:Ua}),o.a.createElement(Wa,null,o.a.createElement(P.b,{id:T.label||""}))))),l&&o.a.createElement(Ha,{renderToggle:()=>o.a.createElement(Fa,{name:"date-selector"},o.a.createElement(Y.a,{start:r.start,end:r.end,timezone:I}),o.a.createElement(qa,null))},o.a.createElement(H.a,{className:Ba,initialStartDate:Object(U.a)(r.start,I),initialEndDate:Object(U.a)(r.end,I),numberOfMonths:2,onRangeSelected:({startDate:e,endDate:t})=>{_(Object(y.j)(Object(U.i)(e,I),Object(U.b)(t,I)))},showInputs:!0})))))}),za=["id","path","component"],Ka=Object(u.a)("height:100%;width:100%;"),Ja=Object(u.c)("div",{target:"e1b6o3190"})("display:flex;flex:1 1 0;flex-direction:column;height:100%;overflow:auto;width:100%;");function Xa(e){var t=e.ipsDisabled,a=e.isMapLoaded,n=e.match.path,i=e.routes,c=e.usgSettings,s=e.site;Object(S.p)("EVT_IPS_IpsAlert",y.g);var d=!(c&&c.geo_ip_filtering_enabled),u=!!Object(m.n)(i.find((function(e){return e.id===sa.a.dashboard})));return o.a.createElement(v.a,{name:"ips"},o.a.createElement(Va,{isMapLoaded:a}),o.a.createElement(Ja,{id:"ips-container"},!(t&&d)&&o.a.createElement(N,{containerClassName:t?Ka:null,visible:u}),o.a.createElement(m.g,null,i.map((function(e){var t=e.id,a=e.path,n=e.component,i=l()(e,za);return o.a.createElement(R.a,r()({key:t,path:a,component:n},i))})),o.a.createElement(R.a,{exact:!0,path:Object(m.i)(n,{site:s})},o.a.createElement(m.c,{to:Object(m.i)("".concat(n,"/dashboard"),{site:s})})))))}Xa.propTypes={ipsDisabled:d.a.bool.isRequired,isMapLoaded:d.a.bool.isRequired,match:d.a.object.isRequired,routes:d.a.array.isRequired,usgSettings:d.a.object.isRequired,site:d.a.string.isRequired};var Qa={fetchDevices:p.fetchDevices,fetchNetworks:O.fetchNetworks,fetchSettings:f.fetchSettings,fetchSites:_.fetchSites,fetchSysInfo:g.c,loadTranslations:h.c,setInitialIpsDateRange:y.i};t.default=Object(E.compose)(Object(b.connect)((function(e){return{datePresets:Object(I.b)(e),ipsDisabled:Object(f.selectIsIpsDisabled)(e),isMapLoaded:Object(z.g)(e),routes:Aa(e),usgSettings:Object(f.selectUsgSettings)(e),site:Object(_.selectActiveSiteName)(e)}}),Qa),Object(T.b)((function(e){var t=e.datePresets,a=e.fetchDevices,n=e.fetchNetworks,r=e.fetchSettings,i=e.fetchSites,l=e.fetchSysInfo,c=e.loadTranslations,o=e.setInitialIpsDateRange;return Promise.all([o(t),c("countries"),c("ips"),a(void 0,{crudCacheStrategy:{type:j.a.CACHE}}),n(),r(),l(void 0,{crudCacheStrategy:{type:j.a.CACHE}}),i(void 0,{crudCacheStrategy:{type:j.a.CACHE}})])}),void 0,"ips-page"))(Xa)},362:function(e,t,a){"use strict";a.d(t,"b",(function(){return E})),a.d(t,"a",(function(){return p}));var n=a(258),r=a(1636),i=a(2671),l=a(283),c=a(2662),o=a(2786),s=a(970),d=a(25);const u=e=>void 0===e?e:"[PII]";var b=a(1197);const m=()=>{var e;const t=null===(e=null===window||void 0===window?void 0:window.localStorage)||void 0===e?void 0:e.getItem("app.tracesSampleRate");return parseFloat(null!=t?t:"0.05")},E=(e,t,a)=>{n.d("app.name","network"),n.d("app.version","7.1.66"),n.d("app.environment","production");const d=new r.a({dsn:t,normalizeDepth:5,integrations:[new c.a.BrowserTracing({markBackgroundTransactions:!1,maxTransactionDuration:5,traceFetch:!1,traceXHR:!1,idleTimeout:15e3,routingInstrumentation:Object(b.a)(e,a)}),new i.a.Breadcrumbs({console:!1}),new o.a],beforeSend:(e,t)=>(e.request&&(e.request={...e.request,url:e.request.url&&u(e.request.url),query_string:e.request.query_string&&u(e.request.query_string),cookies:e.request.cookies&&Object(s.a)(e.request.cookies,u),data:e.request.data&&Object(s.a)(e.request.data,u)}),e),beforeBreadcrumb:e=>{var t,a,n,r,i,l,c;return e.data&&("xhr"!==e.category&&"fetch"!==e.category||(e.data.url=u(e.data.url)),"navigation"===e.category&&(e.data.from=u(e.data.from),e.data.to=u(e.data.to))),(null===(t=e.message)||void 0===t?void 0:t.startsWith("%c prev state"))||(null===(a=e.message)||void 0===a?void 0:a.startsWith("%c action"))||(null===(n=e.message)||void 0===n?void 0:n.startsWith("%c next state"))||(null===(r=e.message)||void 0===r?void 0:r.startsWith("[WDS]"))||(null===(i=e.message)||void 0===i?void 0:i.startsWith("[HMR]"))||(null===(l=e.message)||void 0===l?void 0:l.startsWith("[react-ga]"))||(null===(c=e.message)||void 0===c?void 0:c.startsWith("React-Hot-Loader:"))?null:e},tracesSampleRate:m()}),E=new l.a(d);return E.setTag("app.instrumentation","network-controller"),{hub:E,client:d}},p=Object(b.c)(d.d)},626:function(e,t,a){"use strict";a.d(t,"d",(function(){return d})),a.d(t,"c",(function(){return u})),a.d(t,"b",(function(){return b})),a.d(t,"f",(function(){return m})),a.d(t,"g",(function(){return E})),a.d(t,"e",(function(){return p})),a.d(t,"a",(function(){return O}));var n=a(29),r=a(2598),i=a(99);const l=(e,t)=>Object(i.i)(Object(n.startOfMonth)(Object(n.addMonths)(e,1)),t),c=(e,t)=>Object(n.differenceInMinutes)(e,t)/5,o=(e,t)=>Object(n.subMinutes)(e,5*t),s=(e,t)=>new Date(e-1e3*t*60*60*24);function d(e,t,a,r,d=!1){function u(t,n,r,l){const c=Math.ceil(n(t,e))||0,o=c>8,s=c>32?c/32:1;return Array(Math.min(32,c)+1).fill(t).map((e,t)=>{const n=r(e,t*s);return{value:n.getTime(),label:o&&t%2==1?null:Object(i.e)(n,a,l)}}).reverse()}if(Object(n.differenceInYears)(t,e)>1)return u(l(t,a),n.differenceInMonths,n.subMonths,"MMM YYYY");if(Object(n.differenceInMonths)(t,e)>2)return u(l(t,a),n.differenceInMonths,n.subMonths,"MMM");if(Object(n.differenceInDays)(t,e)>10){const e=Date.now(),a=t.getTime()>e,l=Object(i.i)(new Date,"UTC"),c=r>l.getTime()?new Date(r):l;return u(a?c:t,n.differenceInDays,s,"MMM D")}if(Object(n.differenceInDays)(t,e)>2){const e=u(t,n.differenceInDays,n.subDays,"ddd"),l=Date.now(),c=t.getTime()>l,o=Object(i.i)(new Date,a);return c&&r>o.getTime()&&(e[e.length-1]={value:r,label:null}),e}return Object(n.differenceInHours)(t,e)>1?u(t,n.differenceInHours,n.subHours,d?"H:mm":"hA"):u(t,c,o,"h:mma")}function u(e,t){function a(a,r,i,l,c=null){const o=a(t,e)||0,s=o>8;return Array(o+1).fill(e).map((t,a)=>{const o=i(r(e),a);return{value:o.getTime(),label:s&&a%2==1?null:Object(n.format)(o,l),tooltipLabel:Object(n.format)(o,c||l)}})}return Object(n.differenceInYears)(t,e)>1?a(n.differenceInMonths,n.startOfMonth,n.addMonths,"MMM YYYY"):Object(n.differenceInMonths)(t,e)>2?a(n.differenceInMonths,n.startOfMonth,n.addMonths,"MMM"):Object(n.differenceInDays)(t,e)>10?a(n.differenceInDays,n.startOfDay,n.addDays,"MMM D"):Object(n.differenceInDays)(t,e)>2?a(n.differenceInDays,n.startOfDay,n.addDays,"ddd","ddd ha"):Object(n.differenceInHours)(t,e)>1?a(n.differenceInHours,n.startOfHour,n.addHours,"ha","ddd ha"):a(n.differenceInMinutes,n.startOfMinute,n.addMinutes,"h:ma","ddd h:ma")}function b(e,t){return[{label:Object(n.format)(e,t),value:e},{label:Object(n.format)(Object(n.subHours)(e,4),t),value:Object(n.subHours)(e,4).getTime()},{label:Object(n.format)(Object(n.subHours)(e,8),t),value:Object(n.subHours)(e,8).getTime()},{label:Object(n.format)(Object(n.subHours)(e,12),t),value:Object(n.subHours)(e,12).getTime()},{label:Object(n.format)(Object(n.subHours)(e,16),t),value:Object(n.subHours)(e,16).getTime()},{label:Object(n.format)(Object(n.subHours)(e,20),t),value:Object(n.subHours)(e,20).getTime()},{label:Object(n.format)(Object(n.subHours)(e,24),t),value:Object(n.subHours)(e,24).getTime()}].reverse()}const m=(e,t,a,l=!1)=>{const c=l?"H:mm":"h:mm A",o=Object(n.startOfHour)(Object(n.addMinutes)(t,55));return Object(r.a)(25,t=>{const r=Object(n.subHours)(o,t).getTime(),l=0===t?e.formatMessage({id:"COMMON_GRANUALITY_0"}):Object(i.e)(r,a,c);return{label:t%6==0?l:null,value:r}}).reverse()};function E(e,t,a){const n=(r=10,i=t-e,Math.log(i)/Math.log(r)-1);var r,i;const l=n>0?Math.ceil(n):Math.floor(n),c=10**l,o=Math.ceil((t-e)/c)/(a-2)*c,s=Math.abs(l),d=[];let u=Math.round(e/c)*c;for(;u<t+2*o;u+=o)d.push({label:0===u?"0":u.toFixed(s),value:u});return d.reverse()}const p=(e,t)=>{const a=t-1;let n=Math.ceil(e);for(;n%a!=0;)n+=1;return Object(r.a)(t,e=>{const t=e?Math.ceil(e*(n/a)):0;return{value:t,label:String(t)}}).reverse()},O=(e,t)=>{let a=e;return t?a=a.replace(/a/i,""):(a=a.replace(/H/g,"h"),a.search(/a/i)<0&&(a+="A")),a}}}]);