"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[99953],{535322(e,t,i){i.d(t,{A:()=>m,I:()=>r});var r,a=i(274934),s=i(814557),n=i(158885),o=i(247816),l=i(565527),d=i(309130),c=i(100978),A=i(291508);!function(e){e.ACCORDION="accordion",e.BUTTON_LIST="buttonList"}(r||(r={}));const u=(0,o.A)(c.A,(0,A.A)("marginBottom","isButtonList","margin","flex","width","padding","nested","background"))`
  background-color: ${({background:e,nested:t,theme:{themeName:i}})=>e||s.Ay[i===l.S.DARK?`desktop-color-neutral-${t?"00":"01"}-${l.S.DARK}`:`desktop-color-neutral-${t?"01":"00"}-${l.S.LIGHT}`]};
  padding: ${({isButtonList:e,padding:t})=>t||(e?`0 ${d.Ln}`:d.Ln)};
  margin-bottom: ${({marginBottom:e})=>e||d.Ln};
  ${({margin:e})=>e?`margin: ${e};`:""}
  border-radius: 8px;
  flex-direction: column;
  width: ${({width:e="100%"})=>e};
  flex: ${({flex:e=0})=>e};
  > :last-child {
    margin-bottom: 0;
  }
  thead {
    tr {
      height: 32px !important;
    }
    th {
      text-transform: none;
    }
  }
  ${({isButtonList:e})=>e?`\n    > div {\n      display: flex;\n      height: 48px;\n      border-bottom: ${({theme:{themeName:e}})=>s.Ay[`desktop-border-divider-${e}`]};\n      &:last-child {\n        border-bottom: none;\n      }\n    }\n  `:""}
`,_=(0,o.A)(n.A,(0,A.A)("marginBottom","margin","flex","padding","nested","background"))`
  background-color: ${({background:e,nested:t,theme:{themeName:i}})=>e||s.Ay[i===l.S.DARK?`desktop-color-neutral-${t?"00":"01"}-${l.S.DARK}`:`desktop-color-neutral-${t?"01":"00"}-${l.S.LIGHT}`]};
  margin-bottom: ${({theme:e,marginBottom:t})=>t||e.spacing["spacing-l"]};
  ${({margin:e})=>e?`margin: ${e};`:""}
  ${({padding:e})=>e?`padding: ${e};`:""}
  border-radius: 8px;
  flex-direction: column;
  flex: ${({flex:e=0})=>e};
  > :last-child {
    margin-bottom: 0;
  }
  thead {
    tr {
      height: 32px !important;
    }
    th {
      text-transform: none;
    }
  }
  > li {
    > div:first-child {
      background: ${({background:e,theme:{themeName:t}})=>e||s.Ay[t===l.S.DARK?`desktop-color-neutral-01-${l.S.DARK}`:`desktop-color-neutral-00-${l.S.LIGHT}`]};
      height: 48px;
      padding: 0 ${d.Ln};
    }
    > div:nth-child(2) {
      margin-bottom: 0;
      padding: 0;
      > div {
        padding: 0 ${d.Ln} ${d.Ln};
      }
    }
  }
`,m=({type:e,marginBottom:t,margin:i,padding:s,flex:n,width:o,nested:l,...d})=>"items"in d?(0,a.jsx)(_,{marginBottom:t,margin:i,padding:s,flex:n,nested:l,...d}):(0,a.jsx)(u,{nested:l,width:o,marginBottom:t,margin:i,padding:s,flex:n,isButtonList:e===r.BUTTON_LIST,...d,children:d.children})},756893(e,t,i){i.d(t,{A:()=>p});var r=i(274934),a=i(938984),s=i(247816),n=i(814557),o=i(309130),l=i(345973),d=i(100978),c=i(291508),A=i(117983);const u=(0,s.A)("div",(0,c.A)("dotColor","variant"))`
  margin-top: 7px;
  margin-right: ${o.Ln};
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  box-sizing: border-box;
  ${({theme:{themeName:e},dotColor:t,variant:i})=>{const r=t||n.Ay[`desktop-color-neutral-04-${e}`];return"partial"===i?`\n        background: transparent;\n        border: 2px solid ${r};\n      `:`background: ${r};`}}
  z-index: 1;
`,_=(0,s.A)(d.A,(0,c.A)("active"))`
  position: relative;
  padding-bottom: ${o.kc};
  ${({active:e,theme:{themeName:t}})=>e&&`background: ${n.Ay[`desktop-color-ublue-01-${t}`]};`}
`,m=(0,s.A)("div")`
  position: absolute;
  left: ${o.YC};
  top: 10px;
  height: 100%;
  width: 1px;
  background: ${({theme:{themeName:e}})=>n.Ay[`desktop-color-neutral-04-${e}`]};
`,h=e=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(A.cG,{}),(0,r.jsx)(a.A,{color:"text-3",size:"small",children:e})]}),p=({header:e,main:t,content:i,footer:s,timestamp:n,showLine:d,active:c=!1,dotColor:A,dotVariant:p="full"})=>(0,r.jsxs)(_,{active:c,children:[(0,r.jsx)(u,{dotColor:A,variant:p}),d?(0,r.jsx)(m,{}):null,(0,r.jsxs)("div",{children:[e?(0,r.jsx)("div",{children:e}):null,(0,r.jsx)("div",{children:(0,r.jsx)(a.A,{variant:"body-primary",children:t})}),i?(0,r.jsx)("div",{children:(0,r.jsx)(a.A,{color:"text-3",size:"small",children:i})}):null,(0,r.jsxs)("div",{style:{marginTop:o.YC,display:"flex",alignItems:"center",whiteSpace:"nowrap"},children:[(0,r.jsx)(l.A,{timestamp:n}),s?Array.isArray(s)?s.filter(Boolean).map(h):h(s):null]})]})]})},117983(e,t,i){i.d(t,{Hq:()=>N,ak:()=>S,cG:()=>C,fX:()=>O,lg:()=>M,pF:()=>g,v5:()=>R});var r=i(274934),a=i(814557),s=i(602086),n=i(977872),o=i(599110),l=i(247816),d=i(590979),c=i(449339),A=i(309130),u=i(100978),_=i(964978),m=i(122109),h=i(205521),p=i(470070),x=i(850352),T=i(581814),I=i(412160);const C=(0,l.A)("span")`
  &::before {
    content: '|';
    margin-right: ${A.kc};
    margin-left: ${A.kc};
    color: ${({theme:{themeName:e}})=>a.Ay[`desktop-color-neutral-03-${e}`]};
  }
`,S=({parameters:e})=>{const{handleGoToPortsPage:t}=(0,x.e)(),i=(0,s.useCallback)(()=>{t(e[I.dl.DEVICE_WITH_PORT]?.id,Number(e[I.dl.PORT]?.id))},[t,e]);return(0,r.jsx)(o.A,{type:"button",variant:"inline",onClick:i,children:e[I.dl.DEVICE_WITH_PORT]?.name})},M=({parameters:e})=>{const t=(0,n.wA)(),i=(0,s.useCallback)(()=>{switch(e[I.dl.NETWORK]?.network_purpose){case T.rR.SITE_VPN:t((0,h.XP)({type:c.H.SITE_TO_SITE_VPN,id:e[I.dl.NETWORK]?.id}));break;case T.rR.REMOTE_USER_VPN:t((0,h.XP)({type:c.H.VPN_SERVER,id:e[I.dl.NETWORK]?.id??""}));break;default:t((0,h.XP)({type:c.H.NETWORK,id:e[I.dl.NETWORK]?.id}))}},[t,e]);return(0,r.jsx)(o.A,{type:"button",variant:"inline",onClick:i,...d.A.addDataTestId(d.A.TestId.SIDE_PANEL_TRIGGER),children:e[I.cr.NETWORK]?.name})},R=({parameters:e})=>{const t=(0,n.wA)(),i=(0,s.useCallback)(()=>{t((0,h.XP)({type:c.H.WIFI,id:e[I.dl.WLAN]?.id}))},[t,e]);return(0,r.jsx)(o.A,{type:"button",variant:"inline",onClick:i,...d.A.addDataTestId(d.A.TestId.SIDE_PANEL_TRIGGER),children:e[I.cr.WLAN]?.name})},g=({parameter:e})=>{const t=(0,n.wA)(),i=(0,s.useCallback)(()=>{t((0,h.XP)({type:c.H.DEVICE,id:e?.id}))},[t,e?.id]);return(0,r.jsx)(o.A,{type:"button",variant:"inline",onClick:i,...d.A.addDataTestId(d.A.TestId.SIDE_PANEL_TRIGGER),children:e?.name})},O=({parameters:e})=>(0,r.jsxs)(u.A,{gap:A.YC,inline:!0,children:[(0,r.jsxs)(u.A,{alignItems:"center",children:[(0,r.jsx)(m.A.Icon,{size:"small"})," ",(0,r.jsx)(m.A.Bytes,{size:"small",children:e[I.cr.DATA_DOWN]?.name})]}),(0,r.jsxs)(u.A,{alignItems:"center",children:[(0,r.jsx)(_.A.Icon,{size:"small"})," ",(0,r.jsx)(_.A.Bytes,{size:"small",children:e[I.cr.DATA_UP]?.name})]})]}),N=({parameters:e})=>(0,r.jsxs)(r.Fragment,{children:[e[I.cr.WIFI_STATS]?.name,(0,r.jsx)(C,{}),e[I.cr.SIGNAL_STRENGTH]?.name," ",(0,p.tz)().formatMessage({id:"COMMON_UNIT_DBM"})]})},345973(e,t,i){i.d(t,{A:()=>A});var r=i(274934),a=i(602086),s=i(938984),n=i(977872),o=i(470070),l=i(897166),d=i(570801),c=i(820633);const A=(0,a.memo)(({timestamp:e})=>{const{formatMessage:t}=(0,o.tz)(),i=(0,n.d4)(d.BQ),a=(0,n.d4)(l.hq),A=(0,n.d4)(c.zi);return(0,r.jsx)(s.A,{size:"small",color:"text-3",children:new Intl.DateTimeFormat(A,{month:"short",day:"numeric",hour:"numeric",minute:"numeric",hourCycle:i,timeZone:a}).format(e).replace(",",` ${t({id:"COMMON_AT"}).toLowerCase()}`)})})},299953(e,t,i){i.r(t),i.d(t,{default:()=>Ai});var r,a,s,n=i(274934),o=i(602086),l=i(396489),d=i.n(l),c=i(977872),A=i(329067),u=i(697038),_=i(820633),m=i(897166),h=i(570801),p=i(455425),x=i(52685),T=i(697500),I=i(535322),C=i(357159),S=i(938984),M=i(263705),R=i(239875),g=i(927027),O=i(470070),N=i(947414),D=i(247816),E=i(100978),P=i(309130);!function(e){e.NR="nr",e.LTE="lte"}(r||(r={})),function(e){e.RSRP="rsrp",e.SINR="sinr",e.RSRQ="rsrq"}(a||(a={})),function(e){e.AVG_NR_RSRP_DBM="avg_nr_rsrp_dbm",e.AVG_NR_SINR_DB="avg_nr_sinr_db",e.AVG_NR_RSRQ_DB="avg_nr_rsrq_db",e.AVG_LTE_RSRP_DBM="avg_lte_rsrp_dbm",e.AVG_LTE_SINR_DB="avg_lte_sinr_db",e.AVG_LTE_RSRQ_DB="avg_lte_rsrq_db"}(s||(s={}));var j=i(814557);const L=(e,t)=>j.Ay[`desktop-color-${(()=>{switch(e){case a.RSRP:return"ublue";case a.SINR:return"green";case a.RSRQ:return"orange"}})()}-06-${t}`],b=(0,D.A)(E.A)`
  flex-direction: column;
  position: relative;
