"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[88788],{699361(e,t,i){i.r(t),i.d(t,{default:()=>Pt});var a=i(274934),r=i(602086),s=i(977872),l=i(239875),n=i(244081),o=i(947414);var c,d,m=i(724081),A=i(897513),u=i(228549),T=i(736728),h=i(587083),p=i(507598),C=i(289889),x=i(247816),O=i(309130),I=i(100978);!function(e){e.CLIENT="client",e.TOTAL_TRAFFIC="total_bytes",e.DOWNLOAD="bytes_received",e.UPLOAD="bytes_transmitted",e.EMPTY_SPACE="isSummary",e.TIME_ESTIMATE="timeEstimate",e.TOP_APPS="topApps",e.APP_COUNT="appCount"}(c||(c={})),function(e){e.APPLICATION="name",e.TOTAL_TRAFFIC="total_bytes",e.DOWNLOAD="bytes_received",e.UPLOAD="bytes_transmitted",e.EMPTY_SPACE="isSummary",e.TIME_ESTIMATE="timeEstimate",e.TOP_CLIENT="topClient",e.CLIENT_COUNT="clientCount"}(d||(d={}));const y="summaryId",_=[d.APPLICATION,d.TOTAL_TRAFFIC,d.DOWNLOAD,d.UPLOAD,d.TOP_CLIENT,d.CLIENT_COUNT],j=[d.APPLICATION,d.TOTAL_TRAFFIC,d.DOWNLOAD,d.UPLOAD,d.EMPTY_SPACE,d.TIME_ESTIMATE],f=[c.CLIENT,c.TOTAL_TRAFFIC,c.DOWNLOAD,c.UPLOAD,c.TOP_APPS,c.APP_COUNT],M=[c.CLIENT,c.TOTAL_TRAFFIC,c.DOWNLOAD,c.UPLOAD,c.EMPTY_SPACE,c.TIME_ESTIMATE],E={[d.APPLICATION]:90,[d.TOTAL_TRAFFIC]:65,[d.DOWNLOAD]:45,[d.UPLOAD]:45,[d.EMPTY_SPACE]:80,[d.TIME_ESTIMATE]:40,[d.TOP_CLIENT]:80,[d.CLIENT_COUNT]:40},P={[c.CLIENT]:90,[c.TOTAL_TRAFFIC]:65,[c.DOWNLOAD]:45,[c.UPLOAD]:45,[c.EMPTY_SPACE]:80,[c.TIME_ESTIMATE]:40,[c.TOP_APPS]:80,[c.APP_COUNT]:40},L="ACTIVITY_TRAFFIC_TABLE_PLACEHOLDER_CLASSNAME",N=(0,x.A)(I.A)`
  flex-direction: column;
  overflow: auto;
  scrollbar-width: none;
  padding: 0 ${O.Ln};
  width: 100%;
  height: 100%;
  > div:first-child {
    width: 100%;
    height: 90%;
    > div:last-child {
      width: 100%;
      justify-content: center;
    }
  }
  th {
    svg {
      width: 16px;
      height: 16px;
    }
  }
  .${L} {
    width: 100%;
    height: 100%;
    justify-content: center;
  }
`;var g=i(789096),D=i(814557),v=i(688684),S=i(147045),b=i(291508),F=i(454384),w=i(765567);(0,x.A)(v.A)`
  color: ${({theme:{themeName:e}})=>D.Ay[`desktop-color-neutral-08-${e}`]};
`;const U=(0,x.A)(I.A,(0,b.A)("activityTab","activityGraphApp","activityGraphClient"))`
  ${({activityTab:e,activityGraphApp:t,activityGraphClient:i,theme:{themeName:a}})=>`[${S.L}="${((e,{cat:t,app:i},a)=>{switch(e){case g.f.CLIENTS:return t!==w.ZM&&i!==w.Je?String((0,F.h)(t,i)):y;case g.f.APPS:return a&&a!==w.Y$?a:y;default:return y}})(e,t,i)}"]{ background-color: ${D.Ay[`desktop-color-neutral-02-${a}`]}; }`}}
`;var R=i(792929),W=i(271656),z=i(720770),Y=i(470070),H=i(938984),B=i(442175),$=i(599299),G=i(964978),V=i(122109);const k=(0,r.memo)(({isSummary:e,total_bytes:t,traffic_percentage:i})=>{const s=(0,r.useMemo)(()=>{let t;if(!e){const e=i.toFixed(1);t=i>0?"0.0"===e?"<0.1":e:"0.0"}return t?` (${t}%)`:null},[e,i]);return(0,a.jsxs)(H.A,{color:"text-2",size:"medium",children:[(0,B.FI)(t),s]})});var q=i(594005),Z=i(325704);const X=e=>(t,i,a,r,s)=>(0,q.l0)(t=>t.isSummary?(0,Z.K)(!s):(t=>{switch(e){case c.CLIENT:return t.name;case d.TOP_CLIENT:return"topClientTotalBytes"in t?t.topClientTotalBytes:t;case c.TOP_APPS:return Array.isArray(t)?t.reduce((e,{topApp:{total_bytes:t}})=>e+t,0):t;default:return t}})(t[e]))(t,i,a,r,s),K={[c.CLIENT]:"COMMON_CLIENT",[c.TOTAL_TRAFFIC]:"ACTIVITY_DATA_TRAFFIC",[c.DOWNLOAD]:"COMMON_DOWNLOAD",[c.UPLOAD]:"COMMON_UPLOAD",[c.EMPTY_SPACE]:void 0,[c.TIME_ESTIMATE]:"ACTIVITY_TIME_ESTIMATE",[c.TOP_APPS]:"COMMON_TOP_APPS",[c.APP_COUNT]:"COMMON_APPS"};var J=i(833388),Q=i(805521),ee=i(16944),te=i(125799);const ie=(0,x.A)(I.A)`
  align-items: center;
  width: 25px;
  height: 25px;
`,ae=(0,x.A)(te.A)`
  display: flex;
  align-items: center;
