"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[79301],{752104(e,s,i){i.d(s,{A:()=>n,Q:()=>r});var t=i(765567);const n="_",r=[t.ZM,t.Je]},453007(e,s,i){i.d(s,{A:()=>A});var t=i(938984),n=i(247816),r=i(291508);const A=(0,n.A)(t.A,(0,r.A)("colorOverride"))`
  ${({colorOverride:e})=>e?`color: ${e} !important`:""};
`},620627(e,s,i){i.d(s,{A:()=>o});var t=i(274934),n=i(938984),r=i(247816),A=i(309130),_=i(100978),l=i(535322);const d=(0,r.A)("div")`
  margin-right: ${A.kc};
`,c=(0,r.A)("div")`
  margin-left: ${A.kc};
`,o=({icon:e,closeIcon:s,nested:i,children:r,...A})=>(0,t.jsx)(l.A,{nested:i,...A,children:(0,t.jsxs)(_.A,{children:[(0,t.jsx)(d,{children:e}),(0,t.jsx)(n.A,{size:"medium",children:r}),s?(0,t.jsx)(c,{children:s}):null]})})},527153(e,s,i){i.d(s,{A:()=>c});var t=i(274934),n=i(602086),r=i(814557),A=i(263705),_=i(939940),l=i(931126);const d=({height:e,width:s,strength:i=0,color:n="currentColor",inactiveColor:r="currentColor"})=>(0,t.jsxs)("svg",{width:s,height:e,viewBox:"0 0 31 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{width:"2.2",height:"10",rx:"1",fill:i>=1?n:r}),(0,t.jsx)("rect",{x:"3.2",width:"2.2",height:"10",rx:"1",fill:i>=2?n:r}),(0,t.jsx)("rect",{x:"6.4",width:"2.2",height:"10",rx:"1",fill:i>=3?n:r}),(0,t.jsx)("rect",{x:"9.6",width:"2.2",height:"10",rx:"1",fill:i>=4?n:r}),(0,t.jsx)("rect",{x:"12.8",width:"2.2",height:"10",rx:"1",fill:i>=5?n:r}),(0,t.jsx)("rect",{x:"16",width:"2.2",height:"10",rx:"1",fill:i>=6?n:r}),(0,t.jsx)("rect",{x:"19.2",width:"2.2",height:"10",rx:"1",fill:i>=7?n:r}),(0,t.jsx)("rect",{x:"22.4",width:"2.2",height:"10",rx:"1",fill:i>=8?n:r}),(0,t.jsx)("rect",{x:"25.6",width:"2.2",height:"10",rx:"1",fill:i>=9?n:r}),(0,t.jsx)("rect",{x:"28.8",width:"2.2",height:"10",rx:"1",fill:i>=10?n:r})]}),c=({height:e,signal_percent:s,width:i})=>{const{themeName:c}=(0,A.u)(),{strength:o,color:a,inactiveColor:x}=(0,n.useMemo)(()=>({strength:(0,l.O)(s),color:(0,_._i)(s,c),inactiveColor:r.Ay[`desktop-color-neutral-05-${c}`]}),[s,c]);return(0,t.jsx)(d,{height:e,width:i,strength:o,color:a,inactiveColor:x})}},225211(e,s,i){i.d(s,{A:()=>n});var t=i(274934);const n=({strength:e,color:s,inactiveColor:i="currentColor",width:n,height:r})=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 27 26",width:n,height:r,children:(0,t.jsxs)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[(0,t.jsx)("rect",{fill:e>=1?s:i,x:"0",y:"16",width:"3",height:"10"}),(0,t.jsx)("rect",{fill:e>=2?s:i,x:"6",y:"12",width:"3",height:"14"}),(0,t.jsx)("rect",{fill:e>=3?s:i,x:"12",y:"8",width:"3",height:"18"}),(0,t.jsx)("rect",{fill:e>=4?s:i,x:"18",y:"4",width:"3",height:"22"}),(0,t.jsx)("rect",{fill:e>=5?s:i,x:"24",y:"0",width:"3",height:"26"})]})})},535322(e,s,i){i.d(s,{A:()=>I,I:()=>t});var t,n=i(274934),r=i(814557),A=i(158885),_=i(247816),l=i(565527),d=i(309130),c=i(100978),o=i(291508);!function(e){e.ACCORDION="accordion",e.BUTTON_LIST="buttonList"}(t||(t={}));const a=(0,_.A)(c.A,(0,o.A)("marginBottom","isButtonList","margin","flex","width","padding","nested","background"))`
  background-color: ${({background:e,nested:s,theme:{themeName:i}})=>e||r.Ay[i===l.S.DARK?`desktop-color-neutral-${s?"00":"01"}-${l.S.DARK}`:`desktop-color-neutral-${s?"01":"00"}-${l.S.LIGHT}`]};
  padding: ${({isButtonList:e,padding:s})=>s||(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}})=>r.Ay[`desktop-border-divider-${e}`]};\n      &:last-child {\n        border-bottom: none;\n      }\n    }\n  `:""}
`,x=(0,_.A)(A.A,(0,o.A)("marginBottom","margin","flex","padding","nested","background"))`
  background-color: ${({background:e,nested:s,theme:{themeName:i}})=>e||r.Ay[i===l.S.DARK?`desktop-color-neutral-${s?"00":"01"}-${l.S.DARK}`:`desktop-color-neutral-${s?"01":"00"}-${l.S.LIGHT}`]};
  margin-bottom: ${({theme:e,marginBottom:s})=>s||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:s}})=>e||r.Ay[s===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};
      }
    }
  }
`,I=({type:e,marginBottom:s,margin:i,padding:r,flex:A,width:_,nested:l,...d})=>"items"in d?(0,n.jsx)(x,{marginBottom:s,margin:i,padding:r,flex:A,nested:l,...d}):(0,n.jsx)(a,{nested:l,width:_,marginBottom:s,margin:i,padding:r,flex:A,isButtonList:e===t.BUTTON_LIST,...d,children:d.children})},931126(e,s,i){i.d(s,{O:()=>n});const t=[[0,1],[2,10],[11,20],[21,30],[31,40],[41,50],[51,60],[61,70],[71,80],[81,90],[91,100]],n=e=>{const s=t.findIndex(([s,i])=>e>=s&&e<=i);return-1===s?0:s}},939940(e,s,i){i.d(s,{_i:()=>x,dx:()=>a});var t=i(814557),n=i(565527),r=i(419151),A=i(931126);const _={[r.OP.NO_SIGNAL]:"neutral-06",[r.OP.POOR]:"red-06",[r.OP.WEAK]:"red-06",[r.OP.FAIR]:"orange-06",[r.OP.GOOD]:"green-06",[r.OP.EXCELLENT]:"green-06"},l="desktop-color-red-06",d="desktop-color-orange-06",c="desktop-color-green-06",o={0:l,1:l,2:l,3:d,4:d,5:d,6:d,7:c,8:c,9:c,10:c},a=(e=r.OP.NO_SIGNAL,s=n.S.LIGHT)=>t.Ay[`desktop-color-${_[e]}-${s}`],x=(e,s=n.S.LIGHT)=>t.Ay[`${(e=>o[(0,A.O)(e)]||"desktop-color-neutral-06")(e)}-${s}`]},920492(e,s,i){i.d(s,{A3:()=>P,Ay:()=>u,KN:()=>S,Rx:()=>p,lo:()=>O});var t=i(274934),n=i(814557),r=i(938984),A=i(247816),_=i(263705),l=i(513458),d=i(669439),c=i(309130),o=i(225211),a=i(527153),x=i(100978),I=i(453007),E=i(939940),T=i(470070),h=i(419151),N=i(567572);const p=31,S=20,j={[h.qU.SUCCESS]:"green06",[h.qU.WARNING]:"orange06",[h.qU.DANGER]:"red06",[h.qU.MISSING]:"neutral06"},C=(0,A.A)("div")`
  position: absolute;
  top: 0;
  left: -${c.YC};
  right: -${c.YC};
  bottom: 0;
  pointer-events: auto;
`,M=({signal:e})=>{const{themeName:s}=(0,_.u)();return(0,t.jsx)(o.A,{width:16,height:16,strength:e,color:(0,E.dx)(e,s),inactiveColor:n.Ay[`desktop-color-neutral-05-${s}`]})},P=({signal_percent:e=0,dBm:s})=>{const{themeName:i}=(0,_.u)();return(0,t.jsxs)(x.A,{gap:c.kc,style:{userSelect:"none"},children:[e>0?(0,t.jsxs)(I.A,{colorOverride:(0,E._i)(e,i),children:[s," ",(0,t.jsx)(T.sA,{id:"COMMON_UNIT_DBM"})]}):(0,t.jsx)(r.A,{color:"text-3",size:"medium",children:(0,t.jsx)(T.sA,{id:"COMMON_NO_SIGNAL"})}),(0,t.jsx)(a.A,{width:p,height:S,signal_percent:e})]})},O=({signal:e,children:s})=>(0,t.jsxs)(x.A,{gap:c.YC,style:{userSelect:"none"},children:[void 0!==e?(0,t.jsx)(M,{signal:e}):null,(0,t.jsx)(r.A,{color:"text-3",size:"medium",children:s})]}),u=({statusCode:e,statusBallTooltip:s,slot:i,title:A,message:o,status:a,esim:I,isCompact:E})=>{const{motifPalette:T,themeName:h}=(0,_.u)();return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(x.A,{flexDirection:"column",flex:1,height:32,children:(0,t.jsxs)(x.A,{borderBottom:E?void 0:`1px solid ${n.Ay[`desktop-color-neutral-03-${h}`]}`,padding:E?void 0:c.YC,height:E?27:void 0,gap:c.kc,alignItems:"center",children:[(0,t.jsxs)(x.A,{justifyContent:"center",alignItems:"center",position:"relative",pointerEvents:"none",children:[(0,t.jsx)(l.A,{color:T[j[e]]}),s?(0,t.jsx)(d.A,{description:s,placement:"top start",children:(0,t.jsx)(C,{})}):null]}),(0,t.jsx)(x.A,{width:70,children:(0,t.jsx)(r.A,{weight:"bold",size:"medium",children:A||(0,t.jsx)(N.m$,{esim:I,slot:i,weight:E?"regular":"bold"})})}),o?(0,t.jsx)(x.A,{width:E?"auto":150,flex:1,children:o}):null,(0,t.jsx)(x.A,{...o?{width:90}:{flex:1},justifyContent:"flex-end",children:a})]})})})}},379301(e,s,i){i.r(s),i.d(s,{default:()=>rs});var t=i(274934),n=i(602086),r=i(396489),A=i.n(r),_=i(697038),l=i(535322),d=i(247816),c=i(954702),o=i(977872),a=i(814557),x=i(470070),I=i(100978),E=i(309130),T=i(205521),h=i(449339),N=i(589650),p=i(291508),S=i(442175);const j=(0,d.A)(I.A)`
  flex-direction: column;
  gap: ${E.Ln};
`,C=(0,d.A)(I.A,(0,p.A)("isUpdating"))`
  flex-direction: column;
  gap: ${E.YC};
  ${({isUpdating:e,theme:{themeName:s}})=>e?`* { color: ${a.Ay[`desktop-color-text-4-${s}`]} !important; }`:""}
`,M=(0,d.A)(I.A)`
  flex-direction: column;
  gap: ${E.kc};
`,P=(0,d.A)(I.A)`
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
  gap: ${E.Er};
`,O=()=>(0,t.jsxs)("span",{children:[(0,t.jsx)(x.sA,{id:"ISP_UPDATING_FIRMWARE"}),"..."]}),u=({[_.p5.MBB]:{[_.Ug.MAC]:e,[_.Ug.DATA_LIMIT]:s}})=>{const i=(0,o.wA)(),r=(0,n.useCallback)(()=>{i((0,T.XP)({type:h.H.DEVICE,id:e,tab:N.BC.SETTINGS}))},[i,e]);return(0,t.jsxs)(I.A,{alignItems:"center",children:[(0,t.jsx)(x.sA,{id:"ISP_WEEKLY_DATA_LIMIT_REACHED",values:{limit:(0,S.FI)(s)}})," · ",(0,t.jsx)(c.A,{type:"button",fontSize:"medium",onClick:r,children:(0,t.jsx)(x.sA,{id:"COMMON_ACTION_EDIT"})})]})};var m=i(938984);const R=({children:e,...s})=>(0,t.jsx)(m.A,{color:"text-2",size:"medium",...s,children:e}),L=(0,n.memo)(({id:e})=>(0,t.jsx)(P,{children:(0,t.jsx)(R,{weight:"bold",children:(0,t.jsx)(x.sA,{id:e})})}));var g=i(579902),D=i(421314);const B=({children:e,style:s,...i})=>(0,t.jsx)(D.A,{color:"text-3",size:"medium",isTruncated:!0,style:{marginLeft:"auto",display:"flex",alignItems:"center",...s},...i,children:e}),b=({children:e,onClick:s,...i})=>(0,t.jsx)(c.A,{style:{maxWidth:"100%"},fontSize:"medium",type:"button",onClick:s,children:(0,t.jsx)(B,{color:"inherit",size:"inherit",...i,isTruncated:!0,children:e})}),U=({children:e,onClick:s,style:i,...n})=>s?(0,t.jsx)(b,{onClick:s,...n,children:e}):(0,t.jsx)(B,{style:i,...n,children:e});var v,f,H,X=i(347625),k=i(320509);!function(e){e.UNREACHABLE="UNREACHABLE",e.PARTIAL="PARTIAL",e.PASSING="PASSING"}(v||(v={})),function(e){e.EXCELLENT="EXCELLENT",e.DEGRADED="DEGRADED",e.FAILED="FAILED"}(f||(f={})),function(e){e.HEALTHY="HEALTHY",e.NEAR_LIMIT="NEAR_LIMIT",e.EXCEEDED_LIMIT="EXCEEDED_LIMIT"}(H||(H={}));const G={[_.pS.UP]:"COMMON_ONLINE",[_.pS.DOWN]:"COMMON_OFFLINE",[_.pS.UPDATING]:"ISP_OFFLINE_DEVICE_UPDATING",[_.pS.LIMIT_REACHED]:"ISP_PAUSED_LIMIT_REACHED"},y={[f.EXCELLENT]:"COMMON_EXPERIENCE_EXCELLENT",[f.DEGRADED]:"COMMON_DEGRADED",[f.FAILED]:"COMMON_FAILED"},Y={[_.Sb.NR_NSA]:"ISP_5G_NSA",[_.Sb.NR_SA]:"ISP_5G_SA",[_.Sb.LTE]:"COMMON_LTE",[_.Sb.PRE_LTE]:"ISP_3G"},w={[_.qF.ICMP]:"COMMON_PING",[_.qF.DNS]:"COMMON_DNS"},V={[v.UNREACHABLE]:"destructive",[v.PARTIAL]:"notice",[v.PASSING]:void 0},$={[v.UNREACHABLE]:"destructive",[v.PARTIAL]:"notice",[v.PASSING]:"positive"},F={[_.pS.UP]:{[v.PASSING]:"ISP_PASSING",[v.PARTIAL]:"ISP_PARTIAL",[v.UNREACHABLE]:"ISP_UNREACHABLE"},[_.pS.DOWN]:{[v.PASSING]:"ISP_PASSING",[v.PARTIAL]:"ISP_PARTIAL",[v.UNREACHABLE]:"ISP_UNREACHABLE"},[_.pS.UPDATING]:{[v.PASSING]:"COMMON_PAUSED",[v.PARTIAL]:"COMMON_PAUSED",[v.UNREACHABLE]:"COMMON_PAUSED"},[_.pS.LIMIT_REACHED]:{[v.PASSING]:"COMMON_PAUSED",[v.PARTIAL]:"COMMON_PAUSED",[v.UNREACHABLE]:"COMMON_PAUSED"}},K={[_.pS.UP]:{[v.UNREACHABLE]:"destructive",[v.PARTIAL]:"notice",[v.PASSING]:"positive"},[_.pS.DOWN]:{[v.UNREACHABLE]:"destructive",[v.PARTIAL]:"notice",[v.PASSING]:"positive"},[_.pS.UPDATING]:{[v.UNREACHABLE]:"notice",[v.PARTIAL]:"notice",[v.PASSING]:"notice"},[_.pS.LIMIT_REACHED]:{[v.UNREACHABLE]:"notice",[v.PARTIAL]:"notice",[v.PASSING]:"notice"}},W={[H.HEALTHY]:"positive",[H.NEAR_LIMIT]:"notice",[H.EXCEEDED_LIMIT]:"destructive"},z={[H.HEALTHY]:"ISP_HEALTHY",[H.NEAR_LIMIT]:"ISP_NEAR_LIMIT",[H.EXCEEDED_LIMIT]:"ISP_EXCEEDED_LIMIT"},Z={[_.pS.UP]:()=>{},[_.pS.DOWN]:()=>{},[_.pS.UPDATING]:()=>(0,t.jsx)(O,{}),[_.pS.LIMIT_REACHED]:({[_.p5.MBB]:e})=>(0,t.jsx)(u,{mbb:e})},Q=e=>{switch(e){case _.pS.UP:return"positive";case _.pS.DOWN:return"destructive";case _.pS.UPDATING:case _.pS.LIMIT_REACHED:return"notice"}},q=({[_.p5.RX_RATE_BPS]:e,[_.p5.TX_RATE_BPS]:s,formatMessage:i})=>`${(0,k.zX)(e)} (${i({id:"COMMON_RX"})}) / ${(0,k.zX)(s)} (${i({id:"COMMON_TX"})})`,J=e=>{switch(e){case f.EXCELLENT:return"positive";case f.DEGRADED:return"notice";case f.FAILED:return"destructive";default:return}},ee=({[_.jE.AVAILABILITY_PCT]:e,[_.jE.AVAILABILITY_THRESHOLD_VALUE_PCT]:s})=>0===e?v.UNREACHABLE:e<=s/2?v.PARTIAL:v.PASSING,se=({[_.p5.SLA_MONITOR_READINGS]:e})=>{const s=e.map(({[_.jE.AVAILABILITY_PCT]:e,[_.jE.AVAILABILITY_THRESHOLD_VALUE_PCT]:s})=>ee({[_.jE.AVAILABILITY_PCT]:e,[_.jE.AVAILABILITY_THRESHOLD_VALUE_PCT]:s}));return s.every(e=>e===v.PASSING)?v.PASSING:s.every(e=>e===v.UNREACHABLE)?v.UNREACHABLE:v.PARTIAL},ie=({[_.p5.RX_CAPACITY_KBPS]:e,[_.p5.MAX_RX_RATE24H_BPS]:s})=>[e,s].every(Number.isFinite)?Math.round(s/(0,k.Zz)(e)*100):void 0,te=({[_.p5.TX_CAPACITY_KBPS]:e,[_.p5.MAX_TX_RATE24H_BPS]:s})=>[e,s].every(Number.isFinite)?Math.round(s/(0,k.Zz)(e)*100):void 0,ne=e=>{if(e&&Number.isFinite(e)){if(e>=100)return"destructive";if(e>90)return"notice"}return"inherit"},re=({[_.p5.STATE]:e})=>e===_.pS.UPDATING,Ae=({[_.p5.STATE]:e})=>e===_.pS.LIMIT_REACHED,_e=(0,n.memo)(({[_.p5.TYPE]:e,[_.p5.STATE]:s,[_.p5.ISP]:{[_.rs.NAME]:i,[_.rs.ASN]:r},[_.p5.MBB]:A,[_.p5.IPV4_ADDRESS]:l,[_.p5.CONNECTION]:d,[_.p5.CONNECTION]:{[_.ZN.DEVICE_MAC]:c}})=>{const a=(0,o.wA)(),I=(({[_.p5.TYPE]:e,[_.p5.MBB]:{[_.Ug.RADIO_ACCESS_TECHNOLOGY]:s}})=>{if(e===_.c9.MBB)return s})({[_.p5.TYPE]:e,[_.p5.MBB]:A}),N=(({[_.p5.TYPE]:e,[_.p5.CONNECTION]:{[_.ZN.DEVICE_NAME]:s,[_.ZN.DEVICE_MODEL]:i,[_.ZN.DEVICE_MAC]:t,[_.ZN.PORT_IDX]:n},formatMessage:r})=>{switch(e){case _.c9.MBB:case _.c9.WIRED:return`${(0,X.Q)({name:s,model:i,mac:t})}${n?`, ${r({id:"COMMON_PORT"})} ${n}`:""}`}})({[_.p5.TYPE]:e,[_.p5.CONNECTION]:d,formatMessage:(0,x.tz)().formatMessage}),p=re({[_.p5.STATE]:s}),S=Ae({[_.p5.STATE]:s}),j=(0,n.useCallback)(()=>{a((0,T.XP)({type:h.H.DEVICE,id:c}))},[a,c]);return(0,t.jsxs)(C,{children:[s?(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsx)(R,{weight:"bold",children:(0,t.jsx)(x.sA,{id:"ISP_CONNECTION_STATUS"})}),(0,t.jsx)(U,{color:Q(s),children:(0,t.jsx)(x.sA,{id:G[s]})})]})}):null,i?(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsx)(R,{children:(0,t.jsx)(x.sA,{id:"COMMON_SERVICE_PROVIDER"})}),(0,t.jsxs)(U,{style:{alignItems:"center",gap:E.YC},children:[(0,t.jsx)(g.A,{asn:r,name:i,size:20}),i]})]})}):null,S||p?(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsx)(R,{children:(0,t.jsx)(x.sA,{id:"ISP_SESSION_STATUS"})}),(0,t.jsx)(U,{children:Z[s]?.({[_.p5.MBB]:A})})]})}):null,I?(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsx)(R,{children:(0,t.jsx)(x.sA,{id:"ISP_PRIMARY_TECH"})}),(0,t.jsx)(U,{children:(0,t.jsx)(x.sA,{id:Y[I]})})]})}):null,N?(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsx)(R,{children:(0,t.jsx)(x.sA,{id:"ISP_ACTIVE_PORT"})}),(0,t.jsx)(b,{onClick:j,children:N})]})}):null,l?(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsx)(R,{children:(0,t.jsx)(x.sA,{id:"COMMON_IP_ADDRESS"})}),(0,t.jsx)(U,{children:l})]})}):null]})});var le=i(263705),de=i(527153),ce=i(939940),oe=i(920492);const ae=(0,n.memo)(({[_.p5.STATE]:e,[_.p5.RX_RATE_BPS]:s,[_.p5.TX_RATE_BPS]:i,[_.p5.AVG_LATENCY_MS]:n,[_.p5.UPTIME24H_PCT]:r,[_.p5.MBB]:A})=>{const{themeName:l}=(0,le.u)(),d=q({[_.p5.RX_RATE_BPS]:s,[_.p5.TX_RATE_BPS]:i,formatMessage:(0,x.tz)().formatMessage}),c=(({[_.p5.MBB]:{[_.Ug.LTE_RSRP_DBM]:e,[_.Ug.NR_RSRP_DBM]:s}})=>e||s)({[_.p5.MBB]:A}),o=(({[_.p5.MBB]:{[_.Ug.SIGNAL_PCT]:e}})=>e)({[_.p5.MBB]:A}),a=re({[_.p5.STATE]:e});return(0,t.jsxs)(C,{isUpdating:a,children:[(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsxs)(R,{weight:"bold",children:[(0,t.jsx)(x.sA,{id:"COMMON_SIGNAL_STRENGTH"})," (",(0,t.jsx)(x.sA,{id:"COMMON_RSRP"}),")"]}),void 0!==c?(0,t.jsxs)(U,{style:{color:(0,ce._i)(o,l)},children:[c," ",(0,t.jsx)(x.sA,{id:"COMMON_UNIT_DBM"})," ",void 0!==o?(0,t.jsx)(de.A,{width:oe.Rx,height:oe.KN,signal_percent:a?0:o}):null]}):null]})}),d?(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsx)(R,{children:(0,t.jsx)(x.sA,{id:"COMMON_THROUGHPUT"})}),(0,t.jsx)(U,{children:d})]})}):null,Number.isFinite(n)?(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsx)(R,{children:(0,t.jsx)(x.sA,{id:"COMMON_LATENCY"})}),(0,t.jsxs)(U,{children:[n,(0,t.jsx)(x.sA,{id:"COMMON_UNIT_MS"})]})]})}):null,Number.isFinite(r)?(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsx)(R,{children:(0,t.jsx)(x.sA,{id:"COMMON_UPTIME"})}),(0,t.jsxs)(U,{children:[r,"%"]})]})}):null]})}),xe=(0,n.memo)(({[_.p5.STATE]:e,[_.p5.MBB]:s,[_.p5.MBB]:{[_.Ug.LTE_CA]:i,[_.Ug.NR_CA]:n,[_.Ug.LTE_SINR_DB]:r,[_.Ug.LTE_RSRQ_DB]:A,[_.Ug.NR_SINR_DB]:l,[_.Ug.NR_RSRQ_DB]:d}})=>{const c=(({[_.Ug.LTE_CA]:e})=>(e||[]).find(({[_.ku.PRIMARY]:e})=>e))({[_.Ug.LTE_CA]:i}),o=(({[_.Ug.NR_CA]:e})=>(e||[]).find(({[_.ku.PRIMARY]:e})=>e))({[_.Ug.NR_CA]:n}),a=re({[_.p5.STATE]:e});return Object.keys(s).length>0?(0,t.jsxs)(C,{isUpdating:a,children:[(0,t.jsx)(M,{children:(0,t.jsx)(P,{children:(0,t.jsx)(R,{weight:"bold",children:(0,t.jsx)(x.sA,{id:"ISP_RADIO_BAND"})})})}),c?.[_.ku.BAND]?(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsx)(R,{children:(0,t.jsx)(x.sA,{id:"ISP_PRIMARY_LTE_BAND"})}),(0,t.jsxs)(U,{children:["B",c[_.ku.BAND],c[_.ku.DL_BANDWIDTH_MHZ]?(0,t.jsxs)(t.Fragment,{children:["  (",c[_.ku.DL_BANDWIDTH_MHZ]," ",(0,t.jsx)(x.sA,{id:"COMMON_UNIT_MHZ"}),")"]}):null]})]})}):null,r||A?(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsx)(R,{children:(0,t.jsx)(x.sA,{id:"ISP_LTE_RADIO_HEALTH_SINR_RSRQ"})}),(0,t.jsxs)(U,{children:[r?(0,t.jsxs)(t.Fragment,{children:[Math.round(r)," ",(0,t.jsx)(x.sA,{id:"COMMON_UNIT_DB"})]}):(0,t.jsx)(x.sA,{id:"COMMON_FALLBACK"})," / ",A?(0,t.jsxs)(t.Fragment,{children:[Math.round(A)," ",(0,t.jsx)(x.sA,{id:"COMMON_UNIT_DB"})]}):(0,t.jsx)(x.sA,{id:"COMMON_FALLBACK"})]})]})}):null,o?.[_.ku.BAND]?(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsx)(R,{children:(0,t.jsx)(x.sA,{id:"ISP_PRIMARY_5G_BAND"})}),(0,t.jsxs)(U,{children:["n",o[_.ku.BAND],o[_.ku.DL_BANDWIDTH_MHZ]?(0,t.jsxs)(t.Fragment,{children:["  (",o[_.ku.DL_BANDWIDTH_MHZ]," ",(0,t.jsx)(x.sA,{id:"COMMON_UNIT_MHZ"}),")"]}):null]})]})}):null,l||d?(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsx)(R,{children:(0,t.jsx)(x.sA,{id:"ISP_5G_RADIO_HEALTH_SINR_RSRQ"})}),(0,t.jsxs)(U,{children:[l?(0,t.jsxs)(t.Fragment,{children:[Math.round(l)," ",(0,t.jsx)(x.sA,{id:"COMMON_UNIT_DB"})]}):(0,t.jsx)(x.sA,{id:"COMMON_FALLBACK"})," / ",d?(0,t.jsxs)(t.Fragment,{children:[Math.round(d)," ",(0,t.jsx)(x.sA,{id:"COMMON_UNIT_DB"})]}):(0,t.jsx)(x.sA,{id:"COMMON_FALLBACK"})]})]})}):null]}):null});var Ie=i(513458),Ee=i(558948);const Te=(0,d.A)(Ee.A)`
  margin: ${E.YC} 0;
`,he=(0,n.memo)(({[_.p5.STATE]:e,[_.p5.SLA_MONITOR_READINGS]:s})=>{const i=se({[_.p5.SLA_MONITOR_READINGS]:s}),r=re({[_.p5.STATE]:e})||Ae({[_.p5.STATE]:e});return(0,t.jsxs)(C,{children:[(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsx)(R,{color:r?"disabled":void 0,weight:"bold",children:(0,t.jsx)(x.sA,{id:"ISP_SLA_MONITOR"})}),(0,t.jsx)(U,{color:K[e][i],children:(0,t.jsx)(x.sA,{id:F[e][i]})})]})}),s.map(({[_.jE.TARGET]:e,[_.jE.TYPE]:i,[_.jE.AVAILABILITY_PCT]:A,[_.jE.AVAILABILITY_THRESHOLD_VALUE_PCT]:l,[_.jE.AVG_LATENCY_MS]:d},c)=>{const o=ee({[_.jE.AVAILABILITY_PCT]:A,[_.jE.AVAILABILITY_THRESHOLD_VALUE_PCT]:l}),a=r?"disabled":V[o];return(0,t.jsxs)(n.Fragment,{children:[(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsx)(R,{color:r?"disabled":void 0,children:(0,t.jsx)(x.sA,{id:"COMMON_VERIFICATION_SERVER_N",values:{number:c+1}})}),(0,t.jsxs)(U,{color:a,children:[(0,t.jsx)(Ie.A,{status:r?"neutral":$[o]})," ",(0,t.jsx)(x.sA,{id:w[i]})," (",e,")"]})]})}),(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsx)(R,{color:r?"disabled":void 0,children:(0,t.jsx)(x.sA,{id:"COMMON_LATENCY"})}),(0,t.jsx)(U,{color:a,children:Number.isFinite(d)?(0,t.jsxs)(t.Fragment,{children:[d," ",(0,t.jsx)(x.sA,{id:"COMMON_UNIT_MS"})]}):(0,t.jsx)(x.sA,{id:"COMMON_FALLBACK"})})]})}),(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsx)(R,{color:r?"disabled":void 0,children:(0,t.jsx)(x.sA,{id:"ISP_AVAILABILITY"})}),(0,t.jsxs)(U,{color:a,children:[A,"%"]})]})}),c!==s.length-1?(0,t.jsx)(Te,{}):null]},e)})]})});var Ne=i(831721),pe=i(669439),Se=i(897166),je=i(642687),Ce=i(42220),Me=i(436417),Pe=i(16805),Oe=i(553732),ue=i(197571),me=i(581814),Re=i(244081),Le=i(376959);const ge=(0,d.A)(I.A)`
  flex-direction: column;
  gap: ${E.Ln};
`,De=(0,d.A)(I.A)`
  justify-content: space-between;
  align-items: center;
  gap: ${E.Ln};
`,Be=(0,d.A)(I.A)`
  flex-direction: column;
  gap: ${E.YC};
  justify-content: flex-start;
`,be=(0,d.A)(I.A)`
  align-items: center;
  gap: ${E.YC};
`;var Ue,ve=i(325461),fe=i(843959);!function(e){e.DOWNLOAD_MBPS="downloadMbps",e.UPLOAD_MBPS="uploadMbps"}(Ue||(Ue={}));const He=ve.Ay.object({[Ue.DOWNLOAD_MBPS]:ve.Ay.number().min(fe.k.DOWNLOAD.MIN).max(fe.k.DOWNLOAD.MAX),[Ue.UPLOAD_MBPS]:ve.Ay.number().min(fe.k.DOWNLOAD.MIN).max(fe.k.DOWNLOAD.MAX)}),Xe=(0,n.memo)(({[_.p5.RX_CAPACITY_KBPS]:e,[_.p5.TX_CAPACITY_KBPS]:s,[_.p5.NETWORK_GROUP]:i,setEditMode:r})=>{const A=(0,o.wA)(),{control:d}=(0,Me.m)({schema:He,defaultValues:{[Ue.DOWNLOAD_MBPS]:(0,k.o)(e),[Ue.UPLOAD_MBPS]:(0,k.o)(s)}}),{isValid:c}=(0,Ce.lN)({control:d}),a=(0,Ce.FH)({control:d,name:Ue.DOWNLOAD_MBPS}),I=(0,Ce.FH)({control:d,name:Ue.UPLOAD_MBPS}),E=(0,o.d4)(ue.Ct),T=(0,n.useMemo)(()=>E.find(({purpose:e,wan_networkgroup:s})=>e===me.rR.WAN&&s===i),[E,i]),h=(0,n.useCallback)(()=>{T&&A((0,Oe.ax)({...T,wan_provider_capabilities:{...T.wan_provider_capabilities,upload_kilobits_per_second:(0,Le.ck)(I),download_kilobits_per_second:(0,Le.ck)(a)}})).finally(()=>{r(!1)})},[r,T,I,a,A]),N=(0,n.useCallback)(()=>{r(!1)},[r]);return(0,n.useEffect)(()=>{A((0,Oe.Sk)(void 0,{crudCacheStrategy:{type:Re.e.CACHE}}))},[A]),(0,t.jsx)("form",{children:(0,t.jsx)(l.A,{nested:!0,children:(0,t.jsxs)(ge,{children:[(0,t.jsxs)(De,{children:[(0,t.jsxs)(Be,{children:[(0,t.jsx)(m.A,{size:"small",color:"text-3",children:(0,t.jsx)(x.sA,{id:"COMMON_EXPECTED_ISP_SPEEDS"})}),(0,t.jsx)(Pe.A,{control:d,name:Ue.DOWNLOAD_MBPS,contentAfter:(0,t.jsx)(x.sA,{id:"COMMON_SPEED_METRICS_MBPS"})})]}),(0,t.jsxs)(Be,{children:[(0,t.jsx)(m.A,{size:"small",color:"text-3",children:(0,t.jsx)(x.sA,{id:"COMMON_EXPECTED_ISP_SPEEDS"})}),(0,t.jsx)(Pe.A,{control:d,name:Ue.UPLOAD_MBPS,contentAfter:(0,t.jsx)(x.sA,{id:"COMMON_SPEED_METRICS_MBPS"})})]})]}),(0,t.jsxs)(be,{children:[(0,t.jsx)(je.A,{type:"button",variant:"emphasis",size:"small",onClick:h,isDisabled:!c||!T,children:(0,t.jsx)(x.sA,{id:"COMMON_ACTION_APPLY"})}),(0,t.jsx)(je.A,{type:"button",variant:"neutral",size:"small",onClick:N,children:(0,t.jsx)(x.sA,{id:"COMMON_ACTION_CANCEL"})})]})]})})})}),ke=(0,n.memo)(({[_.p5.RX_CAPACITY_KBPS]:e,[_.p5.TX_CAPACITY_KBPS]:s,[_.p5.MAX_RX_RATE24H_BPS]:i,[_.p5.MAX_TX_RATE24H_BPS]:r,[_.p5.NETWORK_GROUP]:A})=>{const[l,d]=(0,n.useState)(!1),[c,a]=(0,n.useState)(!1),E=(0,o.d4)(Se.EL),T=(0,n.useCallback)(()=>{E||d(!0)},[E]),h=(0,n.useCallback)(()=>{d(!1)},[]),N=(0,n.useCallback)(()=>{a(!0)},[]),p=(({[_.p5.RX_CAPACITY_KBPS]:e,[_.p5.TX_CAPACITY_KBPS]:s,[_.p5.MAX_RX_RATE24H_BPS]:i,[_.p5.MAX_TX_RATE24H_BPS]:t})=>{const n=ie({[_.p5.RX_CAPACITY_KBPS]:e,[_.p5.MAX_RX_RATE24H_BPS]:i}),r=te({[_.p5.TX_CAPACITY_KBPS]:s,[_.p5.MAX_TX_RATE24H_BPS]:t});if(n&&Number.isFinite(n)&&r&&Number.isFinite(r)){const e=Math.max(n,r);return e>=100?H.EXCEEDED_LIMIT:e>90?H.NEAR_LIMIT:H.HEALTHY}})({[_.p5.RX_CAPACITY_KBPS]:e,[_.p5.TX_CAPACITY_KBPS]:s,[_.p5.MAX_RX_RATE24H_BPS]:i,[_.p5.MAX_TX_RATE24H_BPS]:r}),S=ie({[_.p5.RX_CAPACITY_KBPS]:e,[_.p5.MAX_RX_RATE24H_BPS]:i}),j=te({[_.p5.TX_CAPACITY_KBPS]:s,[_.p5.MAX_TX_RATE24H_BPS]:r}),O=ne(S),u=ne(j),L=(0,n.useMemo)(()=>{switch(p){case H.HEALTHY:return;case H.NEAR_LIMIT:return(0,t.jsx)(x.sA,{id:"ISP_NEAR_LIMIT_DESCRIPTION",values:{br:x.br}});case H.EXCEEDED_LIMIT:return(0,t.jsx)(x.sA,{id:"ISP_EXCEEDED_LIMIT_DESCRIPTION",values:{br:x.br}});default:return}},[p]);return p?(0,t.jsxs)(C,{children:[(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsx)(R,{weight:"bold",children:(0,t.jsx)(x.sA,{id:"ISP_PEAK_UTILIZATION"})}),(0,t.jsx)(I.A,{onMouseEnter:T,onMouseLeave:h,children:(0,t.jsx)(U,l?{onClick:N,children:(0,t.jsx)(x.sA,{id:"ISP_SET_ISP_CAPACITY"})}:{color:W[p],children:(0,t.jsx)(x.sA,{id:z[p]})})})]})}),c?(0,t.jsx)(Xe,{tx_capacity_kbps:s,rx_capacity_kbps:e,network_group:A,setEditMode:a}):null,Number.isFinite(e)?(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsx)(R,{children:(0,t.jsx)(x.sA,{id:"ISP_DOWNLOAD_CAPACITY"})}),(0,t.jsx)(U,{children:(0,k.Up)(e)})]})}):null,Number.isFinite(s)?(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsx)(R,{children:(0,t.jsx)(x.sA,{id:"ISP_UPLOAD_CAPACITY"})}),(0,t.jsx)(U,{children:(0,k.Up)(s)})]})}):null,S&&j?(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsx)(R,{children:(0,t.jsx)(x.sA,{id:"ISP_PEAK_UTILIZATION_PERIOD",values:{period:(0,t.jsx)(x.sA,{id:"COMMON_DATE_RANGE_SHORT_24H"})}})}),(0,t.jsxs)(U,{children:[(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(m.A,{size:"inherit",color:O,children:[S,"%"]})," ",(0,t.jsx)(m.A,{size:"inherit",color:O===u?O:"inherit",children:"/"})," ",(0,t.jsxs)(m.A,{size:"inherit",color:u,children:[j,"%"]})]})," ",L?(0,t.jsx)(pe.A,{description:L,children:(0,t.jsx)("span",{children:(0,t.jsx)(Ne.A,{size:"original",isActive:!0})})}):null]})]})}):null]}):null}),Ge=(0,n.memo)(({[_.p5.STATE]:e,[_.p5.TYPE]:s,[_.p5.ISP]:i,[_.p5.MBB]:n,[_.p5.IPV4_ADDRESS]:r,[_.p5.CONNECTION]:A,[_.p5.RX_RATE_BPS]:d,[_.p5.TX_RATE_BPS]:c,[_.p5.AVG_LATENCY_MS]:o,[_.p5.UPTIME24H_PCT]:a,[_.p5.SLA_MONITOR_READINGS]:x,[_.p5.RX_CAPACITY_KBPS]:I,[_.p5.TX_CAPACITY_KBPS]:E,[_.p5.MAX_RX_RATE24H_BPS]:T,[_.p5.MAX_TX_RATE24H_BPS]:h,[_.p5.NETWORK_GROUP]:N})=>(0,t.jsx)(l.A,{children:(0,t.jsxs)(j,{children:[(0,t.jsx)(L,{id:"ISP_WIRELESS_CONNECTIVITY_DETAILS"}),(0,t.jsx)(_e,{state:e,isp:i,type:s,mbb:n,ipv4_address:r,connection:A}),(0,t.jsx)(ae,{state:e,rx_rate_bps:d,tx_rate_bps:c,avg_latency_ms:o,uptime24h_pct:a,mbb:n}),(0,t.jsx)(xe,{state:e,mbb:n}),(0,t.jsx)(he,{state:e,sla_monitor_readings:x}),(0,t.jsx)(ke,{rx_capacity_kbps:I,tx_capacity_kbps:E,max_rx_rate24h_bps:T,max_tx_rate24h_bps:h,network_group:N})]})})),ye=(0,n.memo)(({[_.p5.RX_RATE_BPS]:e,[_.p5.TX_RATE_BPS]:s,[_.p5.AVG_LATENCY_MS]:i,[_.p5.AVAILABILITY_PCT]:n,[_.p5.UPTIME24H_PCT]:r,[_.p5.SLA_MONITOR_READINGS]:A})=>{const l=q({[_.p5.RX_RATE_BPS]:e,[_.p5.TX_RATE_BPS]:s,formatMessage:(0,x.tz)().formatMessage}),d=(({[_.p5.AVAILABILITY_PCT]:e,[_.p5.AVG_LATENCY_MS]:s,[_.p5.SLA_MONITOR_READINGS]:i})=>{const t=se({[_.p5.SLA_MONITOR_READINGS]:i});return 100===e&&s<50&&t===v.PASSING?f.EXCELLENT:e>0&&e<100||s>=50||t===v.PARTIAL?f.DEGRADED:f.FAILED})({[_.p5.AVAILABILITY_PCT]:n,[_.p5.AVG_LATENCY_MS]:i,[_.p5.SLA_MONITOR_READINGS]:A});return(0,t.jsxs)(C,{children:[(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsx)(R,{weight:"bold",children:(0,t.jsx)(x.sA,{id:"COMMON_CONNECTION"})}),(0,t.jsx)(U,{color:J(d),children:(0,t.jsx)(x.sA,{id:y[d]})})]})}),(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsx)(R,{children:(0,t.jsx)(x.sA,{id:"COMMON_THROUGHPUT"})}),(0,t.jsx)(U,{children:l})]})}),Number.isFinite(i)?(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsx)(R,{children:(0,t.jsx)(x.sA,{id:"COMMON_LATENCY"})}),(0,t.jsxs)(U,{children:[i,(0,t.jsx)(x.sA,{id:"COMMON_UNIT_MS"})]})]})}):null,Number.isFinite(n)?(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsx)(R,{children:(0,t.jsx)(x.sA,{id:"COMMON_PACKET_LOSS"})}),(0,t.jsxs)(U,{children:[100-n,"%"]})]})}):null,Number.isFinite(r)?(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsx)(R,{children:(0,t.jsx)(x.sA,{id:"ISP_INTERNET_UPTIME",values:{period:(0,t.jsx)(x.sA,{id:"COMMON_DATE_RANGE_SHORT_24H"})}})}),(0,t.jsxs)(U,{children:[r,"%"]})]})}):null]})}),Ye=(0,n.memo)(({[_.p5.CONNECTION]:{[_.ZN.SPEED_MBPS]:e,[_.ZN.MAX_SPEED_MBPS]:s,[_.ZN.FULL_DUPLEX]:i,[_.ZN.PORT_IDX]:n}})=>(0,t.jsxs)(C,{children:[(0,t.jsx)(M,{children:(0,t.jsx)(P,{children:(0,t.jsx)(R,{weight:"bold",children:(0,t.jsx)(x.sA,{id:"ISP_PHYSICAL_LINK_DETAILS"})})})}),(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsx)(R,{children:(0,t.jsx)(x.sA,{id:"COMMON_LINK_SPEED"})}),(0,t.jsx)(U,{children:(0,t.jsx)(x.sA,{id:i?"COMMON_WIRED_FULL_DUPLEX":"COMMON_WIRED_HALF_DUPLEX",values:{speed:e}})})]})}),(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsx)(R,{children:(0,t.jsx)(x.sA,{id:"COMMON_PORT"})}),(0,t.jsxs)(U,{children:[(0,t.jsx)(x.sA,{id:"COMMON_NETWORK_PURPOSE_WAN"})," · ",(0,t.jsx)(x.sA,{id:"COMMON_PORT_NUMBER",values:{portNumber:n}})]})]})}),(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsx)(R,{children:(0,t.jsx)(x.sA,{id:"ISP_NEGOTIATED_PORT_SPEED"})}),(0,t.jsx)(U,{children:(0,k.ap)(e)})]})})]})),we=(0,n.memo)(({[_.p5.STATE]:e,[_.p5.TYPE]:s,[_.p5.ISP]:i,[_.p5.MBB]:n,[_.p5.IPV4_ADDRESS]:r,[_.p5.CONNECTION]:A,[_.p5.RX_RATE_BPS]:d,[_.p5.TX_RATE_BPS]:c,[_.p5.AVG_LATENCY_MS]:o,[_.p5.AVAILABILITY_PCT]:a,[_.p5.UPTIME24H_PCT]:x,[_.p5.SLA_MONITOR_READINGS]:I,[_.p5.RX_CAPACITY_KBPS]:E,[_.p5.TX_CAPACITY_KBPS]:T,[_.p5.MAX_RX_RATE24H_BPS]:h,[_.p5.MAX_TX_RATE24H_BPS]:N,[_.p5.NETWORK_GROUP]:p})=>(0,t.jsx)(l.A,{children:(0,t.jsxs)(j,{children:[(0,t.jsx)(L,{id:"ISP_WIRED_CONNECTIVITY_DETAILS"}),(0,t.jsx)(_e,{state:e,isp:i,type:s,mbb:n,ipv4_address:r,connection:A}),(0,t.jsx)(ye,{rx_rate_bps:d,tx_rate_bps:c,avg_latency_ms:o,availability_pct:a,uptime24h_pct:x,sla_monitor_readings:I}),(0,t.jsx)(Ye,{connection:A}),(0,t.jsx)(he,{state:e,sla_monitor_readings:I}),(0,t.jsx)(ke,{rx_capacity_kbps:E,tx_capacity_kbps:T,max_rx_rate24h_bps:h,max_tx_rate24h_bps:N,network_group:p})]})})),Ve=({[_.Ug.LTE_CA]:e})=>(0,t.jsxs)(C,{children:[(0,t.jsx)(M,{children:(0,t.jsx)(P,{children:(0,t.jsx)(R,{weight:"bold",children:(0,t.jsx)(x.sA,{id:"ISP_LTE_CARRIER_AGGREGATION"})})})}),e.map(({[_.ku.BAND]:e,[_.ku.DL_BANDWIDTH_MHZ]:s,[_.ku.DL_CHANNEL_NUMBER]:i,[_.ku.PRIMARY]:n})=>(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsxs)(R,{children:["B",e," (",(0,t.jsx)(x.sA,{id:n?"COMMON_PRIMARY":"COMMON_SECONDARY"}),")"]}),(0,t.jsxs)(U,{children:["EARFCN"," ",i,", ",s," ",(0,t.jsx)(x.sA,{id:"COMMON_UNIT_MHZ"})]})]})},e))]}),$e=({[_.Ug.NR_CA]:e})=>(0,t.jsxs)(C,{children:[(0,t.jsx)(M,{children:(0,t.jsx)(P,{children:(0,t.jsx)(R,{weight:"bold",children:(0,t.jsx)(x.sA,{id:"ISP_5G_CARRIER_AGGREGATION"})})})}),e.map(({[_.ku.BAND]:e,[_.ku.DL_BANDWIDTH_MHZ]:s,[_.ku.DL_CHANNEL_NUMBER]:i,[_.ku.PRIMARY]:n})=>(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsxs)(R,{children:["n",e," (",(0,t.jsx)(x.sA,{id:n?"COMMON_PRIMARY":"COMMON_SECONDARY"}),")"]}),(0,t.jsxs)(U,{children:["ARFCN"," ",i,", ",s," ",(0,t.jsx)(x.sA,{id:"COMMON_UNIT_MHZ"})]})]})},e))]}),Fe=({[_.Ug.IPV4_MTU_BYTES]:e,[_.Ug.IPV6_MTU_BYTES]:s})=>(0,t.jsxs)(C,{children:[(0,t.jsx)(M,{children:(0,t.jsx)(P,{children:(0,t.jsx)(R,{weight:"bold",children:(0,t.jsx)(x.sA,{id:"ISP_PATH_ANALYSIS"})})})}),e?(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsxs)(R,{children:[(0,t.jsx)(x.sA,{id:"ISP_MTU_SIZE"})," (",(0,t.jsx)(x.sA,{id:"COMMON_IPV4"}),")"]}),(0,t.jsxs)(U,{children:[e," ",(0,t.jsx)("span",{style:{textTransform:"lowercase"},children:(0,t.jsx)(x.sA,{id:"COMMON_BYTES"})})]})]})}):null,s?(0,t.jsx)(M,{children:(0,t.jsxs)(P,{children:[(0,t.jsxs)(R,{children:[(0,t.jsx)(x.sA,{id:"ISP_MTU_SIZE"})," (",(0,t.jsx)(x.sA,{id:"COMMON_IPV6"}),")"]}),(0,t.jsxs)(U,{children:[s," ",(0,t.jsx)("span",{style:{textTransform:"lowercase"},children:(0,t.jsx)(x.sA,{id:"COMMON_BYTES"})})]})]})}):null]}),Ke=(0,n.memo)(({[_.p5.MBB]:{[_.Ug.LTE_CA]:e=[],[_.Ug.NR_CA]:s=[],[_.Ug.IPV4_MTU_BYTES]:i,[_.Ug.IPV6_MTU_BYTES]:r}})=>{const A=Boolean(e.length),d=Boolean(s.length),c=Boolean(i||r),o=(0,n.useMemo)(()=>[{id:"advanced-diagnostics",label:(0,t.jsx)(x.sA,{id:"ISP_ADVANCED_DIAGNOSTICS"}),openByDefault:!0,renderContent:()=>(0,t.jsxs)(j,{children:[A?(0,t.jsx)(Ve,{lte_ca:e}):null,d?(0,t.jsx)($e,{nr_ca:s}):null,c?(0,t.jsx)(Fe,{ipv4_mtu_bytes:i,ipv6_mtu_bytes:r}):null]})}],[A,d,c,e,s,i,r]);return[A,d,c].some(Boolean)?(0,t.jsx)(l.A,{type:l.I.ACCORDION,items:o}):null});var We=i(237725),ze=i(853777),Ze=i(43506),Qe=i(969288),qe=i(620627);const Je="192.168.100.0/24";var es=i(423564);const ss=(0,d.A)(I.A)`
  flex-direction: column;
`,is=(0,n.memo)(({[_.p5.ISP]:{[_.rs.STATUS]:e}})=>{const{themeName:s}=(0,le.u)(),i=(0,o.wA)(),r=(0,We.W6)(),A=(0,Ze.A)(Qe.Cs),l=(0,o.d4)(ue.Ct,o.bN),d=(0,n.useMemo)(()=>l.find(e=>(0,es.mC)(e)===Je)?._id,[l]),I=(0,n.useCallback)(()=>{d?i((0,T.XP)({type:h.H.NETWORK,id:d})):r.push(A)},[d,A,i,r]),E=(0,n.useMemo)(()=>{switch(e){case _.Cx.CONNECTION_ISSUE:return(0,t.jsx)(m.A,{size:"medium",color:"text-1",children:(0,t.jsx)(x.sA,{id:"ISP_STARLINK_GATEWAY_NOTIFICATION"})});case _.Cx.IP_CONFLICT:return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.A,{size:"medium",weight:"bold",color:"text-1",children:(0,t.jsx)(x.sA,{id:"ISP_UNLOCK_STARLINK_INSIGHTS"})}),(0,t.jsx)("br",{}),(0,t.jsx)(x.sA,{id:"ISP_STARLINK_IP_DESCRIPTION",values:{starlinkSubnet:Je,link:(0,t.jsx)(c.A,{type:"button",onClick:I,children:(0,t.jsx)(x.sA,{id:"ISP_STARLINK_IP_ACTION"})})}})]});default:return null}},[e,I]);return(0,n.useEffect)(()=>{i((0,Oe.Sk)(void 0,{crudCacheStrategy:{type:Re.e.CACHE}}))},[i]),E?(0,t.jsx)(ss,{children:(0,t.jsx)(qe.A,{icon:(0,t.jsx)(ze.A,{variant:"fill",size:"original",color:a.Ay[`desktop-color-ublue-06-${s}`]}),children:E})}):null});var ts=i(745702);const ns=(0,n.memo)(({[_.p5.TYPE]:e,[_.p5.STATE]:s,[_.p5.ISP]:i,[_.p5.MBB]:r,[_.p5.IPV4_ADDRESS]:A,[_.p5.CONNECTION]:l,[_.p5.RX_RATE_BPS]:d=0,[_.p5.TX_RATE_BPS]:c=0,[_.p5.AVG_LATENCY_MS]:o,[_.p5.AVAILABILITY_PCT]:a,[_.p5.UPTIME24H_PCT]:x,[_.p5.SLA_MONITOR_READINGS]:I,[_.p5.RX_CAPACITY_KBPS]:E,[_.p5.TX_CAPACITY_KBPS]:T,[_.p5.MAX_RX_RATE24H_BPS]:h,[_.p5.MAX_TX_RATE24H_BPS]:N,[_.p5.NETWORK_GROUP]:p})=>{const S=(0,n.useMemo)(()=>{switch(e){case _.c9.WIRED:return(0,t.jsx)(we,{state:s,isp:i,type:e,mbb:r,ipv4_address:A,connection:l,rx_rate_bps:d,tx_rate_bps:c,avg_latency_ms:o,availability_pct:a,uptime24h_pct:x,sla_monitor_readings:I,rx_capacity_kbps:E,tx_capacity_kbps:T,max_rx_rate24h_bps:h,max_tx_rate24h_bps:N,network_group:p});case _.c9.MBB:return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Ge,{state:s,type:e,isp:i,mbb:r,ipv4_address:A,connection:l,rx_rate_bps:d,tx_rate_bps:c,avg_latency_ms:o,uptime24h_pct:x,sla_monitor_readings:I,rx_capacity_kbps:E,tx_capacity_kbps:T,max_rx_rate24h_bps:h,max_tx_rate24h_bps:N,network_group:p}),(0,t.jsx)(Ke,{mbb:r})]});default:return null}},[e,s,i,r,A,l,d,c,o,a,x,I,E,T,h,N,p]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(is,{isp:i}),S]})},A()),rs=({activeItem:{[ts.c.OVERVIEW]:{[_.p5.TYPE]:e,[_.p5.STATE]:s,[_.p5.ISP]:i,[_.p5.MBB]:n,[_.p5.IPV4_ADDRESS]:r,[_.p5.CONNECTION]:A,[_.p5.RX_RATE_BPS]:l=0,[_.p5.TX_RATE_BPS]:d=0,[_.p5.AVG_LATENCY_MS]:c,[_.p5.AVAILABILITY_PCT]:o,[_.p5.UPTIME24H_PCT]:a,[_.p5.SLA_MONITOR_READINGS]:x,[_.p5.RX_CAPACITY_KBPS]:I,[_.p5.TX_CAPACITY_KBPS]:E,[_.p5.MAX_RX_RATE24H_BPS]:T,[_.p5.MAX_TX_RATE24H_BPS]:h,[_.p5.NETWORK_GROUP]:N}}})=>(0,t.jsx)(ns,{type:e,state:s,isp:i,mbb:n,ipv4_address:r,connection:A,rx_rate_bps:l,tx_rate_bps:d,avg_latency_ms:c,availability_pct:o,uptime24h_pct:a,sla_monitor_readings:x,rx_capacity_kbps:I,tx_capacity_kbps:E,max_rx_rate24h_bps:T,max_tx_rate24h_bps:h,network_group:N})},843959(e,s,i){i.d(s,{Ew:()=>R,Ig:()=>m,MN:()=>N,OG:()=>u,QP:()=>o,S3:()=>E,Si:()=>d,Ud:()=>g,VE:()=>c,Vf:()=>P,X2:()=>x,aP:()=>p,fJ:()=>L,i$:()=>l,k:()=>j,k5:()=>h,mk:()=>T,ni:()=>C,tx:()=>I,u3:()=>a,uZ:()=>O,z3:()=>M});var t=i(409844),n=i(308111),r=i(309130),A=i(853961),_=i(857780);const l=1,d=7,c=(0,n.R)(l,d),o=1,a=128,x=64,I="255.255.255.0",E=48,T=64,h=0,N=t.AH`
  opacity: ${r.xN};
  pointer-events: none;
`,p=["setting_preference","vlan","macOverride","smartQueues","igmpProxy","upnp","ipv4Configuration","ipv6Configuration"],S=Number.MAX_SAFE_INTEGER,j={DOWNLOAD:{MIN:1,MAX:S},UPLOAD:{MIN:1,MAX:S}},C=[{value:A.z.FAILOVER_ONLY,label:"COMMON_FAILOVER"},{value:A.z.WEIGHTED,label:"SETTINGS_LOAD_BALANCING_DISTRIBUTED"}],M=1,P=99,O=99,u=8,m=32;var R;!function(e){e.VLAN_ID="vlan",e.MAC_ADDRESS_CLONE="macOverride",e.SMART_QUEUES="smartQueues",e.IGMP_PROXY="igmpProxy",e.UPNP="upnp",e.DYNAMIC_DNS_FIELD="dynamicDns",e.IPV4_CONFIGURATION="ipv4Configuration",e.IPV6_CONFIGURATION="ipv6Configuration"}(R||(R={}));const L={[R.VLAN_ID]:!0,[R.MAC_ADDRESS_CLONE]:!0,[R.SMART_QUEUES]:!0,[R.IGMP_PROXY]:!0,[R.UPNP]:!0,[R.DYNAMIC_DNS_FIELD]:!0,[R.IPV4_CONFIGURATION]:!0,[R.IPV6_CONFIGURATION]:!0},g={[_.W4.UDR5G]:{...L,[R.VLAN_ID]:!1,[R.MAC_ADDRESS_CLONE]:!1,[R.IGMP_PROXY]:!1,[R.IPV4_CONFIGURATION]:!1},[_.W4.U5GMAX]:{...L,[R.VLAN_ID]:!1,[R.MAC_ADDRESS_CLONE]:!1,[R.IGMP_PROXY]:!1,[R.IPV4_CONFIGURATION]:!1,[R.IPV6_CONFIGURATION]:!0}}},696049(e,s,i){i.d(s,{H:()=>t});const t=""},436417(e,s,i){i.d(s,{m:()=>_});var t=i(602086),n=i(42220),r=i(369289),A=i(721533);function _({schema:e,defaultValues:s,presets:i}){const _=(0,t.useMemo)(()=>i?(0,r.A)(i,e=>e.defaultValues):{},[i]),l=(0,t.useMemo)(()=>({...s,..._}),[_,s]),d=(0,n.mN)({resolver:(0,A.u)(e),shouldFocusError:!0,defaultValues:l,shouldUseNativeValidation:!1,mode:"onTouched"}),c=(0,t.useRef)(l);c.current=l;const o=(0,t.useCallback)((...e)=>{const[s,...i]=e;return d.reset(s?{...s,..._}:c.current,...i)},[_,d]);return{...d,reset:o,formState:{...d.formState,isDirty:!!Object.keys(d.formState.dirtyFields).length,isSubmitting:d.formState.isSubmitting},handleSubmit:(...e)=>d.handleSubmit(e[0],(s,...i)=>{const t=Object.keys(s)[0];if(t)try{const e=document.getElementsByName(t)?.[0];e?.scrollIntoView?.({behavior:"smooth",block:"center"}),e?.focus?.({preventScroll:!0})}catch{}e[1]?.(s,...i)})}}},260334(e,s,i){i.d(s,{L_:()=>c,MS:()=>d,rn:()=>l});var t=i(602086),n=i(949812),r=i(765282),A=i(470070);const _="{::}",l=(e,s)=>`${e}${_}${JSON.stringify(s??{})}`,d=(e,s)=>{if("string"!=typeof s)return;const[i,...t]=s.split(_);if(!i||!t.length)return s;let n={};try{n=Object.fromEntries(Object.entries(JSON.parse(t.join(_))).map(([s,i])=>[s,"string"==typeof i?d(e,i):i]))}catch{}return e.formatMessage({id:i},n)};function c(){const{formatMessage:e}=(0,A.tz)();return(0,t.useCallback)(s=>d({formatMessage:e},s),[e])}n.pJ((e,s)=>e.message?{message:e.message}:e.code===r.eq.too_small&&"string"===e.type?{message:l("COMMON_MIN_CHARS",{min:Number(e.minimum)})}:e.code===r.eq.too_big&&"string"===e.type?{message:l("COMMON_MAX_CHARS",{name:l("COMMON_VALUE"),max:Number(e.maximum)})}:e.code===r.eq.invalid_type&&"array"===e.expected&&"undefined"===e.received?{message:l("COMMON_SELECT_AT_LEAST_ONE_ITEM")}:e.code===r.eq.too_small&&"array"===e.type?{message:l("COMMON_ADD_AT_LEAST_X_ITEMS",{min:Number(e.minimum)})}:e.code===r.eq.invalid_type&&"undefined"===e.received?{message:l("COMMON_VALIDATION_VALUE_REQUIRED")}:e.code===r.eq.invalid_type&&"number"===e.expected?{message:l("COMMON_VALIDATION_PLEASE_ENTER_A_NUMBER")}:{message:s.defaultError})},16805(e,s,i){i.d(s,{A:()=>d});var t=i(274934),n=i(42220),r=i(843615),A=i(309130),_=i(260334),l=i(184931);const d=function({control:e,name:s,label:i,placeholder:d,tooltip:c,tooltipProps:o,contentAfter:a,arrowSize:x,min:I,max:E,step:T,value:h,iconBefore:N,onAfterChange:p,onChange:S}){const j=(0,l.mQ)(),C=(0,_.L_)();return(0,t.jsx)(n.xI,{control:e,name:s,render:({field:{ref:e,..._},fieldState:l,formState:M})=>(0,t.jsx)(r.A,{type:"number",variant:"secondary",width:"100%",..._,value:h??_.value??"",onChange:e=>{S?S(e,M):_.onChange(e.target.value?.length?+e.target.value:null),p?.(e)},disabled:j,invalid:l.invalid?C((0,n.Jt)(M.errors,s)?.message)||!0:void 0,labelTooltip:c,labelTooltipProps:{style:{opacity:j?A.xN:void 0,...o?.style},...o},label:i,placeholder:d,arrowSize:x,contentAfter:a,iconBefore:N,step:T,min:I,max:E})})}},376959(e,s,i){var t;i.d(s,{AS:()=>_,FJ:()=>t,ck:()=>r,gr:()=>n,xN:()=>A}),function(e){e.KBPS="kbps",e.MBPS="mbps"}(t||(t={}));const n=e=>e/1e6,r=e=>1e3*e,A=e=>{const s=(e=>e/1e3)(e);return s===Math.round(s)?{unit:t.MBPS,value:s}:{unit:t.KBPS,value:e}},_=e=>e.unit===t.MBPS?r(e.value):e.value},308111(e,s,i){i.d(s,{R:()=>o,k:()=>a});var t=i(696049),n=i(350068),r=i(177173),A=i(752104),_=i(64222),l=i(332530);const d=[...new Set([t.H,A.Q.join(A.A),r.Zt,_.F,n.nc,l.Vr])],c={numeric:!0,sensitivity:"base"},o=(e,s)=>{const i=[];for(let t=e;t<=s;t+=1)i.push({value:t,label:String(t)});return i},a=e=>({value:s,label:i},{value:t,label:n})=>d.includes(s?.toString())||d.includes(t?.toString())?1/0:i?.toString().localeCompare(n?.toString(),e,c)??-1}}]);