`,f=(0,D.A)(E.A)`
  flex-direction: column;
  position: relative;
  &:not(:first-child):not(:last-child) {
    margin-top: ${P.Yc};
  }
`,v=(0,D.A)(E.A)`
  flex-direction: column;
  position: relative;
`,y=(0,D.A)(E.A)`
  width: 8px;
  height: 3px;
`,w=(0,D.A)(y)`
  background: ${({theme:{themeName:e}})=>L(a.RSRP,e)};
`,B=(0,D.A)(y)`
  background: ${({theme:{themeName:e}})=>L(a.SINR,e)};
`,G=(0,D.A)(y)`
  background: ${({theme:{themeName:e}})=>L(a.RSRQ,e)};
`,Y=-120,k=Object.values(r),H=Object.values(a),$={value:0,left:0,top:0},W=[{value:-210,label:"-210"},{value:-180,label:"-180"},{value:-150,label:"-150"},{value:-120,label:"-120"},{value:-90,label:"-90"},{value:-60,label:"-60"},{value:-30,label:"-30"},{value:0,label:"0"},{value:30,label:"30"},{value:60,label:"60"},{value:90,label:"90"},{value:120,label:"120"},{value:150,label:"150"},{value:180,label:"180"},{value:210,label:"210"}];var F=i(991331);const z=({data:e,maxY:t,mouseData:i,getCoordinates:r,yAxisMax:a,yAxisMin:s,ispCellularSignalChartGraph:l,showTooltip:d,tooltipPortal:c,renderTooltip:A,ispCellularSignalChartType:u})=>{const{themeName:_}=(0,M.u)(),m=(0,o.useMemo)(()=>L(l,_),[_,l]),h=(0,o.useCallback)(e=>A(e,l,u),[A,l,u]);return(0,n.jsx)(F.A,{data:e,maxY:t,mouseData:i,getCoordinates:r,interpolation:"curved",allowCustomDots:!0,yAxisMax:a,yAxisMin:s,tooltipPortal:c,lineColor:m,renderTooltip:h,showTooltip:d,hideMissingData:!0,hideMissingDataLine:!0})};var V=i(142667),U=i(833388);const K=(0,D.A)(E.A)`
  flex-direction: column;
  gap: ${P.YC};
`,X=(0,D.A)(E.A)`
  justify-content: space-between;
  align-items: center;
`,Q=(0,D.A)(E.A)`
  align-items: center;
  gap: ${P.YC};
`,q=({ispCellularSignalChartType:e,intlDateTimeFormat:t,timestamp:i,interval:a,[s.AVG_NR_RSRP_DBM]:o,[s.AVG_NR_SINR_DB]:l,[s.AVG_NR_RSRQ_DB]:d,[s.AVG_LTE_RSRP_DBM]:c,[s.AVG_LTE_SINR_DB]:A,[s.AVG_LTE_RSRQ_DB]:u})=>{const _=((e,t,i)=>{switch(e){case r.NR:return t;case r.LTE:return i;default:return}})(e,o,c),m=((e,t,i)=>{switch(e){case r.NR:return t;case r.LTE:return i;default:return}})(e,l,A),h=((e,t,i)=>{switch(e){case r.NR:return t;case r.LTE:return i;default:return}})(e,d,u);return(0,n.jsxs)(K,{children:[(0,n.jsx)(X,{marginBottom:P.YC,children:(0,n.jsxs)(S.A,{size:"small",color:"text-2",children:[t.format(i)," - ",t.format(i+a)]})}),(0,n.jsxs)(X,{children:[(0,n.jsxs)(Q,{children:[(0,n.jsx)(w,{}),(0,n.jsx)(S.A,{size:"small",color:"text-2",children:(0,n.jsx)(O.sA,{id:"COMMON_RSRP"})})]}),(0,n.jsx)(S.A,{size:"small",color:"text-2",children:_?(0,n.jsxs)(n.Fragment,{children:[(0,U.i)(_)," ",(0,n.jsx)(O.sA,{id:"COMMON_UNIT_DBM"})]}):(0,n.jsx)(O.sA,{id:"COMMON_FALLBACK"})})]}),(0,n.jsxs)(X,{children:[(0,n.jsxs)(Q,{children:[(0,n.jsx)(B,{}),(0,n.jsx)(S.A,{size:"small",color:"text-2",children:(0,n.jsx)(O.sA,{id:"COMMON_SINR"})})]}),(0,n.jsx)(S.A,{size:"small",color:"text-2",children:m?(0,n.jsxs)(n.Fragment,{children:[(0,U.i)(m)," ",(0,n.jsx)(O.sA,{id:"COMMON_UNIT_DB"})]}):(0,n.jsx)(O.sA,{id:"COMMON_FALLBACK"})})]}),(0,n.jsxs)(X,{children:[(0,n.jsxs)(Q,{children:[(0,n.jsx)(G,{}),(0,n.jsx)(S.A,{size:"small",color:"text-2",children:(0,n.jsx)(O.sA,{id:"COMMON_RSRQ"})})]}),(0,n.jsx)(S.A,{size:"small",color:"text-2",children:h?(0,n.jsxs)(n.Fragment,{children:[(0,U.i)(h)," ",(0,n.jsx)(O.sA,{id:"COMMON_UNIT_DB"})]}):(0,n.jsx)(O.sA,{id:"COMMON_FALLBACK"})})]})]})},Z=({top:e,left:t,tooltipProps:i,chartWidth:r,chartHeight:a,hidden:s,innerColor:o,tooltipRenderCondition:l,ispCellularSignalChartType:d,intlDateTimeFormat:c,timestamp:A,interval:u,avg_nr_rsrp_dbm:_,avg_nr_sinr_db:m,avg_nr_rsrq_db:h,avg_lte_rsrp_dbm:p,avg_lte_sinr_db:x,avg_lte_rsrq_db:T})=>(0,n.jsx)(V.A,{width:230,topA:e,leftA:t,topB:i.top,leftB:i.left,chartWidth:r,chartHeight:a,hidden:s,description:(0,n.jsx)(q,{ispCellularSignalChartType:d,intlDateTimeFormat:c,timestamp:A,interval:u,avg_nr_rsrp_dbm:_,avg_nr_sinr_db:m,avg_nr_rsrq_db:h,avg_lte_rsrp_dbm:p,avg_lte_sinr_db:x,avg_lte_rsrq_db:T}),innerColor:o,tooltipRenderCondition:l}),J=(0,D.A)(E.A)`
  gap: ${P.YC};
  flex-wrap: wrap;
  margin-top: ${P.Yc};
`,ee=(0,D.A)(E.A)`
  align-items: center;
  gap: ${P.YC};
  white-space: nowrap;
  &:not(:last-child) {
    margin-right: ${P.xO};
  }
