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