`,re=24,se=({topApps:e})=>(0,a.jsx)(I.A,{gap:O.kc,children:e.map(({isSummary:e,totalBytes:t,topAppTotalBytes:i,topAppBytesReceived:r,topAppBytesTransmitted:s,timeEstimate:l,topApp:{category:n,application:o}})=>(n=>(({name:o,iconFileName:c})=>{return(0,a.jsx)(ie,{children:(0,a.jsx)(ae,{description:(0,a.jsxs)(I.A,{flexDirection:"column",gap:O.YC,minWidth:200,children:[(0,a.jsxs)(I.A,{position:"relative",right:O.YC,alignItems:"center",gap:O.YC,children:[(0,a.jsx)(ee.A,{iconFileName:c,dimension:re}),(0,a.jsx)(H.A,{size:"small",color:"text-1",weight:"bold",children:o})]}),(0,a.jsxs)(I.A,{justifyContent:"space-between",children:[(0,a.jsx)(H.A,{size:"small",color:"text-1",children:(0,a.jsx)(Y.sA,{id:"COMMON_TRAFFIC"})}),(0,a.jsx)(H.A,{size:"small",color:"text-2",children:`${(0,B.FI)(t-(t-i))} (${d=(0,J.i)(i/t*100),String(0===d?"<0.1":d)}%)`})]}),(0,a.jsxs)(I.A,{justifyContent:"space-between",children:[(0,a.jsx)(H.A,{size:"small",color:"text-1",children:(0,a.jsx)(Y.sA,{id:"COMMON_DOWNLOAD"})}),(0,a.jsx)(H.A,{size:"small",color:"traffic-down",children:(0,B.FI)(r)})]}),(0,a.jsxs)(I.A,{justifyContent:"space-between",children:[(0,a.jsx)(H.A,{size:"small",color:"text-1",children:(0,a.jsx)(Y.sA,{id:"COMMON_UPLOAD"})}),(0,a.jsx)(H.A,{size:"small",color:"traffic-up",children:(0,B.FI)(s)})]}),e?null:(0,a.jsxs)(I.A,{justifyContent:"space-between",children:[(0,a.jsx)(H.A,{size:"small",color:"text-1",children:(0,a.jsx)(Y.sA,{id:"ACTIVITY_TIME_ESTIMATE"})}),(0,a.jsx)(H.A,{size:"small",color:"text-2",children:(0,a.jsx)($.A,{uptime:l})})]})]}),portal:!0,delay:0,cursorType:"pointer",children:(0,a.jsx)(ee.A,{iconFileName:c,dimension:re})})},n);var d})((0,Q.HH)(n)))((0,F.h)(n,o)))});var le=i(449339),ne=i(650632),oe=i(205521),ce=i(95032),de=i(609553),me=i(237725),Ae=i(853777),ue=i(101134),Te=i(104997),he=i(909790),pe=i(599110);const Ce=({onClick:e})=>(0,a.jsx)(Y.sA,{id:"ACTIVITY_VIEW_ENCRYPTED_TOOLTIP",values:{button:(0,a.jsx)(pe.A,{type:"button",variant:"inline",onClick:e,children:(0,a.jsx)(Y.sA,{id:"COMMON_FLOWS"})})}}),xe={open:0,close:200},Oe=(0,r.memo)(()=>{const e=(0,me.W6)(),t=(0,s.d4)(he.YX),i=(0,ue.A)(`${Te.VO.INSIGHTS}/${A.H.FLOWS}`),l=(0,r.useCallback)(t=>{t.stopPropagation(),e.push(i)},[e,i]);return t?(0,a.jsx)(te.A,{description:(0,a.jsx)(Ce,{onClick:l}),portal:!0,delay:xe,isInteractive:!0,cursorType:"pointer",children:(0,a.jsx)(Ae.A,{isActive:!0,size:"original"})}):null}),Ie=(0,r.memo)(()=>(0,a.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsxs)("g",{clipPath:"url(#clip0_874_261811)",children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.96036 14.417L11.5726 18.2407C11.815 18.4059 12.1334 18.4075 12.3774 18.2448L18.1191 14.417L19.0205 15.0179C19.4479 15.3029 19.4479 15.9311 19.0205 16.2161L12.3774 20.6448C12.1334 20.8075 11.815 20.8059 11.5726 20.6407L5.07241 16.212C4.65295 15.9262 4.65295 15.3078 5.07241 15.022L5.96036 14.417Z",fill:"#A252E3"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.96036 10.8174L11.5726 14.6411C11.815 14.8063 12.1334 14.8079 12.3774 14.6452L18.1191 10.8174L19.0205 11.4183C19.4479 11.7033 19.4479 12.3315 19.0205 12.6165L12.3774 17.0452C12.1334 17.2079 11.815 17.2063 11.5726 17.0411L5.07241 12.6124C4.65295 12.3266 4.65295 11.7082 5.07241 11.4224L5.96036 10.8174Z",fill:"#46C7FD"}),(0,a.jsx)("path",{d:"M11.5726 3.39353L5.07241 7.82224C4.65295 8.10803 4.65295 8.72649 5.07241 9.01228L11.5726 13.441C11.815 13.6061 12.1334 13.6077 12.3774 13.445L19.0205 9.01634C19.4479 8.73135 19.4479 8.10318 19.0205 7.81819L12.3774 3.38948C12.1334 3.22678 11.815 3.22839 11.5726 3.39353Z",fill:"#006FFF"})]}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0_874_261811",children:(0,a.jsx)("rect",{width:"24",height:"24",rx:"12",fill:"white"})})})]})),ye=(0,r.memo)(({isSummary:e,name:t,children:i,...r})=>(0,a.jsxs)(I.A,{alignItems:"center",width:"100%",gap:O.YC,children:[(0,a.jsx)(I.A,{alignItems:"center",justifyContent:"center",width:25,height:25,gap:O.YC,children:e?(0,a.jsx)(Ie,{}):i}),(0,a.jsxs)(I.A,{gap:O.YC,alignItems:"center",children:[(0,a.jsx)(ce.A,{color:"text-2",size:"medium",style:{whiteSpace:"nowrap"},isTruncated:!0,children:t||(0,a.jsx)(Y.sA,{id:"COMMON_UNKNOWN"})}),"compoundId"in r&&r.compoundId===de.jV?(0,a.jsx)(Oe,{}):null]})]})),_e=({isSummary:e,client:t,name:i})=>{const l=(0,s.wA)(),n=(0,r.useCallback)(e=>{e.stopPropagation(),l((0,oe.XP)({type:le.H.CLIENT,id:t.mac}))},[l,t.mac]);return(0,a.jsx)(ye,{isSummary:e,name:i,children:(0,a.jsx)(ne.A,{width:re,height:re,client:t,onClick:n})})},je=[{id:c.CLIENT,sortable:!0,label:(0,a.jsx)(H.A,{size:"medium",weight:"bold",color:"inherit",children:(0,a.jsx)(Y.sA,{id:K[c.CLIENT]})}),minWidth:P[c.CLIENT],renderCell:({isSummary:e,client:t,name:i})=>(0,a.jsx)(_e,{isSummary:e,client:t,name:i}),compare:X(c.CLIENT)},{id:c.TOTAL_TRAFFIC,sortable:!0,label:(0,a.jsx)(H.A,{size:"medium",weight:"bold",color:"inherit",children:(0,a.jsx)(Y.sA,{id:K[c.TOTAL_TRAFFIC]})}),minWidth:P[c.TOTAL_TRAFFIC],renderCell:({isSummary:e,traffic_percentage:t=0,total_bytes:i=0})=>(0,a.jsx)(k,{isSummary:e,traffic_percentage:t,total_bytes:i}),compare:X(c.TOTAL_TRAFFIC)},{id:c.DOWNLOAD,sortable:!0,label:(0,a.jsx)(H.A,{size:"medium",weight:"bold",color:"inherit",children:(0,a.jsx)(Y.sA,{id:K[c.DOWNLOAD]})}),minWidth:P[c.DOWNLOAD],renderCell:({bytes_received:e=0})=>(0,a.jsx)(V.A.Bytes,{size:"medium",children:(0,B.FI)(e)}),compare:X(c.DOWNLOAD)},{id:c.UPLOAD,sortable:!0,label:(0,a.jsx)(H.A,{size:"medium",weight:"bold",color:"inherit",children:(0,a.jsx)(Y.sA,{id:K[c.UPLOAD]})}),minWidth:P[c.UPLOAD],renderCell:({bytes_transmitted:e=0})=>(0,a.jsx)(G.A.Bytes,{size:"medium",children:(0,B.FI)(e)}),compare:X(c.UPLOAD)},{id:c.EMPTY_SPACE,sortable:!1,label:null,minWidth:P[c.EMPTY_SPACE],renderCell:()=>null},{id:c.TIME_ESTIMATE,sortable:!0,label:(0,a.jsx)(H.A,{size:"medium",weight:"bold",color:"inherit",children:(0,a.jsx)(Y.sA,{id:K[c.TIME_ESTIMATE]})}),minWidth:P[c.TIME_ESTIMATE],renderCell:({isSummary:e,timeEstimate:t})=>(0,a.jsx)(H.A,{size:"medium",color:"text-2",children:e?(0,a.jsx)(Y.sA,{id:"COMMON_FALLBACK"}):(0,a.jsx)($.A,{uptime:t})}),compare:X(c.TIME_ESTIMATE)},{id:c.TOP_APPS,sortable:!0,label:(0,a.jsx)(H.A,{size:"medium",weight:"bold",color:"inherit",children:(0,a.jsx)(Y.sA,{id:K[c.TOP_APPS]})}),minWidth:P[c.TOP_APPS],renderCell:({topApps:e})=>(0,a.jsx)(se,{topApps:e}),compare:X(c.TOP_APPS)},{id:c.APP_COUNT,sortable:!0,label:(0,a.jsx)(H.A,{size:"medium",weight:"bold",color:"inherit",children:(0,a.jsx)(Y.sA,{id:K[c.APP_COUNT]})}),minWidth:P[c.APP_COUNT],renderCell:({appCount:e})=>(0,a.jsx)(H.A,{size:"medium",color:"text-2",children:e}),compare:X(c.APP_COUNT)}];var fe=i(548836);const Me=({formattedUsageByClient:e,activityGraphClient:t,queryParams:i})=>{const a=(0,s.wA)(),l=(0,s.d4)(C.Uz);return(0,r.useEffect)(()=>{t!==w.Y$?e.some(({mac:e})=>e===t)?a((0,T.C)(i,{apps:l,client_macs:[]},void 0,{crudCacheStrategy:{type:n.e.CACHE}})):a((0,fe.fT)(w.Y$)):1===e.length&&e[0].mac!==t&&a((0,fe.fT)(e[0].mac))},[a,e,i,l,t]),null},Ee=({isSummary:e,client:{mac:t}})=>({[S.L]:e?y:t});var Pe=i(61322),Le=i(43506),Ne=i(502129),ge=i(715320),De=i(291935),ve=i(969288);const Se=()=>{const e=(0,Le.A)(`${ve.bB}/${ve.Uy.TRAFFIC_LOGGING}`),t=(0,Le.A)(`${ve.bB}/${ve.Uy.CYBERSECURE}`),{enabled:i}=(0,s.d4)(De.JY),{time_series_per_client_stats_enabled:l}=(0,s.d4)(De.aK),n=(0,r.useMemo)(()=>(0,a.jsx)(Ne.A,{to:t,children:(0,a.jsx)(Y.sA,{id:"COMMON_TRAFFIC_IDENTIFICATION"})}),[t]),o=(0,r.useMemo)(()=>(0,a.jsx)(Ne.A,{to:`${e}?${ge.mv}=super_mgmt.time_series_per_client_stats_enabled`,children:(0,a.jsx)(Y.sA,{id:"COMMON_COLLECT_HISTORICAL_CLIENT_DATA"})}),[e]),c=(0,r.useMemo)(()=>(0,a.jsx)(Y.sA,i||l?i?l?{id:"ACTIVITY_NO_TRAFFIC"}:{id:"ACTIVITY_ENABLE_TO_VIEW_TRAFFIC_STATISTICS",values:{action:o}}:{id:"ACTIVITY_ENABLE_TO_VIEW_TRAFFIC_STATISTICS",values:{action:n}}:{id:"ACTIVITY_MULTI_ENABLE_TO_VIEW_TRAFFIC_STATISTICS",values:{action1:n,action2:o}}),[i,l,n,o]);return(0,a.jsx)(H.A,{color:"text-2",size:"medium",children:c})},be=()=>(0,a.jsx)(Se,{}),Fe={disableColumnFilters:!0,rowHeight:Pe.I.ROW_HEIGHT,initiallySortAscending:!1,renderPlaceholder:be,placeholderClassName:L};var we=i(43336),Ue=i(402989),Re=i(897166),We=i(754924);const ze={[d.APPLICATION]:"COMMON_APPLICATION",[d.TOTAL_TRAFFIC]:"ACTIVITY_DATA_TRAFFIC",[d.TIME_ESTIMATE]:"ACTIVITY_TIME_ESTIMATE",[d.DOWNLOAD]:"COMMON_DOWNLOAD",[d.UPLOAD]:"COMMON_UPLOAD",[d.EMPTY_SPACE]:void 0,[d.TOP_CLIENT]:"ACTIVITY_TOP_CLIENT",[d.CLIENT_COUNT]:"COMMON_CLIENTS"};var Ye=i(590979);const He=({topClientBytesReceived:e,topClientBytesTransmitted:t,timeEstimate:i,topClientTotalBytes:r,client:s})=>(0,a.jsxs)(I.A,{flexDirection:"column",minWidth:200,gap:O.YC,children:[(0,a.jsxs)(I.A,{alignItems:"center",gap:O.YC,children:[(0,a.jsx)(ne.A,{client:s,width:re,height:re}),(0,a.jsx)(H.A,{size:"small",color:"text-1",weight:"bold",children:s.name})]}),(0,a.jsxs)(I.A,{justifyContent:"space-between",children:[(0,a.jsx)(H.A,{size:"small",color:"text-1",children:(0,a.jsx)(Y.sA,{id:"COMMON_DOWNLOAD"})}),(0,a.jsx)(H.A,{size:"small",color:"traffic-down",children:(0,B.FI)(e)})]}),(0,a.jsxs)(I.A,{justifyContent:"space-between",children:[(0,a.jsx)(H.A,{size:"small",color:"text-1",children:(0,a.jsx)(Y.sA,{id:"COMMON_UPLOAD"})}),(0,a.jsx)(H.A,{size:"small",color:"traffic-up",children:(0,B.FI)(t)})]}),(0,a.jsxs)(I.A,{justifyContent:"space-between",children:[(0,a.jsx)(H.A,{size:"small",color:"text-1",children:(0,a.jsx)(Y.sA,{id:"COMMON_TRAFFIC"})}),(0,a.jsx)(H.A,{size:"small",color:"text-2",children:(0,B.FI)(r)})]}),i?(0,a.jsxs)(I.A,{justifyContent:"space-between",children:[(0,a.jsx)(H.A,{size:"small",color:"text-1",children:(0,a.jsx)(Y.sA,{id:"ACTIVITY_TIME_ESTIMATE"})}),(0,a.jsx)(H.A,{size:"small",color:"text-2",children:(0,a.jsx)($.A,{uptime:i})})]}):null]}),Be="TRAFFIC_APP_TOP_CLIENT_IMAGE_CLASSNAME",$e=(0,x.A)(I.A)`
  gap: ${O.kc};
  align-items: center;
  .${Be} {
    width: ${re}px !important;
    min-width: ${re}px;
    height: ${re}px !important;
    min-height: ${re}px;
  }