`,te={[a.RSRP]:{labelId:"COMMON_SIGNAL_STRENGTH",descriptionId:"COMMON_RSRP",legend:(0,n.jsx)(w,{})},[a.SINR]:{labelId:"ISP_SIGNAL_STABILITY",descriptionId:"COMMON_SINR",legend:(0,n.jsx)(B,{})},[a.RSRQ]:{labelId:"ISP_CHANNEL_EFFICIENCY",descriptionId:"COMMON_RSRQ",legend:(0,n.jsx)(G,{})}},ie=()=>(0,n.jsx)(J,{children:H.map(e=>(({labelId:t,descriptionId:i,legend:r})=>(0,n.jsxs)(ee,{children:[r,(0,n.jsx)(S.A,{size:"small",color:"text-2",children:(0,n.jsx)(O.sA,{id:t})}),(0,n.jsxs)(S.A,{size:"small",color:"text-3",children:["(",(0,n.jsx)(O.sA,{id:i}),")"]})]},e))(te[e]))}),re=[20,0,0,24];var ae;!function(e){e.TOOLTIP_INTL_DATE_TIME_FORMAT="tooltipIntlDateTimeFormat",e.ISP_PERIOD="ispPeriod",e.ISP_INTERVAL="ispInterval",e.ISP_HISTORY_FIRST_TIMESTAMP="ispHistoryFirstTimestamp",e.ISP_HISTORY_LAST_TIMESTAMP="ispHistoryLastTimestamp",e.ISP_SPEED_TEST_FIRST_TIMESTAMP="ispSpeedTestFirstTimestamp",e.ISP_SPEED_TEST_LAST_TIMESTAMP="ispSpeedTestLastTimestamp",e.ISP_PERIOD_INTL_DATE_TIME_FORMAT_MAP="ispPeriodIntlDateTimeFormatMap"}(ae||(ae={}));const se=(0,o.createContext)({[ae.TOOLTIP_INTL_DATE_TIME_FORMAT]:void 0,[ae.ISP_PERIOD]:void 0,[ae.ISP_INTERVAL]:void 0,[ae.ISP_HISTORY_FIRST_TIMESTAMP]:void 0,[ae.ISP_HISTORY_LAST_TIMESTAMP]:void 0,[ae.ISP_SPEED_TEST_FIRST_TIMESTAMP]:void 0,[ae.ISP_SPEED_TEST_LAST_TIMESTAMP]:void 0,[ae.ISP_PERIOD_INTL_DATE_TIME_FORMAT_MAP]:void 0}),ne=(e,t)=>{const i=({value:e})=>"number"==typeof e?e:Number(e),r=[...W.map(i)].sort((e,t)=>e-t),a=r.findLastIndex(t=>t<=e),s=r.findIndex(e=>e>=t),n=r[Math.max(a-1,0)],o=r[Math.min(s+1,r.length-1)];return W.filter(e=>{const t=i(e);return t>=n&&t<=o})},oe=({[A.G.HISTORY]:e})=>{const{themeName:t}=(0,M.u)(),{ref:i,width:l=0}=(0,R.A)(),d=(0,o.useRef)(null),c=(0,o.useRef)(null),u=(0,o.useRef)($),_=(0,o.useRef)($),{formatMessage:m}=(0,O.tz)(),{[ae.TOOLTIP_INTL_DATE_TIME_FORMAT]:h,[ae.ISP_PERIOD]:p,[ae.ISP_HISTORY_FIRST_TIMESTAMP]:x,[ae.ISP_HISTORY_LAST_TIMESTAMP]:T,[ae.ISP_INTERVAL]:I,[ae.ISP_PERIOD_INTL_DATE_TIME_FORMAT_MAP]:D}=(0,o.useContext)(se),{nrRsrpData:E,nrSinrData:P,nrRsrqData:j,lteRsrpData:y,lteSinrData:w,lteRsrqData:B,highestLteSinrValue:G,highestNrSinrValue:H,lowestLteRsrpValue:W,lowestLteRsrqValue:F,lowestNrRsrpValue:V,lowestNrRsrqValue:U}=(0,o.useMemo)(()=>{const t=[],i=[],r=[],a=[],n=[],o=[];let l=0,d=0,c=0,u=0,_=0,m=0;for(let h=0;h<e.length;h+=1){const{[A.I.TIMESTAMP]:p,[A.I.AVG_NR_RSRP_DBM]:x,[A.I.AVG_NR_SINR_DB]:T,[A.I.AVG_NR_RSRQ_DB]:I,[A.I.AVG_LTE_RSRP_DBM]:C,[A.I.AVG_LTE_SINR_DB]:S,[A.I.AVG_LTE_RSRQ_DB]:M}=e[h],R={[s.AVG_NR_RSRP_DBM]:x,[s.AVG_NR_SINR_DB]:T,[s.AVG_NR_RSRQ_DB]:I,[s.AVG_LTE_RSRP_DBM]:C,[s.AVG_LTE_SINR_DB]:S,[s.AVG_LTE_RSRQ_DB]:M};t.push({x:p,y:x,custom:R}),c=Math.min(c,x||0),i.push({x:p,y:T}),l=Math.max(l,T||0),r.push({x:p,y:I}),u=Math.min(u,I||0),a.push({x:p,y:C,custom:R}),_=Math.min(_,C||0),n.push({x:p,y:S}),d=Math.max(d,S||0),o.push({x:p,y:M}),m=Math.min(m,M||0)}return{nrRsrpData:t,nrSinrData:i,nrRsrqData:r,lteRsrpData:a,lteSinrData:n,lteRsrqData:o,highestLteSinrValue:d,lowestLteRsrpValue:_,lowestLteRsrqValue:m,highestNrSinrValue:l,lowestNrRsrpValue:c,lowestNrRsrqValue:u}},[e]),K=(0,o.useMemo)(()=>ne(Math.min(Math.min(Number.isFinite(V)?V:Y,Number.isFinite(U)?U:Y),Y),Math.max(H,60)),[V,U,H]),X=(0,o.useMemo)(()=>ne(Math.min(Math.min(Number.isFinite(W)?W:Y,Number.isFinite(F)?F:Y),Y),Math.max(G,60)),[W,F,G]),Q=(0,o.useMemo)(()=>(0,g.v)([x,T],7).map((e,t,i)=>({value:e,label:t+1===i.length?m({id:"COMMON_NOW"}):t%2==0?D[p].format(e):void 0})),[x,T,D,p,m]),q=(0,o.useCallback)(e=>e===a.RSRP,[]),J=(0,o.useCallback)(e=>{switch(e){case r.NR:return d.current||void 0;case r.LTE:return c.current||void 0;default:return}},[]),ee=(0,o.useCallback)(e=>{switch(e){case r.NR:return u;case r.LTE:return _;default:return{current:$}}},[]),te=(0,o.useCallback)(e=>ee(e).current,[ee]),oe=(0,o.useCallback)(({top:e,left:i,hidden:r,x:a,y:o,custom:{[s.AVG_NR_RSRP_DBM]:d=0,[s.AVG_NR_SINR_DB]:c=0,[s.AVG_NR_RSRQ_DB]:A=0,[s.AVG_LTE_RSRP_DBM]:u=0,[s.AVG_LTE_SINR_DB]:_=0,[s.AVG_LTE_RSRQ_DB]:m=0}={}},p,x)=>{const T=q(p);return T&&(ee(x).current={value:o,left:i,top:e}),(0,n.jsx)(Z,{top:e,left:i,tooltipProps:te(x),chartWidth:l,chartHeight:180,hidden:r,innerColor:L(p,t),tooltipRenderCondition:T,ispCellularSignalChartType:x,intlDateTimeFormat:h,timestamp:a,interval:I,avg_nr_rsrp_dbm:d,avg_nr_sinr_db:c,avg_nr_rsrq_db:A,avg_lte_rsrp_dbm:u,avg_lte_sinr_db:_,avg_lte_rsrq_db:m})},[t,I,h,l,q,te,ee]),le=(0,o.useCallback)(({getCoordinates:e,mouseData:t,maxY:i,yAxisMax:r,yAxisMin:s,chartHovered:o,ispCellularSignalChartType:l})=>(0,n.jsx)(z,{data:E,maxY:i,mouseData:t,getCoordinates:e,yAxisMax:r,yAxisMin:s,ispCellularSignalChartGraph:a.RSRP,showTooltip:o,renderTooltip:oe,tooltipPortal:J(l),ispCellularSignalChartType:l}),[E,oe,J]),de=(0,o.useCallback)(({getCoordinates:e,mouseData:t,maxY:i,yAxisMax:r,yAxisMin:s,chartHovered:o,ispCellularSignalChartType:l})=>(0,n.jsx)(z,{data:P,ispCellularSignalChartGraph:a.SINR,maxY:i,mouseData:t,getCoordinates:e,yAxisMax:r,yAxisMin:s,renderTooltip:oe,showTooltip:o,tooltipPortal:J(l),ispCellularSignalChartType:l}),[P,oe,J]),ce=(0,o.useCallback)(({getCoordinates:e,mouseData:t,maxY:i,yAxisMax:r,yAxisMin:s,chartHovered:o,ispCellularSignalChartType:l})=>(0,n.jsx)(z,{data:j,ispCellularSignalChartGraph:a.RSRQ,maxY:i,mouseData:t,getCoordinates:e,yAxisMax:r,yAxisMin:s,renderTooltip:oe,showTooltip:o,tooltipPortal:J(l),ispCellularSignalChartType:l}),[j,oe,J]),Ae=(0,o.useCallback)(({getCoordinates:e,mouseData:t,maxY:i,yAxisMax:r,yAxisMin:s,chartHovered:o,ispCellularSignalChartType:l})=>(0,n.jsx)(z,{data:y,ispCellularSignalChartGraph:a.RSRP,maxY:i,mouseData:t,getCoordinates:e,yAxisMax:r,yAxisMin:s,renderTooltip:oe,showTooltip:o,tooltipPortal:J(l),ispCellularSignalChartType:l}),[y,oe,J]),ue=(0,o.useCallback)(({getCoordinates:e,mouseData:t,maxY:i,yAxisMax:r,yAxisMin:s,chartHovered:o,ispCellularSignalChartType:l})=>(0,n.jsx)(z,{data:w,ispCellularSignalChartGraph:a.SINR,maxY:i,mouseData:t,getCoordinates:e,yAxisMax:r,yAxisMin:s,renderTooltip:oe,showTooltip:o,tooltipPortal:J(l),ispCellularSignalChartType:l}),[w,oe,J]),_e=(0,o.useCallback)(({getCoordinates:e,mouseData:t,maxY:i,yAxisMax:r,yAxisMin:s,chartHovered:o,ispCellularSignalChartType:l})=>(0,n.jsx)(z,{data:B,ispCellularSignalChartGraph:a.RSRQ,maxY:i,mouseData:t,getCoordinates:e,yAxisMax:r,yAxisMin:s,renderTooltip:oe,showTooltip:o,tooltipPortal:J(l),ispCellularSignalChartType:l}),[B,oe,J]),me=(0,o.useCallback)((e,t,i,r,a,s,o)=>(0,n.jsxs)(n.Fragment,{children:[le({getCoordinates:e,mouseData:t,maxY:i,yAxisMax:r,yAxisMin:a,chartHovered:s,ispCellularSignalChartType:o}),de({getCoordinates:e,mouseData:t,maxY:i,yAxisMax:r,yAxisMin:a,chartHovered:s,ispCellularSignalChartType:o}),ce({getCoordinates:e,mouseData:t,maxY:i,yAxisMax:r,yAxisMin:a,chartHovered:s,ispCellularSignalChartType:o})]}),[le,de,ce]),he=(0,o.useCallback)((e,t,i,r,a,s,o)=>(0,n.jsxs)(n.Fragment,{children:[Ae({getCoordinates:e,mouseData:t,maxY:i,yAxisMax:r,yAxisMin:a,chartHovered:s,ispCellularSignalChartType:o}),ue({getCoordinates:e,mouseData:t,maxY:i,yAxisMax:r,yAxisMin:a,chartHovered:s,ispCellularSignalChartType:o}),_e({getCoordinates:e,mouseData:t,maxY:i,yAxisMax:r,yAxisMin:a,chartHovered:s,ispCellularSignalChartType:o})]}),[Ae,ue,_e]),pe=(0,o.useCallback)(e=>(t,i,a,s,n,o,l,d,c,A)=>(()=>{switch(e){case r.NR:return me;case r.LTE:return he;default:return N.P1}})()(t,i,a,o,l,A,e),[me,he]),xe=(0,o.useCallback)(e=>{switch(e){case r.NR:return"ISP_5G_SIGNAL";case r.LTE:return"ISP_LTE_SIGNAL";default:return"COMMON_FALLBACK"}},[]),Te=(0,o.useCallback)(e=>{switch(e){case r.NR:return K;case r.LTE:return X;default:return[]}},[K,X]),Ie=(0,o.useCallback)(e=>{switch(e){case r.NR:return d;case r.LTE:return c;default:return null}},[]);return(0,n.jsxs)(b,{ref:i,children:[k.map(e=>(0,n.jsxs)(f,{children:[(0,n.jsx)(S.A,{size:"medium",color:"text-2",children:(0,n.jsx)(O.sA,{id:xe(e)})}),(0,n.jsxs)(v,{children:[(0,n.jsx)(C.A,{yAxis:Te(e),xAxis:Q,width:l,height:180,margin:re,children:pe(e)},e),(0,n.jsx)("div",{ref:Ie(e)})]})]},e)),(0,n.jsx)(ie,{})]})},le=(0,D.A)(E.A)`
  flex-direction: column;
  gap: ${P.xO};
