(window.webpackJsonpunifiNetworkUi=window.webpackJsonpunifiNetworkUi||[]).push([[12],{2821:function(e,t,a){"use strict";var i=a(0),n=a.n(i),l=a(3),c=a(1671),s=a(5),r=a(34);const o=Object(l.c)(s.a)`
  border-bottom: 1px ${({theme:e})=>e.colors.border} solid;
  box-sizing: border-box;

  @media ${r.a.VIEWPORT_M_UP} {
    padding: 0 ${({theme:e})=>e.space[4]}px;
  }
`,d=Object(l.c)(c.a)`
  bottom: -1px;
`;t.a=({isLoading:e,children:t,...a})=>n.a.createElement(o,Object.assign({},a,{flex:"none",className:"base-control-panel",position:"relative",alignItems:"center",justifyContent:"space-between",height:50}),t,n.a.createElement(d,{isLoading:e,placement:"bottom"}))},2822:function(e,t,a){"use strict";var i=a(0),n=a.n(i),l=a(3),c=a(5),s=a(1),r=a(47),o=a(481),d=a(2821),b=a(2823),u=a(2832),m=a(31),O=a(179);const p=Object(l.c)(r.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:i,filterTitleLabel:l,filtersActive:r,title:f,leftContent:h,isDisplayOptionsDisabled:g})=>{const v=(null==e?void 0:e.length)>1,E=!v&&1===e.length;return n.a.createElement(d.a,{isLoading:a},h&&h,v&&n.a.createElement(b.a,{routes:e}),E&&n.a.createElement(p,{weight:"bold"},e[0].label),f&&n.a.createElement(p,{weight:"bold",addMargin:t&&!h},n.a.createElement(s.b,{id:f})),n.a.createElement(c.a,{height:"100%",flex:v||f||E?"none":1,alignItems:"center",justifyContent:"flex-end",marginLeft:"auto"},i,!t&&n.a.createElement(O.a,{condition:g,wrapper:e=>n.a.createElement(o.a,{position:"bottom",width:"208px",portal:!0,message:n.a.createElement(m.p,null,n.a.createElement(s.b,{id:"COMMON_DISPLAY_OPTS_DISABLED"}))},e)},n.a.createElement(u.a,{disabled:g,filterTitleLabel:l,filtersActive:r}))))}},2823:function(e,t,a){"use strict";var i=a(0),n=a.n(i),l=a(3),c=a(25),s=a(807);var r=({items:e,...t})=>{const{params:a,path:i}=Object(c.n)(),l=Object(c.l)(),r=Object(c.k)(),o=e.find(({path:e})=>e===i)||((e,{pathname:t})=>e.find(({path:e})=>new RegExp(e.replace(/\/:\w+\?.*/g,"/?.*").replace(/:\w+/g,"\\w+").replace(/\//g,"\\$&")).test(t)))(e,l);return n.a.createElement(s.a,Object.assign({tabs:e,selectedTab:null==o?void 0:o.id,onSelectTab:({path:e,params:t={}})=>r.push(Object(c.i)(e,{...a,...t}))},t))};const o=Object(l.c)(r)`
  height: 100%;
  position: absolute;
  left: 0;
  right: 0;
  div,
  button {
    height: 100% !important;
  }
`;t.a=({routes:e})=>{const t=Object(i.useMemo)(()=>e&&e.map(({id:e,label:t,disabled:a,path:i,...n})=>({id:e,label:t,disabled:"function"==typeof a?a(n):a,path:i})),[e]);return t?n.a.createElement(o,{selectedTabBold:!0,items:t}):null}},2826:function(e,t,a){"use strict";var i=a(0),n=a.n(i),l=a(3),c=a(1),s=a(47),r=a(2600);const o=Object(l.c)(s.a)`
  line-height: 24px;
  color: ${({theme:e})=>e.motifPalette.text01};
`,d=Object(l.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:i,text:l,toggleStyle:s})=>n.a.createElement(d,{toggleStyle:s},n.a.createElement(r.a,{checked:e,id:a,onChange:i,disabled:t},"string"==typeof l?n.a.createElement(o,{size:"body"},n.a.createElement(c.b,{id:l})):l))},2828:function(e,t,a){"use strict";var i=a(0),n=a.n(i),l=a(1),c=a(4),s=a(20);const r=e=>{var t;return null===(t=null==e?void 0:e.filters)||void 0===t?void 0:t.isFilterOpen};var o=a(1192),d=a(3),b=a(2769),u=a(3116),m=a(3108),O=a(464),p=a(3059);const f=Object(d.c)(p.a)`
  padding: 24px;
`;var h=({columns:e,columnLabels:t,tableType:a,hidden:r=[]})=>{var o;const d=Object(c.useDispatch)(),b=(null===(o=Object(c.useSelector)(Object(s.B)(a)))||void 0===o?void 0:o.initialColumns)||[],u=Object(i.useMemo)(()=>Object.values(e).every(e=>b.includes(e)),[b]),m=Object(i.useCallback)(()=>{const t=u||(null==b?void 0:b.length)?[]:Object.values(e);d(Object(s.L)(a,{initialColumns:t},!0))},[d,u,a,b]),O=Object(i.useMemo)(()=>[{full:!0,id:"showAllFields",checked:u||!!(null==b?void 0:b.length)&&"mixed",children:n.a.createElement(l.b,{id:"COMMON_ALL"}),onChange:m}].concat(Object.values(e).filter(e=>!r.includes(e)).map(e=>({full:!0,id:e,checked:b.includes(e),children:(null==t?void 0:t[e])?n.a.createElement(l.a,{id:t[e]}):e,onChange:({target:{checked:t}})=>{const i=t?[...b,e]:b.filter(t=>t!==e);d(Object(s.L)(a,{initialColumns:i},!0))}}))),[b,a]);return n.a.createElement(f,{spacing:"flush",items:O,variant:"list"})};const g=Object(d.c)(b.a)`
  width: 258px !important;
`;var v;!function(e){e.COLUMNS="columns",e.FILTERS="filters"}(v||(v={}));var E=({filterTitleLabel:e,isOpen:t,onClose:a,columnTabProps:r,renderFilterDrawerContent:o,footerProps:d,side:b="left"})=>{var p;const[f,E]=Object(i.useState)(v.FILTERS),{tableType:S}=r||{tableType:null},T=Object(c.useDispatch)(),j=(null===(p=Object(c.useSelector)(Object(s.B)(S)))||void 0===p?void 0:p.initialColumns)||[],C=d&&f===v.COLUMNS,_=Object(i.useMemo)(()=>{var e,t;return C&&Object(O.a)(null===(t=null===(e=null===s.c||void 0===s.c?void 0:s.c.tables)||void 0===e?void 0:e[S])||void 0===t?void 0:t.initialColumns,j)},[C,S,j]),I=Object(i.useCallback)(()=>{var e,t,a;const i=[...null!==(a=null===(t=null===(e=null===s.c||void 0===s.c?void 0:s.c.tables)||void 0===e?void 0:e[S])||void 0===t?void 0:t.initialColumns)&&void 0!==a?a:[]];T(Object(s.L)(S,{initialColumns:i},!0))},[T,S]),D=Object(i.useCallback)(({id:e})=>E(e),[E]),A=r?n.a.createElement(u.a,{onSelectTab:D,tabs:[{id:v.FILTERS,label:n.a.createElement(l.b,{id:"COMMON_CONTROL_PANEL_FILTERS"}),render:o},{id:v.COLUMNS,label:n.a.createElement(l.b,{id:"COMMON_CONTROL_PANEL_COLUMNS"}),render:()=>n.a.createElement(h,{columns:r.columns,hidden:r.hidden,columnLabels:r.columnLabels,tableType:S})}]}):o(),L=Object(i.useMemo)(()=>C?{label:n.a.createElement(l.b,{id:"COMMON_CONTROL_PANEL_FILTER_FOOTER_RESTORE_COLUMNS"}),onClick:I,disabled:_}:d,[C,d,_,I]),M=Object(i.useCallback)(()=>{a(),E(v.FILTERS)},[a,E]);return n.a.createElement(g,{in:t,renderHeader:()=>null,onClose:a,side:b},t&&n.a.createElement(m.a,{footerProps:L,headerProps:{label:e},onClose:M},A))},S=a(2822);t.a=Object(l.e)(({routes:e=[],hideFilterButton:t=!1,isLoading:a,children:l,filterFooterProps:d,columnTabProps:b,renderFilterDrawerContent:u,filterTitleLabel:m,filtersActive:O,title:p,onClose:f,intl:h,leftContent:g,isDisplayOptionsDisabled:v})=>{var T;const j=Object(c.useDispatch)(),C=Object(c.useSelector)(r),_=(null===(T=Object(c.useSelector)(Object(s.B)(null==b?void 0:b.tableType)))||void 0===T?void 0:T.initialColumns)||[],I=h.formatMessage({id:m||"COMMON_CONTROL_PANEL_FILTER_TITLE"});Object(i.useEffect)(()=>()=>{j(Object(o.b)(!1))},[]);const D=Object(i.useCallback)(()=>{j(Object(o.b)(!1)),null==f||f(),(null==b?void 0:b.tableType)&&j(Object(s.L)(b.tableType,{initialColumns:_}))},[j,f,null==b?void 0:b.tableType,_]);return n.a.createElement(n.a.Fragment,null,n.a.createElement(E,{isOpen:C,filterTitleLabel:I,onClose:D,columnTabProps:b,renderFilterDrawerContent:()=>C&&u,footerProps:d,side:"right"}),n.a.createElement(S.a,{leftContent:g,routes:e,hideFilterButton:t,isLoading:a,filterTitleLabel:I,filtersActive:O,title:p,isDisplayOptionsDisabled:v},l))})},2832:function(e,t,a){"use strict";var i=a(0),n=a.n(i),l=a(3),c=a(4),s=a(3117),r=a(34),o=a(5),d=a(1192);const b=Object(l.c)(s.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 ${r.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:i})=>{const l=Object(c.useDispatch)();return n.a.createElement(o.a,{height:"100%"},n.a.createElement(b,{disabled:i,title:e,onClick:()=>!i&&l(Object(d.b)(!0)),filtersActive:t}),a)}},2839:function(e,t,a){"use strict";var i=a(3104),n=a(3);const l=Object(n.c)(i.a)`
  li > div:nth-child(2) > div > div {
    padding: 0 0 10px;
    label > div:last-child > div:first-child > span {
      display: block;
      max-width: 85%;
    }
  }
`;t.a=l},2853:function(e,t,a){"use strict";a.d(t,"c",(function(){return s})),a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return o}));var i=a(0),n=a.n(i),l=a(1),c=a(1038);const s=[{id:c.b.trafficOverview,intlKey:"COMMON_TR_OW",label:n.a.createElement(l.b,{id:"COMMON_TR_OW"})},{id:c.b.wifiStatistics,intlKey:"STATISTICS_TAB_WIFI_STATS",label:n.a.createElement(l.b,{id:"STATISTICS_TAB_WIFI_STATS"})}],r=`/:site/statistics/${c.b.trafficOverview}/:subSection?/:appId?/properties/:id?/:panel?/:subPanel?/:subPanelId?`,o=`/:site/statistics/${c.b.wifiStatistics}/properties/:id?/:panel?/:subPanel?/:subPanelId?`},2909:function(e,t,a){"use strict";var i=a(0),n=a.n(i),l=a(1),c=a(25),s=a(47),r=a(807),o=a(613),d=a(3),b=a(1200);const u=Object(d.c)(s.a)`
  font-size: 14px;
  position: absolute;
  transform: translateX(-50%);
  left: 50%;
`,m=Object(d.c)(r.a)`
  position: absolute;
`,O=Object(d.c)(o.a)`
  white-space: nowrap;
  margin-right: auto;
  > div > div {
    box-shadow: none !important;
    padding-left: 14px;
  }
`,p=(e,t)=>e.map(({id:e,intlKey:a})=>({value:e,label:t.formatMessage({id:a})}));t.a=Object(l.e)(({intl:e,currentRoute:t,breakPointWidth:a,routes:s,paramKey:r})=>{const o=Object(c.n)(),d=Object(c.k)(),f=Object(b.a)({current:document.body}),{path:h,params:g}=o,v=Object(i.useCallback)(e=>d.push(Object(c.i)(h,{...g,[r]:e})),[h,g,d]);return 1===s.length?n.a.createElement(u,{weight:"bold"},n.a.createElement(l.b,{id:s[0].intlKey})):f>=a?n.a.createElement(m,{tabs:s.map(({id:e,label:t})=>({id:e,label:t})),selectedTab:t,onSelectTab:({id:e})=>v(e)}):n.a.createElement(O,{options:p(s,e),value:t,onChange:(e,t)=>v(t),width:140,arrowSize:"small"})})},3103:function(e,t,a){"use strict";a.r(t);var i=a(0),n=a.n(i),l=a(4),c=a(25),s=a(362),r=a(1671),o=a(256),d=a(867),b=a(22),u=a(434),m=a(261),O=a(236),p=a(1202),f=a(1198),h=a(341),g=a(1),v=a(1038),E=a(2828),S=a(2909),T=a(34),j=a(3),C=a(29),_=a(807),I=a(623),D=a(2763),A=a(10),L=a(20),M=a(16),y=a(99),R=a(2618),w=a(185),N=a(75),F=a(5);const x=Object(j.c)(w.a)`
  text-transform: uppercase;
`,P=Object(j.c)(_.a)`
  overflow-x: unset !important;
  justify-content: center;
  @media ${T.a.VIEWPORT_M_UP} {
    justify-content: flex-end;
  }
  > div {
    margin: unset;
  }
`,k=(e,t,a,i,l,c)=>[...e.map(e=>({id:e.id,label:n.a.createElement(x,{size:"small",message:e.message,values:e.messageValues})})),{id:"Custom",label:n.a.createElement(I.a,{classNameCard:j.a`
          overflow-y: auto;
          max-height: calc(90vh - 52px);
          padding: 0 !important;
          border: none;
        `,align:"bottomLeft",renderToggle:c},n.a.createElement(D.a,{initialStartDate:Object(y.a)(t.startDate,a),initialEndDate:Object(y.a)(Object(C.subSeconds)(t.endDate,1),a),numberOfMonths:2,disabledDays:{after:Object(y.a)(new Date,a)},onRangeSelected:({startDate:e,endDate:t})=>{const a=Object(C.startOfDay)(e),n=Object(C.endOfDay)(t);i({startDate:a,endDate:n}),l(Object(h.m)({startDate:a,endDate:n,preset:null}))},showInputs:!0}))}];var B=({customRange:e,setCustomRange:t,statisticsDateRange:a,dispatch:c})=>{const s=Object(l.useSelector)(u.a),r=Object(l.useSelector)(M.selectLocaleSettings),o=Object(l.useSelector)(L.J),d=Object(l.useSelector)(N.d),b=Object(y.d)(o,r,d),[m,O]=Object(i.useState)(null===a.preset?"Custom":a.preset),p=Object(i.useCallback)(()=>n.a.createElement(F.a,{alignItems:"center",whiteSpce:"nowrap"},e?n.a.createElement(R.a,{start:e.startDate,end:e.endDate,timezone:b}):n.a.createElement(A.o,null)),[e,b]);return n.a.createElement(P,{tabs:k(s,a,b,t,c,p),selectedTab:m,onSelectTab:({id:t})=>(t=>{const a=s.find(e=>e.id===t);a?c(Object(h.m)({...a.getRange(new Date),preset:t})):e&&c(Object(h.m)({...e,preset:null})),O(t)})(t),variant:"tertiary"})},W=a(173),$=a(79),U=a(1591);const H=Object(j.c)(F.a)`
  background: ${({theme:{motifPalette:e}})=>e.neutral01};
`,z=Object(j.c)(A.bc)`
  color: hsl(0deg 0% 62%);
  margin-left: 8px;
`,G=({dispatch:e,statisticsDateRange:t,children:a})=>n.a.createElement(W.a,{size:"medium",variant:"inline",onClick:()=>e((e=>t=>t(Object($.a)({title:"STATISTICS_RESET_DATA_BUTTON_LABEL",message:"STATISTICS_RESET_DATA_MODAL_MESSAGE",onConfirm:()=>Object(U.a)(t,"STATISTICS_RESET_DATA_SUCCESS","STATISTICS_RESET_DATA_ERROR",e),confirmButtonText:"COMMON_ACTION_RESET",confirmButtonProps:{variant:"danger"}})))(t))},a);var K=({statisticsDateRange:e,dispatch:t,useIcon:a=!1})=>a?n.a.createElement(G,{dispatch:t,statisticsDateRange:e},n.a.createElement(z,null)):n.a.createElement(H,{minHeight:56,alignItems:"center",justifyContent:"center"},n.a.createElement(G,{dispatch:t,statisticsDateRange:e},n.a.createElement(g.b,{id:"STATISTICS_RESET_DATA_BUTTON_LABEL"}))),V=a(613),Y=a(3073),J=a(32),q=a(124),X=a(108),Q=a(8),Z=a(46),ee=a(271);const te=Object(j.c)(F.a)`
  > div > div > div {
    height: 92px !important;
    padding: 10px 16px;
    box-shadow: none !important;

    > div > div {
      div:last-child {
        margin-left: 12px;
      }
    }
  }

  ul {
    border: 0 !important;
  }

  &:after {
    display: none !important;
  }
`,ae=({deviceModel:e=J.e.U7HD,deviceType:t=J.g.AP})=>n.a.createElement(F.a,{height:40,minWidth:40,maxWidth:40,justifyContent:"center",alignItems:"center"},n.a.createElement(X.a,{width:40,height:40,deviceModel:e,deviceType:t,filesMap:"GRID"}));var ie=Object(g.e)(({intl:e,dispatch:t})=>{const a=Object(l.useSelector)(u.c),c=Object(l.useSelector)(q.c);return Object(i.useEffect)(()=>{Object(ee.q)(void 0,{crudCacheStrategy:{type:Q.a.CACHE}})},[]),n.a.createElement(te,null,n.a.createElement(V.a,{options:Object(i.useMemo)(()=>[{value:p.a.ALL,label:e.formatMessage({id:"COMMON_ALL_AP"}),caption:`${c.length} ${e.formatMessage({id:"COMMON_TOTAL"})}`,image:n.a.createElement(ae,null)},c.map(({mac:e,name:t,model:a,type:i,ip:l})=>({value:e,label:t||Object(Z.e)(a),caption:l,image:n.a.createElement(ae,{deviceModel:a,deviceType:i})}))].flat(),[c]),renderOption:Y.a,renderSelectedOption:Y.b,arrowSize:"medium",maxHeight:296,onChange:(e,a)=>t(Object(h.i)({apMac:a})),value:a}))}),ne=a(2826),le=a(1574);var ce=({wifiStatisticsFiltersShowAll:e,onRestoreDefaults:t})=>n.a.createElement(ne.a,{id:"showAllWifiStatisticsClients",checked:e,onChange:({target:{checked:e}})=>t(e?le.a:{}),text:"COMMON_SHOW_ALL_CLIENTS",toggleStyle:{marginTop:28,marginRight:24,marginBottom:16,marginLeft:24}}),se=a(2839),re=a(170),oe=a(1208),de=a(120),be=a(1572);const ue=(e,t,a)=>{var i;return null===(i=e.map(e=>Object(be.b)({[t]:[a]},e)).filter(e=>e.every(Boolean)))||void 0===i?void 0:i.length};var me=({wifiStatisticsFilters:e,onChangeWifiStatisticsFilter:t})=>{const a=Object(l.useSelector)(oe.a),c=Object(l.useSelector)(Object(re.f)(re.a.WIFI_MIMO));return n.a.createElement(se.a,{onChange:(e,a)=>t(a),selectedIds:e,multiOpen:!0,items:Object(i.useMemo)(()=>[{id:de.d.WIFI_STANDARD,label:n.a.createElement(g.b,{id:"COMMON_WIFI_STANDARDS"}),openByDefault:!0,options:Object.values(de.e).map(e=>({key:e,id:e,children:e.toLowerCase().replace("wifi_","WiFi "),labelProps:{count:ue(a,de.d.WIFI_STANDARD,e)}}))},c?{id:de.d.MIMO_CAPABILITY,label:n.a.createElement(n.a.Fragment,null,n.a.createElement(g.b,{id:"COMMON_MIMO"})," ",n.a.createElement(g.b,{id:"COMMON_CAPABILITIES"})),openByDefault:!0,options:Object.values(de.a).map(e=>({key:e,id:e,children:e,labelProps:{count:ue(a,de.d.MIMO_CAPABILITY,e)}}))}:null,{id:de.d.SIGNAL_STRENGTH,label:n.a.createElement(g.b,{id:"COMMON_SIG_STR"}),openByDefault:!0,options:Object.values(de.c).map(e=>({key:e,id:e,children:n.a.createElement(g.b,{id:"COMMON_"+e.toUpperCase()}),labelProps:{count:ue(a,de.d.SIGNAL_STRENGTH,e)}}))},{id:de.d.RADIO_BAND,label:n.a.createElement(n.a.Fragment,null,n.a.createElement(g.b,{id:"COMMON_RADIO"})," ",n.a.createElement(g.b,{id:"COMMON_BANDS"})),openByDefault:!0,options:Object.values(de.b).map(e=>({key:e,id:e,children:n.a.createElement(g.b,{id:"COMMON_RADIO_BAND_"+e.toUpperCase()}),labelProps:{count:ue(a,de.d.RADIO_BAND,e)}}))}].filter(Boolean),[a,c])})};var Oe=({dispatch:e,statisticsDateRange:t,wifiStatisticsFilters:a,wifiStatisticsFiltersShowAll:i,onRestoreDefaults:l,onChangeWifiStatisticsFilter:c})=>n.a.createElement(F.a,{flexDirection:"column"},n.a.createElement(K,{statisticsDateRange:t,dispatch:e}),n.a.createElement(ce,{wifiStatisticsFiltersShowAll:i,onRestoreDefaults:l}),n.a.createElement(ie,{dispatch:e}),n.a.createElement(me,{wifiStatisticsFilters:a,onChangeWifiStatisticsFilter:c})),pe=a(1573),fe=a(2853);var he=({dispatch:e,onRestoreDefaults:t,onChangeWifiStatisticsFilter:a,match:c,match:{params:{section:s}}})=>{const r=Object(l.useSelector)(u.f),o=Object(l.useSelector)(pe.b),d=Object(l.useSelector)(u.c),[b,m]=Object(i.useState)(null===r.preset?{startDate:r.startDate,endDate:r.endDate}:null),O=Object(i.useMemo)(()=>d===p.a.ALL&&Object(be.c)(o),[d,o]);return n.a.createElement(E.a,{hideFilterButton:s!==v.b.wifiStatistics,isLoading:!1,renderFilterDrawerContent:n.a.createElement(Oe,{wifiStatisticsFiltersShowAll:O,wifiStatisticsFilters:o,statisticsDateRange:r,onRestoreDefaults:t,onChangeWifiStatisticsFilter:a,dispatch:e}),filterFooterProps:{label:n.a.createElement(g.b,{id:"COMMON_CONTROL_PANEL_FILTER_FOOTER_RESTORE_DEFAULTS"}),onClick:()=>t(),disabled:O},filtersActive:!O},n.a.createElement(S.a,{routes:fe.c,currentRoute:s||v.b.trafficOverview,breakPointWidth:T.a.M.TO,paramKey:"section"}),n.a.createElement(B,{statisticsDateRange:r,customRange:b,setCustomRange:m,dispatch:e}),s===v.b.trafficOverview&&n.a.createElement(K,{dispatch:e,statisticsDateRange:r,useIcon:!0}))},ge=a(2667),ve=a(2668),Ee=a(2604),Se=a(85),Te=a(89);var je=()=>{var e,t;const a=null!==(t=null===(e=Object(l.useSelector)(L.I))||void 0===e?void 0:e.offlineClientTimeframe)&&void 0!==t?t:Te.OfflineClientTimeFrame.DAY;return Object(b.g)([Object(Te.fetchClients)(void 0,{crudCacheStrategy:{type:Q.a.CACHE}}),Object(Te.fetchOfflineClients)({queryParams:{withinHours:a}},{crudCacheStrategy:{type:Q.a.CACHE}}),Object(Te.fetchBlockedClients)(void 0,{crudCacheStrategy:{type:Q.a.CACHE}}),Object(Se.fetchUnifiDevices)(void 0,{crudCacheStrategy:{type:Q.a.CACHE}}),Object(o.c)("clients"),Object(o.c)("unifiDevices")],n.a.createElement(c.g,null,n.a.createElement(s.a,{path:[fe.a,fe.b]},n.a.createElement(Ee.a,{panelType:void 0}))))},Ce=a(398),_e=a(194);const Ie=e=>Object(Ce.h)({name:_e.a.WIFI_STATISTICS,value:e});t.default=Object(c.o)(({match:e,match:{path:t,params:a}})=>{const g=Object(l.useSelector)(u.b),E=Object(l.useDispatch)(),S=Object(i.useCallback)(e=>{E(Ie(e)),E(Object(m.j)(O.a.WIFI_STATISTICS_CLIENT_DETAILS,{filters:e}))},[]),T=Object(i.useCallback)((e=le.a)=>{var t,a;E(Object(h.i)({apMac:p.a.ALL})),E(Ie(e)),E(Object(m.j)(O.a.WIFI_STATISTICS_CLIENT_DETAILS,{filters:e,initialColumns:[...(null===(a=null===(t=null===f.b||void 0===f.b?void 0:f.b.tables)||void 0===t?void 0:t[O.a.WIFI_STATISTICS_CLIENT_DETAILS])||void 0===a?void 0:a.initialColumns)||[]]}))},[]);return Object(b.g)([Object(o.c)("statistics"),Object(h.h)({startDate:g.startDate,endDate:g.endDate,preset:g.preset})],n.a.createElement(d.a,null,n.a.createElement(he,{dispatch:E,onChangeWifiStatisticsFilter:S,onRestoreDefaults:T,match:e}),n.a.createElement(i.Suspense,{fallback:n.a.createElement(r.a,{isLoading:!0})},n.a.createElement(c.g,null,n.a.createElement(s.a,{path:`/:site/statistics/${v.b.trafficOverview}/:subSection?/:appId?`},n.a.createElement(ge.b,null)),n.a.createElement(s.a,{path:"/:site/statistics/"+v.b.wifiStatistics},n.a.createElement(ve.b,{dispatch:E,onRestoreDefaults:T})),n.a.createElement(s.a,{exact:!0,path:Object(c.i)(t,a)},n.a.createElement(c.c,{to:Object(c.i)(t,{...a,section:v.b.trafficOverview})}))),n.a.createElement(je,null))),{trackingName:"statistics"})})}}]);