`,Ge=({topClient:{client:e={mac:void 0,name:void 0},topClientTotalBytes:t,topClientBytesReceived:i,topClientBytesTransmitted:l,isSummary:n,totalBytes:o,timeEstimate:c}={}})=>{const d=(0,s.wA)(),m=(0,r.useCallback)(t=>{t.stopPropagation(),d((0,oe.XP)({type:le.H.CLIENT,id:e.mac}))},[d,e.mac]);return(0,a.jsxs)($e,{children:[(0,a.jsx)(ae,{delay:0,portal:!0,cursorType:"pointer",description:(0,a.jsx)(He,{client:e,topClientTotalBytes:t,topClientBytesReceived:i,topClientBytesTransmitted:l,timeEstimate:n?void 0:c}),children:(0,a.jsx)(ne.A,{client:e,className:Be})}),(0,a.jsxs)(I.A,{alignItems:"center",gap:O.YC,children:[(0,a.jsx)(pe.A,{type:"button",variant:"inline",onClick:m,...Ye.A.addDataTestId(Ye.A.TestId.SIDE_PANEL_TRIGGER),children:(0,a.jsx)(H.A,{color:"inherit",size:"medium",children:e.name||(0,a.jsx)(Y.sA,{id:"COMMON_UNKNOWN"})})}),(0,a.jsx)(H.A,{size:"medium",color:"text-2",children:`${(0,B.FI)(t)} (${(0,J.i)((t||0)/(o||0)*100)}%)`})]})]})},Ve=[{id:d.APPLICATION,sortable:!0,label:(0,a.jsx)(H.A,{size:"medium",weight:"bold",color:"inherit",children:(0,a.jsx)(Y.sA,{id:ze[d.APPLICATION]})}),minWidth:E[d.APPLICATION],renderCell:({isSummary:e,name:t,iconFileName:i,compoundId:r})=>(0,a.jsx)(ye,{isSummary:e,name:t,compoundId:r,children:(0,a.jsx)(ee.A,{iconFileName:i,dimension:re})}),compare:X(d.APPLICATION)},{id:d.TOTAL_TRAFFIC,sortable:!0,label:(0,a.jsx)(H.A,{size:"medium",weight:"bold",color:"inherit",children:(0,a.jsx)(Y.sA,{id:ze[d.TOTAL_TRAFFIC]})}),minWidth:E[d.TOTAL_TRAFFIC],renderCell:({isSummary:e,traffic_percentage:t=0,total_bytes:i=0})=>(0,a.jsx)(k,{isSummary:e,traffic_percentage:t,total_bytes:i}),compare:X(d.TOTAL_TRAFFIC)},{id:d.DOWNLOAD,sortable:!0,label:(0,a.jsx)(H.A,{size:"medium",weight:"bold",color:"inherit",children:(0,a.jsx)(Y.sA,{id:ze[d.DOWNLOAD]})}),minWidth:E[d.DOWNLOAD],renderCell:({bytes_received:e=0})=>(0,a.jsx)(V.A.Bytes,{size:"medium",children:(0,B.FI)(e)}),compare:X(d.DOWNLOAD)},{id:d.UPLOAD,sortable:!0,label:(0,a.jsx)(H.A,{size:"medium",weight:"bold",color:"inherit",children:(0,a.jsx)(Y.sA,{id:ze[d.UPLOAD]})}),minWidth:E[d.UPLOAD],renderCell:({bytes_transmitted:e=0})=>(0,a.jsx)(G.A.Bytes,{size:"medium",children:(0,B.FI)(e)}),compare:X(d.UPLOAD)},{id:d.EMPTY_SPACE,sortable:!1,label:null,minWidth:E[d.EMPTY_SPACE],renderCell:()=>null},{id:d.TIME_ESTIMATE,sortable:!0,label:(0,a.jsx)(H.A,{size:"medium",weight:"bold",color:"inherit",children:(0,a.jsx)(Y.sA,{id:ze[d.TIME_ESTIMATE]})}),minWidth:E[d.TIME_ESTIMATE],renderCell:({isSummary:e,timeEstimate:t})=>(0,a.jsx)(H.A,{size:"medium",color:"text-2",children:e?(0,a.jsx)(Y.sA,{id:"COMMON_FALLBACK"}):(0,a.jsx)($.A,{uptime:t})}),compare:X(d.TIME_ESTIMATE)},{id:d.TOP_CLIENT,sortable:!0,label:(0,a.jsx)(H.A,{size:"medium",weight:"bold",color:"inherit",children:(0,a.jsx)(Y.sA,{id:ze[d.TOP_CLIENT]})}),minWidth:E[d.TOP_CLIENT],renderCell:({topClient:e})=>(0,a.jsx)(Ge,{topClient:e}),compare:X(d.TOP_CLIENT)},{id:d.CLIENT_COUNT,sortable:!0,label:(0,a.jsx)(H.A,{size:"medium",weight:"bold",color:"inherit",children:(0,a.jsx)(Y.sA,{id:ze[d.CLIENT_COUNT]})}),minWidth:E[d.CLIENT_COUNT],renderCell:({clientCount:e=0})=>(0,a.jsx)(H.A,{size:"medium",color:"text-2",children:e}),compare:X(d.CLIENT_COUNT)}],ke=({formattedUsageByApp:e,activityGraphApp:t,queryParams:i})=>{const a=(0,s.wA)(),l=(0,s.d4)(C.Wq);return(0,r.useEffect)(()=>{t[Ue.wA.CAT]!==w.ZM||t[Ue.wA.APP]!==w.Je?e.some(({application:e,category:i})=>t[Ue.wA.CAT]===i&&t[Ue.wA.APP]===e)?a((0,T.C)(i,{apps:[],client_macs:l},void 0,{crudCacheStrategy:{type:n.e.CACHE}})):a((0,fe.Hl)({[Ue.wA.CAT]:w.ZM,[Ue.wA.APP]:w.Je})):1===e.length&&t[Ue.wA.CAT]!==e[0].category&&t[Ue.wA.APP]!==e[0].application&&a((0,fe.Hl)({[Ue.wA.CAT]:e[0].category,[Ue.wA.APP]:e[0].application}))},[a,e,i,l,t]),null},qe=({isSummary:e,compoundId:t})=>({[S.L]:e?y:String(t)}),Ze={disableColumnFilters:!0,rowHeight:Pe.I.ROW_HEIGHT,initiallySortAscending:!1,renderPlaceholder:be,placeholderClassName:L},Xe=({queryParams:e})=>{const t=(0,s.d4)(C.nc),i=(0,s.d4)(C.Jd),l=(0,s.d4)(C.dX),n=((e,t)=>{const{formatMessage:i}=(0,Y.tz)(),l=(0,s.wA)(),n=(0,s.d4)(We.m9),o=(0,s.d4)(Re.EL),c=(0,s.d4)(We.jY),m=(0,s.d4)(C.Wq),A=(0,r.useMemo)(()=>i({id:"COMMON_ALL_TRAFFIC"}),[i]),u=(0,s.d4)((0,r.useMemo)(()=>(0,h.mH)(e),[e])),T=(0,s.d4)((0,r.useMemo)(()=>(0,h.Gb)(A,e),[A,e])),p=(0,s.d4)((0,r.useMemo)(()=>m.length?(0,h.Nu)(A):W.A,[A,m])),x=(0,s.d4)((0,r.useMemo)(()=>m.length?(0,h.Hy)(m,e):z.A,[m,e])),O=(0,r.useMemo)(()=>u.length>1?Array.prototype.concat.apply([],[T,u]).flat():u,[T,u]),I=(0,r.useMemo)(()=>x.length>1?Array.prototype.concat.apply([],[p,x]).flat():x,[p,x]),y=(0,r.useCallback)(({category:e,application:t})=>l((0,fe.Hl)({[Ue.wA.CAT]:e,[Ue.wA.APP]:t})),[l]),f=(0,r.useCallback)(({isSummary:e,compoundId:t})=>n&&!e&&c&&!o?(0,a.jsx)(we.A,{dpiAppId:t}):null,[n,c,o]),M=(0,r.useMemo)(()=>({idField:"compoundId",items:m.length?I:O,columns:Ve,columnOverride:m.length?j:_,initialSortBy:d.TOTAL_TRAFFIC,onRowClick:y,rowProps:qe,renderHoverContent:f}),[O,I,m,y,f]),E=(0,r.useMemo)(()=>(0,a.jsx)(R.A,{...Ze,...M}),[M]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ke,{formattedUsageByApp:M.items,activityGraphApp:t,queryParams:e}),E]})})(e,l),m=((e,t)=>{const{formatMessage:i}=(0,Y.tz)(),l=(0,s.wA)(),n=(0,s.d4)(C.Uz),d=(0,r.useMemo)(()=>i({id:"COMMON_ALL_CLIENTS"}),[i]),m=(0,s.d4)((0,r.useMemo)(()=>(0,h.WY)(e),[e])),A=(0,s.d4)((0,r.useMemo)(()=>(0,h._)(d,e),[d,e])),u=(0,s.d4)((0,r.useMemo)(()=>n.length?(0,h.x4)(n,e):z.A,[n,e])),T=(0,s.d4)((0,r.useMemo)(()=>n.length?(0,h.lz)(d):W.A,[d,n])),p=(0,r.useMemo)(()=>m.length>1?Array.prototype.concat.apply([],[A,m]).flat():m,[A,m]),x=(0,r.useMemo)(()=>u.length>1?Array.prototype.concat.apply([],[T,u]).flat():u,[T,u]),O=(0,r.useCallback)(({client:{mac:e=w.Y$}})=>l((0,fe.fT)(e)),[l]),I=(0,r.useMemo)(()=>({idField:"mac",items:n.length?x:p,columns:je,columnOverride:n.length?M:f,initialSortBy:c.TOTAL_TRAFFIC,onRowClick:O,rowProps:Ee,renderHoverContent:o.P1}),[p,x,n,O]),y=(0,r.useMemo)(()=>(0,a.jsx)(R.A,{...Fe,...I}),[I]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Me,{formattedUsageByClient:I.items,activityGraphClient:t,queryParams:e}),y]})})(e,i);return(0,a.jsx)(U,{activityTab:t,activityGraphApp:l,activityGraphClient:i,children:t===g.f.CLIENTS?n:m})},Ke=({queryParams:e})=>(0,a.jsx)(N,{children:(0,a.jsx)(Xe,{queryParams:e})}),Je=(0,x.A)(I.A)`
  flex-direction: column;