`,de=({[A.G.HISTORY]:e,children:t})=>(0,n.jsx)(I.A,{children:(0,n.jsxs)(le,{children:[t,(0,n.jsx)(oe,{history:e})]})});var ce=i(618965);const Ae=(0,D.A)(E.A)`
  width: 100%;
  height: 148px;
  flex-direction: column;
  position: relative;
  margin-bottom: ${P.fS};
`;var ue;!function(e){e.HEALTHY="healthy",e.WARNING="warning",e.CRITICAL="critical"}(ue||(ue={}));const _e="ISP_LATENCY_GRAPH_GRADIENT_ID",me={[ue.HEALTHY]:"green-06",[ue.WARNING]:"orange-06",[ue.CRITICAL]:"red-06"},he={[u.c9.WIRED]:{[ue.HEALTHY]:0,[ue.WARNING]:40,[ue.CRITICAL]:80},[u.c9.MBB]:{[ue.HEALTHY]:0,[ue.WARNING]:100,[ue.CRITICAL]:150}},pe={portal:!0},xe=(0,D.A)(E.A)`
  flex-direction: column;
  gap: ${P.YC};
`,Te=(0,D.A)(E.A)`
  justify-content: space-between;
  align-items: center;
`,Ie=({intlDateTimeFormat:e,timestamp:t,avg_latency_ms:i,max_latency_ms:r,interval:a})=>(0,n.jsxs)(xe,{children:[(0,n.jsxs)(Te,{marginBottom:P.YC,children:[e.format(t)," - ",e.format(t+a)]}),Number.isFinite(i)?(0,n.jsxs)(Te,{children:[(0,n.jsx)(S.A,{size:"inherit",color:"inherit",children:(0,n.jsx)(O.sA,{id:"COMMON_AVERAGE"})}),(0,U.i)(i||0)," ",(0,n.jsx)(O.sA,{id:"COMMON_UNIT_MS"})]}):null,Number.isFinite(r)?(0,n.jsxs)(Te,{children:[(0,n.jsx)(S.A,{size:"inherit",color:"inherit",children:(0,n.jsx)(O.sA,{id:"COMMON_MAXIMUM"})}),(0,U.i)(r||0)," ",(0,n.jsx)(O.sA,{id:"COMMON_UNIT_MS"})]}):null]}),Ce=({[A.G.HISTORY]:e,[u.p5.TYPE]:t})=>{const{formatMessage:i}=(0,O.tz)(),{[ae.TOOLTIP_INTL_DATE_TIME_FORMAT]:r,[ae.ISP_PERIOD]:a,[ae.ISP_HISTORY_FIRST_TIMESTAMP]:s,[ae.ISP_HISTORY_LAST_TIMESTAMP]:l,[ae.ISP_INTERVAL]:d,[ae.ISP_PERIOD_INTL_DATE_TIME_FORMAT_MAP]:c}=(0,o.useContext)(se),{ref:_,width:m=0,height:h=0}=(0,R.A)(),{themeName:p}=(0,M.u)(),x=(0,o.useRef)(null),{data:T,highestYAxis:I}=(0,o.useMemo)(()=>{const t=[];let i=0;for(let r=0;r<e.length;r+=1){const{[A.I.TIMESTAMP]:a,[A.I.AVG_LATENCY_MS]:s,[A.I.MAX_LATENCY_MS]:n}=e[r];t.push({x:a,y:s,custom:{[A.I.MAX_LATENCY_MS]:n}}),i=Math.max(i,s||0)}return{data:t,highestYAxis:i}},[e]),S=(0,o.useMemo)(()=>(0,g.Y)(Math.max(I,60),5).map(({value:e,label:t},r)=>({value:e,label:0===r?i({id:"COMMON_UNIT_MS"}):t})),[I,i]),N=(0,o.useCallback)((e,t,r)=>t+1===r?i({id:"COMMON_NOW"}):t%2==0?c[a].format(e):void 0,[a,i,c]),D=(0,o.useMemo)(()=>(0,g.v)([s,l],7).map((e,t,i)=>({value:e,label:N(e,t,i.length)})),[s,l,N]),E=(0,o.useCallback)(({top:e,left:t,hidden:i,x:a,y:s,custom:o})=>e&&t&&s?(0,n.jsx)(ce.A,{width:240,left:t,top:e,description:(0,n.jsx)(Ie,{intlDateTimeFormat:r,timestamp:a,avg_latency_ms:s,max_latency_ms:o?.[A.I.MAX_LATENCY_MS],interval:d}),hidden:i,tooltipProps:pe}):null,[r,d]),P=(0,o.useCallback)(e=>E(e),[E]),{[ue.CRITICAL]:L,[ue.WARNING]:b,[ue.HEALTHY]:f}=(0,o.useMemo)(()=>({[ue.CRITICAL]:j.Ay[`desktop-color-${me[ue.CRITICAL]}-${p}`],[ue.WARNING]:j.Ay[`desktop-color-${me[ue.WARNING]}-${p}`],[ue.HEALTHY]:j.Ay[`desktop-color-${me[ue.HEALTHY]}-${p}`]}),[p]),v=(0,o.useCallback)(()=>{const e=100*Math.min(Math.max(I,0),I)/I,i=e-100*Math.min(he[t]?.[ue.CRITICAL],I)/I,r=e-100*Math.min(he[t]?.[ue.WARNING],I)/I;return(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:_e,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[i>0?(0,n.jsx)("stop",{offset:`${i}%`,stopColor:L,stopOpacity:.7}):null,r>0?(0,n.jsx)("stop",{offset:`${r}%`,stopColor:b,stopOpacity:.7}):null,(0,n.jsx)("stop",{offset:"100%",stopColor:f,stopOpacity:.7})]})})},[I,t,L,b,f]),y=(0,o.useCallback)((e,t,i,r,a,s,o,l,d,c)=>(0,n.jsx)(F.A,{data:T,maxY:i,mouseData:t,getCoordinates:e,lineColor:"transparent",variant:"gradientArea",interpolation:"curved",customGradientId:_e,allowCustomDots:!0,renderCustomGradient:v,yAxisMax:s,yAxisMin:o,y2AxisMax:l,y2AxisMin:d,showTooltip:c,renderTooltip:P,tooltipPortal:x?.current||void 0,hideMissingDataLine:!0}),[T,P,v]);return(0,n.jsxs)(Ae,{ref:_,children:[(0,n.jsx)(C.A,{xAxis:D,yAxis:S,width:m,height:h,margin:re,children:y}),(0,n.jsx)("div",{ref:x})]})},Se=(0,D.A)(E.A)`
  flex-direction: column;
`,Me=(0,D.A)(E.A)`
  width: 100%;
  justify-content: space-between;
  position: relative;
`,Re=(0,D.A)(E.A)`
  flex-direction: column;
  gap: ${P.YC};
  max-width: 45%;
  &:last-child {
    img {
      margin-left: auto;
    }
  }
`;var ge=i(579902),Oe=i(421314);const Ne=(0,o.memo)(({[u.p5.ISP]:{[u.rs.NAME]:e,[u.rs.ASN]:t}})=>(0,n.jsxs)(Re,{children:[(0,n.jsx)(ge.A,{asn:t,name:e,style:{width:32,height:32},useFallback:!0}),(0,n.jsx)(Oe.A,{size:"small",weight:"bold",children:e||(0,n.jsx)(O.sA,{id:"COMMON_ISP"})})]}));var De=i(974390),Ee=i(754924),Pe=i(347625),je=i(795206),Le=i(541819);const be=(0,o.memo)(()=>{const e=(0,c.wA)(),t=(0,c.d4)(m.vc),i=(0,c.d4)(Ee.$x),r=(0,c.d4)(Ee.hp),[a,s]=(0,o.useState)(r),[l,d]=(0,o.useState)(i);return(0,o.useEffect)(()=>{i&&r||e((0,je.pI)(t)).then(({data:e})=>{const t=Array.isArray(e)?e[0]:e;s(t.name||""),d(t.model||"")})},[e,t,i,r]),(0,n.jsxs)(Re,{children:[(0,n.jsx)(De.A,{variant:Le.Hx.NOPADDING,model:l,width:32,height:32}),(0,n.jsx)(Oe.A,{size:"small",weight:"bold",children:(0,Pe.Q)({name:a,model:l,mac:t})})]})});var fe=i(291508);const ve=(0,D.A)(E.A)`
  position: absolute;
  width: 100%;
  height: 100%;
`,ye=(0,D.A)(E.A,(0,fe.A)("ispLatencyGraphState"))`
  width: 100%;
  height: 1px;
  background: ${({theme:{themeName:e},ispLatencyGraphState:t})=>j.Ay[`desktop-color-${me[t]}-${e}`]};
  position: absolute;
  top: ${P.Ln};
  clip-path: inset(0 ${32}px 0 ${32}px);
`;var we=i(669439);const Be=(0,D.A)(E.A)`
  svg {
    position: absolute;
    left: 50%;
    top: 80%;
    transform: translate(-50%, -50%);
  }
`,Ge=(0,D.A)("span")`
  white-space: nowrap;
`;var Ye=i(600191),ke=i(343954);const He={[ue.HEALTHY]:"ISP_LATENCY_LOOKS_GOOD",[ue.WARNING]:"ISP_LATENCY_BRIEFLY_HIGH",[ue.CRITICAL]:"ISP_LATENCY_SPIKED"},$e={[ue.HEALTHY]:ke.A,[ue.WARNING]:Ye.A,[ue.CRITICAL]:Ye.A},We=({[u.p5.AVG_LATENCY_MS]:e,ispLatencyGraphState:t})=>{const{themeName:i}=(0,M.u)(),{[ae.ISP_PERIOD]:r}=(0,o.useContext)(se),a=(0,o.useMemo)(()=>$e[t],[t]),s=(0,o.useMemo)(()=>j.Ay[`desktop-color-${me[t]}-${i}`],[t,i]);return a?(0,n.jsx)(Be,{children:(0,n.jsx)(we.A,{description:(0,n.jsx)(Ge,{children:(0,n.jsx)(O.sA,{id:He[t],values:{ispPeriod:r,latency:(0,n.jsxs)(S.A,{size:"inherit",style:{color:s},children:[(0,U.i)(e)," ",(0,n.jsx)(O.sA,{id:"COMMON_UNIT_MS"})]})}})}),children:(0,n.jsx)(a,{color:s,size:"original"})})}):null},Fe=(0,o.memo)(({[u.p5.TYPE]:e,[u.p5.AVG_LATENCY_MS]:t})=>{const i=(0,o.useMemo)(()=>{const i=he[e];return t>=i?.[ue.CRITICAL]?ue.CRITICAL:t>=i?.[ue.WARNING]?ue.WARNING:ue.HEALTHY},[e,t]);return(0,n.jsxs)(ve,{children:[(0,n.jsx)(ye,{ispLatencyGraphState:i}),(0,n.jsx)(We,{avg_latency_ms:t,ispLatencyGraphState:i})]})}),ze=({[u.p5.ISP]:e,[u.p5.TYPE]:t,[u.p5.AVG_LATENCY_MS]:i})=>Number.isFinite(i)?(0,n.jsxs)(Me,{children:[(0,n.jsx)(Ne,{isp:e}),(0,n.jsx)(Fe,{type:t,avg_latency_ms:i}),(0,n.jsx)(be,{})]}):null,Ve=({[A.G.HISTORY]:e,[u.p5.ISP]:t,[u.p5.TYPE]:i,children:r})=>{const a=e.reduce((e,{[A.I.AVG_LATENCY_MS]:t=0})=>e+t,0)/e.length,s=(0,o.useMemo)(()=>(0,n.jsxs)(Se,{children:[r,(0,n.jsx)(Ce,{history:e,type:i}),(0,n.jsx)(ze,{isp:t,type:i,avg_latency_ms:a})]}),[r,e,i,t,a]),l=(0,o.useMemo)(()=>[{id:"latency",label:(0,n.jsx)(O.sA,{id:"COMMON_INTERNET_QUALITY"}),openByDefault:!0,renderContent:()=>s}],[s]);return(0,n.jsx)(I.A,r?{children:s}:{type:I.I.ACCORDION,items:l})},Ue=(0,D.A)(E.A)`
  flex-direction: column;
`;var Ke=i(745702),Xe=i(383061);const Qe=Object.entries({[T.a.HOUR]:"COMMON_DATE_RANGE_SHORT_1H",[T.a.DAY]:"COMMON_DATE_RANGE_SHORT_1D",[T.a.WEEK]:"COMMON_DATE_RANGE_SHORT_1W",[T.a.MONTH]:"COMMON_DATE_RANGE_SHORT_1M"}).map(([e,t])=>({id:e,label:(0,n.jsx)(O.sA,{id:t})})),qe="ISP_PERIOD_UPDATER_TABS_CLASSNAME",Ze=(0,D.A)(E.A)`
  align-items: center;
  justify-content: space-between;
  width: 100%;
  .${qe} {
    justify-content: flex-end;
    > div:first-child {
      margin: unset;
    }
  }
`;var Je=i(878639),et=i(369430);const tt=(0,o.memo)(({titleId:e})=>{const t=(0,c.wA)(),i=(0,c.d4)(Je.U),r=(0,o.useCallback)(({id:e})=>{t((0,et.C)(e))},[t]);return(0,n.jsxs)(Ze,{children:[(0,n.jsx)(S.A,{size:"medium",color:"text-1",weight:"bold",children:(0,n.jsx)(O.sA,{id:e})}),(0,n.jsx)(Xe.A,{tabs:Qe,onSelectTab:r,selectedTab:i,variant:"filter",className:qe})]})}),it=(0,D.A)(E.A)`
  flex-direction: column;
  position: relative;
`;var rt,at,st=i(729736);!function(e){e.DOWNLOAD="download",e.UPLOAD="upload"}(rt||(rt={})),function(e){e.DOWNLOAD_BPS="download_bps",e.UPLOAD_BPS="upload_bps"}(at||(at={}));const nt=(e,t)=>j.Ay[`desktop-color-${(()=>{switch(e){case rt.DOWNLOAD:return"aqua-06";case rt.UPLOAD:return"purple-06"}})()}-${t}`],ot=(0,D.A)(E.A)`
  flex-direction: column;
  position: relative;
`,lt=(0,D.A)(E.A)`
  flex-direction: column;
  position: relative;
`,dt=(0,D.A)(E.A)`
  width: 8px;
  height: 3px;
`,ct=(0,D.A)(dt)`
  background: ${({theme:{themeName:e}})=>nt(rt.DOWNLOAD,e)};
`,At=(0,D.A)(dt)`
  background: ${({theme:{themeName:e}})=>nt(rt.UPLOAD,e)};
`,ut=Object.values(rt),_t={value:0,left:0,top:0},mt=({data:e,maxY:t,mouseData:i,getCoordinates:r,yAxisMax:a,yAxisMin:s,ispSpeedTestGraphType:l,showTooltip:d,tooltipPortal:c,renderTooltip:A})=>{const{themeName:u}=(0,M.u)(),_=(0,o.useMemo)(()=>nt(l,u),[u,l]),m=(0,o.useCallback)(e=>A(e,l),[A,l]),h=(0,o.useMemo)(()=>`${l}GradientId`,[l]),p=(0,o.useCallback)(()=>(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:h,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[(0,n.jsx)("stop",{offset:"0%",stopColor:_,stopOpacity:.5}),(0,n.jsx)("stop",{offset:"100%",stopColor:_,stopOpacity:.1})]})}),[_,h]);return(0,n.jsx)(F.A,{data:e,maxY:t,yAxisMax:a,yAxisMin:s,mouseData:i,getCoordinates:r,lineColor:_,variant:"gradientArea",interpolation:"curved",allowCustomDots:!0,tooltipPortal:c,customGradientId:h,renderCustomGradient:p,renderTooltip:m,showTooltip:d,hideMissingData:!0,hideMissingDataLine:!0})};var ht=i(320509);const pt=(0,D.A)(E.A)`
  flex-direction: column;
  gap: ${P.YC};
`,xt=(0,D.A)(E.A)`
  justify-content: space-between;
  align-items: center;
`,Tt=(0,D.A)(E.A)`
  align-items: center;
  gap: ${P.YC};