`;var Qe=i(729736),et=i(357159),tt=i(927027);const it=(0,x.A)(I.A)`
  width: 100%;
  position: relative;
`;var at=i(820633),rt=i(303853),st=i(406677),lt=i(570801),nt=i(96252),ot=i(882355);const ct=e=>e<400,dt=({preset:e,documentWidth:t,dayDifference:i,use24HourTime:a,siteTimezone:r,language:s,selfHourCycle:l,formatMessage:n,timestamps:o,startDate:c,endDate:d})=>{return m=o[0]||c.getTime(),A=o.length>1&&o.at(-1)||d.getTime(),u=0===i?ot.l.ONE_DAY:ot.j,(0,tt.v)([m,A],nt.P[e||u].frequency(t,i)).map((i,o)=>({label:nt.P[e||u].label({index:o,value:i,use24HourTime:a,siteTimezone:r,language:s,selfHourCycle:l,documentWidth:t,formatMessage:n}),value:i}));var m,A,u};var mt=i(801386);const At=625e3;var ut=i(142667),Tt=i(320509);const ht=(0,r.memo)(({value:e,activityTrafficGraphState:t})=>{const i=(0,r.useMemo)(()=>t===mt.u.DOWNLOAD?V.A:G.A,[t]);return(0,a.jsxs)(I.A,{alignItems:"center",justifyContent:"space-between",children:[(0,a.jsx)(H.A,{size:"small",color:"text-1",children:(0,a.jsx)(Y.sA,{id:t===mt.u.DOWNLOAD?"COMMON_DOWNLOAD":"COMMON_UPLOAD"})}),(0,a.jsxs)(I.A,{alignItems:"center",children:[(0,a.jsx)(i.Icon,{size:"small"}),(0,a.jsx)(H.A,{size:"small",color:t===mt.u.DOWNLOAD?"traffic-down":"traffic-up",children:(0,Tt.zX)(Math.max(e,0))})]})]})}),pt=(0,r.memo)(({name:e,iconFileName:t})=>(0,a.jsxs)(I.A,{gap:O.YC,alignItems:"center",children:[(0,a.jsx)(ee.A,{iconFileName:t}),(0,a.jsx)(ce.A,{size:"small",color:"text-2",isTruncated:!0,children:e||(0,a.jsx)(Y.sA,{id:"COMMON_UNKNOWN"})})]})),Ct=({timestamp:e,totalBytes:t,topApp:i,intervalSeconds:r,dayDifference:s,activityTrafficDownloadGraphState:l,activityTrafficUploadGraphState:n,rxValue:o,txValue:c,activityDateTimeFormats:{full:d,short:m}})=>(0,a.jsxs)(I.A,{flexDirection:"column",width:"100%",whiteSpace:"nowrap",gap:O.YC,children:[(0,a.jsx)(I.A,{marginBottom:O.YC,children:(0,a.jsx)(H.A,{color:"text-1",weight:"bold",size:"medium",children:(0,a.jsx)(Y.sA,{id:"COMMON_TRAFFIC"})})}),(0,a.jsxs)(I.A,{justifyContent:"space-between",children:[(0,a.jsx)(H.A,{size:"small",color:"text-1",children:(0,a.jsx)(Y.sA,{id:"COMMON_DATE_TIME"})}),(0,a.jsxs)(H.A,{size:"small",color:"text-2",children:[d.format(e),s<=7&&r?(0,a.jsxs)(a.Fragment,{children:[" - ",m.format(e+1e3*r)]}):null]})]}),(0,a.jsxs)(I.A,{justifyContent:"space-between",children:[(0,a.jsx)(H.A,{size:"small",color:"text-1",children:(0,a.jsx)(Y.sA,{id:"COMMON_TOTAL_TRAFFIC"})}),(0,a.jsx)(H.A,{size:"small",color:"text-2",children:(0,B.FI)(t)})]}),(0,a.jsxs)(a.Fragment,{children:[l?(0,a.jsx)(ht,{value:o,activityTrafficGraphState:mt.u.DOWNLOAD}):null,n?(0,a.jsx)(ht,{value:c,activityTrafficGraphState:mt.u.UPLOAD}):null]}),i?(0,a.jsxs)(I.A,{justifyContent:"space-between",alignItems:"center",children:[(0,a.jsx)(H.A,{size:"small",color:"text-1",children:(0,a.jsx)(Y.sA,{id:"COMMON_MOST_ACTIVE"})}),(0,a.jsxs)(I.A,{alignItems:"center",maxWidth:"70%",children:[(0,a.jsx)(pt,{...(0,Q.HH)((0,F.h)(i.category,i.application))}),(0,a.jsxs)(ce.A,{size:"small",color:"text-2",isTruncated:!0,children:[" (",(0,B.FI)(i.total_bytes||0),")"]})]})]}):null]}),xt=({hidden:e,top:t,left:i,x:r,customTooltipProps:{total_bytes:s=0,top_app:l,interval_seconds:n=null}={},chartWidth:o,chartHeight:c,activityTrafficDownloadGraphState:d,activityTrafficUploadGraphState:m,activityTrafficGraphState:A,gradientColor:u,uploadTooltipProps:T,rxValue:h,txValue:p,dayDifference:C,activityDateTimeFormats:x})=>(0,a.jsx)(ut.A,{width:300,topA:t,leftA:i,topB:T.top,leftB:T.left,chartWidth:o,chartHeight:c,hidden:e,description:(0,a.jsx)(Ct,{timestamp:r,totalBytes:s,topApp:l,intervalSeconds:n,dayDifference:C,activityTrafficDownloadGraphState:d,activityTrafficUploadGraphState:m,rxValue:h,txValue:p,activityDateTimeFormats:x}),innerColor:u,tooltipRenderCondition:![d,m].every(Boolean)||A===mt.u.UPLOAD});var Ot=i(991331),It=i(263705);const yt={[mt.u.INTERNET_ACTIVITY]:void 0,[mt.u.DOWNLOAD]:"aqua-06",[mt.u.UPLOAD]:"purple-06"},_t=({trafficRate:e,getCoordinates:t,mouseData:i,maxY:s,yAxisMax:l,yAxisMin:n,tooltipContainer:o,activityTrafficGraphState:c,renderTooltip:d,chartHovered:m})=>{const{themeName:A}=(0,It.u)(),u=(0,r.useMemo)(()=>e.map(({timestamp:e,"rx_byte-r":t,"tx_byte-r":i,total_bytes:a,top_app:r,interval_seconds:s})=>({x:e,y:c===mt.u.UPLOAD?i:t,custom:{total_bytes:a,top_app:r,interval_seconds:s,rxValue:t,txValue:i}})),[e,c]),T=(0,r.useMemo)(()=>`${c}GradientId`,[c]),h=(0,r.useMemo)(()=>D.Ay[`desktop-color-${yt[c]}-${A}`],[c,A]),p=(0,r.useCallback)(()=>(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:T,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:h,stopOpacity:.5}),(0,a.jsx)("stop",{offset:"100%",stopColor:h,stopOpacity:.1})]})}),[h,T]),C=(0,r.useCallback)(e=>d(e,c,h),[d,h,c]);return(0,a.jsx)(Ot.A,{data:u,maxY:s,yAxisMax:l,yAxisMin:n,mouseData:i,getCoordinates:t,lineColor:h,variant:"gradientArea",interpolation:"curved",allowCustomDots:!0,tooltipPortal:o?.current||void 0,customGradientId:T,renderCustomGradient:p,renderTooltip:C,showTooltip:m})},jt=({activityContainerHeight:e,activityDateRange:t})=>{const i=(0,r.useRef)(null),n=(0,r.useRef)({left:0,top:0}),{ref:o,width:c=0}=(0,l.A)(),{chartHeight:d,isNarrowChart:m}=(e=>{const t=(0,r.useMemo)(()=>Math.max(Math.round(.8*Math.round((e||0)/2)),188),[e]);return(0,r.useMemo)(()=>({chartHeight:t,isNarrowChart:ct(t)}),[t])})(e),A=(0,s.d4)(C.mE),T=(0,s.d4)(u.Sm),{activityTrafficDownloadGraphState:h,activityTrafficUploadGraphState:p}=(0,r.useMemo)(()=>({activityTrafficDownloadGraphState:[mt.u.DOWNLOAD,mt.u.INTERNET_ACTIVITY].includes(A),activityTrafficUploadGraphState:[mt.u.UPLOAD,mt.u.INTERNET_ACTIVITY].includes(A)}),[A]),{power:x,unit:O,bytes:I}=(0,r.useMemo)(()=>{return e=Math.max(0,...T.map(({"tx_byte-r":e=0,"rx_byte-r":t=0})=>Math.max(At,h?t:0,p?e:0))),(0,Qe.cS)(e,"bitrate","SI",e?void 0:2);var e},[T,h,p]),{xAxis:y,dayDifference:_}=((e,{startDate:t,endDate:i,preset:a})=>{const{formatMessage:l}=(0,Y.tz)(),{width:n}=(0,rt.Ay)(),o=(0,r.useMemo)(()=>(0,st.w)(t,i),[t,i]),c=(0,s.d4)(lt.jc),d=(0,s.d4)(lt.BQ),m=(0,s.d4)(Re.hq),A=(0,s.d4)(at.zi);return{xAxis:dt({preset:a,documentWidth:n,dayDifference:o,use24HourTime:c,siteTimezone:m,language:A,selfHourCycle:d,formatMessage:l,startDate:t,endDate:i,timestamps:e}),dayDifference:o}})(T.map(({timestamp:e})=>e),t),j=(0,r.useMemo)(()=>{return e=I>At?Math.ceil(I+1/(m?5:10)*I):I,(0,tt.Y)((0,Qe.cS)(e,"bitrate","SI",x).value<1e3?e:I,m?6:11);var e},[I,x,m]),f=(0,r.useCallback)(({value:e},t)=>{return t!==(m?5:10)?(a=(i=(0,Qe.cS)(+e,"bitrate","SI",x).value).toFixed(1),0===t?O:String(a.length<=4?a:Math.trunc(i))):void 0;var i,a},[x,m,O]),M=(()=>{const e=(0,s.d4)(lt.BQ),t=(0,s.d4)(Re.hq),i=(0,s.d4)(at.zi);return(0,r.useMemo)(()=>({full:new Intl.DateTimeFormat(i,{day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"numeric",hourCycle:e,timeZone:t}),short:new Intl.DateTimeFormat(i,{hour:"numeric",minute:"numeric",hourCycle:e,timeZone:t}),tooltip:new Intl.DateTimeFormat(i,{day:"numeric",month:"short",hour:"numeric",minute:"numeric",hourCycle:e,timeZone:t})}),[e,t,i])})(),E=(0,r.useCallback)(({hidden:e,left:t=0,top:i=0,x:r,custom:s},l,o)=>(h&&p&&l===mt.u.UPLOAD&&(n.current={left:t,top:i}),(0,a.jsx)(xt,{hidden:e,left:t,top:i,uploadTooltipProps:n.current,x:r,rxValue:s?.rxValue,txValue:s?.txValue,customTooltipProps:s,chartHeight:d,chartWidth:c,activityTrafficDownloadGraphState:h,activityTrafficUploadGraphState:p,activityTrafficGraphState:l,gradientColor:o,dayDifference:_,activityDateTimeFormats:M})),[d,c,h,p,n,_,M]),P=(0,r.useCallback)((e,t,r,s,l,n,o,c,d,m)=>(0,a.jsxs)(a.Fragment,{children:[h?(0,a.jsx)(_t,{trafficRate:T,getCoordinates:e,mouseData:t,maxY:r,yAxisMax:n,yAxisMin:o,tooltipContainer:i,renderTooltip:E,activityTrafficGraphState:mt.u.DOWNLOAD,chartHovered:m}):null,p?(0,a.jsx)(_t,{trafficRate:T,getCoordinates:e,mouseData:t,maxY:r,yAxisMax:n,yAxisMin:o,tooltipContainer:i,renderTooltip:E,activityTrafficGraphState:mt.u.UPLOAD,chartHovered:m}):null]}),[h,p,T,E]);return(0,a.jsxs)(it,{ref:o,children:[(0,a.jsx)(et.A,{xAxis:y,yAxis:j,width:c,height:d,renderYLabel:f,children:P}),(0,a.jsx)("div",{ref:i})]})},ft=({activityContainerHeight:e,activityDateRange:t})=>(0,a.jsx)(Je,{children:(0,a.jsx)(jt,{activityContainerHeight:e,activityDateRange:t})}),Mt=(0,x.A)(I.A)`
  margin: ${O.Ln};
  border: ${({theme:{themeName:e}})=>D.Ay[`desktop-border-divider-${e}`]};
  border-radius: 6px;
  overflow: auto;
  width: 100%;