`,It=({intlDateTimeFormat:e,timestamp:t,...i})=>{const r=(({[at.DOWNLOAD_BPS]:e})=>e)(i),a=(({[at.UPLOAD_BPS]:e})=>e)(i);return(0,n.jsxs)(pt,{children:[(0,n.jsx)(xt,{marginBottom:P.YC,children:(0,n.jsx)(S.A,{size:"small",color:"text-2",children:e.format(t)})}),(0,n.jsxs)(xt,{children:[(0,n.jsxs)(Tt,{children:[(0,n.jsx)(ct,{}),(0,n.jsx)(S.A,{size:"small",color:"text-2",children:(0,n.jsx)(O.sA,{id:"COMMON_DOWNLOAD"})})]}),(0,n.jsx)(S.A,{size:"small",color:"text-2",children:r?(0,ht.zX)(r):(0,n.jsx)(O.sA,{id:"COMMON_FALLBACK"})})]}),(0,n.jsxs)(xt,{children:[(0,n.jsxs)(Tt,{children:[(0,n.jsx)(At,{}),(0,n.jsx)(S.A,{size:"small",color:"text-2",children:(0,n.jsx)(O.sA,{id:"COMMON_UPLOAD"})})]}),(0,n.jsx)(S.A,{size:"small",color:"text-2",children:a?(0,ht.zX)(a):(0,n.jsx)(O.sA,{id:"COMMON_FALLBACK"})})]})]})},Ct=({top:e,left:t,tooltipProps:i,chartWidth:r,chartHeight:a,hidden:s,innerColor:o,tooltipRenderCondition:l,intlDateTimeFormat:d,timestamp:c,download_bps:A,upload_bps:u})=>(0,n.jsx)(V.A,{width:230,topA:e,leftA:t,topB:i.top,leftB:i.left,chartWidth:r,chartHeight:a,hidden:s,description:(0,n.jsx)(It,{intlDateTimeFormat:d,timestamp:c,download_bps:A,upload_bps:u}),innerColor:o,tooltipRenderCondition:l}),St=(0,D.A)(E.A)`
  gap: ${P.YC};
  flex-wrap: wrap;
  margin-top: ${P.Yc};
`,Mt=(0,D.A)(E.A)`
  align-items: center;
  gap: ${P.YC};
  white-space: nowrap;
  &:not(:last-child) {
    margin-right: ${P.xO};
  }
`,Rt={[rt.DOWNLOAD]:{labelId:"COMMON_DOWNLOAD",legend:(0,n.jsx)(ct,{})},[rt.UPLOAD]:{labelId:"COMMON_UPLOAD",legend:(0,n.jsx)(At,{})}},gt=()=>(0,n.jsx)(St,{children:ut.map(e=>(({labelId:t,legend:i})=>(0,n.jsxs)(Mt,{children:[i,(0,n.jsx)(S.A,{size:"small",color:"text-2",children:(0,n.jsx)(O.sA,{id:t})})]},e))(Rt[e]))}),Ot=({[x.iD.SPEED_TESTS]:e})=>{const{formatMessage:t}=(0,O.tz)(),{themeName:i}=(0,M.u)(),{ref:r,width:a=0}=(0,R.A)(),s=(0,o.useRef)(null),l=(0,o.useRef)(_t),{[ae.TOOLTIP_INTL_DATE_TIME_FORMAT]:d,[ae.ISP_PERIOD]:c,[ae.ISP_SPEED_TEST_FIRST_TIMESTAMP]:A,[ae.ISP_SPEED_TEST_LAST_TIMESTAMP]:u,[ae.ISP_PERIOD_INTL_DATE_TIME_FORMAT_MAP]:_}=(0,o.useContext)(se),{downloadData:m,uploadData:h,highestDownloadValue:p,highestUploadValue:T}=(0,o.useMemo)(()=>{const t=[],i=[];let r=0,a=0;for(let s=0;s<e.length;s+=1){const{[x.Tj.TIMESTAMP]:n,[x.Tj.DOWNLOAD_BPS]:o=0,[x.Tj.UPLOAD_BPS]:l=0}=e[s];t.push({x:n,y:o,custom:{[at.DOWNLOAD_BPS]:o,[at.UPLOAD_BPS]:l}}),r=Math.max(r,o||0),i.push({x:n,y:l}),a=Math.max(a,l||0)}return{downloadData:t,uploadData:i,highestDownloadValue:r,highestUploadValue:a}},[e]),I=(0,o.useMemo)(()=>Math.max(p,T),[p,T]),S=(0,o.useMemo)(()=>(0,st.cS)(I,"bitrate","SI"),[I]),N=(0,o.useCallback)((e,t,i)=>0===i?S.unit:(e=>0===e?String(t):Number.isInteger(e)?e:Number.isFinite(e)?e.toFixed(1):e)((0,st.cS)(+e,"bitrate","SI",S.power).value),[S.unit,S.power]),D=(0,o.useMemo)(()=>(0,g.Y)(I>120?I+.1*I:120,7).map(({value:e,label:t},i)=>({value:e,label:N(e,t,i)})),[I,N]),E=(0,o.useCallback)((e,i,r)=>i+1===r?t({id:"COMMON_NOW"}):i%2==0?_[c].format(e):void 0,[c,_,t]),P=(0,o.useMemo)(()=>(0,g.v)([A,u],7).map((e,t,i)=>({value:e,label:E(e,t,i.length)})),[A,u,E]),j=(0,o.useCallback)(e=>e===rt.DOWNLOAD,[]),L=(0,o.useCallback)(({top:e,left:t,hidden:r,x:s,y:o,custom:{[at.DOWNLOAD_BPS]:c=0,[at.UPLOAD_BPS]:A=0}={}},u)=>{const _=j(u);return _&&(l.current={value:o,left:t,top:e}),(0,n.jsx)(Ct,{top:e,left:t,tooltipProps:l.current,chartWidth:a,chartHeight:180,hidden:r,innerColor:nt(u,i),tooltipRenderCondition:_,intlDateTimeFormat:d,timestamp:s,download_bps:c,upload_bps:A})},[i,d,a,j]),b=(0,o.useCallback)(({getCoordinates:e,mouseData:t,maxY:i,yAxisMax:r,yAxisMin:a,chartHovered:o})=>(0,n.jsx)(mt,{data:m,maxY:i,mouseData:t,getCoordinates:e,yAxisMax:r,yAxisMin:a,ispSpeedTestGraphType:rt.DOWNLOAD,showTooltip:o,renderTooltip:L,tooltipPortal:s.current||void 0}),[m,L]),f=(0,o.useCallback)(({getCoordinates:e,mouseData:t,maxY:i,yAxisMax:r,yAxisMin:a,chartHovered:o})=>(0,n.jsx)(mt,{data:h,ispSpeedTestGraphType:rt.UPLOAD,maxY:i,mouseData:t,getCoordinates:e,yAxisMax:r,yAxisMin:a,renderTooltip:L,showTooltip:o,tooltipPortal:s.current||void 0}),[h,L]),v=(0,o.useCallback)((e,t,i,r,a,s,o,l,d,c)=>(0,n.jsxs)(n.Fragment,{children:[b({getCoordinates:e,mouseData:t,maxY:i,yAxisMax:s,yAxisMin:o,chartHovered:c}),f({getCoordinates:e,mouseData:t,maxY:i,yAxisMax:s,yAxisMin:o,chartHovered:c})]}),[b,f]);return(0,n.jsxs)(ot,{ref:r,children:[(0,n.jsxs)(lt,{children:[(0,n.jsx)(C.A,{yAxis:D,xAxis:P,width:a,height:180,margin:re,children:v}),(0,n.jsx)("div",{ref:s})]}),(0,n.jsx)(gt,{})]})};var Nt=i(969288),Dt=i(502129),Et=i(43506),Pt=i(715320);const jt=(0,D.A)(E.A)`
  margin: ${P.xO} 0 ${P.kc} 0;
`,Lt=(0,o.memo)(()=>{const e=(0,Et.A)(`${Nt.wE}?${Pt.Qj}`);return(0,n.jsx)(jt,{children:(0,n.jsx)(Dt.A,{to:e,children:(0,n.jsx)(S.A,{color:"inherit",size:"medium",children:(0,n.jsx)(O.sA,{id:"ISP_SPEED_TEST_SETTINGS"})})})})});var bt,ft=i(656705);!function(e){e.DATE="date",e.DOWNLOAD="download",e.UPLOAD="upload"}(bt||(bt={}));const vt=e=>(0,n.jsx)(O.sA,{id:wt[e]});var yt=i(119425);const wt={[bt.DATE]:"COMMON_DATE",[bt.DOWNLOAD]:"COMMON_DOWNLOAD",[bt.UPLOAD]:"COMMON_UPLOAD"},Bt={[bt.DATE]:e=>vt(e),[bt.DOWNLOAD]:e=>vt(e),[bt.UPLOAD]:e=>vt(e)},Gt={[bt.DATE]:{size:140,minSize:140,maxSize:1/0},[bt.DOWNLOAD]:{size:100,minSize:100,maxSize:1/0},[bt.UPLOAD]:{size:80,minSize:80,maxSize:1/0}},Yt={[bt.DATE]:({[x.Tj.TIMESTAMP]:e})=>(0,n.jsx)(Oe.A,{size:"medium",children:(0,n.jsx)(yt.A,{date:new Date(e)})}),[bt.DOWNLOAD]:({[x.Tj.DOWNLOAD_BPS]:e})=>(0,n.jsx)(Oe.A,{size:"medium",color:"traffic-down",children:(0,ht.zX)(e)}),[bt.UPLOAD]:({[x.Tj.UPLOAD_BPS]:e})=>(0,n.jsx)(Oe.A,{size:"medium",color:"traffic-up",children:(0,ht.zX)(e)})},kt={[bt.DATE]:({[x.Tj.TIMESTAMP]:e})=>e,[bt.DOWNLOAD]:({[x.Tj.DOWNLOAD_BPS]:e})=>e,[bt.UPLOAD]:({[x.Tj.UPLOAD_BPS]:e})=>e},Ht=Object.values(bt);var $t=i(594005);const Wt=e=>e,Ft=({header:{id:e}})=>Bt[e](e),zt=e=>Gt[e],Vt=({column:{id:e},getValue:t})=>Yt[e](t()),Ut=Ht.map(e=>{return{id:e,accessorFn:Wt,header:Ft,cell:Vt,...zt(e),compare:(t=e,(0,$t.l0)(e=>kt[t](e))),enableResizing:!1,enableSorting:!0};var t});var Kt=i(565527);const Xt=(0,D.A)(E.A)`
  flex-direction: column;
  max-height: 320px;
  overflow: auto;
  thead {
    background: ${({theme:{themeName:e}})=>j.Ay[e===Kt.S.DARK?"desktop-color-neutral-01-dark":"desktop-color-neutral-00-light"]};
  }
`,Qt={id:bt.DATE,isAscending:!1},qt=({[x.iD.SPEED_TESTS]:e})=>(0,n.jsx)(Xt,{children:(0,n.jsx)(ft.A,{data:e,columns:Ut,width:"100%",stickyHeader:!0,sorting:Qt})}),Zt=(0,o.memo)(({[x.iD.SPEED_TESTS]:e})=>{const t=(0,o.useMemo)(()=>[{id:"speed-tests",label:(0,n.jsx)(O.sA,{id:"ISP_SPEED_TESTS"}),openByDefault:!0,renderContent:()=>(0,n.jsx)(it,{children:e.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Ot,{speed_tests:e}),(0,n.jsx)(Lt,{}),(0,n.jsx)(qt,{speed_tests:e})]}):(0,n.jsx)(S.A,{color:"text-3",size:"medium",children:(0,n.jsx)(O.sA,{id:"ISP_NO_SPEED_TESTS"})})})}],[e]);return(0,n.jsx)(I.A,{type:I.I.ACCORDION,items:t})});var Jt=i(999633),ei=i(205521),ti=i(449339);const ii={maxHeight:"calc(100vh - 245px)",minHeight:0,overflowX:"hidden",scrollbarGutter:"stable",width:"100%"};var ri=i(954702),ai=i(756893),si=i(130682),ni=i(576111);const oi=({index:e,ispLogs:t,style:i,theme:r,onClick:a})=>{const s=t[e];return(0,n.jsx)("div",{style:i,children:(0,n.jsx)(ai.A,{dotColor:j.Ay[`desktop-color-${si.fh[s.severity]}-${r}`],timestamp:s.timestamp,content:(0,n.jsx)(ni.A,{log:s}),footer:(0,n.jsx)(ri.A,{type:"button",fontSize:"small",onClick:a(s.id),children:(0,n.jsx)(O.sA,{id:"ISP_REVIEW"})})})},s.id)},li=(0,D.A)(E.A)`
  max-height: 296px;
`,di=(0,o.memo)(({[Ke.c.LOGS]:e})=>{const{themeName:t}=(0,M.u)(),i=(0,c.wA)(),r=(0,o.useCallback)(e=>()=>{i((0,ei.XP)({type:ti.H.LOG,id:e}))},[i]),{logsKey:a,rowProps:s}=(0,o.useMemo)(()=>({logsKey:e.map(({id:e})=>e).join(","),rowProps:{ispLogs:e,theme:t,onClick:r}}),[e,t,r]),l=(0,Jt.gr)({defaultRowHeight:120,key:a}),d=(0,o.useMemo)(()=>[{id:"ispLogs",label:(0,n.jsx)(O.sA,{id:"ISP_INTERNET_EVENT_LOGS"}),openByDefault:!0,renderContent:()=>(0,n.jsx)(li,{children:e.length?(0,n.jsx)(Jt.B8,{defaultHeight:120,overscanCount:3,rowComponent:oi,rowCount:e.length,rowHeight:l,rowProps:s,style:ii}):(0,n.jsx)(S.A,{color:"text-3",size:"medium",children:(0,n.jsx)(O.sA,{id:"ISP_NO_LOGS"})})})}],[e,l,s]);return(0,n.jsx)(I.A,{type:I.I.ACCORDION,items:d})}),ci=(0,o.memo)(({[u.p5.ISP]:e,[u.p5.TYPE]:t,[A.G.HISTORY]:i=[],[x.iD.SPEED_TESTS]:r=[],[Ke.c.LOGS]:a=[]})=>{const s=(0,c.d4)(_.zi),l=(0,c.d4)(m.hq),d=(0,c.d4)(h.BQ),I=(0,c.d4)(h.jc),C=(0,c.d4)(Je.U),{interval:S,firstHistoryTimestamp:M,lastHistoryTimestamp:R,firstSpeedTestTimestamp:g,lastSpeedTestTimestamp:O}=(0,o.useMemo)(()=>{const e=i[0]?.timestamp||0,t=i.at(-1)?.timestamp||0;return{interval:(i[1]?.timestamp||0)-(i[0]?.timestamp||0),firstHistoryTimestamp:e,lastHistoryTimestamp:t,firstSpeedTestTimestamp:Math.min(r[0]?.timestamp||0,e),lastSpeedTestTimestamp:Math.max(r.at(-1)?.timestamp||0,t)}},[i,r]),N=(0,o.useMemo)(()=>S===5*p.ti&&C===T.a.HOUR?T.a.HOUR:S===5*p.ti&&C===T.a.DAY?T.a.DAY:S===p.$_&&C===T.a.WEEK?T.a.WEEK:S===p.jU&&C===T.a.MONTH?T.a.MONTH:T.a.HOUR,[S,C]),D=(0,o.useMemo)(()=>({[ae.TOOLTIP_INTL_DATE_TIME_FORMAT]:new Intl.DateTimeFormat(s,{timeZone:l,hourCycle:d,hour:"numeric",minute:"numeric",day:"numeric",month:"short"}),[ae.ISP_PERIOD]:N,[ae.ISP_INTERVAL]:S,[ae.ISP_HISTORY_FIRST_TIMESTAMP]:M,[ae.ISP_HISTORY_LAST_TIMESTAMP]:R,[ae.ISP_SPEED_TEST_FIRST_TIMESTAMP]:g,[ae.ISP_SPEED_TEST_LAST_TIMESTAMP]:O,[ae.ISP_PERIOD_INTL_DATE_TIME_FORMAT_MAP]:{[T.a.HOUR]:new Intl.DateTimeFormat(s,{timeZone:l,hourCycle:d,hour:"numeric",minute:"2-digit"}),[T.a.DAY]:new Intl.DateTimeFormat(s,{timeZone:l,hourCycle:d,hour:"numeric",...I&&{minute:"numeric"}}),[T.a.WEEK]:new Intl.DateTimeFormat(s,{timeZone:l,hourCycle:d,weekday:"short"}),[T.a.MONTH]:new Intl.DateTimeFormat(s,{timeZone:l,hourCycle:d})}}),[s,l,d,I,N,S,M,R,g,O]);return(0,n.jsx)(se.Provider,{value:D,children:(0,n.jsxs)(Ue,{children:[t===u.c9.MBB?(0,n.jsx)(de,{history:i,children:(0,n.jsx)(tt,{titleId:"COMMON_CELLULAR_SIGNAL"})}):null,(0,n.jsx)(Ve,{history:i,isp:e,type:t,children:t===u.c9.WIRED?(0,n.jsx)(tt,{titleId:"COMMON_INTERNET_QUALITY"}):null}),(0,n.jsx)(Zt,{speed_tests:r}),(0,n.jsx)(di,{logs:a})]})})},d()),Ai=({activeItem:{[Ke.c.OVERVIEW]:{[u.p5.ISP]:e,[u.p5.TYPE]:t},[Ke.c.HISTORY]:{[A.G.HISTORY]:i=[]},[Ke.c.SPEED_TESTS]:{[x.iD.SPEED_TESTS]:r=[]},[Ke.c.LOGS]:a=[]}})=>(0,n.jsx)(ci,{isp:e,type:t,history:i,speed_tests:r,logs:a})},142667(e,t,i){i.d(t,{A:()=>T});var r=i(274934),a=i(618965),s=i(844993),n=i(247816),o=i(100978),l=i(291508);const d=(0,n.A)(o.A,(0,l.A)("innerColor","outerColor"))`
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
  g {
    transition: unset;
  }
  circle {
    &:first-child {
      ${({outerColor:e})=>e?`fill: ${e};`:""}
    }
    &:last-child {
      ${({innerColor:e})=>e?`fill: ${e};`:""}
      r: 4.5;
    }
  }
`,c=i(409844).AH`
  overflow: visible;
`,A=({chartWidth:e,chartHeight:t,top:i,left:a,innerColor:n,outerColor:o="#fff"})=>(0,r.jsx)(d,{innerColor:n,outerColor:o,children:(0,r.jsx)("svg",{width:e,height:t,className:c,children:a&&i?(0,r.jsx)(s.A,{hasAnimation:!1,x:a,y:i}):null})});var u=i(814557);const _=(0,n.A)(o.A,(0,l.A)("topA","topB","leftA","leftB","chartHeight","useFullHeightConnector"))`
  z-index: 1;
  border-left: 1px dashed
    ${({theme:{themeName:e}})=>u.Ay[`desktop-color-neutral-10-${e}`]};
  position: absolute;
  ${({topA:e,topB:t,leftA:i,leftB:r,chartHeight:a,useFullHeightConnector:s})=>`\n     top: ${s&&a?20:Math.min(e||0,t)}px;\n     height: ${s&&a?a-50:Math.max(e||0,t)-Math.min(e||0,t)}px;\n     left: ${((i||0)+r)/2-1}px;\n   `}