`,Et=(0,x.A)(I.A)`
  width: 100%;
  min-width: 820px;
  height: 100%;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  gap: ${O.kc};
`,Pt=(0,r.memo)(()=>{const e=(0,s.wA)(),{ref:t,height:i=0}=(0,l.A)(),c=(0,s.d4)(C.Vn),d=(0,s.d4)(C.Bw),x=(0,s.d4)(C.eD),O=(0,r.useMemo)(()=>({start:d.startDate.getTime(),end:d.endDate.getTime(),includeUnidentified:!0}),[d]),I=(0,s.d4)(u.Z7),y=(0,s.d4)((0,r.useMemo)(()=>(0,h.Vg)(O),[O]));return((e=o.P1,t=o.P1)=>{(0,r.useEffect)(()=>(e(),t),[])})(()=>{I||e((0,T.C)(O,x)),y||e((0,p._)(O))}),(0,m.A)([(0,T.C)(O,x,void 0,{crudCacheStrategy:{type:n.e.CACHE}}),(0,p._)(O,void 0,{crudCacheStrategy:{type:n.e.CACHE}})],(0,a.jsx)(Mt,{children:(0,a.jsxs)(Et,{ref:t,children:[c?(0,a.jsx)(ft,{activityContainerHeight:i,activityDateRange:d}):null,(0,a.jsx)(Ke,{queryParams:O})]})}),{trackingName:A.H.ACTIVITY})})},275262(e,t,i){i.d(t,{Fw:()=>s,Ql:()=>a,pN:()=>r,vB:()=>l});const a="createSimpleAppBlock",r="mac",s="appId",l="simpleAppBlockId"},72889(e,t,i){var a;i.d(t,{D:()=>a}),function(e){e.TRAFFIC_RULES="traffic-rules",e.FIREWALL_RULES="firewall-rules"}(a||(a={}))},43336(e,t,i){i.d(t,{A:()=>C});var a=i(274934),r=i(602086),s=i(977872),l=i(599110),n=i(43506),o=i(309130),c=i(100978),d=i(470070),m=i(275262),A=i(402989),u=i(167933),T=i(969288),h=i(502129),p=i(72889);const C=(0,r.memo)(({dpiAppId:e,mac:t})=>{const i=(0,s.d4)(u.JP),C=(0,n.A)(T.bB),x=(0,n.A)(T.tz),O=(0,r.useMemo)(()=>{if(i){const i=new URLSearchParams;return i.set(m.Ql,"true"),t&&i.set(m.pN,t),e&&i.set(m.Fw,e.toString()),{pathname:`${C}/${T.Uy.CYBERSECURE}`,search:i.toString()}}return{pathname:`${x}/${p.D.TRAFFIC_RULES}/${T.fW}/${T.R6}`,state:{[A.U3.APP_ID]:e.toString(),[A.U3.CLIENT]:t}}},[e,i,t,C,x]);return(0,a.jsx)(c.A,{justifyContent:"flex-end",paddingRight:o.xO,children:(0,a.jsx)(l.A,{component:h.A,to:O,variant:"inline",color:"danger",children:(0,a.jsx)(d.sA,{id:"COMMON_ACTION_BLOCK_APP"})})})})},96252(e,t,i){i.d(t,{P:()=>n});var a=i(588769),r=i(570866),s=i(882355);const l=e=>e>=a.A.XXL.TO?25:e>=a.A.L.TO?13:e>=a.A.M.TO?7:4,n={[s.l.ONE_HOUR]:{frequency:l,label:({index:e,value:t,selfHourCycle:i,documentWidth:a,formatMessage:r,siteTimezone:s,language:n})=>e!==l(a)-1?new Intl.DateTimeFormat(n,{hourCycle:i,hour:"numeric",timeZone:s,minute:"numeric"}).format(t):r({id:"COMMON_NOW"})},[s.l.ONE_DAY]:{frequency:l,label:({index:e,value:t,use24HourTime:i,selfHourCycle:a,siteTimezone:r,language:s,documentWidth:n,formatMessage:o})=>e!==l(n)-1?new Intl.DateTimeFormat(s,{hourCycle:a,hour:"numeric",minute:"numeric",timeZone:r,...i&&{minute:"numeric"}}).format(t).toUpperCase():o({id:"COMMON_NOW"})},[s.l.ONE_WEEK]:{frequency:()=>7,label:({value:e,language:t})=>new Intl.DateTimeFormat(t,{weekday:"short"}).format(e)},[s.l.ONE_MONTH]:{frequency:(e,t)=>Math.ceil(t/(e>=a.A.XXL.TO?1:e>=a.A.M.TO?2:4)),label:({value:e,language:t})=>new Intl.DateTimeFormat(t,{month:"short",day:"numeric"}).format(e)},[s.l.TWELVE_HOURS]:{frequency:()=>12,label:({value:e,selfHourCycle:t,siteTimezone:i,language:a})=>new Intl.DateTimeFormat(a,{hourCycle:t,hour:"numeric",timeZone:i}).format(e)},[s.l.SIX_HOURS]:{frequency:()=>6,label:({value:e,selfHourCycle:t,siteTimezone:i,language:a})=>new Intl.DateTimeFormat(a,{hourCycle:t,hour:"numeric",timeZone:i}).format(e)},[s.l.THIRTY_MINUTES]:{frequency:()=>6,label:({value:e,selfHourCycle:t,siteTimezone:i,language:a})=>new Intl.DateTimeFormat(a,{hourCycle:t,hour:"numeric",minute:"numeric",timeZone:i}).format(e)},[s.j]:{frequency:()=>10,label:({value:e,selfHourCycle:t,siteTimezone:i,language:a})=>new Intl.DateTimeFormat(a,{hourCycle:t,timeZone:i,month:"short",day:"numeric",hour:"numeric",minute:"numeric"}).format(e).replace(r.sO,e=>e.toUpperCase())}}},406677(e,t,i){i.d(t,{I:()=>s,w:()=>r});var a=i(455425);const r=(e,t)=>Math.floor(Math.abs(new Date(t).getTime()-new Date(e).getTime())/a.jU),s=(e,t)=>Math.floor(Math.abs(t-e)/a.jU)}}]);