`,m=({topA:e,leftA:t,topB:i,leftB:a,chartHeight:s,useFullHeightConnector:n})=>(0,r.jsx)(_,{topA:e,topB:i,leftA:t,leftB:a,chartHeight:s,useFullHeightConnector:n}),h=(e,t,i)=>i?(e||0)+((e||0)<Math.round(t/2)?8:-8):(e||0)-8,p=(e,t)=>((e||0)+(t||0))/(t?2:1),x=(e,t,i,r)=>({maxWidth:"auto",...!r?.position&&i&&e&&t&&{position:e<Math.round(t/2)?"right":"left"},portal:!0,...r}),T=({width:e,topA:t,leftA:i,topB:s,leftB:n,chartWidth:o,chartHeight:l,hidden:d,description:c,innerColor:u,tooltipRenderCondition:_,tooltipProps:T={},useSideSwapping:I=!0,useFullHeightConnector:C=!1})=>d?null:(0,r.jsxs)(r.Fragment,{children:[_?(0,r.jsx)(a.A,{width:e,left:h(i,o,I),top:p(t,s),description:c,hidden:d,topMargin:4,tooltipProps:x(i,o,I,T)}):null,n&&s?(0,r.jsx)(m,{topA:t,topB:s,leftA:i,leftB:n,chartHeight:l,useFullHeightConnector:C}):null,(0,r.jsx)(A,{chartWidth:o,chartHeight:l,top:t,left:i,innerColor:u})]})},521376(e,t,i){var r;i.d(t,{U:()=>r}),function(e){e.ARROW_LEFT="ArrowLeft",e.ARROW_RIGHT="ArrowRight",e.ARROW_DOWN="ArrowDown",e.ARROW_UP="ArrowUp",e.ENTER="Enter",e.ESCAPE="Escape",e.BACKSPACE="Backspace",e.DELETE="Delete",e.TAB="Tab"}(r||(r={}))},239875(e,t,i){i.d(t,{A:()=>s});var r=i(602086);function a(e,t,i){return e[t]?e[t][0]?e[t][0][i]:e[t][i]:"contentBoxSize"===t?e.contentRect["inlineSize"===i?"width":"height"]:void 0}const s=function(e={}){const t=e.onResize,i=(0,r.useRef)(void 0);i.current=t;const s=e.round||Math.round,n=(0,r.useRef)(void 0),[o,l]=(0,r.useState)({width:void 0,height:void 0}),d=(0,r.useRef)(!1);(0,r.useEffect)(()=>(d.current=!1,()=>{d.current=!0}),[]);const c=(0,r.useRef)({width:void 0,height:void 0}),A=function(e,t){const i=(0,r.useRef)(null),a=(0,r.useRef)(null);a.current=t;const s=(0,r.useRef)(null),n=(0,r.useCallback)(()=>{const t=a.current,r=s.current||(t?t instanceof Element?t:t.current:null);i.current&&i.current.element===r&&i.current.subscriber===e||(i.current&&i.current.cleanup&&i.current.cleanup(),i.current={element:r,subscriber:e,cleanup:r?e(r):void 0})},[e]);return(0,r.useEffect)(()=>{n()},[n]),(0,r.useEffect)(()=>()=>{i.current&&i.current.cleanup&&(i.current.cleanup(),i.current=null)},[]),(0,r.useCallback)(e=>{s.current=e,n()},[n])}((0,r.useCallback)(t=>(n.current&&n.current.box===e.box&&n.current.round===s||(n.current={box:e.box,round:s,instance:new ResizeObserver(t=>{const r=t[0],n="border-box"===e.box?"borderBoxSize":"device-pixel-content-box"===e.box?"devicePixelContentBoxSize":"contentBoxSize",o=a(r,n,"inlineSize"),A=a(r,n,"blockSize"),u=o?s(o):void 0,_=A?s(A):void 0;if(c.current.width!==u||c.current.height!==_){const e={width:u,height:_};c.current.width=u,c.current.height=_,i.current?i.current(e):d.current||l(e)}})}),n.current.instance.observe(t,{box:e.box}),()=>{n.current&&n.current.instance.unobserve(t)}),[e.box,s]),e.ref);return(0,r.useMemo)(()=>({ref:A,width:o.width,height:o.height}),[A,o.width,o.height])}},715320(e,t,i){i.d(t,{Lv:()=>a,Mp:()=>s,Qj:()=>d,WN:()=>l,mv:()=>r,n9:()=>o,sC:()=>n});const r="highlightFieldId",a="resultId",s=`${r}=rsyslogd.remoteLoggingLocation.siem&${a}=security-static-33`,n="global_network.radiusprofiles",o=`${r}=${n}`,l="speedTest.enabled",d=`${r}=${l}`},656705(e,t,i){i.d(t,{A:()=>x});var r,a,s,n,o,l=i(274934),d=i(602086);!function(e){e.TABLE="table"}(r||(r={})),function(e){e.ROW_ID_MAP_BY_INDEX="rowIdMapByIndex",e.INDEX_MAP_BY_ROW_ID="indexMapByRowId"}(a||(a={})),function(e){e.ON_KEY_DOWN="onKeyDown",e.INCOMING_ROW_PROPS="incomingRowProps",e.HAS_ON_ROW_CLICK="hasOnRowClick"}(s||(s={})),function(e){e.INCOMING_ON_ROW_CLICK="incomingOnRowClick",e.LOCAL_CURRENT_INDEX="localCurrentIndex"}(n||(n={})),function(e){e.DATA_MAP_REFERENCE="dataMapReference",e.ROW_ID_MAP_BY_INDEX="rowIdMapByIndex",e.INDEX_MAP_BY_ROW_ID="indexMapByRowId",e.INCOMING_ON_ROW_CLICK="incomingOnRowClick",e.LOCAL_CURRENT_INDEX="localCurrentIndex",e.MULTI_SELECT_MODE="multiSelectMode"}(o||(o={}));const c="data-row-id";var A=i(202730),u=i(147045);var _=i(521376);const m=e=>e?.children?.[1]?.children;var h=i(587389);const p=(0,i(247816).A)(h.A)`
  tr {
    outline: none;
  }
`,x=({data:e=[],rowProps:t,onRowClick:i,...h})=>{const x=(0,d.useRef)(null),T=(0,d.useRef)(null),{[a.ROW_ID_MAP_BY_INDEX]:I,[a.INDEX_MAP_BY_ROW_ID]:C}=(({[r.TABLE]:e})=>{const[t,i]=(0,d.useState)(()=>e?m(e):void 0);(0,d.useEffect)(()=>{e&&i(m(e))},[e]);const{[a.ROW_ID_MAP_BY_INDEX]:s,[a.INDEX_MAP_BY_ROW_ID]:n}=(0,d.useMemo)(()=>{const e=new Map,i=new Map,r=t?.length;if(t&&r)for(let a=0;a<r;a+=1){const r=t[a].getAttribute(c);r&&(e.set(r,a),i.set(a,r))}return{[a.ROW_ID_MAP_BY_INDEX]:e,[a.INDEX_MAP_BY_ROW_ID]:i}},[t]);return{[a.ROW_ID_MAP_BY_INDEX]:s,[a.INDEX_MAP_BY_ROW_ID]:n}})({[r.TABLE]:x.current}),S=(e=>{const t=(0,d.useRef)(new Map),i=(0,d.useRef)(void 0);if(i.current!==e){i.current=e,t.current.clear();const r=e.length;for(let i=0;i<r;i+=1)t.current.set(e[i].id,e[i])}return t})(e),M=(({[o.DATA_MAP_REFERENCE]:e,[o.ROW_ID_MAP_BY_INDEX]:t,[o.INDEX_MAP_BY_ROW_ID]:i,[o.INCOMING_ON_ROW_CLICK]:r,[o.LOCAL_CURRENT_INDEX]:a,[o.MULTI_SELECT_MODE]:s})=>{const n=(0,d.useCallback)(e=>{e.preventDefault()},[]),l=(0,d.useCallback)(()=>{const t=e.current.get(i.get(a.current+1));t&&(r?.(t),a.current+=1)},[i,a,r,e]),c=(0,d.useCallback)(()=>{const t=e.current.get(i.get(a.current-1));t&&(r?.(t),a.current-=1)},[i,a,r,e]);return(0,d.useCallback)((e,{id:i})=>e=>{if(!s&&r){const r=t.get(i);if(Number.isFinite(r))switch(null===a.current&&(a.current=r),e.key){case _.U.ARROW_DOWN:n(e),l();break;case _.U.ARROW_UP:n(e),c()}}},[r,a,s,n,t,l,c])})({[o.DATA_MAP_REFERENCE]:S,[o.ROW_ID_MAP_BY_INDEX]:I,[o.INDEX_MAP_BY_ROW_ID]:C,[o.INCOMING_ON_ROW_CLICK]:i,[o.LOCAL_CURRENT_INDEX]:T,[o.MULTI_SELECT_MODE]:h.multiSelectMode}),R=(({[s.INCOMING_ROW_PROPS]:e,[s.ON_KEY_DOWN]:t,[s.HAS_ON_ROW_CLICK]:i})=>(0,d.useCallback)((r,a)=>({...i?{[u.L]:A.b.SIDE_PANEL_TRIGGER}:{},...e?.(r,a),[c]:r.id,tabIndex:0,onKeyDown:t(r,a)}),[e,t,i]))({[s.INCOMING_ROW_PROPS]:t,[s.ON_KEY_DOWN]:M,[s.HAS_ON_ROW_CLICK]:Boolean(i)}),g=(({[n.INCOMING_ON_ROW_CLICK]:e,[n.LOCAL_CURRENT_INDEX]:t})=>{const i=(0,d.useCallback)(i=>{t.current=null,e?.(i)},[e,t]);return e?i:void 0})({[n.INCOMING_ON_ROW_CLICK]:i,[n.LOCAL_CURRENT_INDEX]:T});return(0,l.jsx)(p,{ref:x,data:e,rowProps:R,onRowClick:g,tableHeight:e.length?"100%":void 0,virtualize:!0,virtualizeColumn:!0,overscan:6,overscanColumn:1,stickyHeader:!0,...h})}},927027(e,t,i){i.d(t,{Y:()=>a,v:()=>s});var r=i(752572);const a=(e,t,i=!1)=>{const a=t-1;let s=Math.ceil(e);if(Number.isNaN(s))return[];const n=s%a;return 0!==n&&(s+=a-n),(0,r.A)(t,e=>{return{value:t=e?Math.ceil(e*(s/a)):0,label:i?e%2==0&&String(t)||null:String(t)};var t}).reverse()},s=(e,t)=>{const[i]=e,r=[i],a=e.length-1;for(let i=1;i<t-1;i+=1){const s=i*a/(t-1),n=Math.floor(s).toFixed();r[i]=Math.round(e[n]+(e[Math.ceil(s).toFixed()]-e[n])*(+s-+n))}return r[t-1]=e[a],r}}}]);