"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[34296],{1959:(e,A,t)=>{t.d(A,{N9:()=>c,NI:()=>E,cW:()=>m});var a=t(822336),n=t(71479),l=t(566723),r=t(294303),i=t(572112),o=t(663740),s=t(699228);const c=(0,n.A)(r.A,{shouldForwardProp:e=>"dashboardMinimized"!==e})`
  height: 100%;
  display: flex;
  width: 100%;
  min-width: ${s.Pu}px;
  height: auto;
  min-height: 100%;
  @media ${i.A.DASHBOARD.LAYOUT.DESKTOP} {
    .${o.q} {
      ${({dashboardMinimized:e})=>e?"width: 0; min-width: 0;":""};
    }
    .${o.d} {
      transition: transform ${s.$W};
      ${({dashboardMinimized:e})=>e?`transform: translate(-${s.Pu}px);`:""}
    }
  }
`,E=(0,n.A)(r.A,{shouldForwardProp:e=>"dashboardMinimized"!==e})`
  width: 100%;
  height: 100%;
  flex-direction: column;
  padding: ${l.xO};
  gap: ${l.kc};
  scrollbar-width: none;
  outline: none;
  overflow: auto;
  position: relative;
  @media ${i.A.DASHBOARD.LAYOUT.DESKTOP} {
    flex-direction: row;
    gap: ${({dashboardMinimized:e})=>e?0:l.kc};
  }
`,m=(0,n.A)(r.A,{shouldForwardProp:e=>"nested"!==e})`
  width: ${({width:e="100%"})=>e};
  border-radius: ${a.Ay["desktop-radius-base"]};
  flex-direction: column;
  padding: ${({nested:e})=>`${e?0:s.MY}px`};
  border: ${({theme:{themeName:e},nested:A})=>A?"none":a.Ay[`desktop-border-divider-${e}`]};
`},6521:(e,A,t)=>{var a,n;t.d(A,{p:()=>n,v:()=>a}),function(e){e.MEDIUM="MEDIUM",e.HIGH="HIGH"}(a||(a={})),function(e){e.ID="id",e.ALERT_KEY="alert_key",e.SEVERITY="severity",e.SITE_ID="site_id",e.TIMESTAMP="timestamp"}(n||(n={}))},13994:(e,A,t)=>{t.d(A,{A:()=>d});var a=t(296540),n=t(112142),l=t(66706),r=t(71479),i=t(132196),o=t(294303);const s=i.AH`
  overflow: visible;
`,c=(0,r.A)(o.A,{shouldForwardProp:e=>!["innerColor","outerColor"].includes(e)})`
  g {
    transition: unset;
  }
  circle {
    &:first-child {
      ${({outerColor:e})=>e?`fill: ${e};`:""}
    }
    &:last-child {
      ${({innerColor:e})=>e?`fill: ${e};`:""}
    }
  }
`,E=({chartWidth:e,chartHeight:A,top:t,left:n,innerColor:r,outerColor:i="#fff"})=>a.createElement(c,{position:"absolute",top:0,left:0,zIndex:2,innerColor:r,outerColor:i,pointerEvents:"none"},a.createElement("svg",{width:e,height:A,className:s},n&&t&&a.createElement(l.A,{hasAnimation:!1,x:n,y:t}))),m=({topA:e,leftA:A,topB:t,leftB:n})=>a.createElement(o.A,{zIndex:1,borderLeft:"2px dashed white",top:Math.min(e,t),height:Math.max(e,t)-Math.min(e,t),left:(A+n)/2-1,position:"absolute"}),d=({width:e,topA:A,leftA:t,topB:l,leftB:r,chartWidth:i,chartHeight:o,hidden:s,description:c,innerColor:d,tooltipRenderCondition:u,tooltipProps:T={},useSideSwapping:O=!0})=>s?null:a.createElement(a.Fragment,null,u?a.createElement(n.A,{width:e,left:O?t+(t<Math.round(i/2)?8:-8):t-8,top:(A+l)/(l?2:1),description:c,hidden:s,topMargin:4,tooltipProps:{maxWidth:"auto",...!T.position&&O&&t&&i&&{position:t<Math.round(i/2)?"right":"left"},portal:!0,...T}}):null,r&&l?a.createElement(m,{topA:A,topB:l,leftA:t,leftB:r}):null,a.createElement(E,{chartWidth:i,chartHeight:o,top:A,left:t,innerColor:d}))},18395:(e,A,t)=>{t.a(e,async(e,a)=>{try{t.d(A,{A:()=>S});var n=t(771641);const e=(await Promise.resolve().then(t.bind(t,887447))).default,l=(await Promise.resolve().then(t.bind(t,238986))).default,r=(await Promise.resolve().then(t.bind(t,79189))).default,i=(await Promise.resolve().then(t.bind(t,431116))).default,o=(await Promise.resolve().then(t.bind(t,692308))).default,s=(await Promise.resolve().then(t.bind(t,380367))).default,c=(await Promise.resolve().then(t.bind(t,486768))).default,E=(await Promise.resolve().then(t.bind(t,498765))).default,m=(await Promise.resolve().then(t.bind(t,913844))).default,d=(await Promise.resolve().then(t.bind(t,80687))).default,u=(await Promise.resolve().then(t.bind(t,136841))).default,T=(await Promise.resolve().then(t.bind(t,202013))).default,O=(await Promise.resolve().then(t.bind(t,355944))).default,I=(await Promise.resolve().then(t.bind(t,702675))).default,S=()=>({[n.d.LOGS]:e(),[n.d.ADMIN_ACTIVITY]:l(),[n.d.ACTIVITY_APPS]:r(),[n.d.ACTIVITY_APP]:i(),[n.d.CLIENTS]:o(),[n.d.DEVICES]:s(),[n.d.RADIOS]:c(),[n.d.CONTROL_PLANE]:E(),[n.d.CYBERSECURE]:m(),[n.d.ACCOUNT_SUBSCRIPTIONS]:d(),[n.d.FLOWS]:u(),[n.d.QOS]:T(),[n.d.WIFI_SETTINGS]:O(),[n.d.ROAMING]:I()});a()}catch(e){a(e)}},1)},22252:(e,A,t)=>{t.d(A,{G0:()=>o,$z:()=>s,Oi:()=>c});t(429252);var a,n=t(717905),l=(t(151033),t(844356)),r=t(424226);!function(e){e.DEVICES="DEVICES",e.CLIENTS="CLIENTS"}(a||(a={}));var i=t(566723);i.Ln,i.fS,i.Ln,i.Ln,a.DEVICES,l.A,a.CLIENTS,r.A,a.DEVICES,a.CLIENTS;const o=(e,A)=>Math.ceil((e*A+1)/100),s=(e,A)=>e&&e[A]?.status===n.TG.UNLOADED,c=({isNextPageUnloaded:e,allPagesLoaded:A,isSearchApplied:t,areParamsEqual:a})=>e&&!A&&a&&!t},23582:(e,A,t)=>{t.d(A,{A:()=>u});var a,n=t(469733),l=t(296540),r=t(525512),i=t(687573),o=t(648092),s=t(523275),c=t(874807),E=t(906593),m=t(434008);!function(e){e.TYPE="type",e.SUBSCRIPTION="subscription",e.ENABLED="enabled",e.META="meta"}(a||(a={}));const d=(e,A,t)=>({[a.TYPE]:m.uw.SUBSCRIBE,[a.SUBSCRIPTION]:e,[a.ENABLED]:A,[a.META]:t}),u=(e,A=c.P1,t=(0,s.A)(),a=!1)=>{const m=(0,n.useDispatch)(),u=(0,l.useMemo)(()=>JSON.stringify(t),[t]),T=(0,n.useSelector)(o.a),O=(0,l.useMemo)(()=>[T[E.Uz],...a?[T[E.o4]]:[]].filter(Boolean),[T,a]),I=(0,l.useCallback)(e=>(0,r.K6)(e,A),[A]),S=(0,l.useCallback)(e=>{(0,r.$N)(e)},[]);(0,l.useEffect)(()=>(O.forEach(A=>{A.send(d(e,!0,JSON.parse(u)))}),()=>{O.forEach(A=>{A.send(d(e,!1,JSON.parse(u)))})}),[m,e,u,O]),(0,l.useEffect)(()=>{const A=i._[e].map(I);return()=>{A.forEach(S)}},[m,e,I,S])}},24699:(e,A,t)=>{var a;t.d(A,{o:()=>a}),function(e){e.PORTS="ports",e.AV_MANAGER="proav"}(a||(a={}))},28937:(e,A,t)=>{t.d(A,{$n:()=>R,fK:()=>M,C:()=>C,Q5:()=>P});var a=t(801081),n=t(59308),l=t(269672),r=t(113294),i=t(878490),o=t(718556);const s=(e,A)=>!A||A.has(e[o.b._ID]);var c=t(165126),E=t(334925);var m=t(481413),d=t(714041);var u=t(883220);var T=t(396688);var O=t(80748);var I=t(716066);const S={[E.L.AUTHENTICATION_METHODS]:(e,A)=>!A[E.L.AUTHENTICATION_METHODS].length||A[E.L.AUTHENTICATION_METHODS].includes(e[o.b.AUTHORIZED_BY]),[E.L.USED_DATA]:(e,A)=>(0,m.O)((e[o.b.TX_BYTES]||0)+(e[o.b.RX_BYTES]||0),O.kr[A[E.L.USED_DATA][0]],O.kr[A[E.L.USED_DATA][1]]),[E.L.VOUCHERS]:(e,A)=>!A[E.L.VOUCHERS].length||A[E.L.VOUCHERS].includes(e[o.b.VOUCHER_CODE]),[E.L.ACCESS_POINTS]:(e,A)=>!A[E.L.ACCESS_POINTS].length||A[E.L.ACCESS_POINTS].includes(e[o.b.HOTSPOT_CLIENT][I.G.UPLINK_MAC]),[E.L.GUEST_TYPES]:(e,A)=>!A[E.L.GUEST_TYPES].length||A[E.L.GUEST_TYPES].includes((0,T.z)(e)),[E.L.START_TIME]:(e,A)=>!A[E.L.START_TIME].length||(0,m.O)(1e3*e[o.b.START],Date.now()-u.rm[A[E.L.START_TIME][0]],Date.now()-u.rm[A[E.L.START_TIME][1]]),[E.L.VALID_UNTIL]:(e,A)=>!A[E.L.VALID_UNTIL].length||(!(Date.now()<1e3*e[o.b.END])||(0,m.O)(1e3*e[o.b.END],Date.now()+d.iN[A[E.L.VALID_UNTIL][0]],Date.now()+d.iN[A[E.L.VALID_UNTIL][1]]))},N=Object.values(S),_=(e,A)=>N.every(t=>t(e,A));var p=t(902657);const R=(0,a.Mz)(r.vZ,i.e,(e,A)=>e.map(e=>({...e,[o.b.HOTSPOT_CLIENT]:A.find(({mac:A})=>A===e.mac)||{}}))),C=(0,a.Mz)(R,(0,n.U)(l.U4.HOTSPOT_GUESTS),p.qx,(e,A,t)=>{const a=[];for(let n=0;n<e.length;n+=1){const l=e[n];s(l,A)&&_(l,t)&&a.push(l)}return a}),M=e=>(0,a.Mz)(C,p.qx,(A,t)=>{return a=Object.values((n=e,(0,c.A)(S,n))),A.filter(e=>a.every(A=>A(e,t)));var a,n}),P=(0,a.Mz)(r.ni,i.k,(e,A)=>e||A)},29896:(e,A,t)=>{t.d(A,{A:()=>c});var a=t(469733),n=t(296540),l=t(64741),r=t(429252),i=t.n(r),o=t(200826),s=t(789768);const c=e=>{const A=(0,a.useDispatch)(),{columnSize:t={}}=(0,o.A)(e),r=(0,n.useCallback)((0,l.A)(a=>{i()(t,a)||A((0,s.yT)(e,{columnSize:a}))},500),[A,t,e]);return[t,r]}},33453:(e,A,t)=>{t.d(A,{A2:()=>a,AU:()=>c,FC:()=>o,Qw:()=>s,RR:()=>n,_U:()=>E,lT:()=>i,w4:()=>l});const a="deviceTags",n="_id",l=`:${n}:`,r="/v2/api/site/{site}/device-tags",i=r,o=r,s=`${r}/device-tag-assignment/${l}`,c=`${r}/${l}`,E=`/v2/api/device-tags/${l}`},33830:(e,A,t)=>{t.d(A,{$E:()=>l,Go:()=>i,JG:()=>r});var a=t(691189),n=t(348216);const l=(e={},A={})=>(0,a.t9)(n.MODEL,n.GET_PATH,e,{idField:"_id",...A}),r=e=>e._id?(0,a.vL)(n.MODEL,e._id,`${n.REST_PATH}/${e._id}`,e):(0,a.eC)(n.MODEL,n.REST_PATH,e),i=e=>(0,a.LK)(n.MODEL,e,`${n.REST_PATH}/${e}`)},36579:(e,A,t)=>{t.d(A,{B:()=>o});var a=t(469733),n=t(532419),l=t(446260),r=t(860631),i=t(193409);const o=()=>{const e=(0,l.A)(),A=[...(0,a.useSelector)(n.n4)].sort((e,A)=>(0,r.eh)(e.scan_radio_table)?-1:(A.radio_table?.length||0)-(e.radio_table?.length||0)).find(i.A);return e||A||{}}},39512:(e,A,t)=>{t.d(A,{A:()=>i});var a=t(469987),n=t(407652),l=t(198494),r=t(415246);const i=e=>(A,t)=>{A((0,a.t5)(e));const i=(0,l.Gm)(t())?.[r.lR.TABLE_PRESETS]?.[e]?.columns||[];A((0,a.jo)(i.length?i:n.RI[e]))}},43399:(e,A,t)=>{t.d(A,{S:()=>o,c:()=>s});var a=t(801081),n=t(429252),l=t.n(n),r=t(919952),i=t(444472);const o=e=>e[r.U.HOTSPOT_PAYMENTS],s=(0,a.Mz)(o,e=>l()(e,i.N))},43652:(e,A,t)=>{t.d(A,{F:()=>n,L:()=>l});var a=t(864768);const n=()=>{a.A.addTransactionSpan({name:a.A.NetworkSentryTransaction.networkDashboardLoad},a.A.NetworkSentrySpan.aggregatedDashboardApiLoad)},l=()=>{a.A[a.A.NetworkSentrySpan.aggregatedDashboardApiLoad]?.finish?.()}},46685:(e,A,t)=>{t.d(A,{A:()=>o});var a=t(165126),n=t(860765),l=t(716654),r=t(95636),i=t(469987);const o=()=>(e,A)=>{e((0,i.z7)((0,a.A)((0,l.bq)(A()),r.x))),e((0,i.M2)(n.B))}},52361:(e,A,t)=>{t.d(A,{f:()=>l,B:()=>n});const a={0:["#001537","#001E4F","#002767","#00307E","#003C9E","#3363B1","#668AC5","#99C1D8","#CCD8EC","#E5EBF5"],1:["#002759","#003880","#0048A6","#0059CC","#006FFF","#338CFF","#66A9FF","#99C5FF","#CCE2FF","#E5F1FF"],2:["#194659","#23637F","#2E81A4","#389FCA","#46C7FD","#6BD2FD","#90DDFE","#B5E9FE","#DAF4FF","#ECF9FF"],3:["#144923","#1C6632","#258541","#2EA350","#39CC64","#61D683","#88E0A2","#B0EBC1","#D7F5E0","#EBFAEF"],4:["#434E17","#607020","#7C922A","#99B334","#BFE041","#CCE667","#D9EC8D","#E5F3B3","#F2F9D9","#F9FCEC"],5:["#594D09","#806E0D","#A68E11","#CCAF15","#FFDB1A","#FFE248","#FFE976","#FFF1A3","#FFF8D1","#FFFBE8"],6:["#563A0C","#7A5312","#9F6C17","#C4851C","#F5A623","#F7B84F","#F9CA7B","#FBDBA7","#FDEDD3","#FEF6E9"],7:["#541416","#781D1F","#9C2628","#C02E32","#F03A3E","#F36165","#F6898B","#F9B0B2","#FCD8D8","#FDEBEC"],8:["#391D4F","#512971","#693594","#8242B6","#A252E3","#B575E9","#C797EE","#DABAF4","#ECDCF9","#F6EEFC"]},n=e=>a[e<=8?e:e%8],l=(e,A)=>e[A<=9?A:A%9]},52817:(e,A,t)=>{t.d(A,{A:()=>T});var a=t(801081),n=t(189601),l=t(296540),r=t(472797),i=t(627440),o=t(789149);const s=({currentPage:e,preloadTranslation:A,getRouteHref:t})=>l.createElement(r.A,{...(0,o.E)({getRouteHref:t,preloadTranslation:A,currentPage:e})[i.VO.ADMINS]}),c=(0,l.lazy)(()=>Promise.all([t.e(91912),t.e(83770),t.e(40124),t.e(47701),t.e(69029),t.e(23405)]).then(t.bind(t,615509))),E=e=>l.createElement(l.Suspense,{fallback:null},l.createElement(c,{...e}));var m=t(187483),d=t(602021),u=t(221649);const T=(0,n.WY)()((0,a.Mz)(m.W1,d.EL,(e,A)=>({[i.o9.ROUTE_COMPONENT]:E,[i.o9.SIDE_NAVIGATION]:s,[i.o9.ROUTE]:{[i.Fm.AVAILABLE]:e&&!A},[i.o9.NAVIGATION]:{[i.mx.AVAILABLE]:e&&!A},[i.o9.DEPENDENCIES]:u.I[i.VO.ADMINS]})),e=>e)},54317:(e,A,t)=>{t.d(A,{A:()=>a});const a=e=>e>=90?"green-06":e>=70?"lime-06":e>=50?"orange-06":"red-06"},55897:(e,A,t)=>{t.d(A,{Vn:()=>o,q5:()=>E,DM:()=>c,KF:()=>m,S8:()=>s});const a=async e=>new Promise(A=>{const t=e.getReader(),a=[];t.read().then(function e({done:n,value:l}){n?A(async function(e){const A=await new Blob(e).arrayBuffer();return new Uint8Array(A)}(a)):(a.push(l),t.read().then(e))})});async function n(e){const A=new Blob([e]).stream().pipeThrough(new CompressionStream("gzip")),t=await a(A);return n=t,String.fromCharCode(...new Uint8Array(n));var n}async function l(e){const A=function(e){const A=new Uint8Array(new ArrayBuffer(e.length));for(let t=0,a=e.length;t<a;t+=1)A[t]=e.charCodeAt(t);return A}(e),t=await a(new Blob([A]).stream().pipeThrough(new DecompressionStream("gzip")));return(new TextDecoder).decode(t)}var r=t(451919),i=t(510497);var o;!function(e){e.WAVEFORM=`${r.TA.PERSIST}:${r.TA.NETWORK}:${r.UZ.AIRVIEW_WAVEFORM}`,e.WATERFALL=`${r.TA.PERSIST}:${r.TA.NETWORK}:${r.UZ.AIRVIEW_WATERFALL}`}(o||(o={}));const s=e=>!!i.D.getItem(e),c=e=>i.D.removeItem(e),E=async(e,A)=>{if("CompressionStream"in window&&A)try{i.D.setItem(e,await n(JSON.stringify({data:A,version:6})))}catch(e){0}},m=async e=>{if(!("DecompressionStream"in window))return null;try{const A=JSON.parse(await l(i.D.getItem(e)));if(6===A?.version&&A?.data)return A.data;i.D.removeItem(e)}catch(e){console.warn("No stored scanline data for this device. Assuming it's a cold start...")}return null}},55983:(e,A,t)=>{t.d(A,{Ai:()=>r,Ar:()=>i,Qv:()=>o,ZP:()=>s,aY:()=>l,p6:()=>n});var a=t(448547);const n="alarm-manager",l="control-plane",r=`${l}/integrations`,i=`${l}/backups`,o="admins",s=Object.values(a.Kr)},57867:(e,A,t)=>{t.d(A,{A:()=>i});var a=t(165126),n=t(512759),l=t(449256),r=t(706574);const i=()=>(e,A)=>{e((0,r.nd)((0,a.A)((0,n.rQ)(A()),l.jI)))}},60101:(e,A,t)=>{t.d(A,{P_:()=>o,Tk:()=>i,VM:()=>r,Y5:()=>E,gO:()=>c,hD:()=>s,pH:()=>l});var a=t(155918),n=t(320138);const l=60,r=8,i=[a.Z.WIFI_CLIENT_EXPERIENCE,a.Z.WIFI_TX_RETRIES,a.Z.WIFI_CONNECTIVITY],o=[a.Z.AP_RADIO_DENSITY],s=[...i,...o],c=Object.values(n.x),E="BAND_SELECTOR_DIVIDER_CLASSNAME"},60519:(e,A,t)=>{t.d(A,{As:()=>T,H2:()=>E,JQ:()=>i,Jc:()=>m,Qu:()=>o,cW:()=>d,lQ:()=>s,m7:()=>c,vs:()=>O,zp:()=>u});var a=t(801081),n=t(198494),l=t(792072),r=t(602021);const i=(0,a.Mz)(l.Y8,e=>e),o=(0,a.Mz)(n.Io,n.mn,n.aK,r.dK,r.IX,(e,A,t,a,n)=>e?A||t:a||n),s=(0,a.Mz)(n.Io,n.mn,n.aK,r.dK,r.IX,(e,A,t,a,n)=>e?A||t:a||n),c=(0,a.Mz)(n.Io,n.mn,n.aK,r.dK,r.IX,(e,A,t,a,n)=>e?A||t:a||n),E=(0,a.Mz)(n.Io,n.mn,n.aK,n.$7,r.dK,r.IX,(e,A,t,a,n,l)=>e?A||t||a:n||l),m=(0,a.Mz)(r.EL,e=>!e),d=m,u=m,T=m,O=m},70378:(e,A,t)=>{t.d(A,{x:()=>c});var a,n=t(801081),l=t(840279);!function(e){e.WAN_HISTORY_DETAILS="wan_history_details"}(a||(a={}));var r=t(523275),i=t(918710),o=t(897254);const s=(0,n.Mz)(i.e6,e=>e[o.ZJ.WAN_HISTORY]||(0,r.A)()),c=(0,n.Mz)(s,e=>e[a.WAN_HISTORY_DETAILS]||(0,l.A)())},75354:(e,A,t)=>{t.d(A,{A:()=>z});var a=t(296540),n=t(814942),l=t.n(n),r=t(776248),i=t.n(r),o=t(837407),s=t.n(o),c=t(580351),E=t.n(c),m=t(128153),d=t.n(m),u=t(258407),T=t.n(u),O=t(324837),I=t.n(O),S=t(89189),N=t.n(S),_=t(990292),p=t.n(_),R=t(127403),C=t.n(R),M=t(590517),P=t.n(M),D=t(778899),f=t.n(D),b=t(894713),v=t.n(b),L=t(296713),h=t.n(L),y=t(699784);const z=({uptime:e=0})=>{const A=new Date;let t=l()(A,e);const n=e=>(t=e,t),r=i()(A,t),o=d()(A,n(p()(t,r))),c=s()(A,n(P()(t,o))),m=N()(A,n(C()(t,c))),u=I()(A,n(h()(t,m))),O=T()(A,n(v()(t,u))),S=E()(A,n(f()(t,O)));let _="DASHBOARD_DURATION_SECONDS";return r?_="DASHBOARD_DURATION_YEARS":o?_="DASHBOARD_DURATION_MONTHS":c?_="DASHBOARD_DURATION_WEEKS":m?_="DASHBOARD_DURATION_DAYS":u?_="DASHBOARD_DURATION_HOURS":O&&(_="DASHBOARD_DURATION_MINUTES"),a.createElement(y.sA,{id:_,values:{years:r,months:o,weeks:c,days:m,hours:u,minutes:O,seconds:S}})}},79189:(e,A,t)=>{t.d(A,{default:()=>N});var a=t(956347),n=t(469733),l=t(296540),r=t(15095),i=t(189268),o=t(627440),s=t(568977),c=t(670180),E=t(767974),m=t(260411),d=t(416348),u=t(120205),T=t(622217),O=t(282933),I=t(584916),S=t(771641);const N=()=>{const e=(0,n.useDispatch)(),A=(0,a.W6)(),t=(0,n.useSelector)(i.A),N=(0,n.useSelector)(s.mJ),_=(0,n.useSelector)(T.Ej),p=(0,r.A)(`${o.VO.INSIGHTS}/${c.H.ACTIVITY}`),R=(0,l.useMemo)(()=>t[o.o9.NAVIGATION][o.mx.AVAILABLE]&&N[c.H.ACTIVITY][o.o9.NAVIGATION][o.mx.AVAILABLE],[t,N]),C=(0,l.useCallback)(()=>{e((0,m.P7)(u.f.CLIENTS)),e((0,m.yJ)([{[E.wA.CAT]:d.ZM,[E.wA.APP]:d.Je}])),e((0,m.Xy)({startDate:new Date(_[O.VF.START_DATE]),endDate:new Date(_[O.VF.END_DATE]),preset:I.j})),A.push(p)},[A,p,e,_]);return(0,l.useMemo)(()=>({[S.q.AVAILABLE]:R,[S.q.REDIRECT]:C}),[R,C])}},79583:(e,A,t)=>{var a;t.d(A,{T:()=>a}),function(e){e.AMOUNT="amount",e.CURRENCY="currency",e.CHARGED_AS="charged_as",e.HOURS="hours",e.TRIAL_DURATION_MINUTES="trial_duration_minutes",e.TRIAL_RESET="trial_reset",e.LIMIT_OVERWRITE="limit_overwrite",e.LIMIT_UP="limit_up",e.LIMIT_DOWN="limit_down",e.LIMIT_QUOTA="limit_quota",e.INDEX="index",e.NAME="name",e.CUSTOM_PAYMENT_FIELDS_ENABLED="custom_payment_fields_enabled",e.PAYMENT_FIELDS_ADDRESS_ENABLED="payment_fields_address_enabled",e.PAYMENT_FIELDS_ADDRESS_REQUIRED="payment_fields_address_required",e.PAYMENT_FIELDS_CITY_ENABLED="payment_fields_city_enabled",e.PAYMENT_FIELDS_CITY_REQUIRED="payment_fields_city_required",e.PAYMENT_FIELDS_COUNTRY_DEFAULT="payment_fields_country_default",e.PAYMENT_FIELDS_COUNTRY_ENABLED="payment_fields_country_enabled",e.PAYMENT_FIELDS_COUNTRY_REQUIRED="payment_fields_country_required",e.PAYMENT_FIELDS_EMAIL_ENABLED="payment_fields_email_enabled",e.PAYMENT_FIELDS_EMAIL_REQUIRED="payment_fields_email_required",e.PAYMENT_FIELDS_FIRST_NAME_ENABLED="payment_fields_first_name_enabled",e.PAYMENT_FIELDS_FIRST_NAME_REQUIRED="payment_fields_first_name_required",e.PAYMENT_FIELDS_LAST_NAME_ENABLED="payment_fields_last_name_enabled",e.PAYMENT_FIELDS_LAST_NAME_REQUIRED="payment_fields_last_name_required",e.PAYMENT_FIELDS_STATE_ENABLED="payment_fields_state_enabled",e.PAYMENT_FIELDS_STATE_REQUIRED="payment_fields_state_required",e.PAYMENT_FIELDS_ZIP_ENABLED="payment_fields_zip_enabled",e.PAYMENT_FIELDS_ZIP_REQUIRED="payment_fields_zip_required",e.SITE_ID="site_id",e._ID="_id",e.ENABLED="enabled"}(a||(a={}))},80687:(e,A,t)=>{t.d(A,{default:()=>r});var a=t(296540),n=t(765562),l=t(771641);const r=()=>{const e=!0,A=(0,a.useCallback)(()=>{window.location.href=n.A.accountUiSubscriptions},[]);return(0,a.useMemo)(()=>({[l.q.AVAILABLE]:e,[l.q.REDIRECT]:A}),[A,e])}},83604:(e,A,t)=>{t.d(A,{A:()=>l});var a=t(296540),n=t(795342);const l=e=>a.createElement(n.A,{...e})},87582:(e,A,t)=>{t.d(A,{C_:()=>c,S1:()=>s,k2:()=>E});var a=t(801081),n=t(523275),l=t(840279),r=t(918710),i=t(897254),o=t(155918);const s=(0,a.Mz)(r.e6,e=>e[i.ZJ.DASHBOARD_META]||(0,n.A)()),c=(0,a.Mz)(s,e=>e[o.J.WIDGETS]||(0,l.A)()),E=e=>(0,a.Mz)(c,r.e6,(A,t)=>e.some(e=>A.includes(e)&&e in t&&Boolean(t[e])))},88502:(e,A,t)=>{t.d(A,{A:()=>o});var a=t(469733),n=t(23582),l=t(413914),r=t(624489),i=t(897254);const o=()=>{const e=(0,a.useSelector)(r.V);(0,n.A)(l.E.DASHBOARD,void 0,(e=>({history_seconds:e[i.GB.HISTORY_SECONDS]}))(e))}},98160:(e,A,t)=>{t.d(A,{A:()=>s});var a=t(296540),n=t(71479),l=t(61902),r=t(294303),i=t(786256);const o=(0,n.A)(r.A)`
  background-color: ${l.L};
  color: ${({theme:{motifPalette:{text02:e}}})=>e};
  overflow: hidden;
  position: relative;
`,s=e=>a.createElement(o,{className:i.b,flex:1,flexDirection:"column",...e})},104154:(e,A,t)=>{t.d(A,{A:()=>i});var a=t(469733),n=t(296540),l=t(691294),r=t(239417);const i=({client:{id:e,type:A,status:t,blocked:i},props:o,children:s})=>{const c=(0,n.useMemo)(()=>A===l.sK.VPN?l.N7.VPN:A===l.sK.TELEPORT?l.N7.TELEPORT:i?l.N7.BLOCKED:t===l.S2.OFFLINE?l.N7.OFFLINE:l.N7.ACTIVE,[A,i,t]);return s((0,a.useSelector)((0,n.useMemo)(()=>(0,r.kV)(e,o,c),[e,o,c])))}},108916:(e,A,t)=>{t.d(A,{M9:()=>i,o4:()=>s,qM:()=>r,uF:()=>o});var a=t(801081),n=t(276907),l=t(919952);const r=(0,a.Mz)(e=>e[l.U.SHARED][n.N.AUTH],({login:e})=>e),i=(0,a.Mz)(r,({isInProgress:e})=>e),o=(0,a.Mz)(r,({error:e})=>e),s=(0,a.Mz)(r,({require2Fa:e})=>e)},109277:(e,A,t)=>{t.d(A,{A:()=>O});var a=t(956347),n=t(469733),l=t(296540),r=t(758649),i=t(217439),o=t(705145),s=t(834316),c=t(15095),E=t(699784),m=t(187483),d=t(556456),u=t(55983),T=t(920919);const O=(0,l.memo)(({name:e,actor:A})=>{const t=(0,a.W6)(),{formatMessage:O}=(0,E.tz)(),I=(0,n.useSelector)(m.TP),S=(0,c.A)(u.Qv),N=(0,n.useSelector)(m.W1),_=(0,n.useSelector)(d.yE),p=(0,l.useCallback)(()=>{_?t.push(S):window.location.href=(0,s.SK)(I)},[I,S,t,_]);return N||!e?l.createElement(i.A,{size:"medium",color:"text-3"},e||(0,T.Y)(A,O)||O({id:"COMMON_UNKNOWN"})):l.createElement(r.A,{type:"button",size:"medium",onClick:p,variant:"inline"},l.createElement(o.A,{color:"inherit",size:"medium",isTruncated:!0},e))})},115603:(e,A,t)=>{t.d(A,{t:()=>i});var a=t(801081),n=t(523275),l=t(918710),r=t(897254);const i=(0,a.Mz)(l.e6,e=>e[r.ZJ.GATEWAY]||(0,n.A)())},116351:(e,A,t)=>{t.d(A,{U8:()=>E,Vj:()=>c,ls:()=>s});var a=t(801081),n=t(25553),l=t(87485),r=t(195672),i=t(33830);const o=(0,n.uh)((0,i.$E)()),s=(0,a.Mz)(o,l.kh),c=(0,a.Mz)(s,e=>e.filter(({amount:e})=>!(0,r.z)(e))),E=(0,a.Mz)(s,e=>e.find(({amount:e})=>(0,r.z)(e))||{})},121942:(e,A,t)=>{t.d(A,{A:()=>n});var a=t(296540);const n=e=>{const[A,t]=(0,a.useState)(Math.max(0,e)),n=(0,a.useRef)(),l=(0,a.useRef)(Math.max(0,e));return(0,a.useEffect)(()=>{if(e){n.current&&clearInterval(n.current);const A=Math.max(0,l.current),a=Math.max(0,e);let r=0;n.current=setInterval(()=>{if(Math.abs(a-A)>3e3&&r<30)t(Math.max(0,A+(a-A)/30*(r+1))),r+=1;else{const e=Math.max(0,a);t(Math.max(0,e+(Math.random()-.5)*(e=>e<=1e5?.95:e<=1e6?.45:.15)(e)*e))}},5e3/30),l.current=a}return()=>{n.current&&clearInterval(n.current)}},[e]),e?A:0}},124348:(e,A,t)=>{t.d(A,{c:()=>c});var a=t(691189),n=t(887831),l=t(983228),r=t(449256),i=t(151033),o=t(635937);const s={[i.hD.SEARCH_TEXT]:r.fN,[i.hD.SEVERITIES]:o.Zx,[i.hD.CATEGORIES]:o.KF,[i.hD.SUBCATEGORIES]:o.Ys,[i.hD.EVENTS]:o.mI,[i.hD.CLIENT_DEVICE_MACS]:[],[i.hD.ADMIN_IDS]:[]},c=(e={},A={})=>(0,a.t9)(l.A2,l.gI,{...e,data:s},{idField:l.RR,method:n.A.POST,fetchConfig:{getAllPostResponse:!0},...A})},136841:(e,A,t)=>{t.d(A,{default:()=>I});var a=t(469733),n=t(296540),l=t(239764),r=t(39512),i=t(189268),o=t(627440),s=t(568977),c=t(670180),E=t(469987),m=t(765051),d=t(622217),u=t(282933),T=t(584916),O=t(771641);const I=()=>{const e=(0,a.useSelector)(i.A),A=(0,a.useSelector)(s.mJ),t=(0,n.useMemo)(()=>e[o.o9.NAVIGATION][o.mx.AVAILABLE]&&A[c.H.FLOWS][o.o9.NAVIGATION][o.mx.AVAILABLE],[e,A]),I=(0,a.useSelector)(d.Ej),S=(0,l.A)(),N=(0,n.useCallback)(()=>{S(e=>{e((0,E.bD)({startDate:new Date(I[u.VF.START_DATE]),endDate:new Date(I[u.VF.END_DATE]),preset:T.j})),e((0,r.A)(m.L1.THREATS))})},[I,S]);return(0,n.useMemo)(()=>({[O.q.AVAILABLE]:t,[O.q.REDIRECT]:N}),[N,t])}},137625:(e,A,t)=>{t.d(A,{A:()=>s});var a=t(296540),n=t(353899),l=t(132196),r=t(372737),i=t(566723),o=t(699784);const s=({children:e=null,title:A,titleValues:t,message:s,messageValues:c,handleConfirm:E=()=>null,handleClose:m=()=>null,handleCancel:d,isOpen:u,buttonVariant:T="primary",cancelButtonVariant:O="tertiary",cancelButtonMessage:I="COMMON_ACTION_CANCEL",buttonMessage:S="COMMON_ACTION_CONFIRM",buttonDisabled:N=!1,position:_="top",showHeaderClose:p=!1,contentClassName:R="",body:C,titleBody:M,className:P,rootClose:D=!1,footerActions:f})=>{const b=(0,a.useCallback)(e=>{u&&(e.stopPropagation(),e.key===r.U.ENTER?E():e.key===r.U.ESCAPE&&m(!1))},[u,E,m]);(0,a.useEffect)(()=>(window.addEventListener("keydown",b,!0),()=>{window.removeEventListener("keydown",b,!0)}),[b]);const v=(0,a.useCallback)(()=>{m(!1),d?.()},[m,d]),L=(0,a.useCallback)(()=>{m(!1),E()},[m,E]),h=(0,a.useMemo)(()=>[{text:a.createElement(o.sA,{id:I}),variant:O,onClick:v},{text:a.createElement(o.sA,{id:S}),disabled:N,variant:T,onClick:L}],[S,T,I,O,v,L,N]),y=(0,a.useCallback)(()=>{m(!1)},[m]),z=l.AH`
    ${A?"":`margin-top: ${i.xO}`}
  `;return a.createElement(n.A,{title:A?a.createElement(o.sA,{id:A,values:t}):M||null,...s?{body:a.createElement(a.Fragment,null,a.createElement(o.sA,{id:s,values:c}),C)}:{body:C},position:_,portal:!0,actions:f||h,showHeaderClose:p,contentClassName:l.AH`
        ${z}
        ${R}
      `,onRequestClose:y,isOpen:u,allowOverflow:!0,rootClose:D,className:P},e)}},140496:(e,A,t)=>{var a,n;t.d(A,{N:()=>n,e:()=>a}),function(e){e.DASHBOARD="dashboard",e.SIDE_PANEL="sidePanel"}(a||(a={})),function(e){e.DIAMETER="diameter",e.BORDER="border",e.PADDING="padding",e.SPACER="spacer",e.THICKNESS="thickness"}(n||(n={}))},147824:(e,A,t)=>{var a;t.d(A,{u:()=>a}),function(e){e.NONE="none",e.VOUCHER="voucher",e.FREE="free",e.CREDIT="credit",e.MERCADOPAGO="mercadopago",e.TWOCHECKOUT="twocheckout",e.PASSWORD="password",e.RADIUS="radius",e.API="api",e.GOOGLE="google",e.FACEBOOK="facebook"}(a||(a={}))},147883:(e,A,t)=>{t.d(A,{o:()=>a});const a="DASHBOARD_REDIRECT_ARROW_CLASSNAME"},155918:(e,A,t)=>{var a,n;t.d(A,{J:()=>a,Z:()=>n}),function(e){e.START_TIMESTAMP="start_timestamp",e.END_TIMESTAMP="end_timestamp",e.WIDGETS="widgets"}(a||(a={})),function(e){e.TRAFFIC_IDENTIFICATION="traffic_identification",e.CONNECTION_TYPES="connection_types",e.WIFI_TECHNOLOGY="wifi_technology",e.WIRELESS_EXPERIENCE="wireless_experience",e.WIFI_ACTIVITY="wifi_activity",e.WIFI_CHANNELS="wifi_channels",e.WIFI_CLIENT_EXPERIENCE="wifi_client_experience",e.WIFI_TX_RETRIES="wifi_tx_retries",e.WIFI_CONNECTIVITY="wifi_connectivity",e.ADMIN_ACTIVITY="admin_activity",e.SERVER_IP="server_ip",e.SPEED_TEST="speed_test",e.DEVICE_CAPACITY="device_capacity",e.CONNECTIVITY_STATUS="connectivity_status",e.SYSTEM_STATUS="system_status",e.NEXT_AI="next_ai",e.WAN="wan",e.WAN_HISTORY="wan_history",e.GATEWAY="gateway",e.AP_RADIO_DENSITY="ap_radio_density",e.CYBERSECURE="cybersecure",e.WIFI_CHANNEL_PRESET_CONFIGURATION="wifi_channel_preset_configuration",e.CRITICAL_TRAFFIC_PRIORITIZATION="critical_traffic_prioritization",e.MOST_ACTIVE_APPS_APS_CLIENTS="most_active_apps_aps_clients",e.MOST_ACTIVE_APPS_CLIENTS="most_active_apps_clients",e.MOST_ACTIVE_APS_CLIENTS="most_active_aps_clients",e.MOST_ACTIVE_APPS_APS="most_active_apps_aps",e.MOST_ACTIVE_APPS="most_active_apps",e.V2_MOST_ACTIVE_APS="v2_most_active_aps",e.V2_MOST_ACTIVE_CLIENTS="v2_most_active_clients",e.TRAFFIC_FLOW_STATS="traffic_flow_stats",e.MOST_COMMON_CLIENT_FINGERPRINTS="most_common_client_fingerprints",e.WAN_ACTIVITY="wan_activity",e.ISP_METRICS="isp_metrics",e.UPGRADABLE_DEVICE_COUNT="upgradable_device_count",e.WIFI_DOCTOR="wifi_doctor"}(n||(n={}))},156229:(e,A,t)=>{t.d(A,{Ds:()=>s,M$:()=>c,X:()=>E,eT:()=>d});var a=t(801081),n=t(25553),l=t(87485),r=t(560485);const i=(0,n.uh)((0,r.j)()),o=(0,a.Mz)(i,l.i6),s=(0,a.Mz)(o,e=>e?.error||!1),c=((0,a.Mz)(o,({mapbox:e})=>e),(0,a.Mz)(o,({unsplash:e})=>e||null)),E=(0,a.Mz)(o,({stripe:e})=>e),m=(0,a.Mz)(o,({lte:e})=>e||{}),d=(0,a.Mz)(m,({pricing:e})=>e)},168703:(e,A,t)=>{var a;t.d(A,{x:()=>a}),function(e){e.CURRENT_WAN_DETAILS="currentWanDetails",e.CURRENT_WAN_HISTORY_DETAILS="currentWanHistoryDetails",e.CURRENT_WAN_UPTIME="currentWanUptime",e.INITIAL_WAN_TAB="initialWanTab",e.IS_WAN_CONNECTED="isWanConnected",e.HEALTH_HISTORIES="healthHistories",e.DOWNTIME_HISTORY="downtimeHistory",e.DATE_TIME_FORMAT="dateTimeFormat",e.REDIRECTOR="redirector",e.TOOLTIP_TIME_RANGE="tooltipTimeRange",e.NETWORK_GROUP_DETAILS="networkGroupDetails",e.HAS_MULTIPLE_WANS="hasMultipleWans",e.MBB_STATUS="mbbStatus",e.ISP_NAME="ispName",e.ISP_ASN="ispAsn",e.CURRENT_ISP_ID="currentIspId"}(a||(a={}))},171443:(e,A,t)=>{t.d(A,{JW:()=>l,_z:()=>r,ey:()=>n});var a=t(826094);const n={[a.nn.APPLICATION_INSTALLING]:"COMMON_APPLICATION_STATE_INSTALLING",[a.nn.APPLICATION_UPDATING]:"COMMON_APPLICATION_STATE_UPDATING",[a.nn.CONSOLE_POWERINGOFF]:"COMMON_DEVICE_STATE_POWERING_OFF",[a.nn.CONSOLE_REBOOTING]:"COMMON_DEVICE_STATE_REBOOTING",[a.nn.CONSOLE_UPGRADING]:"COMMON_DEVICE_STATE_UPGRADING"},l=6,r={width:"auto",maxWidth:"80px",height:"20px"}},173943:(e,A,t)=>{t.d(A,{I:()=>n,s:()=>a});const a=25,n=5},183878:(e,A,t)=>{t.d(A,{A:()=>d,c:()=>m});var a=t(137007),n=t(259210),l=t(663516),r=t(959533),i=t(515986),o=t(982858),s=t(893562);const c={width:1},E=5e5;var m;!function(e){e.STATUS_UPDATED="STATUS_UPDATED",e.SCAN_RECEIVED="SCAN_RECEIVED"}(m||(m={}));class d extends a.EventEmitter{constructor(e){super(),this.status=o.y.OFF,this.scan=null,this.channelId=1,this.buffer="",this.shutdownTimer=0,this.open=async e=>{if(this.updateStatus(o.y.PENDING),this.resetShutdownTimer(),this.active&&this.mac===e)return Promise.resolve();this.mac&&e!==this.mac&&(this.updateStatus(o.y.SWITCHING),this.close()),this.active=!0,this.mac=e;const A=`${s.wc}.${this.channelId}`;return(0,l.fz)(e,this,this.options).then(e=>{e.openChannel(A,(e,A)=>(0,n.A)(A)).then(()=>{this.addInternalListeners(),this.buffer="",e.send(A,`${JSON.stringify(c)}\n`),e.on(A,this.onChannelMessage)}).catch(this.onError)})},this.onChannelMessage=e=>{this.buffer+=e,this.clampBuffer();try{const e=JSON.parse(this.buffer);if(!e)return;e?.status?this.updateStatus(e.status):e?.rssi_histograms&&this.setScan(e.rssi_histograms),this.buffer=""}catch(e){}this.buffer.endsWith("\n")&&(this.buffer="")},this.setScan=e=>{this.scan=e,this.emit(m.SCAN_RECEIVED,e),this.status!==o.y.RECEIVING&&this.updateStatus(o.y.RECEIVING)},this.updateStatus=e=>{this.status=e,this.emit(m.STATUS_UPDATED,e)},this.clampBuffer=()=>{if(this.buffer.length>E){const e='{"rssi_histograms":';this.buffer=this.buffer.substring(this.buffer.lastIndexOf(e)),this.buffer.length>E&&(this.buffer="")}},this.addInternalListeners=()=>{this.on(r.w.CHANNEL_CLOSED,this.onChannelClose),this.on(i.yu.WEBRTC_CLOSED,this.onDisconnected),this.on(i.yu.WEBRTC_SDP_RECEIVING_ERROR,this.onDisconnected)},this.removeInternalListeners=()=>{this.off(r.w.CHANNEL_CLOSED,this.onChannelClose),this.off(i.yu.WEBRTC_CLOSED,this.onDisconnected),this.off(i.yu.WEBRTC_SDP_RECEIVING_ERROR,this.onDisconnected)},this.onError=()=>{this.updateStatus(o.y.FAILED),this.close()},this.onChannelClose=()=>{this.releaseConnection(this.mac)},this.onDisconnected=()=>{this.updateStatus(o.y.DISCONNECTED),this.close()},this.beforeUnload=()=>{this.close()},this.resetShutdownTimer=()=>{this.shutdownTimer&&(window.clearTimeout(this.shutdownTimer),this.shutdownTimer=0)},this.close=()=>{this.emit(r.J.CANCEL_CONNECTION,this.mac),this.releaseConnection(this.mac)},this.leave=()=>{this.shutdownTimer||(this.shutdownTimer=window.setTimeout(()=>{this.resetShutdownTimer(),this.close()},1e4))},this.options=e,window.addEventListener("beforeunload",this.beforeUnload)}releaseConnection(e){this.active&&(this.active=!1,(0,l.eh)(e),this.removeInternalListeners())}}},183970:(e,A,t)=>{var a;t.d(A,{k:()=>a}),function(e){e.CLIENTS="CLIENTS",e.USERS="USERS"}(a||(a={}))},186869:(e,A,t)=>{t.d(A,{o:()=>n});var a=t(155918);const n=[a.Z.MOST_ACTIVE_APPS_APS_CLIENTS,a.Z.MOST_ACTIVE_APPS_CLIENTS,a.Z.MOST_ACTIVE_APS_CLIENTS,a.Z.MOST_ACTIVE_APPS_APS,a.Z.MOST_ACTIVE_APPS,a.Z.V2_MOST_ACTIVE_APS,a.Z.V2_MOST_ACTIVE_CLIENTS]},189268:(e,A,t)=>{t.d(A,{A:()=>u});var a=t(801081),n=t(189601),l=t(296540),r=t(472797),i=t(627440),o=t(789149);const s=({currentPage:e,preloadTranslation:A,getRouteHref:t})=>l.createElement(r.A,{...(0,o.E)({currentPage:e,preloadTranslation:A,getRouteHref:t})[i.VO.INSIGHTS]});var c=t(568977);const E=(0,l.lazy)(()=>Promise.all([t.e(46880),t.e(30715),t.e(89716),t.e(72272),t.e(82942),t.e(20200)]).then(t.bind(t,835237))),m=e=>l.createElement(l.Suspense,{fallback:null},l.createElement(E,{...e}));var d=t(221649);const u=(0,n.WY)()((0,a.Mz)(c.Ng,e=>({[i.o9.ROUTE_COMPONENT]:m,[i.o9.SIDE_NAVIGATION]:s,[i.o9.ROUTE]:{[i.Fm.AVAILABLE]:e},[i.o9.NAVIGATION]:{[i.mx.AVAILABLE]:e},[i.o9.DEPENDENCIES]:d.I[i.VO.INSIGHTS]})),e=>e)},193409:(e,A,t)=>{t.d(A,{A:()=>s});var a=t(860631),n=t(780811),l=t(837612),r=t(768195),i=t(602197),o=t(222404);const s=e=>{if(!e)return!1;const A=(0,n.r$V)(e),t=e?.uplink?.type===r.au.WIRE,s=(0,l.S9)(e),c=(0,l.wk)(s);return(0,a.mT)(e,o.A.RF_SCAN)&&!A&&t&&c&&s!==i.g.UPGRADING}},194381:(e,A,t)=>{t.d(A,{A:()=>mr});var a=t(296540),n=t(592510),l=t(834959),r=t(413357),i=t(582724),o=t(118835),s=t(457311),c=t(345558),E=t(469733),m=t(793177),d=t(83604),u=t(249304),T=t(318787),O=t(29896),I=t(882390),S=t(905410),N=t(860765),_=t(200826),p=t(712492),R=t(761541),C=t(297465),M=t(651628),P=t(616660),D=t(801081),f=t(59308),b=t(269672);const v=Object.values({}),L=(e,A)=>v.every(t=>t(e,A));var h=t(43399);const y=(e,A)=>!A||A.has(e[R.$.CODE]),z=(0,D.Mz)(p.nY,(0,f.U)(b.U4.HOTSPOT_VOUCHERS),h.S,(e,A,t)=>{const a=[];for(let n=0;n<e.length;n+=1){const l=e[n];y(l,A)&&L(l,t)&&a.push(l)}return a});var g=t(758649),x=t(733712),W=t(458973),H=t(294303),w=t(699784),U=t(863979),k=t(232857);const G=e=>e,V=({header:{id:e}})=>k.hP[e](e),X=e=>k.sV[e],Z=({column:{id:e},getValue:A})=>k.iV[e](A()),Y=e=>(A,t)=>k.BU[e](A,t),B=k.eZ.map(e=>({id:e,accessorFn:G,header:V,cell:Z,...X(e),enableResizing:!0,compare:Y(e),enableSorting:k.$[e]})),F={wrapperFlexProps:{padding:"0px"},rowOptions:[{value:25,default:!1},{value:50,default:!1},{value:100,default:!0}]},j={columns:B,className:U.Fl,stickyHeader:!0};var K=t(71479);const q=(0,K.A)(H.A)`
  height: 100%;
  width: 100%;
  overflow: auto;
  flex-direction: column;
`,J=()=>{const e=(0,E.useDispatch)(),A=(0,E.useSelector)(p.nY),t=(0,E.useSelector)((0,a.useMemo)(()=>(0,f.f)(b.U4.HOTSPOT_VOUCHERS),[])),n=(0,a.useMemo)(()=>a.createElement(H.A,{width:"100%",flexDirection:"column"},A.length&&t.length?a.createElement(x.A,{title:a.createElement(w.sA,{id:"COMMON_NO_MATCH"}),description:a.createElement(w.sA,{id:"HOTSPOT_EMPTY_SEARCH_DETAILS",values:{button:a.createElement(g.A,{variant:"inline",onClick:()=>{document.querySelector("input[role=combobox]")?.focus?.(),e((0,W.sV)(b.U4.HOTSPOT_VOUCHERS))}},a.createElement(w.sA,{id:"COMMON_REMOVE_SEARCH_BUTTON_TEXT"})),target:a.createElement("span",{style:{textTransform:"lowercase"}},a.createElement(w.sA,{id:"COMMON_VOUCHERS"}))}})}):a.createElement(x.A,{title:a.createElement(w.sA,{id:"HOTSPOT_VOUCHERS_TABLE_EMPTY_HEADER"}),description:a.createElement(w.sA,{id:"HOTSPOT_VOUCHERS_TABLE_EMPTY_INFO"})})),[A,t,e]);return a.createElement(q,null,a.createElement(d.A,{data:[],...j}),n)},Q=()=>{const e=(0,E.useDispatch)(),A=(0,E.useSelector)(z),t=(0,E.useSelector)(p.uS),l=(0,E.useSelector)(m.FI),[r,s]=(0,O.A)(u.l.HOTSPOT_VOUCHERS),[c,D]=(0,T.A)(u.l.HOTSPOT_VOUCHERS),{initialColumns:f=[]}=(0,_.A)(u.l.HOTSPOT_VOUCHERS),b=(0,a.useMemo)(()=>k.eZ.reduce((e,A)=>(e[A]=f.includes(A),e),{}),[f]),v=(0,a.useMemo)(()=>A.map(e=>e[R.$._ID]),[A]),L=(0,a.useCallback)(A=>{e((0,M.s0)(A.map(e=>v[e])))},[e,v]),h=(0,a.useCallback)(({pageNumber:e,rowsPerPage:t})=>a.createElement(d.A,{data:A,pageSize:t,pageIndex:e,initialColumnSize:r,onColumnSizingChange:s,columnVisibility:b,sorting:c,onSort:D,multiSelectMode:!0,onChangeSelection:L,...j}),[A,D,c,r,s,b,L]),y=(0,a.useCallback)(A=>{A!==l&&e((0,M.Zr)(A))},[e,l]),g=(0,a.useCallback)(()=>{e((0,M.Zr)(N.B))},[e]);return(0,I.A)(!t,`${o.M.HOTSPOT}-${P.z.VOUCHERS}`),(0,i.A)([(0,C.P5)(void 0,{crudCacheStrategy:{type:n.e.CACHE}})],A.length&&Object.values(b).some(Boolean)?a.createElement(S.A,{section:"COMMON_VOUCHERS",tableType:u.l.HOTSPOT_VOUCHERS,itemCount:A.length,onRenderTable:h,onPageChanged:y,onRowsChanged:g,pageNumber:l,...F}):a.createElement(J,null),{trackingName:P.z.VOUCHERS})};var $=t(691189),ee=t(531046);const Ae=({start:e,end:A},t={},a={})=>(0,$.An)([{model:ee.A2,payload:(t=[])=>[{hotspotPayments:t,[ee.RR]:`${e}_${A}`}]}],ee.gI,{queryParams:{start:e,end:A},...t},{idField:ee.RR,...a});var te=t(33830),ae=t(283455),ne=t(789768);const le=(0,K.A)(H.A)`
  height: 100%;
  width: 100%;
  overflow: auto;
  flex-direction: column;
`;var re=t(444472),ie=t(848670),oe=t(937834);const se=e=>e,ce=({header:{id:e}})=>oe.Pk[e](e),Ee=e=>oe.Ax[e],me=({column:{id:e},getValue:A})=>oe.OB[e](A()),de=oe.OX.map(e=>{return{id:e,accessorFn:se,header:ce,cell:me,...Ee(e),enableResizing:!0,enableSorting:!0,compare:(A=e,oe.b5[A])};var A}),ue={wrapperFlexProps:{padding:"0px"},rowOptions:[{value:25,default:!1},{value:50,default:!1},{value:100,default:!0}]},Te={columns:de,className:U.Fl,stickyHeader:!0};var Oe=t(461854);const Ie=()=>{const e=(0,E.useDispatch)(),A=(0,E.useSelector)(ae.VN),t=(0,E.useSelector)((0,a.useMemo)(()=>(0,f.U)(b.U4.HOTSPOT_PAYMENTS),[])),n=(0,a.useCallback)(()=>{e((0,ie.q)(re.N)),e((0,ne.yT)(u.l.HOTSPOT_PAYMENTS,{initialColumns:Object.values(Oe.H)})),e((0,W.sV)(b.U4.HOTSPOT_PAYMENTS))},[e]),l=(0,a.useMemo)(()=>A.length&&t?a.createElement(x.A,{title:a.createElement(w.sA,{id:"COMMON_NO_MATCH"}),description:a.createElement(w.sA,{id:"CLIENTS_HOTSPOT_GUESTS_EMPTY_SEARCH_DETAILS",values:{button:a.createElement(g.A,{type:"button",variant:"inline",onClick:n},a.createElement(w.sA,{id:"COMMON_REMOVE_SEARCH_BUTTON_TEXT"})),target:a.createElement("span",{style:{textTransform:"lowercase"}},a.createElement(w.sA,{id:"COMMON_PAYMENTS"}))}})}):A.length?a.createElement(x.A,{title:a.createElement(w.sA,{id:"COMMON_NO_MATCH"}),description:a.createElement(w.sA,{id:"CLIENTS_EMPTY_FILTER_NO_CLIENTS_DETAILS",values:{button:a.createElement(g.A,{type:"button",variant:"inline",onClick:n},a.createElement(w.sA,{id:"COMMON_RESET_THEM_BUTTON_TEXT"}))}})}):a.createElement(x.A,{title:a.createElement(w.sA,{id:"CLIENTS_HOTSPOT_PAYMENTS_EMPTY_HEADER"})}),[A.length,t,n]);return a.createElement(le,null,a.createElement(d.A,{data:[],...Te}),l)},Se=()=>{const e=(0,E.useDispatch)(),A=(0,E.useSelector)(ae.ck),t=(0,E.useSelector)(ae.qV),l=(0,E.useSelector)(m.jN),{startDate:r,endDate:s}=(0,E.useSelector)(m.kR),[c,p]=(0,O.A)(u.l.HOTSPOT_PAYMENTS),[R,C]=(0,T.A)(u.l.HOTSPOT_PAYMENTS),{initialColumns:D=[]}=(0,_.A)(u.l.HOTSPOT_PAYMENTS),f=(0,a.useMemo)(()=>oe.OX.reduce((e,A)=>(e[A]=D.includes(A),e),{}),[D]),b=(0,a.useCallback)(({pageNumber:e,rowsPerPage:t})=>a.createElement(d.A,{data:A,pageSize:t,pageIndex:e,initialColumnSize:c,onColumnSizingChange:p,columnVisibility:f,sorting:R,onSort:C,...Te}),[A,C,R,c,p,f]),v=(0,a.useCallback)(A=>{A!==l&&e((0,M.PI)(A))},[e,l]),L=(0,a.useCallback)(()=>{e((0,M.PI)(N.B))},[e]);return(0,I.A)(t,`${o.M.HOTSPOT}-${P.z.PAYMENTS}`),(0,i.A)([Ae({start:r.getTime(),end:s.getTime()},void 0,{crudCacheStrategy:{type:n.e.CACHE}}),(0,te.$E)()],A.length&&Object.values(f).some(Boolean)?a.createElement(S.A,{section:"COMMON_PAYMENTS",tableType:u.l.HOTSPOT_PAYMENTS,itemCount:A.length,onRenderTable:b,onPageChanged:v,onRowsChanged:L,pageNumber:l,...ue}):a.createElement(Ie,null),{trackingName:P.z.PAYMENTS,renderKey:[r.getTime(),s.getTime()].join()})};var Ne=t(951272),_e=t(353507),pe=t(742920),Re=t(883840),Ce=t(675359),Me=t(560485),Pe=t(302167),De=t(881314),fe=t(609695),be=t(140614);const ve="portalfile",Le=`/api/s/{site}/rest/${ve}`,he=`/upload/s/{site}/${ve}`,ye=e=>(0,$.t2)(ve,e);var ze=t(947042),ge=t(258840),xe=t(870443),We=t(823881),He=t(261218),we=t(79583),Ue=t(727270),ke=t(546391);const Ge=["89504e47","47494638","ffd8ffe0","ffd8ffe1","ffd8ffe2"],Ve={name:"",currency:"USD",amount:null,hours:null,charged_as:"",limit_overwrite:!1,limit_down:void 0,limit_up:void 0,limit_quota:null,custom_payment_fields_enabled:!0,payment_fields_country_enabled:!0,payment_fields_country_required:!0,payment_fields_country_default:"US",payment_fields_address_enabled:!1,payment_fields_address_required:!1,payment_fields_city_enabled:!1,payment_fields_city_required:!1,payment_fields_email_enabled:!1,payment_fields_email_required:!1,payment_fields_first_name_enabled:!1,payment_fields_first_name_required:!1,payment_fields_last_name_enabled:!1,payment_fields_last_name_required:!1,payment_fields_state_enabled:!1,payment_fields_state_required:!1,payment_fields_zip_enabled:!1,payment_fields_zip_required:!1},{hours:Xe,...Ze}=Ve,Ye={...Ze,trial_duration_minutes:null},Be=[{value:We.Zg.STRIPE,label:"HOTSPOT_PAYMENTS_GATEWAY_STRIPE"},{value:We.Zg.PAYPAL,label:"HOTSPOT_PAYMENTS_GATEWAY_PAYPAL"},{value:We.Zg.QUICKPAY,label:"HOTSPOT_PAYMENTS_GATEWAY_QUICKPAY"},{value:We.Zg.MERCHANTWARRIOR,label:"HOTSPOT_PAYMENTS_GATEWAY_MERCHANT_WARRIOR"},{value:We.Zg.IPPAY,label:"HOTSPOT_PAYMENTS_GATEWAY_IPPAY"},{value:We.Zg.AUTHORIZE,label:"HOTSPOT_PAYMENTS_GATEWAY_AUTHORIZE"}];var Fe,je=t(804388);!function(e){e.CHAP="chap",e.MSCHAPV2="mschapv2"}(Fe||(Fe={}));const Ke=["logo","bg_image"],qe={payment_enabled:!1,gateway:We.Zg.STRIPE,[He.pM.X_STRIPE_API_KEY]:"",[He.Jp.PAYPAL_USE_SANDBOX]:!1,[He.Jp.X_PAYPAL_USERNAME]:"",[He.Jp.X_PAYPAL_PASSWORD]:"",[He.Jp.X_PAYPAL_SIGNATURE]:"",[He.$o.X_QUICKPAY_AGREEMNENT_ID]:"",[He.$o.X_QUICKPAY_API_KEY]:"",[He.$o.X_QUICKPAY_MERCHANT_ID]:"",[He.$o.QUICKPAY_TESTMODE]:!1,[He.YI.X_MERCHANT_WARRIOR_MERCHAND_UUID]:"",[He.YI.X_MERCHANT_WARRIOR_API_KEY]:"",[He.YI.X_MERCHANT_WARRIOR_API_PASSPHRASE]:"",[He.YI.MERCHANT_WARRIOR_USE_SANDBOX]:!1,[He.lk.AUTHORIZE_USE_SANDBOX]:!1,[He.lk.X_AUTHORIZE_LOGIN_ID]:"",[He.lk.X_AUTHORIZE_TRANSACTION_KEY]:"",[He.pN.X_IPPAY_TERMINALID]:"",[He.pN.IPPAY_USE_SANDBOX]:!1},Je={radius_enabled:!1,radius_auth_type:Fe.MSCHAPV2,radiusprofile_id:void 0,radius_disconnect_enabled:!1,radius_disconnect_port:3799},Qe={portal_hostname:"",portal_use_hostname:!1},$e={portal_customized_authentication_text:"Select Your authentication method",portal_customized_bg_color:"#006FFF",portal_customized_bg_image_enabled:!1,portal_customized_bg_image_filename:void 0,portal_customized_bg_image_tile:!1,portal_customized_bg_type:We.yK.COLOR,portal_customized_box_color:"#ffffff",portal_customized_box_link_color:"#1379b7",portal_customized_box_text_color:"#000000",portal_customized_box_opacity:100,portal_customized_box_radius:25,portal_customized_button_color:"#006FFF",portal_customized_button_text:"Login",portal_customized_button_text_color:"#ffffff",portal_customized_link_color:"#006FFF",portal_customized_logo_enabled:!0,portal_customized_logo_filename:void 0,portal_customized_logo_position:We.UC.CENTER,portal_customized_logo_size:128,portal_customized_success_text:"Welcome to UniFi Guest Hotspot.",portal_customized_text_color:"#3e3e44",portal_customized_title:"UniFi Guest Hotspot",portal_customized_tos:'Terms of Use\n\nBy accessing the wireless network, you acknowledge that you\'re of legal age, you have read and understood and agree to be bound this agreement.\n\nYou agree not to use the wireless network for any purpose that is unlawful and take full responsibility of your acts.\n\nThe wireless network is provided "as is" without warranties of any kind, either expressed or implied.',portal_customized_tos_enabled:!1,portal_customized_unsplash_author_name:void 0,portal_customized_unsplash_author_username:void 0,portal_customized_welcome_text_enabled:!0,portal_customized_welcome_text_position:"under_logo",portal_customized_welcome_text:"Welcome to UniFi Guest Hotspot",portal_customized_languages:[je.default.ENGLISH],template_engine:"angular",custom_ip:"",x_password:"",password_enabled:!1,facebook_enabled:!1,voucher_enabled:!1},eA=Object.values(We.CR),AA=Object.values(We.WA),tA=(0,ke.nD)(ke.wK,ke.zF,ke.yA),aA="custom",nA="free_trial",lA=e=>{switch(e){case We.UC.LEFT:return"flex-start";case We.UC.RIGHT:return"flex-end";case We.UC.CENTER:default:return"center"}},rA=(e,A)=>!A||[Ue.vi,Ue.ud,Ue.DU].some(e=>A?.startsWith(e))?null:`/file/s/${e}/${ve}/${A}`,iA=e=>"object"==typeof e?e.url:e,oA=e=>{const A=[];return eA.includes(e.auth)&&A.push(e.auth),AA.forEach(t=>{e[`${t}_enabled`]&&A.push(t)}),A},sA=e=>e.sort((e,A)=>e.localeCompare(A)),cA=(e,A)=>Object.values(e).some(Boolean)?We.CR.HOTSPOT:A.includes(We.CR.CUSTOM)?We.CR.CUSTOM:We.CR.NONE,EA=({limit_up:e,limit_down:A})=>({[we.T.LIMIT_UP]:e?1e3*Number(e):"",[we.T.LIMIT_DOWN]:A?1e3*Number(A):""}),mA=e=>({...(0,_e._f)({...Ve,...e},["limit_down","limit_up","limit_quota"]),...EA({[we.T.LIMIT_UP]:e[we.T.LIMIT_UP],[we.T.LIMIT_DOWN]:e[we.T.LIMIT_DOWN]})}),dA=async e=>{const A=await(0,ge.yu)(e);if(Ge.includes(A)){return await(0,ge.kA)(e)}return null},uA=e=>(A,t)=>{e(t?.current?.files?.[0])},TA=(e,A)=>t=>{Math.ceil(e.size/1024/1024)<=10?A(e):t((0,Ce.ox)({icon:pe.C.danger,message:"HOTSPOT_IMAGE_SIZE_LIMIT",values:{maxSizeMb:10}}))};var OA=t(582941),IA=t(25553);const SA=e=>(0,D.Mz)((e=>A=>(0,IA.Lt)(ye(e),A.models))(e),e=>e?.dataUrl||"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'/%3E");var NA=t(602021),_A=t(116351),pA=t(968906),RA=t(217439),CA=t(566723);const MA=()=>{const{values:{portal_customized_welcome_text:e,portal_customized_text_color:A}}=(0,Ne.j7)();return a.createElement(RA.A,{style:{color:A,marginBottom:CA.Ln,justifyContent:"center",wordBreak:"break-word"},size:"large"},e)},PA=()=>{const{values:{portal_customized_title:e,portal_customized_box_text_color:A}}=(0,Ne.j7)();return a.createElement(RA.A,{style:{color:A,marginBottom:CA.kc,justifyContent:"center",wordBreak:"break-word"},size:"xlarge-3",weight:"bold"},e)};var DA=t(314714),fA=t(532114);const bA=()=>{const{values:{portal_customized_tos_enabled:e,portal_customized_text_color:A,portal_customized_link_color:t}}=(0,Ne.j7)();return e?a.createElement(H.A,{justifyContent:"start",width:"100%",marginBottom:CA.Ln},a.createElement(DA.A,{checked:!0,id:"dummy",motif:"light"},a.createElement(fA.A,{size:"medium",colorOverride:A},a.createElement(w.sA,{id:"HOTSPOT_TOS_PREFIX"})," ",a.createElement(fA.A,{size:"inherit",colorOverride:t},a.createElement(w.sA,{id:"COMMON_TOS"}))))):null};var vA=t(727319);const LA=(0,K.A)(H.A,{shouldForwardProp:e=>"portal_enabled"!==e})`
  ${vA.T.isSafari?"\n  width: 668px;\n  height: 492px;\n  top: 20px;\n  left: 40px;\n":"\n  width: 688px;\n  height: 472px;\n  top: 30px;\n  left: 30px;\n"}
  clip-path: inset(0 round 17px);
  position: relative;
  &:after {
    display: ${({portal_enabled:e})=>e?"none":"inherit"};
    content: '';
    position: absolute;
    background: rgb(255, 255, 255, 0.5);
    width: 100%;
    height: 100%;
  }
`,hA=({portal_enabled:e,children:A})=>a.createElement("svg",{width:"100%",height:"532",viewBox:"0 0 748 532",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",style:{maxWidth:"748px",minWidth:"400px"}},a.createElement("rect",{x:"0.333328",width:"747.333",height:"532",fill:"url(#pattern0_4752_78045)"}),a.createElement("defs",null,a.createElement("pattern",{id:"pattern0_4752_78045",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},a.createElement("use",{xlinkHref:"#image0_4752_78045",transform:"scale(0.000378788 0.000532107)"})),a.createElement("image",{id:"image0_4752_78045",width:"2640",height:"1880",preserveAspectRatio:"none",xlinkHref:"data:image/png;base64, "})),a.createElement("foreignObject",{x:"0",y:"0",width:"100%",height:"100%"},a.createElement(LA,{portal_enabled:e},A)));var yA=t(822336);const zA=()=>{const{values:{portal_customized_button_color:e,portal_customized_button_text_color:A,portal_customized_button_text:t,portal_customized_tos_enabled:n,radius_enabled:l,password_enabled:r,voucher_enabled:i,facebook_enabled:o}}=(0,Ne.j7)();return(0,a.useMemo)(()=>[n,l,r,i].some(Boolean)||!o,[n,l,r,i,o])?a.createElement(H.A,{...pA.A.addDataTestId(pA.A.TestId.HOTSPOT_PORTAL_PREVIEW_BUTTON_TEXT),width:"100%",background:e,color:A,borderRadius:yA.Ay["desktop-radius-base"],padding:`${CA.kc} ${CA.Ln}`,minHeight:CA.tr,alignItems:"center",justifyContent:"center",wordBreak:"break-word",cursor:"pointer"},a.createElement(RA.A,{color:"inherit",size:"medium"},t)):null};var gA=t(907011),xA=t(495003),WA=t(89603),HA=t(939703),wA=t(879002);const UA="#232326",kA="HOTSPOT_LANDING_PAGE_PREVIEW_LANGUAGES_CLASSNAME",GA="HOTSPOT_LANDING_PAGE_PREVIEW_LANGUAGES_ARROW_CLASSNAME",VA=(0,K.A)(H.A,{shouldForwardProp:e=>"dropdownVisible"!==e})`
  z-index: 1;
  height: 32px;
  position: relative;
  align-self: baseline;
  .${GA} {
    > svg {
      transition: transform 0.15s ease;
      transform: rotate(${({dropdownVisible:e})=>e?"180":"0"}deg);
    }
  }
`,XA=(0,K.A)(H.A)`
  min-width: 140px;
  &:hover {
    .${kA} {
      color: ${({hoverColor:e})=>e};
    }
  }
`,ZA=(0,K.A)(H.A,{shouldForwardProp:e=>!["dropdownVisible","dropdownOptionCount","background"].includes(e)})`
  flex-direction: column;
  position: absolute;
  top: ${CA.fS};
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
  background: ${({background:e})=>e};
  border-radius: ${yA.Ay["desktop-radius-base"]};
  height: 0px;
  overflow-x: hidden;
  transition: height 0.15s ease;
  ${({dropdownVisible:e,dropdownOptionCount:A})=>e?`height: ${32*Math.min(A,8)}px;`:""}
`,YA=(0,K.A)(H.A,{shouldForwardProp:e=>!["backgroundColor","isActive"].includes(e)})`
  min-height: 32px;
  min-width: 140px;
  align-items: center;
  white-space: nowrap;
  padding-right: ${CA.Ln};
  ${({isActive:e,backgroundColor:A})=>`\n    ${e?`background: ${A};`:""}\n      &:hover, &:active {\n         background: ${A};\n      }\n  `}
`,BA=(0,K.A)(H.A)`
  align-items: center;
  position: relative;
  cursor: pointer;
`,FA=(0,K.A)(H.A)`
  margin: 0 ${CA.kc} 0 ${CA.xO};
`,jA=(0,K.A)(H.A)`
  margin: 0 ${CA.xO};
  width: 100%;
`,KA=(0,K.A)(H.A)`
  margin: 0 ${CA.kc};
  width: 100%;
`;var qA;!function(e){e[e.FIVE=5]="FIVE",e[e.FORTY_FIVE=45]="FORTY_FIVE",e[e.EIGHTY_FIVE=85]="EIGHTY_FIVE"}(qA||(qA={}));const JA=({language:e,languages:A,setLanguage:t})=>{const{values:{portal_customized_languages:n,portal_customized_text_color:l}}=(0,Ne.j7)(),r=(0,a.useRef)(null),[i,o]=(0,a.useState)(!1),s=(0,a.useCallback)(()=>{o(!i)},[i]),c=(0,a.useMemo)(()=>[qA.FIVE,qA.FORTY_FIVE,qA.EIGHTY_FIVE].reduce((e,A)=>(e[A]=(0,HA.VG)(l,A),e),{}),[l]),E=(0,a.useCallback)(e=>()=>t(e),[t]),m=(0,a.useMemo)(()=>A.map(A=>a.createElement(YA,{key:A,backgroundColor:c[qA.FIVE],isActive:A===e,onClick:E(A)},a.createElement(KA,null,a.createElement(xA.A,{size:"large",color:A===e?(0,HA.VG)(UA,45):"transparent"})),a.createElement(RA.A,{size:"medium",style:{textTransform:"capitalize",color:UA}},A))),[E,A,e,c]),d=(0,a.useCallback)(()=>{o(!1)},[]);return(0,wA.A)(r,d),n.length>1?a.createElement(VA,{...pA.A.addDataTestId(pA.A.TestId.HOTSPOT_PORTAL_PREVIEW_LANGUAGE),dropdownVisible:i,ref:r,onClick:s},a.createElement(XA,{hoverColor:c[qA.FORTY_FIVE]},a.createElement(BA,null,a.createElement(FA,null,a.createElement(gA.A,{color:c[qA.FORTY_FIVE]})),a.createElement(H.A,null,a.createElement(RA.A,{className:kA,size:"medium",style:{textTransform:"capitalize",color:c[qA.EIGHTY_FIVE],whiteSpace:"nowrap"}},e)),a.createElement(jA,{className:GA},a.createElement(WA.A,{color:c[qA.FORTY_FIVE]})))),a.createElement(ZA,{dropdownVisible:i,dropdownOptionCount:m.length,background:"#ffffff"},m)):null};var QA=t(592563),$A=t(162420);const et=(0,K.A)(H.A)`
  align-items: center;
  background: ${({theme:{themeName:e}})=>yA.Ay[`desktop-color-neutral-02-${e}`]};
  border-radius: ${CA.kc};
  margin-bottom: ${CA.tr};
  padding: ${CA.kc} ${CA.xO};
  gap: ${CA.kc};
  box-shadow: 0px 12px 48px rgba(0, 0, 0, 0.15);
  z-index: 10;
  top: ${CA.OF};
  position: absolute;
`,At=()=>{const{setFieldValue:e,values:{portal_enabled:A}}=(0,Ne.j7)(),t=(0,a.useCallback)(()=>{e("portal_enabled",!0)},[e]);return A?null:a.createElement(et,null,a.createElement($A.A,{size:"original",isActive:!0,variant:"fill"}),a.createElement(RA.A,{size:"small",weight:"bold",color:"text-1"},a.createElement(w.sA,{id:"HOTSPOT_LANDING_PAGE_DISABLED"})),a.createElement(QA.A,{type:"button",fontSize:"small",onPress:t},a.createElement(w.sA,{id:"COMMON_ACTION_ENABLE"})))};var tt=t(130851);const at=(0,K.A)(H.A)`
  transform: scale(${1});
`,nt=()=>{const e=(0,E.useSelector)(tt.p);return a.createElement(at,null,a.createElement("img",{src:`${e}/poweredByUniFi.svg`,alt:"Powered by UniFi"}))},lt=(0,K.A)(H.A)`
  width: 100%;
  margin-bottom: ${CA.fS};
`,rt=()=>{const e=(0,E.useDispatch)(),{values:{portal_customized_logo_size:A,portal_customized_logo_enabled:t,portal_customized_logo_filename:n,portal_customized_logo_position:l}}=(0,Ne.j7)(),r=(0,E.useSelector)(NA.LF),i=(0,E.useSelector)(tt.p),o=(0,a.useMemo)(()=>rA(r,iA(n)),[r,n]),s=(0,E.useSelector)((0,a.useMemo)(()=>SA(o),[o])),c=(0,a.useMemo)(()=>{if(!n)return;const e=iA(n);return e?.startsWith?.(Ue.vi)?e:s},[n,s]),m=t&&(c||"")||`${i}/uiLogoHotspot.svg`;return(0,a.useEffect)(()=>{o&&e(ye(o))},[e,o]),a.createElement(lt,{justifyContent:lA(l)},a.createElement("img",{alt:"Logo",src:m,width:A}))};var it=t(195672);const ot=(0,K.A)(H.A,{shouldForwardProp:e=>!["isActive","box_text_color","text_color"].includes(e)})`
  width: 100%;
  box-sizing: border-box;
  padding: ${CA.kc} ${CA.Ln};
  height: 60px;
  background: transparent;
  border: 1px solid
    ${({isActive:e,box_text_color:A,text_color:t})=>e?A:(0,HA.VG)(t,35)};
  border-radius: 10px;
  margin-bottom: ${CA.xO};
  &:not(:last-child) {
    margin-bottom: ${CA.xO};
  }
  &:last-child {
    margin-bottom: ${CA.Er};
  }
`,st=(0,K.A)("span",{shouldForwardProp:e=>!["isActive","box_text_color","text_color"].includes(e)})`
  height: 24px;
  width: 24px;
  background-color: transparent;
  border-radius: 50%;
  display: inline-block;
  border: ${({isActive:e,box_text_color:A,text_color:t})=>e?`6px solid ${A}`:`2px solid ${(0,HA.VG)(t,35)}`};
  box-sizing: border-box;
`,ct=({isFreeTrial:e,isActive:A,text_color:t,box_text_color:n,hours:l,trial_duration_minutes:r,language:i,currency:o,amount:s,name:c,limit_quota:E})=>a.createElement(ot,{width:"100%",isActive:A,text_color:t,box_text_color:n},a.createElement(H.A,{width:"100%",justifyContent:"space-between"},a.createElement(H.A,{flexDirection:"row",alignItems:"center"},a.createElement(H.A,{marginRight:14},a.createElement(st,{isActive:A,box_text_color:n,text_color:t})),a.createElement(H.A,{flexDirection:"column",alignItems:"flex-start"},a.createElement(RA.A,{weight:"bold",size:"medium",style:{lineHeight:"24px",color:n}},a.createElement(w.sA,{id:e?"HOTSPOT_PREVIEW_MINUTES":"HOTSPOT_PREVIEW_HOURS",values:{hours:l,minutes:r}}),E?a.createElement(a.Fragment,null,", ",E," ",a.createElement(w.sA,{id:"COMMON_UNIT_MB"})):null),a.createElement(RA.A,{size:"medium",style:{color:t,lineHeight:"20px"}},e?a.createElement(w.sA,{id:"HOTSPOT_PREVIEW_LIMITED"}):c))),a.createElement(RA.A,{weight:"bold",size:"medium",style:{color:n,lineHeight:"24px"}},e?a.createElement(w.sA,{id:"HOTSPOT_PREVIEW_FREE"}):new Intl.NumberFormat(Object.entries(OA.A).find(([e,A])=>A===i)?.[0]?.replaceAll("_","-")||"en",{style:"currency",currency:o}).format(s)))),Et=()=>{const{values:{portal_customized_text_color:e}}=(0,Ne.j7)(),A=(0,a.useMemo)(()=>`1px solid ${(0,HA.VG)(e,35)}`,[e]);return a.createElement(H.A,{width:"100%",minWidth:344,marginBottom:CA.Ln,alignItems:"center",color:e},a.createElement(H.A,{width:"100%",height:1,borderBottom:A}),a.createElement(RA.A,{style:{padding:`0 ${CA.kc}`,textTransform:"lowercase",color:e},size:"large"},a.createElement(w.sA,{id:"COMMON_OR"})),a.createElement(H.A,{width:"100%",height:1,borderBottom:A}))};var mt;!function(e){e.HOTSPOT_LANDING_PAGE_PREVIEW_APP_AUTHENTICATIONS="hotspotLandingPagePreviewAppAuthentications",e.HOTSPOT_LANDING_PAGE_PREVIEW_VOUCHER_AUTHENTICATIONS="hotspotLandingPagePreviewVoucherAuthentications",e.HOTSPOT_LANDING_PAGE_PREVIEW_INPUT_AUTHENTICATIONS="hotspotLandingPagePreviewInputAuthentications"}(mt||(mt={}));const dt={[mt.HOTSPOT_LANDING_PAGE_PREVIEW_APP_AUTHENTICATIONS]:[],[mt.HOTSPOT_LANDING_PAGE_PREVIEW_VOUCHER_AUTHENTICATIONS]:[],[mt.HOTSPOT_LANDING_PAGE_PREVIEW_INPUT_AUTHENTICATIONS]:[]},ut=(0,a.createContext)(dt),Tt=({hotspotPackages:e,language:A})=>{const{values:{portal_customized_box_text_color:t,portal_customized_text_color:n}}=(0,Ne.j7)(),{[mt.HOTSPOT_LANDING_PAGE_PREVIEW_INPUT_AUTHENTICATIONS]:l}=(0,a.useContext)(ut);return e.length?a.createElement(H.A,{...pA.A.addDataTestId(pA.A.TestId.HOTSPOT_PORTAL_PREVIEW_HOTSPOT_PACKAGES),flexDirection:"column",alignItems:"center",width:"100%"},a.createElement(RA.A,{style:{color:t,margin:`0 0 ${CA.Ln} 0`},size:"xlarge-1",weight:"bold"},a.createElement(w.sA,{id:"HOTSPOT_PREVIEW_SELECT_A_PACKAGE"})),e.map(({_id:e,amount:l,hours:r,trial_duration_minutes:i,currency:o,name:s,limit_quota:c},E)=>a.createElement(ct,{key:e,isFreeTrial:(0,it.z)(l),isActive:0===E,text_color:n,box_text_color:t,hours:r,trial_duration_minutes:i,language:A,currency:o,amount:l,name:s,limit_quota:c})),l.length?a.createElement(Et,null):null):null},Ot=({hotspotPackages:e})=>{const{[mt.HOTSPOT_LANDING_PAGE_PREVIEW_VOUCHER_AUTHENTICATIONS]:A,[mt.HOTSPOT_LANDING_PAGE_PREVIEW_INPUT_AUTHENTICATIONS]:t}=(0,a.useContext)(ut);return a.createElement(a.Fragment,null,A.map((A,n,l)=>a.createElement(a.Fragment,{key:`VoucherAuthentication-${String(n)}`},a.createElement(A,null),(t.length||e.length)&&n+1===l.length?a.createElement(Et,null):null)))},It=()=>{const{[mt.HOTSPOT_LANDING_PAGE_PREVIEW_INPUT_AUTHENTICATIONS]:e}=(0,a.useContext)(ut);return a.createElement(a.Fragment,null,e.map((e,A,t)=>a.createElement(a.Fragment,{key:`InputAuthentication-${String(A)}`},a.createElement(e,null),A+1!==t.length?a.createElement(Et,null):null)))},St=({hotspotPackages:e})=>{const{values:{portal_customized_box_text_color:A,portal_customized_authentication_text:t}}=(0,Ne.j7)(),{[mt.HOTSPOT_LANDING_PAGE_PREVIEW_APP_AUTHENTICATIONS]:n,[mt.HOTSPOT_LANDING_PAGE_PREVIEW_VOUCHER_AUTHENTICATIONS]:l,[mt.HOTSPOT_LANDING_PAGE_PREVIEW_INPUT_AUTHENTICATIONS]:r}=(0,a.useContext)(ut);return n.length+l.length+r.length+(e.length?1:0)>1?a.createElement(RA.A,{...pA.A.addDataTestId(pA.A.TestId.HOTSPOT_PORTAL_PREVIEW_AUTHENTICATION_TEXT),style:{color:A,marginBottom:CA.Ln},size:"large",weight:"bold"},t):null},Nt=()=>{const{[mt.HOTSPOT_LANDING_PAGE_PREVIEW_APP_AUTHENTICATIONS]:e,[mt.HOTSPOT_LANDING_PAGE_PREVIEW_VOUCHER_AUTHENTICATIONS]:A,[mt.HOTSPOT_LANDING_PAGE_PREVIEW_INPUT_AUTHENTICATIONS]:t}=(0,a.useContext)(ut);return a.createElement(a.Fragment,null,e.map((e,n,l)=>a.createElement(a.Fragment,{key:`AppAuthentication-${String(n)}`},a.createElement(e,null),(A.length||t.length)&&n+1===l.length?a.createElement(Et,null):null)))},_t=({hotspotPackages:e})=>a.createElement(a.Fragment,null,a.createElement(St,{hotspotPackages:e}),a.createElement(Nt,null),a.createElement(Ot,{hotspotPackages:e}),a.createElement(It,null));var pt=t(61902);const Rt=(0,K.A)(H.A)`
  width: 100%;
  height: 100%;
  background: ${pt.L};
  justify-content: center;
  align-items: center;
`,Ct=(0,K.A)(H.A,{shouldForwardProp:e=>"portal_enabled"!==e})`
  width: 100%;
  height: 100%;
  overflow: ${({portal_enabled:e})=>e?"auto":"hidden"};
  scrollbar-gutter: stable;
  scrollbar-width: none;
  padding: ${CA.eC} 0;
  flex-direction: column;
  align-items: center;
  gap: ${CA.eC};
`,Mt=(0,K.A)(H.A,{shouldForwardProp:e=>!["portal_customized_box_radius","portal_customized_box_color","portal_customized_box_opacity"].includes(e)})`
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: fit-content;
  max-width: calc(414px + ${CA.eC});
  border-radius: ${({portal_customized_box_radius:e})=>e}px;
  background: ${({portal_customized_box_color:e,portal_customized_box_opacity:A})=>(0,HA.VG)(e,A)};
  padding: ${CA.fS} ${CA.eC};
  transform: scale(${1});
`,Pt=()=>{const e=(0,E.useDispatch)(),{values:{portal_customized_bg_image_filename:A,portal_customized_bg_image_enabled:t,portal_customized_bg_type:n,portal_customized_bg_color:l,payment_enabled:r,portal_customized_box_radius:i,portal_customized_box_color:o,portal_customized_box_opacity:s,portal_customized_languages:c,portal_enabled:m}}=(0,Ne.j7)(),d=(0,a.useRef)(null),u=(0,a.useMemo)(()=>c.map(e=>OA.A[e.replace(ke.zl,"_")]),[c]),[T,O]=(0,a.useState)(u[0]),I=(0,E.useSelector)(NA.LF),S=(0,E.useSelector)(_A.Vj),N=(0,E.useSelector)(_A.U8),_=(0,a.useMemo)(()=>rA(I,iA(A)),[I,A]),p=(0,E.useSelector)((0,a.useMemo)(()=>SA(_),[_])),R=(0,a.useMemo)(()=>{if(t&&A){const e=iA(A);return e?.startsWith?.(Ue.vi)||e?.startsWith?.(Ue.ud)||e?.startsWith?.(Ue.DU)?e:p}},[t,A,p]),C=(0,a.useMemo)(()=>[We.yK.GALLERY,We.yK.IMAGE].includes(n)&&t&&R?{backgroundSize:"cover",backgroundPosition:"center center",backgroundRepeat:"no-repeat",backgroundImage:`url("${R}")`}:l?{background:l}:{},[n,R,l,t]),M=(0,a.useMemo)(()=>[...r?[Object.keys(N||{}).length?N:null,...S].filter(Boolean):[]],[r,N,S]);return(0,a.useEffect)(()=>{!m&&d.current&&d.current.scrollTo({top:0})},[m]),(0,a.useEffect)(()=>{_&&e(ye(_))},[e,_]),a.createElement(Rt,null,a.createElement(hA,{portal_enabled:m},a.createElement(Ct,{ref:d,...pA.A.addDataTestId(pA.A.TestId.HOTSPOT_PORTAL_PREVIEW_BACKGROUND),...C,portal_enabled:m},a.createElement(At,null),a.createElement(Mt,{portal_customized_box_radius:i,portal_customized_box_color:o,portal_customized_box_opacity:s},a.createElement(JA,{language:T,languages:u,setLanguage:O}),a.createElement(rt,null),a.createElement(PA,null),a.createElement(MA,null),a.createElement(_t,{hotspotPackages:M}),a.createElement(Tt,{hotspotPackages:M,language:T}),a.createElement(bA,null),a.createElement(zA,null)),a.createElement(nt,null))))},Dt=({color:e})=>a.createElement(H.A,{width:29,height:36,border:`1px solid ${e}`,borderRadius:8,boxSizing:"border-box"}),ft=()=>{const{values:{portal_customized_text_color:e,portal_customized_box_text_color:A}}=(0,Ne.j7)(),t=(0,a.useMemo)(()=>(0,HA.VG)(e,35),[e]);return a.createElement(H.A,{...pA.A.addDataTestId(pA.A.TestId.HOTSPOT_PORTAL_PREVIEW_VOUCHER),width:"100%",flexDirection:"column",color:"rgba(0, 0, 0, 0.85)",alignItems:"center",marginBottom:CA.Ln},a.createElement(H.A,{marginBottom:CA.Ln,color:A},a.createElement(RA.A,{color:"inherit",weight:"bold",size:"large"},a.createElement(w.sA,{id:"HOTSPOT_ENTER_ACCESS_CODE"}))),a.createElement(H.A,{width:"100%",alignItems:"center",justifyContent:"space-between"},a.createElement(Dt,{color:t}),a.createElement(Dt,{color:t}),a.createElement(Dt,{color:t}),a.createElement(Dt,{color:t}),a.createElement(Dt,{color:t}),a.createElement(H.A,{padding:`0 ${CA.kc}`,color:t},a.createElement(RA.A,{color:"inherit",weight:"bold",size:"large"},a.createElement(w.sA,{id:"COMMON_FALLBACK"}))),a.createElement(Dt,{color:t}),a.createElement(Dt,{color:t}),a.createElement(Dt,{color:t}),a.createElement(Dt,{color:t}),a.createElement(Dt,{color:t})))},bt="HOTSPOT_LANDING_PAGE_PREVIEW_INPUT_FIELD_LABEL_CLASSNAME",vt="HOTSPOT_LANDING_PAGE_PREVIEW_INPUT_FIELD_INPUT_CLASSNAME",Lt="HOTSPOT_LANDING_PAGE_PREVIEW_INPUT_FIELD_INPUT_CONTAINER_CLASSNAME",ht="HOTSPOT_LANDING_PAGE_PREVIEW_INPUT_FIELD_INPUT_CONTENT_CLASSNAME";var yt=t(438628);const zt=(0,K.A)(yt.A,{shouldForwardProp:e=>"color"!==e})`
  .${bt},
    .${vt} {
    color: inherit;
  }
  .${Lt},
    .${vt} {
    background: transparent !important;
  }
  .${ht} {
    border: 1px solid ${({color:e})=>e};
    border-radius: ${yA.Ay["desktop-radius-base"]};
  }
  pointer-events: none;
`,gt=()=>{const{values:{portal_customized_text_color:e}}=(0,Ne.j7)(),A=(0,a.useMemo)(()=>(0,HA.VG)(e,35),[e]);return a.createElement(H.A,{...pA.A.addDataTestId(pA.A.TestId.HOTSPOT_PORTAL_PREVIEW_RADIUS),flexDirection:"column",width:"100%",marginBottom:CA.Ln,color:e},a.createElement(H.A,{marginBottom:CA.Ln},a.createElement(zt,{color:A,labelClassName:bt,inputClassName:vt,inputContainerClassName:Lt,inputContentClassName:ht,width:"100%",motif:"light",variant:"secondary",label:"Username"})),a.createElement(zt,{color:A,labelClassName:bt,inputClassName:vt,inputContainerClassName:Lt,inputContentClassName:ht,width:"100%",motif:"light",variant:"secondary",label:"Password"}))},xt=()=>{const{values:{portal_customized_text_color:e}}=(0,Ne.j7)();return a.createElement(H.A,{...pA.A.addDataTestId(pA.A.TestId.HOTSPOT_PORTAL_PREVIEW_PASSWORD),width:"100%",marginBottom:CA.Ln,color:e},a.createElement(zt,{color:(0,HA.VG)(e,35),labelClassName:bt,inputClassName:vt,inputContainerClassName:Lt,inputContentClassName:ht,motif:"light",width:"100%",variant:"secondary",label:"Password"}))},Wt=(0,a.lazy)(()=>t.e(97875).then(t.bind(t,197875))),Ht=()=>a.createElement(H.A,{...pA.A.addDataTestId(pA.A.TestId.HOTSPOT_PORTAL_PREVIEW_FACEBOOK),width:"100%",minWidth:344,minHeight:48,borderRadius:8,flex:"none",order:0,flexGrow:1,marginBottom:CA.Ln,border:"1px solid #e8e8e8",background:"#ffffff",justifyContent:"center",alignItems:"center",color:"rgba(0, 0, 0, 0.65)"},a.createElement(Wt,null),a.createElement(RA.A,{color:"inherit",style:{marginLeft:CA.YC},weight:"bold",size:"large"},a.createElement(w.sA,{id:"HOTSPOT_PREVIEW_BUTTON_FACEBOOK"}))),wt=({children:e})=>{const{values:{facebook_enabled:A,voucher_enabled:t,password_enabled:n,radius_enabled:l}}=(0,Ne.j7)(),r=(0,a.useMemo)(()=>({[mt.HOTSPOT_LANDING_PAGE_PREVIEW_APP_AUTHENTICATIONS]:A?[Ht]:[],[mt.HOTSPOT_LANDING_PAGE_PREVIEW_VOUCHER_AUTHENTICATIONS]:t?[ft]:[],[mt.HOTSPOT_LANDING_PAGE_PREVIEW_INPUT_AUTHENTICATIONS]:[...n?[xt]:[],...l?[gt]:[]]}),[A,n,t,l]);return a.createElement(ut.Provider,{value:r},e)};var Ut=t(117104),kt=t(718073),Gt=t(75585),Vt=t(79760),Xt=t(836645),Zt=t(847883),Yt=t(81126),Bt=t(842151),Ft=t(747280),jt=t(705228);const Kt=(0,K.A)(g.A,{shouldForwardProp:e=>!["hasMarginTop","hasMarginBottom"].includes(e)})`
  justify-content: flex-start;
  margin-top: ${({hasMarginTop:e})=>e?CA.xO:0};
  margin-bottom: ${({hasMarginBottom:e})=>e?CA.Ln:0};
  padding-left: 0 !important;
  border: none !important;
`,qt=({addButtonLabel:e,min:A=0,max:t,name:n,label:l,placeholder:r,values:i,errors:o,touched:s,onChange:c,onBlur:m,addButtonOnTop:d=!1,Icon:u})=>{const T=(0,E.useSelector)(NA.EL),{formatMessage:O}=(0,w.tz)(),I=(0,a.useCallback)((e,A=void 0)=>{const t=[...i];void 0!==A?t.splice(e,1,A):t.splice(e,1),c(t,e)},[c,i]),S=(0,a.useCallback)(()=>{i?.length<t&&c([...i,""])},[t,c,i]);(0,a.useEffect)(()=>{A&&i.length<A&&c([...i,...Array(A-i.length).join(".").split(".")])},[]);const N=(0,a.useMemo)(()=>a.createElement(Kt,{className:jt.i9,name:`multi-input-add-${n}`,type:"button",variant:"link",onClick:S,disabled:i?.length===t||T,hasMarginTop:0===i?.length||d,hasMarginBottom:d,Icon:u,iconProps:{variant:"twoTone",isActive:!(i?.length===t||T),disabled:i?.length===t||T}},a.createElement(w.sA,{id:e})),[u,e,d,S,T,t,n,i?.length]),_=(0,a.useCallback)(e=>({target:{value:A}})=>I(e,A),[I]);return a.createElement(Bt.A,{padding:"none",highlightType:"none"},d?N:null,i.map((e,t)=>a.createElement(Zt.A,{key:t,unlimitedWidth:!0},a.createElement(Yt.A,{column:!0},a.createElement(yt.A,{full:!0,name:`${n}[${t}]`,onChange:_(t),...r&&{placeholder:O({id:r})},...l&&{label:O({id:l})},value:e,invalid:s?.[t]&&o?.[t],variant:"secondary",onBlur:()=>m(t),disabled:T,...t>=A&&{iconAfter:a.createElement(g.A,{disabled:i?.length===A||T,name:`multi-input-remove-${n}`,type:"button",onClick:()=>(e=>{I(e)})(t),size:"small"},a.createElement(Ft.A,{transparent:T}))}})))),d?null:N)};var Jt=t(143811),Qt=t(689965),$t=t(998837);const ea=(0,K.A)(H.A)`
  width: 400px;
  min-width: 400px;
  max-width: 400px;
  flex-direction: column;
  overflow: auto;
  background: ${({theme:{themeName:e}})=>yA.Ay[`desktop-color-neutral-01-${e}`]};
  padding: ${CA.Ln} 6px ${CA.ew} ${CA.Ln};
  scrollbar-gutter: stable;
`,Aa=e=>a.createElement(Qt.A,{...e,background:yA.Ay[`desktop-color-depth-bg-2-${(0,$t.u)().themeName}`]}),ta=()=>{const{values:{portal_use_hostname:e,expire:A,expire_number:t,allowed_subnets:n,restricted_subnets:l,portal_customized_languages:r,redirect_enabled:i},setFieldValue:o,setFieldTouched:s,errors:c,touched:E,submitCount:m}=(0,Ne.j7)(),{formatMessage:d}=(0,w.tz)(),u=(0,a.useMemo)(()=>[{value:480,label:`8 ${d({id:"COMMON_DATE_TIME_LABEL_HOURS_CAPITALIZED"},{hours:8})}`},{value:1440,label:`24 ${d({id:"COMMON_DATE_TIME_LABEL_HOURS_CAPITALIZED"},{hours:24})}`},{value:2880,label:`2 ${d({id:"COMMON_DATE_TIME_LABEL_DAYS_CAPITALIZED"},{days:2})}`},{value:4320,label:`3 ${d({id:"COMMON_DATE_TIME_LABEL_DAYS_CAPITALIZED"},{days:3})}`},{value:5760,label:`4 ${d({id:"COMMON_DATE_TIME_LABEL_DAYS_CAPITALIZED"},{days:4})}`},{value:10080,label:`7 ${d({id:"COMMON_DATE_TIME_LABEL_DAYS_CAPITALIZED"},{days:7})}`},{value:aA,label:d({id:"HOTSPOT_ADVANCED_LABEL_CUSTOM_EXPIRATION"})}],[d]),T=(0,a.useMemo)(()=>[{value:1,label:d({id:"COMMON_DATE_TIME_LABEL_MINUTES_CAPITALIZED"},{minutes:t})},{value:60,label:d({id:"COMMON_DATE_TIME_LABEL_HOURS_CAPITALIZED"},{hours:t})},{value:1440,label:d({id:"COMMON_DATE_TIME_LABEL_DAYS_CAPITALIZED"},{days:t})}],[t,d]),O=(0,a.useMemo)(()=>Ut.A.map(e=>({value:e,label:d({id:`LANGUAGE_${e.replace(ke.zl,"_").toUpperCase()}`})})).sort((e,A)=>e.label.localeCompare(A.label)),[d]),I=(0,a.useCallback)(e=>{o("portal_customized_languages",e.length?e:[je.default.ENGLISH])},[o]),S=(0,a.useMemo)(()=>[{id:"landingPageSettingsItems",label:a.createElement(w.sA,{id:"HOTSPOT_LANDING_PAGE_SETTINGS"}),openByDefault:!0,renderContent:()=>a.createElement(H.A,{flexDirection:"column",gap:CA.kc},a.createElement(H.A,{flexDirection:"column"},a.createElement(RA.A,{size:"small",color:"text-3"},a.createElement(w.sA,{id:"COMMON_DEFAULT_EXPIRATION"})),a.createElement(H.A,{flexDirection:"column"},a.createElement(H.A,{width:"100%"},a.createElement(Jt.A,{full:!0,name:"expire",type:"dropdown",variant:"secondary",options:u})),A===aA?a.createElement(H.A,{flexFlow:"row",marginTop:CA.Er},a.createElement(H.A,{width:"50%"},a.createElement(Jt.A,{full:!0,variant:"secondary",name:"expire_number"})),a.createElement(H.A,{width:"50%",marginLeft:CA.Ln},a.createElement(Jt.A,{full:!0,type:"dropdown",variant:"secondary",name:"expire_unit",options:T}))):null)),a.createElement(H.A,{marginTop:CA.kc},a.createElement(Xt.A,{options:O,list:r,onChange:I,triggerButtonText:"COMMON_SELECT_LANGUAGE",validationMessage:(0,Vt.t$)("portal_customized_languages",c,E,m),isFullWidth:!0})),a.createElement(H.A,{flexWrap:"wrap",gap:CA.Ln},a.createElement(Jt.A,{name:"portal_enabled",type:"realCheckbox"},a.createElement(w.sA,{id:"COMMON_SHOW_LANDING_PAGE"})),a.createElement(H.A,{alignItems:"center",gap:CA.YC},a.createElement(Jt.A,{name:"redirect_https",type:"realCheckbox"},a.createElement(w.sA,{id:"COMMON_HTTPS_REDIRECTION_SUPPORT"})),a.createElement(kt.A,{description:a.createElement(w.sA,{id:"HOTSPOT_ADVANCED_LABEL_REDIRECT_HTTPS_DESC"})},a.createElement("span",null,a.createElement($A.A,{isActive:!0,size:"original"})))),a.createElement(H.A,{alignItems:"center",gap:CA.YC},a.createElement(Jt.A,{name:"ec_enabled",type:"realCheckbox"},a.createElement(w.sA,{id:"COMMON_ENCRYPTED_URL"})),a.createElement(kt.A,{description:a.createElement(w.sA,{id:"HOTSPOT_ADVANCED_LABEL_ENCRYPTED_REDIRECT_URL_DESC"})},a.createElement("span",null,a.createElement($A.A,{isActive:!0,size:"original"})))),a.createElement(H.A,{alignItems:"center",gap:CA.YC},a.createElement(Jt.A,{name:"redirect_to_https",type:"realCheckbox"},a.createElement(w.sA,{id:"COMMON_SECURE_PORTAL"})),a.createElement(kt.A,{description:a.createElement(w.sA,{id:"HOTSPOT_ADVANCED_LABEL_REDIRECT_TO_HTTPS_DESC"})},a.createElement("span",null,a.createElement($A.A,{isActive:!0,size:"original"})))),a.createElement(H.A,{alignItems:"center",gap:CA.YC},a.createElement(Jt.A,{name:"portal_use_hostname",type:"realCheckbox"},a.createElement(w.sA,{id:"COMMON_DOMAIN"})),a.createElement(kt.A,{description:a.createElement(w.sA,{id:"HOTSPOT_ADVANCED_LABEL_DOMAIN_DESC"})},a.createElement("span",null,a.createElement($A.A,{isActive:!0,size:"original"}))))),e?a.createElement(Jt.A,{full:!0,name:"portal_hostname",variant:"secondary",label:"COMMON_DOMAIN"}):null)}],[A,r,I,O,u,T,e]),N=(0,a.useCallback)(e=>{o("allowed_subnets",e)},[o]),_=(0,a.useCallback)(e=>{s(`allowed_subnets.${e}`,!0)},[s]),p=(0,a.useCallback)(e=>{o("restricted_subnets",e)},[o]),R=(0,a.useCallback)(e=>{s(`restricted_subnets.${e}`,!0)},[s]),C=(0,a.useMemo)(()=>[{id:"authorizationAccess",label:a.createElement(w.sA,{id:"HOTSPOT_AUTHORIZATION_ACCESS"}),openByDefault:!0,renderContent:()=>a.createElement("div",null,a.createElement(H.A,null,a.createElement(RA.A,{size:"small",color:"text-3"},a.createElement(H.A,null,a.createElement(w.sA,{id:"COMMON_PRE_AUTHORIZATION_ALLOWANCES"}),a.createElement(kt.A,{description:a.createElement(w.sA,{id:"HOTSPOT_ADVANCED_ONTROL_FIELDS_DESCRIPTION_PRE_AUTH"})},a.createElement("span",null,a.createElement($A.A,{style:{marginLeft:CA.kc},isActive:!0,size:"original"})))))),a.createElement(H.A,{marginTop:CA.kc},a.createElement(qt,{name:"allowed_subnets",values:n,onChange:N,onBlur:_,addButtonLabel:"HOTSPOT_ACCESS_CONTROL_FIELDS_ACTION_ADD_IP4_SUBNET",placeholder:"HOTSPOT_ACCESS_CONTROL_FIELDS_LABEL_IP4_SUBNET",max:1e3,errors:c.allowed_subnets,touched:E.allowed_subnets,Icon:Gt.A})),a.createElement(H.A,{marginTop:16},a.createElement(RA.A,{size:"small",color:"text-3"},a.createElement(H.A,null,a.createElement(w.sA,{id:"COMMON_POST_AUTHORIZATION_RESTRICTIONS"}),a.createElement(kt.A,{description:a.createElement(w.sA,{id:"HOTSPOT_ADVANCED_CONTROL_FIELDS_DESCRIPTION_POST_AUTH"})},a.createElement("span",null,a.createElement($A.A,{style:{marginLeft:CA.kc},isActive:!0,size:"original"})))))),a.createElement(H.A,{marginTop:CA.kc},a.createElement(qt,{name:"restricted_subnets",values:l,onChange:p,onBlur:R,addButtonLabel:"HOTSPOT_ACCESS_CONTROL_FIELDS_ACTION_ADD_IP4_SUBNET",placeholder:"HOTSPOT_ACCESS_CONTROL_FIELDS_LABEL_IP4_SUBNET",max:1e3,errors:c.restricted_subnets,touched:E.restricted_subnets,Icon:Gt.A})))}],[n,l,N,_,p,R,c,E]),M=(0,a.useMemo)(()=>[{id:"success",label:a.createElement(w.sA,{id:"HOTSPOT_SUCCESS_LANDING_PAGE"}),openByDefault:!0,renderContent:()=>a.createElement(H.A,{gap:CA.kc,...pA.A.addDataTestId(pA.A.TestId.HOTSPOT_PORTAL_BRANDING_SUCCESS),flexDirection:"column"},a.createElement(H.A,{gap:CA.Ln},a.createElement(Jt.A,{name:"redirect_enabled",type:"radio",value:!1},a.createElement(w.sA,{id:"HOTSPOT_ADVANCED_REDIRECT_VALUE_ORIGINAL"})),a.createElement(Jt.A,{name:"redirect_enabled",type:"radio",value:!0},a.createElement(w.sA,{id:"COMMON_CUSTOM_URL"}))),i?a.createElement(Jt.A,{name:"redirect_url",variant:"secondary",label:"COMMON_CUSTOM_URL",width:"100%"}):a.createElement(Jt.A,{name:"portal_customized_success_text",variant:"secondary",label:"COMMON_SUCCESS_TEXT",width:"100%"}))}],[i]);return a.createElement(a.Fragment,null,a.createElement(Aa,{type:Qt.I.ACCORDION,items:S}),a.createElement(Aa,{type:Qt.I.ACCORDION,items:C}),a.createElement(Aa,{type:Qt.I.ACCORDION,items:M}))};var aa=t(137625);const na=(0,K.A)(H.A)`
  gap: ${CA.kc};
  background: ${pt.N};
  width: 100%;
  padding: ${CA.Er} 0;
  bottom: 0;
  position: absolute;
  align-items: center;
  left: 0;
  padding-left: ${CA.Er};
`,la=()=>{const e=(0,E.useDispatch)(),{dirty:A,handleSubmit:t,handleReset:n,isSubmitting:l,isValidating:r}=(0,Ne.j7)(),[i,o]=(0,a.useState)(!1),c=(0,a.useCallback)(()=>{t()},[t]),m=(0,a.useCallback)(()=>{n()},[n]),d=(0,a.useCallback)(()=>{e((0,s.B5)()).finally(n)},[e,n]),u=(0,a.useCallback)(()=>{o(!1)},[]),T=(0,a.useCallback)(()=>{o(!0)},[]);return A?a.createElement(na,null,a.createElement(g.A,{name:"submit",variant:"primary",type:"submit",onClick:c,disabled:!A||l&&!r},a.createElement(w.sA,{id:"COMMON_ACTION_SAVE"})),a.createElement(g.A,{name:"cancel",variant:"default",type:"button",onClick:m,disabled:!l&&!A},a.createElement(w.sA,{id:"COMMON_ACTION_CANCEL"})),a.createElement(aa.A,{title:"COMMON_ACTION_RESTORE_DEFAULT_SETTINGS",message:"HOTSPOT_RESTORE_DEFAULTS",handleConfirm:d,handleClose:u,buttonVariant:"danger",buttonMessage:"COMMON_ACTION_RESTORE",isOpen:i},a.createElement(QA.A,{type:"button",fontSize:"medium",variant:"destructive",onClick:T,isDisabled:l,...pA.A.addDataTestId(pA.A.TestId.HOTSPOT_PORTAL_SETTINGS_RESTORE_DEFAULT)},a.createElement(w.sA,{id:"COMMON_ACTION_RESTORE_DEFAULT_SETTINGS"})))):null},ra=()=>a.createElement(Jt.A,{name:"portal_customized_welcome_text",variant:"secondary",label:"COMMON_WELCOME_TEXT",width:"100%"}),ia=()=>a.createElement(Jt.A,{name:"portal_customized_title",variant:"secondary",label:"COMMON_LABEL_TITLE",width:"100%"});var oa=t(23835);const sa=(0,K.A)(oa.A)`
  textarea {
    resize: none;
  }
`,ca=()=>{const{values:{portal_customized_tos_enabled:e,portal_customized_tos:A},errors:{portal_customized_tos:t},setFieldValue:n}=(0,Ne.j7)(),l=(0,E.useSelector)(NA.EL),r=(0,a.useCallback)((e,A)=>{n("portal_customized_tos",A)},[n]);return a.createElement(a.Fragment,null,a.createElement(Jt.A,{type:"realCheckbox",name:"portal_customized_tos_enabled",tooltipMessage:a.createElement(w.sA,{id:"HOTSPOT_FORM_TOS_DESCRIPTION"})},a.createElement(w.sA,{id:"COMMON_TOS"})),e?a.createElement(sa,{rows:6,name:"portal_customized_tos",value:A,onChange:r,full:!0,invalid:Boolean(t)&&t,maxWidth:"100%",width:"100%",disabled:l,variant:"secondary"}):null)};var Ea=t(802),ma=t(238761),da=t(793336),ua=t(313615);const Ta=(0,K.A)("div")`
  position: relative;
  border: ${({theme:{themeName:e}})=>yA.Ay[`desktop-border-divider-${e}`]};
  border-radius: 8px;
  width: 108px;
  height: 108px;
  overflow: hidden;
`,Oa=(0,K.A)(H.A,{shouldForwardProp:e=>"visible"!==e})`
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  height: 28px;
  cursor: pointer;
  transition: opacity 250ms ease;
  background: ${({theme:{motifPalette:{neutral00:e}}})=>e};
  opacity: ${({visible:e})=>e?.8:0};
`,Ia=(0,K.A)(ua.A)`
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
`,Sa=(0,K.A)("img")`
  width: 108px;
  height: 108px;
  object-fit: cover;
`,Na=(0,K.A)(g.A)`
  position: absolute;
  right: ${CA.YC};
  top: ${CA.YC};
  height: 20px;
  width: 20px;
  padding: ${CA.YC};
`,_a=({onChange:e,onClose:A,hideClose:t,hideUpload:n,bgUrl:l,changeText:r="COMMON_CHANGE"})=>{const[i,o]=(0,a.useState)(!1),s=(0,a.useCallback)(()=>{o(!0)},[]),c=(0,a.useCallback)(()=>{o(!1)},[]);return a.createElement(Ta,{onMouseEnter:s,onMouseLeave:c},n?null:a.createElement(Ia,{onChange:e,accept:"image/*"},a.createElement(Oa,{visible:i,alignItems:"center",justifyContent:"center"},a.createElement(RA.A,{size:"small"},a.createElement(w.sA,{id:r})))),t?null:a.createElement(Na,{type:"button",name:"background-preview-remove",onClick:A},a.createElement(da.A,{width:10,height:10})),a.createElement(Sa,{src:l}))},pa=(0,K.A)(H.A)`
  gap: ${CA.kc};
  flex-direction: column;
`,Ra=(0,K.A)(H.A)`
  gap: ${CA.Ln};
  align-items: center;
`,Ca=(0,K.A)(H.A)`
  flex-direction: column;
  gap: ${CA.YC};
  > div > div > div:last-child {
    margin: 0 !important;
  }
`,Ma=(0,K.A)(H.A)`
  flex-direction: column;
`,Pa=()=>{const e=(0,E.useDispatch)(),{values:{portal_customized_logo_filename:A,portal_customized_logo_size:t,portal_customized_logo_position:n},setFieldValue:l}=(0,Ne.j7)(),r=(0,E.useSelector)(NA.LF),i=(0,E.useSelector)(tt.p),o=(0,a.useMemo)(()=>rA(r,"object"==typeof A&&"url"in A?A.url:A),[r,A]),s=(0,E.useSelector)((0,a.useMemo)(()=>SA(o),[o])),c=(0,a.useCallback)(async e=>{l("portal_customized_logo_enabled",!0),l("portal_customized_logo_filename",{file:e,url:await dA(e)})},[l]),m=(0,a.useCallback)(()=>{l("portal_customized_logo_enabled",!1),l("portal_customized_logo_filename","")},[l]),d=(0,a.useCallback)(A=>{e(TA(A,c))},[c,e]),u=(0,a.useMemo)(()=>{if(!A)return;const e=iA(A);return e?.startsWith?.(Ue.vi)?e:s},[A,s]),T=(0,a.useMemo)(()=>u||`${i}/uiLogoHotspot.svg`,[u,i]),O=(0,a.useCallback)(({target:{value:e}})=>{l("portal_customized_logo_size",e)},[l]),I=(0,a.useCallback)(e=>()=>{l("portal_customized_logo_position",e)},[l]),S=(0,a.useMemo)(()=>[{id:We.UC.LEFT,children:a.createElement(w.sA,{id:"HOTSPOT_LEFT"}),onChange:I(We.UC.LEFT),checked:n===We.UC.LEFT},{id:We.UC.CENTER,children:a.createElement(w.sA,{id:"HOTSPOT_CENTER"}),onChange:I(We.UC.CENTER),checked:n===We.UC.CENTER},{id:We.UC.RIGHT,children:a.createElement(w.sA,{id:"HOTSPOT_RIGHT"}),onChange:I(We.UC.RIGHT),checked:n===We.UC.RIGHT}],[I,n]);return(0,a.useEffect)(()=>{o&&e(ye(o))},[e,o]),a.createElement(pa,null,a.createElement(Ca,null,a.createElement(RA.A,{size:"small",color:"text-3"},a.createElement(w.sA,{id:"COMMON_LOGO_SIZE"})),a.createElement(Ea.A,{value:t||128,min:64,max:192,onChange:O})),a.createElement(Ra,null,a.createElement(_a,{...pA.A.addDataTestId(pA.A.TestId.HOTSPOT_PORTAL_BRANDING_LOGO),bgUrl:T,onChange:uA(d),onClose:m,hideClose:!u,changeText:"HOTSPOT_DESIGN_FORM_CHANGE_LOGO"}),a.createElement(Ma,null,a.createElement(RA.A,{size:"small",color:"text-3"},a.createElement(w.sA,{id:"HOTSPOT_LOGO_POSITION"})),a.createElement(ma.A,{items:S,spacing:"condensed"}))))};var Da=t(766412),fa=t(401479),ba=t(825032);const va=(0,K.A)(H.A)`
  flex-direction: column;
`,La=(0,K.A)(H.A)`
  gap: ${CA.kc};
  align-items: center;
`,ha=(0,K.A)(H.A)`
  cursor: pointer;
  padding: ${CA.YC} ${CA.kc};
  background: ${({theme:{themeName:e}})=>yA.Ay[`desktop-color-depth-bg-${e===ba.S.DARK?"3":"5"}-${e}`]};
`,ya=({label:e,onChange:A,color:t})=>{const[n,l]=(0,a.useState)(t),r=(0,E.useSelector)(NA.EL),i=(0,a.useCallback)(e=>{return t=(0,HA.E6)(e.toString()),A(t),void l(t);var t},[A,l]);return(0,a.useEffect)(()=>{l(t)},[t]),a.createElement(va,null,e?a.createElement(RA.A,{size:"small",color:"text-3"},a.createElement(w.sA,{id:e})):void 0,a.createElement(ha,null,a.createElement(Da._,{value:n,onChange:i,isDisabled:r,colorSpace:"hex",sliders:[{id:"hue",channel:"hue"}]},a.createElement(La,null,a.createElement(fa.A,{color:n}),a.createElement(RA.A,{size:"medium",color:"text-1"},n)))))},za=(0,K.A)(H.A)`
  flex-direction: column;
  gap: ${CA.kc};
`,ga=(0,K.A)(H.A)`
  gap: ${CA.kc};
  width: 100%;
  justify-content: space-between;
`,xa=({onColorChange:e})=>{const{values:{portal_customized_box_color:A,portal_customized_text_color:t,portal_customized_box_text_color:n,portal_customized_button_color:l,portal_customized_button_text_color:r,portal_customized_link_color:i}}=(0,Ne.j7)();return a.createElement(za,null,a.createElement(ga,null,a.createElement(ya,{color:A,onChange:e("box"),label:"COMMON_BOX_COLOR"}),a.createElement(ya,{color:t,onChange:e("text"),label:"COMMON_TEXT_COLOR"}),a.createElement(ya,{color:n,onChange:e("box_text"),label:"HOTSPOT_DESIGN_FORM_BOX_TEXT_COLOR"})),a.createElement(ga,null,a.createElement(ya,{color:l,onChange:e("button"),label:"COMMON_BUTTON_COLOR"}),a.createElement(ya,{color:r,onChange:e("button_text"),label:"COMMON_BUTTON_TEXT_COLOR"}),a.createElement(ya,{color:i,onChange:e("link"),label:"COMMON_LINK_COLOR"})))},Wa=()=>a.createElement(Jt.A,{name:"portal_customized_button_text",variant:"secondary",label:"COMMON_BUTTON_TEXT",width:"100%"}),Ha=(0,K.A)(H.A)`
  align-items: center;
  gap: ${CA.Ln};
`,wa=(0,K.A)(H.A)`
  width: 120px;
`,Ua=(0,K.A)(H.A)`
  flex-direction: column;
  gap: ${CA.kc};
`,ka=()=>{const{values:{portal_customized_box_radius:e},setFieldValue:A}=(0,Ne.j7)(),t=(0,a.useCallback)(({target:{value:e}})=>{A("portal_customized_box_radius",e)},[A]);return a.createElement(Ha,null,a.createElement(wa,null,a.createElement(Jt.A,{name:"portal_customized_box_opacity",variant:"secondary",type:"number",min:0,max:100,label:"COMMON_BOX_OPACITY"})),a.createElement(Ua,null,a.createElement(RA.A,{size:"small",color:"text-3"},a.createElement(w.sA,{id:"COMMON_BOX_CORNER_RADIUS"})),a.createElement(Ea.A,{value:Number(e)||0,min:0,max:50,onChange:t})))};var Ga=t(588915),Va=t(453370);const Xa=()=>{const{values:{portal_customized_bg_image_filename:e},setFieldValue:A}=(0,Ne.j7)(),t=(0,E.useDispatch)(),n=(0,E.useSelector)(NA.LF),l=(0,a.useMemo)(()=>rA(n,iA(e)),[n,e]),r=(0,E.useSelector)((0,a.useMemo)(()=>SA(l),[l])),i=(0,a.useCallback)(async e=>{A("portal_customized_bg_image_enabled",!0),A("portal_customized_bg_image_filename",{file:e,url:await dA(e)}),A("portal_customized_unsplash_author_name",""),A("portal_customized_unsplash_author_username","")},[A]),o=(0,a.useCallback)(()=>{A("portal_customized_bg_image_enabled",!1),A("portal_customized_bg_image_filename",""),A("portal_customized_unsplash_author_name",""),A("portal_customized_unsplash_author_username","")},[A]),s=(0,a.useCallback)(e=>{t(TA(e,i))},[i,t]),c=(0,a.useMemo)(()=>{if(!e)return;const A=iA(e);return A?.startsWith?.(Ue.vi)||A?.startsWith?.(Ue.ud)||A?.startsWith?.(Ue.DU)?A:r},[e,r]);return(0,a.useEffect)(()=>{l&&t(ye(l))},[l,t]),c?a.createElement(_a,{bgUrl:c,onChange:uA(s),onClose:o}):a.createElement(Ga.A,{variant:"link",id:"customBackground",Icon:Va.A,onChange:uA(s),accept:"image/*"},a.createElement(RA.A,{size:"inherit",color:"inherit"},a.createElement(w.sA,{id:"HOTSPOT_DESIGN_FORM_UPLOAD_YOUR_BACKGROUND"})))};var Za=t(156229),Ya=t(272505),Ba=t.n(Ya),Fa=t(371715),ja=t(370333),Ka=t(975503),qa=t(532419),Ja=t(990249);const Qa=["business","coffee","computer","internet","wifi","wireless"],$a=(0,Ja.T)(void 0,{crudCacheStrategy:{type:n.e.COMBINED,interval:12e3}});var en=t(64741),An=t(985370),tn=t(372737);const an=({children:e})=>a.createElement("div",{className:"mt-3"},e),nn=({children:e})=>a.createElement("div",null,e),ln=({updateResults:e,updateSelection:A,dropdownContentClassName:t=null,dropdownContentRenderer:n,container:l,hasError:r=!1,full:i=!0,results:o=[],resultsLimit:s=5,noResults:c=null,selection:E=[],selectionContainer:m,selectionFormatter:d=()=>{},placeholder:u="",inputClassName:T="",widthStyle:O={},widthClassName:I="",debounceWait:S=0,disabled:N=!1,invalid:_=!1,isLoadingResults:p=!1,onFocusInput:R=Function.prototype,onBlurInput:C=Function.prototype,unique:M=!0,label:P})=>{const D=(0,a.useRef)(null),[f,b]=(0,a.useState)(""),[v,L]=(0,a.useState)(!1),[h,y]=(0,a.useState)(null),z=(0,en.A)(A=>e(A),S),g=(0,a.useMemo)(()=>M?o.filter(({id:e})=>!E.find(A=>A.id===e)):o,[E,o,M]),x=(0,a.useCallback)(A=>{const t=A?.target?.value||"";b(t),(S?z:e)(t)},[S,e,z]),W=(0,a.useCallback)(()=>{R(f),L(!0)},[R,f]),H=(0,a.useCallback)(()=>{C(f),L(!1),y(null)},[C,f]),U=(0,a.useCallback)(e=>{const t=A(e,"ADD");"string"==typeof t&&b(t)},[A]),k=(0,a.useCallback)(e=>{if(g.length)switch(e.key){case tn.U.ARROW_DOWN:{e.preventDefault();const A=Number.isFinite(h)?h+1:0,t=A>=g.length?0:A;y(t);break}case tn.U.ARROW_UP:{e.preventDefault();const A=Number.isFinite(h)?h-1:g.length-1,t=A<0?g.length-1:A;y(t);break}case tn.U.ENTER:e.preventDefault(),Number.isFinite(h)&&(U(g[h]),y(null));break;default:y(null)}},[g,h,U]),G=m||an,V=n,X=l||nn;return(0,wA.A)(D,H),a.createElement(X,null,a.createElement("div",{style:O,className:I},a.createElement(w.sA,{id:u},e=>a.createElement(yt.A,{ref:D,placeholder:e,value:f,onChange:x,onFocus:W,onKeyDown:k,className:T,invalid:_,full:i,disabled:N,variant:"secondary",iconBefore:An.A,label:P,width:"100%"})),a.createElement(V,{className:t,results:g.slice(0,s),focusedResultIndex:h,isOpen:v||Number.isFinite(h),isLoadingResults:p,hasError:r,onSelect:U,noResults:c,hasSelection:E.length>0})),a.createElement(G,null,E.map((e,t)=>d(e,t,A))))};var rn=t(854246);const on=(0,K.A)("div")`
  outline: none;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
`,sn=(0,K.A)("div")`
  width: ${75}px;
  height: ${60}px;
  overflow: hidden;
  position: relative;
  &:hover {
    > * {
      visibility: visible;
    }
    &:after {
      position: absolute;
      left: 0;
      top: 0;
      width: ${75}px;
      height: ${60}px;
      display: block;
      content: '';
      border: 2px solid
        ${({theme:{motifPalette:{focus:e}}})=>e};
      border-radius: 10px;
    }
  }
`,cn=(0,K.A)("span")`
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-size: 9px;
  color: ${({theme:{motifPalette:{text01:e}}})=>e};
  visibility: hidden;
  text-shadow: 1px 1px
    ${({theme:{motifPalette:{hoverUi:e}}})=>e};
`,En=(0,K.A)("div")`
  padding: ${CA.Ln} 0;
`,mn=(0,K.A)("div")`
  outline: none;
  margin-bottom: ${CA.xO};
`,dn=(0,K.A)("div")`
  width: ${71}px;
  height: ${56}px;
  overflow: hidden;
  margin: ${({theme:{spacing:e}})=>e["spacing-xxs"]};
`,un=(0,K.A)("div")`
  width: ${75}px;
  height: ${60}px;
  object-fit: cover;
  background: ${({theme:{motifPalette:{hoverUi:e}}})=>e};
`,Tn=(0,K.A)("img")`
  width: ${75}px;
  height: ${60}px;
  object-fit: cover;
  background: ${({theme:{motifPalette:{hoverUi:e}}})=>e};
`,On=(0,K.A)("div")`
  position: relative;
  z-index: 1;
`,In=(0,K.A)("div")`
  position: absolute;
  top: 10px;
  width: 340px;
  box-shadow: 0 15px 45px 0
    ${({theme:{motifPalette:{shadow02:e}}})=>e};
  background-color: ${({theme:{motifPalette:{neutral01:e}}})=>e};
  border-bottom-left-radius: ${yA.Ay["desktop-radius-base"]};
  border-bottom-right-radius: ${yA.Ay["desktop-radius-base"]}
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  z-index: 1;
  ${({noResults:e})=>e&&"width: 100%"};
  ${({open:e})=>e&&"max-height: 412px;"};
`,Sn=(0,K.A)(H.A)`
  margin: ${CA.xO};
`,Nn=({isLoadingResults:e,hasError:A=!1,isOpen:t=!1,onSelect:n,results:l=[]})=>{const r=(0,a.useRef)(),i=(0,E.useSelector)(Ka.Jf),o=(0,E.useSelector)(qa.m9),s=(0,a.useCallback)(e=>()=>{n(e)},[n]),c=(0,a.useMemo)(()=>{return A?a.createElement(En,null,a.createElement(w.sA,{id:"HOTSPOT_DESIGN_FORM_UNSPLASH_OFFLINE_NOTIFICATION"})):e?(t=16,Array.from({length:t}).map((e,A)=>a.createElement(mn,{key:`placeholder-${A+1}`,role:"menuitem",tabIndex:A},a.createElement(dn,null,a.createElement(un,null))))):0===l.length?a.createElement(En,null,a.createElement(w.sA,{id:"COMMON_NO_RESULTS"})):l.map((e,A)=>a.createElement(on,{key:e.id,role:"menuitem",tabIndex:A,onClick:s(e)},a.createElement(sn,null,a.createElement(Tn,{src:e.urls.thumb,alt:e.description,title:e.description}),a.createElement(cn,null,e.user.name))));var t},[l,A,e,s]),m=(0,a.useCallback)(()=>{if(t){const{bottom:e,right:A}=r.current.getBoundingClientRect();(A>window.innerWidth||e>window.innerHeight)&&r.current.scrollIntoView({block:"end",behavior:"smooth"})}},[t]);return a.createElement(On,null,a.createElement(In,{ref:r,open:t,onTransitionEnd:m,noResults:!e&&!l.length},t?a.createElement(Sn,{flexWrap:"wrap",justifyContent:"space-between"},c):null),o&&!i?a.createElement(rn.A,{align:"left",visible:!0,translation:"HOTSPOT_DESIGN_FORM_WWW_OFFLINE_NOTIFICATION"}):null)},_n=({apiKey:e,hasError:A,onSelect:t,onApiKeyError:n})=>{const{formatMessage:l}=(0,w.tz)(),r=(0,E.useDispatch)(),o=(0,a.useRef)(!1),s=(0,a.useRef)(!1),c=(0,a.useRef)(""),[m,d]=(0,a.useState)([]),[u,T]=(0,a.useState)(!0),[O,I]=(0,a.useState)({}),S=(0,E.useSelector)(NA.EL),N=(0,E.useSelector)(Ka.Jf),_=(0,E.useSelector)(qa.m9),[p,R]=(0,a.useState)(e),C=(0,a.useCallback)(t=>{const a=t||(0,ja.Vj)(Qa),l=O[a];if(c.current=t,!A)return e?void(l?d(l):(d([]),T(!0),Ba()((e=>`${Ue.DU}api.unsplash.com/search/photos?page=1&per_page=16&query=${e}`)(a),{headers:{Authorization:`Client-ID ${e}`}}).then(({data:{results:e}})=>{o.current||(d(e),T(!1),I({...O,[a]:e}))}).catch(e=>(s.current||401!==e.response.status||(n(),s.current=!0),e)))):(d([]),void T(!0))},[e,O,A,n]);return(0,a.useEffect)(()=>{!p&&e&&(C(c.current),R(e))},[p,e,C]),(0,a.useEffect)(()=>()=>{r((0,Fa.NM)($a))},[r]),(0,a.useEffect)(()=>()=>{o.current=!0},[]),(0,i.A)([$a],a.createElement(ln,{disabled:S||_&&!N,dropdownContentRenderer:Nn,results:m,isLoadingResults:u,hasError:A||s.current,updateResults:C,updateSelection:t,placeholder:"HOTSPOT_DESIGN_FORM_BACKGROUND_IMG_SEARCH_GALLERY_PLACEHOLDER",debounceWait:400,resultsLimit:16,unique:!0,full:!1,onFocusInput:C,label:l({id:"HOTSPOT_DESIGN_FORM_LIBRARY_IMAGE"})}))},pn=(0,K.A)(H.A)`
  flex-direction: column;
  gap: ${CA.kc};
`,Rn=()=>{const{values:{portal_customized_bg_image_filename:e},setFieldValue:A}=(0,Ne.j7)(),t=(0,E.useDispatch)(),n=(0,E.useSelector)(NA.LF),l=(0,E.useSelector)(Za.M$),r=(0,E.useSelector)(Za.Ds),i=(0,a.useMemo)(()=>rA(n,iA(e)),[n,e]),o=(0,E.useSelector)((0,a.useMemo)(()=>SA(i),[i])),s=(0,a.useMemo)(()=>{if(!e)return;const A=iA(e);return A?.startsWith?.(Ue.vi)||A?.startsWith?.(Ue.ud)||A?.startsWith?.(Ue.DU)?A:o},[e,o]),c=(0,a.useCallback)(()=>{t((0,Me.j)(!0))},[t]),m=(0,a.useCallback)(()=>{A("portal_customized_bg_image_enabled",!1),A("portal_customized_bg_image_filename",""),A("portal_customized_unsplash_author_name",""),A("portal_customized_unsplash_author_username","")},[A]),d=(0,a.useCallback)(({urls:{regular:e},color:t,user:{name:a,username:n}})=>{A("portal_customized_bg_image_filename",e),t&&A("portal_customized_bg_color",t),A("portal_customized_bg_image_enabled",!0),A("portal_customized_unsplash_author_name",a),A("portal_customized_unsplash_author_username",n)},[A]);return(0,a.useEffect)(()=>{i&&t(ye(i))},[t,i]),a.createElement(pn,null,a.createElement(_n,{apiKey:l,onApiKeyError:c,hasError:r,onSelect:d}),s?a.createElement(_a,{hideUpload:!0,bgUrl:s,onClose:m}):null)},Cn=(0,K.A)(H.A)`
  flex-direction: column;
  gap: ${CA.kc};
`,Mn=(0,K.A)(H.A)`
  gap: ${CA.Ln};
`,Pn=({onColorChange:e})=>{const{values:{portal_customized_bg_type:A,portal_customized_bg_color:t}}=(0,Ne.j7)(),n=(0,a.useMemo)(()=>{switch(A){case We.yK.COLOR:return a.createElement(ya,{color:t,onChange:e("bg")});case We.yK.IMAGE:return a.createElement(Xa,null);case We.yK.GALLERY:return a.createElement(Rn,null);default:return null}},[A,t,e]);return a.createElement(Cn,null,a.createElement(RA.A,{size:"small",color:"text-3"},a.createElement(w.sA,{id:"COMMON_BACKGROUND"})),a.createElement(Mn,null,a.createElement(Jt.A,{name:"portal_customized_bg_type",type:"radio",value:We.yK.COLOR},a.createElement(w.sA,{id:"COMMON_COLOR"})),a.createElement(Jt.A,{name:"portal_customized_bg_type",type:"radio",value:We.yK.IMAGE},a.createElement(w.sA,{id:"HOTSPOT_IMAGE"})),a.createElement(Jt.A,{name:"portal_customized_bg_type",type:"radio",value:We.yK.GALLERY},a.createElement(w.sA,{id:"HOTSPOT_GALLERY"}))),n)},Dn=()=>{const{[mt.HOTSPOT_LANDING_PAGE_PREVIEW_APP_AUTHENTICATIONS]:e,[mt.HOTSPOT_LANDING_PAGE_PREVIEW_VOUCHER_AUTHENTICATIONS]:A,[mt.HOTSPOT_LANDING_PAGE_PREVIEW_INPUT_AUTHENTICATIONS]:t}=(0,a.useContext)(ut);return e.length+A.length+t.length>1?a.createElement(Jt.A,{name:"portal_customized_authentication_text",variant:"secondary",label:"COMMON_AUTHENTICATION_TEXT",width:"100%"}):null},fn=(0,K.A)(H.A)`
  flex-direction: column;
  gap: ${CA.Ln};
`,bn=()=>{const{setFieldValue:e}=(0,Ne.j7)(),A=(0,a.useCallback)(A=>t=>{e(`portal_customized_${A}_color`,t)},[e]),t=(0,a.useMemo)(()=>[{id:"landingPageDesigner",label:a.createElement(w.sA,{id:"HOTSPOT_LANDING_PAGE_DESIGNER"}),openByDefault:!0,renderContent:()=>a.createElement(fn,{...pA.A.addDataTestId(pA.A.TestId.HOTSPOT_PORTAL_BRANDING_INFORMATION)},a.createElement(ia,null),a.createElement(ra,null),a.createElement(Dn,null),a.createElement(Wa,null),a.createElement(ca,null),a.createElement(Pa,null),a.createElement(Pn,{onColorChange:A}),a.createElement(xa,{onColorChange:A}),a.createElement(ka,null))}],[A]);return a.createElement(a.Fragment,null,a.createElement(Aa,{type:Qt.I.ACCORDION,items:t}))};var vn=t(956347),Ln=t(271856),hn=t(405844),yn=t(39956),zn=t(365932),gn=t(900343),xn=t(203584),Wn=t(928085),Hn=t(372382),wn=t(959341),Un=t(874807),kn=t(963070);const Gn=({payment_fields_first_name_enabled:e,payment_fields_last_name_enabled:A,payment_fields_address_enabled:t,payment_fields_city_enabled:a,payment_fields_state_enabled:n,payment_fields_zip_enabled:l,payment_fields_country_enabled:r,payment_fields_email_enabled:i},o)=>[{name:"COMMON_FIRST_NAME",key:"first_name",required:!1,enabled:e},{name:"COMMON_LAST_NAME",key:"last_name",required:!1,enabled:A},{name:"COMMON_ADDRESS",key:"address",required:!1,enabled:t},{name:"COMMON_CITY",key:"city",required:!1,enabled:a},{name:"COMMON_STATE",key:"state",required:!1,enabled:n},{name:"HOTSPOT_PAYMENTS_FIELD_ZIP",key:"zip",required:!1,enabled:l},{name:"HOTSPOT_PAYMENTS_FIELD_COUNTRY",key:"country",required:!o,enabled:r},{name:"COMMON_EMAIL",key:"email",required:!1,enabled:i}],Vn=[{id:"name",label:a.createElement(w.sA,{id:"COMMON_NAME"}),renderCell:({name:e})=>a.createElement(w.sA,{id:e}),minWidth:170},{id:"enabled",label:a.createElement(w.sA,{id:"COMMON_ENABLED"}),renderCell:({key:e,required:A})=>a.createElement(Jt.A,{name:`payment_fields_${e}_enabled`,disabled:A,type:"realCheckbox"}),minWidth:90},{id:"required",label:a.createElement(w.sA,{id:"HOTSPOT_PAYMENTS_LABEL_FIELD_REQUIRED"}),renderCell:({key:e,required:A,enabled:t})=>a.createElement(Jt.A,{name:`payment_fields_${e}_required`,disabled:!t||A,type:"realCheckbox"}),minWidth:80}];var Xn=t(705426);const Zn=(0,K.A)(Xn.A)`
  width: 408px;
  header {
    height: ${CA.nf};
    svg {
      display: none;
    }
  }
  > div {
    overflow: visible !important;
    padding: ${CA.Ln} ${CA.fS};
  }
  footer {
    margin-top: ${CA.S2};
  }
`,Yn={AED:{fractionSize:2,format:{symbol:".د.إ",template:"{amount} {symbol}"}},AFN:{fractionSize:2,format:{symbol:"؋",template:"{amount} {symbol}"}},ALL:{fractionSize:2,format:{symbol:"L",template:"{symbol}{amount}"}},AMD:{fractionSize:2,format:{symbol:"դր.",template:"{amount} {symbol}"}},ANG:{fractionSize:2,format:{symbol:"ƒ",template:"{symbol}{amount}"}},AOA:{fractionSize:2},ARS:{fractionSize:2,format:{symbol:"$",template:"{symbol}{amount}"}},AUD:{fractionSize:2,format:{symbol:"$",template:"{symbol}{amount}"}},AWG:{fractionSize:2,format:{symbol:"ƒ",template:"{symbol}{amount}"}},AZN:{fractionSize:2,format:{symbol:"₼",template:"{symbol}{amount}"}},BAM:{fractionSize:2,format:{symbol:"KM",template:"{symbol}{amount}"}},BBD:{fractionSize:2,format:{symbol:"$",template:"{symbol}{amount}"}},BDT:{fractionSize:2},BGN:{fractionSize:2,format:{symbol:"лв",template:"{symbol}{amount}"}},BHD:{fractionSize:3,format:{symbol:".د.ب",template:"{amount} {symbol}"}},BIF:{fractionSize:0},BMD:{fractionSize:2,format:{symbol:"$",template:"{symbol}{amount}"}},BND:{fractionSize:2,format:{symbol:"$",template:"{symbol}{amount}"}},BOB:{fractionSize:2,format:{symbol:"Bs.",template:"{symbol}{amount}"}},BOV:{fractionSize:2},BRL:{fractionSize:2,format:{symbol:"R$",template:"{symbol}{amount}"}},BSD:{fractionSize:2,format:{symbol:"$",template:"{symbol}{amount}"}},BTN:{fractionSize:2},BWP:{fractionSize:2,format:{symbol:"P",template:"{symbol}{amount}"}},BYR:{fractionSize:0,format:{symbol:"p.",template:"{amount} {symbol}"}},BZD:{fractionSize:2,format:{symbol:"BZ$",template:"{symbol}{amount}"}},CAD:{fractionSize:2,format:{symbol:"$",template:"{symbol}{amount}"}},CDF:{fractionSize:2},CHE:{fractionSize:2},CHF:{fractionSize:2,format:{symbol:"CHF",template:"{symbol}{amount}"}},CHW:{fractionSize:2},CLF:{fractionSize:4},CLP:{fractionSize:0,format:{symbol:"$",template:"{symbol}{amount}"}},CNY:{fractionSize:2,format:{symbol:"元",template:"{symbol}{amount}"}},COP:{fractionSize:0,format:{symbol:"$",template:"{symbol}{amount}"}},COU:{fractionSize:2},CRC:{fractionSize:2,format:{symbol:"₡",template:"{symbol}{amount}"}},CUC:{fractionSize:2},CUP:{fractionSize:2,format:{symbol:"$MN",template:"{symbol}{amount}"}},CVE:{fractionSize:2},CZK:{fractionSize:2,format:{symbol:"Kč",template:"{amount} {symbol}"}},DJF:{fractionSize:0},DKK:{fractionSize:2,format:{symbol:"kr",template:"{amount} {symbol}"}},DOP:{fractionSize:2,format:{symbol:"RD$",template:"{symbol}{amount}"}},DZD:{fractionSize:2,format:{symbol:".د.ج",template:"{amount} {symbol}"}},EEK:{fractionSize:2,format:{symbol:"kr",template:"{symbol}{amount}"}},EGP:{fractionSize:2,format:{symbol:"£",template:"{symbol}{amount}"}},ERN:{fractionSize:2},ETB:{fractionSize:2},EUR:{fractionSize:2,format:{symbol:"€",template:"{symbol}{amount}"}},FJD:{fractionSize:2,format:{symbol:"$",template:"{symbol}{amount}"}},FKP:{fractionSize:2,format:{symbol:"£",template:"{symbol}{amount}"}},GBP:{fractionSize:2,format:{symbol:"£",template:"{symbol}{amount}"}},GEL:{fractionSize:2},GGP:{fractionSize:2,format:{symbol:"£",template:"{symbol}{amount}"}},GHC:{fractionSize:2,format:{symbol:"¢",template:"{symbol}{amount}"}},GHS:{fractionSize:2},GIP:{fractionSize:2,format:{symbol:"£",template:"{symbol}{amount}"}},GMD:{fractionSize:2},GNF:{fractionSize:0},GTQ:{fractionSize:2,format:{symbol:"Q",template:"{symbol}{amount}"}},GYD:{fractionSize:2,format:{symbol:"$",template:"{symbol}{amount}"}},HKD:{fractionSize:2,format:{symbol:"$",template:"{symbol}{amount}"}},HNL:{fractionSize:2,format:{symbol:"L",template:"{symbol}{amount}"}},HRK:{fractionSize:2,format:{symbol:"kn",template:"{symbol}{amount}"}},HTG:{fractionSize:2},HUF:{fractionSize:0,format:{symbol:"Ft",template:"{symbol}{amount}"}},IDR:{fractionSize:3,format:{symbol:"Rp",template:"{symbol}{amount}"}},ILS:{fractionSize:2,format:{symbol:"₪",template:"{symbol}{amount}"}},IMP:{fractionSize:2,format:{symbol:"£",template:"{symbol}{amount}"}},INR:{fractionSize:2,format:{symbol:"₹",template:"{symbol}{amount}"}},IQD:{fractionSize:3,format:{symbol:".د.ع",template:"{amount} {symbol}"}},IRR:{fractionSize:2,format:{symbol:"﷼",template:"{amount} {symbol}"}},ISK:{fractionSize:2,format:{symbol:"kr",template:"{symbol}{amount}"}},JEP:{fractionSize:2,format:{symbol:"£",template:"{symbol}{amount}"}},JMD:{fractionSize:2,format:{symbol:"J$",template:"{symbol}{amount}"}},JOD:{fractionSize:3,format:{symbol:".د.إ",template:"{amount} {symbol}"}},JPY:{fractionSize:0,format:{symbol:"¥",template:"{symbol}{amount}"}},KES:{fractionSize:2,format:{symbol:"KSh",template:"{symbol}{amount}"}},KGS:{fractionSize:2,format:{symbol:"сом",template:"{symbol}{amount}"}},KHR:{fractionSize:2,format:{symbol:"៛",template:"{symbol}{amount}"}},KMF:{fractionSize:0},KPW:{fractionSize:0,format:{symbol:"₩",template:"{symbol}{amount}"}},KRW:{fractionSize:0,format:{symbol:"₩",template:"{symbol}{amount}"}},KWD:{fractionSize:3,format:{symbol:".د.ك",template:"{amount} {symbol}"}},KYD:{fractionSize:2,format:{symbol:"$",template:"{symbol}{amount}"}},KZT:{fractionSize:2,format:{symbol:"₸",template:"{symbol}{amount}"}},LAK:{fractionSize:2,format:{symbol:"₭",template:"{symbol}{amount}"}},LBP:{fractionSize:2,format:{symbol:"£",template:"{symbol}{amount}"}},LKR:{fractionSize:2,format:{symbol:"₨",template:"{symbol}{amount}"}},LRD:{fractionSize:2,format:{symbol:"$",template:"{symbol}{amount}"}},LSL:{fractionSize:2},LTL:{fractionSize:2,format:{symbol:"Lt",template:"{symbol}{amount}"}},LVL:{fractionSize:2,format:{symbol:"Ls",template:"{amount} {symbol}"}},LYD:{fractionSize:3,format:{symbol:".د.ل",template:"{amount} {symbol}"}},MAD:{fractionSize:2,format:{symbol:".د.م",template:"{amount} {symbol}"}},MDL:{fractionSize:2},MGA:{fractionSize:2},MKD:{fractionSize:2,format:{symbol:"ден",template:"{symbol}{amount}"}},MMK:{fractionSize:2},MNT:{fractionSize:2,format:{symbol:"₮",template:"{symbol}{amount}"}},MOP:{fractionSize:2},MRO:{fractionSize:2},MUR:{fractionSize:2,format:{symbol:"₨",template:"{symbol}{amount}"}},MVR:{fractionSize:2},MWK:{fractionSize:2},MXN:{fractionSize:2,format:{symbol:"$",template:"{symbol}{amount}"}},MXV:{fractionSize:2},MYR:{fractionSize:2,format:{symbol:"RM",template:"{symbol}{amount}"}},MZN:{fractionSize:2,format:{symbol:"MT",template:"{symbol}{amount}"}},NAD:{fractionSize:2,format:{symbol:"$",template:"{symbol}{amount}"}},NGN:{fractionSize:2,format:{symbol:"₦",template:"{symbol}{amount}"}},NIO:{fractionSize:2,format:{symbol:"C$",template:"{symbol}{amount}"}},NOK:{fractionSize:2,format:{symbol:"kr",template:"{amount} {symbol}"}},NPR:{fractionSize:2,format:{symbol:"₨",template:"{symbol}{amount}"}},NZD:{fractionSize:2,format:{symbol:"$",template:"{symbol}{amount}"}},OMR:{fractionSize:3,format:{symbol:"﷼",template:"{amount} {symbol}"}},PAB:{fractionSize:2,format:{symbol:"B/.",template:"{symbol}{amount}"}},PEN:{fractionSize:2,format:{symbol:"S/.",template:"{symbol}{amount}"}},PGK:{fractionSize:2},PHP:{fractionSize:2,format:{symbol:"₱",template:"{symbol}{amount}"}},PKR:{fractionSize:2,format:{symbol:"₨",template:"{symbol}{amount}"}},PLN:{fractionSize:2,format:{symbol:"zł",template:"{amount}{symbol}"}},PYG:{fractionSize:0,format:{symbol:"Gs",template:"{amount}{symbol}"}},QAR:{fractionSize:2,format:{symbol:"﷼",template:"{amount} {symbol}"}},RON:{fractionSize:2,format:{symbol:"lei",template:"{symbol}{amount}"}},RSD:{fractionSize:2,format:{symbol:"Дин.",template:"{symbol}{amount}"}},RUB:{fractionSize:2,format:{symbol:"₽",template:"{amount} {symbol}"}},RUR:{fractionSize:2,format:{symbol:"₽",template:"{amount} {symbol}"}},RWF:{fractionSize:0},SAR:{fractionSize:2,format:{symbol:"﷼",template:"{amount} {symbol}"}},SBD:{fractionSize:2,format:{symbol:"$",template:"{symbol}{amount}"}},SCR:{fractionSize:2,format:{symbol:"₨",template:"{symbol}{amount}"}},SDG:{fractionSize:2},SEK:{fractionSize:2,format:{symbol:"kr",template:"{amount} {symbol}"}},SGD:{fractionSize:2,format:{symbol:"$",template:"{symbol}{amount}"}},SHP:{fractionSize:2,format:{symbol:"£",template:"{symbol}{amount}"}},SLL:{fractionSize:2},SOS:{fractionSize:2,format:{symbol:"S",template:"{symbol}{amount}"}},SRD:{fractionSize:2,format:{symbol:"$",template:"{symbol}{amount}"}},SSP:{fractionSize:2},STD:{fractionSize:2},SVC:{fractionSize:2,format:{symbol:"$",template:"{symbol}{amount}"}},SYP:{fractionSize:2,format:{symbol:"£",template:"{symbol}{amount}"}},SZL:{fractionSize:2},THB:{fractionSize:2,format:{symbol:"฿",template:"{symbol}{amount}"}},TJS:{fractionSize:2},TMT:{fractionSize:2},TND:{fractionSize:3,format:{symbol:".د.ت",template:"{amount} {symbol}"}},TOP:{fractionSize:2},TRL:{fractionSize:2,format:{symbol:"₤",template:"{symbol}{amount}"}},TRY:{fractionSize:2},TTD:{fractionSize:2,format:{symbol:"TT$",template:"{symbol}{amount}"}},TWD:{fractionSize:0,format:{symbol:"NT$",template:"{symbol}{amount}"}},TZS:{fractionSize:0,format:{symbol:"TSh",template:"{symbol}{amount}"}},UAH:{fractionSize:2,format:{symbol:"₴",template:"{symbol}{amount}"}},UGX:{fractionSize:0,format:{symbol:"USh",template:"{symbol}{amount}"}},USD:{fractionSize:2,format:{symbol:"$",template:"{symbol}{amount}"}},USN:{fractionSize:2},UYI:{fractionSize:0},UYU:{fractionSize:0,format:{symbol:"$U",template:"{symbol}{amount}"}},UZS:{fractionSize:2,format:{symbol:"so’m",template:"{symbol}{amount}"}},VEF:{fractionSize:2,format:{symbol:"Bs",template:"{symbol}{amount}"}},VND:{fractionSize:0,format:{symbol:"₫",template:"{amount} {symbol}"}},VUV:{fractionSize:0},WST:{fractionSize:2},XAF:{fractionSize:0},XCD:{fractionSize:2,format:{symbol:"$",template:"{symbol}{amount}"}},XDR:{fractionSize:0},XOF:{fractionSize:0},XPF:{fractionSize:0},XSU:{fractionSize:0},XUA:{fractionSize:0},YER:{fractionSize:2,format:{symbol:"﷼",template:"{amount} {symbol}"}},ZAR:{fractionSize:2,format:{symbol:"R",template:"{symbol}{amount}"}},ZMW:{fractionSize:2},ZWD:{fractionSize:2,format:{symbol:"Z$",template:"{symbol}{amount}"}},ZWL:{fractionSize:2}},Bn=1,Fn=9999,jn=xe.A.object().shape({name:xe.A.string().required(a.createElement(w.sA,{id:"COMMON_VALIDATION_REQUIRED",values:{name:a.createElement(w.sA,{id:"COMMON_NAME"})}})).label("COMMON_NAME").min(1).max(255),hours:xe.A.number().label("COMMON_DURATION").nullable().required().integer().min(Bn).max(Fn),amount:xe.A.number().nullable().label("COMMON_PRICE").required().min(.01).max(9999),limit_overwrite:xe.A.bool(),limit_down:xe.A.number().label("COMMON_DOWNLOAD_LIMIT").nullable().default(null).minOrEmpty(.001).max(Number.MAX_SAFE_INTEGER),limit_up:xe.A.number().label("COMMON_UPLOAD_LIMIT").nullable().default(null).minOrEmpty(.001).max(Number.MAX_SAFE_INTEGER),limit_quota:xe.A.number().label("COMMON_DATA_LIMIT").nullable().default(null).integer().minOrEmpty(0).max(Number.MAX_SAFE_INTEGER),charged_as:xe.A.string().label("COMMON_CHARGED_AS").min(1).max(255)}),Kn=Object.keys(Yn).map(e=>({label:e,value:e})),qn=({initialValues:e,onPaymentFormClose:A})=>{const t=(0,E.useDispatch)(),n=(0,a.useCallback)(async e=>t((0,te.JG)(mA(e))).then(()=>{A()}).catch(({msg:A})=>t((0,Ce.ox)({message:e._id?"HOTSPOT_PAYMENTS_PACKAGE_REMOVE_ERROR":"HOTSPOT_PAYMENTS_PACKAGE_EDIT_ERROR",icon:pe.C.danger,values:{name:e.name}},A))),[t,A]),l=(0,a.useCallback)((e,t)=>[{type:"button",text:a.createElement(w.sA,{id:"COMMON_ACTION_CANCEL"}),onClick:A},{type:"button",text:a.createElement(w.sA,{id:"COMMON_ACTION_SAVE"}),onClick:()=>{e()},variant:"primary",disabled:!t}],[A]);return a.createElement(Ne.l1,{initialValues:e,onSubmit:n,validationSchema:jn},({values:e,handleSubmit:t,dirty:n})=>a.createElement(Zn,{size:"small",isOpen:!0,title:a.createElement(H.A,{width:"100%",justifyContent:"center"},a.createElement(w.sA,{id:e._id?"HOTSPOT_PAYMENTS_PACKAGE_EDIT":"HOTSPOT_PAYMENTS_PACKAGE_BUTTON_CREATE"})),actions:l(t,n),onRequestClose:A},a.createElement(Zt.A,null,a.createElement(Jt.A,{label:"COMMON_NAME",name:"name",full:!0,variant:"secondary"})),a.createElement(Zt.A,null,a.createElement(H.A,{width:100,marginRight:CA.kc},a.createElement(Jt.A,{label:"COMMON_PRICE",placeholderValues:{currency:e.currency},name:"amount",full:!0,variant:"secondary"})),a.createElement(H.A,{width:100,marginLeft:CA.kc,marginTop:CA.Er},a.createElement(Jt.A,{name:"currency",type:"dropdown",sortedDropdown:!0,translateLabel:!0,options:Kn,searchable:!0,full:!0,variant:"secondary"}))),a.createElement(Zt.A,null,a.createElement(H.A,{width:"calc(50% - 8px)"},a.createElement(Jt.A,{label:"COMMON_DURATION",name:"hours",min:Bn,max:Fn,full:!0,variant:"secondary",contentAfter:a.createElement(H.A,{marginRight:CA.xO},a.createElement(w.sA,{id:"COMMON_DATE_TIME_LABEL_HOURS_CAPITALIZED",values:{hours:e.hours}}))}))),a.createElement(Zt.A,null,a.createElement(H.A,{width:"calc(50% - 8px)",marginRight:CA.kc},a.createElement(Jt.A,{label:"COMMON_DOWNLOAD_LIMIT",name:"limit_down",full:!0,variant:"secondary",contentAfter:a.createElement(H.A,{marginRight:12},a.createElement(w.sA,{id:"COMMON_SPEED_METRICS_MBPS"}))})),a.createElement(H.A,{width:"calc(50% - 8px)",marginLeft:CA.kc},a.createElement(Jt.A,{label:"COMMON_UPLOAD_LIMIT",name:"limit_up",full:!0,variant:"secondary",contentAfter:a.createElement(H.A,{marginRight:CA.xO},a.createElement(w.sA,{id:"COMMON_SPEED_METRICS_MBPS"}))}))),a.createElement(Zt.A,null,a.createElement(H.A,{width:"calc(50% - 8px)"},a.createElement(Jt.A,{label:"COMMON_DATA_LIMIT",name:"limit_quota",full:!0,placeholder:"COMMON_UNLIMITED",variant:"secondary",contentAfter:a.createElement(H.A,{marginRight:CA.xO},a.createElement(w.sA,{id:"COMMON_UNIT_BYTES_SHORT",values:{prefix:"M"}}))}))),a.createElement(H.A,{marginBottom:"20px",flexDirection:"column"},a.createElement(Jt.A,{label:"COMMON_CHARGED_AS",placeholder:"COMMON_COMPANY_NAME",name:"charged_as",full:!0,variant:"secondary",helperMessage:"HOTSPOT_PAYMENTS_PACKAGE_DESCRIPTION_CHARGED_AS"})),e.custom_payment_fields_enabled?a.createElement(Zt.A,null,a.createElement(kn.A,{columns:Vn,disableColumnFilters:!0,disableSelection:!0,disableTextPointer:!0,disableSort:!0,idField:"key",items:Gn(e,!1)})):null))},Jn=xe.A.object().shape({trial_duration_minutes:xe.A.number().label("COMMON_DURATION").nullable().integer().minOrEmpty(1).required(),trial_reset:xe.A.number().label("HOTSPOT_PAYMENTS_PACKAGE_LABEL_TRIAL_LOCKOUT").integer().min(0).max(Number.MAX_SAFE_INTEGER).required(),limit_overwrite:xe.A.bool(),limit_down:xe.A.number().label("COMMON_DOWNLOAD_LIMIT").nullable().default(null).minOrEmpty(.001),limit_up:xe.A.number().label("COMMON_UPLOAD_LIMIT").nullable().default(null).minOrEmpty(.001),limit_quota:xe.A.number().label("COMMON_DATA_LIMIT").nullable().default(null).integer().minOrEmpty(0).max(Number.MAX_SAFE_INTEGER)}),Qn=({initialValues:e,onPaymentFormClose:A})=>{const t=(0,E.useDispatch)(),{formatMessage:n}=(0,w.tz)(),l=(0,a.useCallback)((e,t)=>[{type:"button",text:a.createElement(w.sA,{id:"COMMON_ACTION_CANCEL"}),onClick:A},{type:"button",text:a.createElement(w.sA,{id:"COMMON_ACTION_SAVE"}),onClick:()=>{e()},variant:"primary",disabled:!t}],[A]),r=(0,a.useCallback)(async e=>{return t((0,te.JG)((a={...e,enabled:!0},{...(0,ze.A)(mA(a),(e,A)=>null===e||["currency"].includes(A)),...EA({[we.T.LIMIT_UP]:a[we.T.LIMIT_UP],[we.T.LIMIT_DOWN]:a[we.T.LIMIT_DOWN]}),amount:0}))).then(()=>{A()}).catch(({msg:A})=>t((0,Ce.ox)({message:e.enabled?"HOTSPOT_PAYMENTS_PACKAGE_REMOVE_ERROR":"HOTSPOT_PAYMENTS_PACKAGE_EDIT_ERROR",icon:pe.C.danger,values:{name:n({id:"HOTSPOT_FREE_TRIAL"})}},A)));var a},[t,n,A]);return a.createElement(Ne.l1,{initialValues:e,onSubmit:r,validationSchema:Jn},({values:e,handleSubmit:t,dirty:n})=>a.createElement(Zn,{size:"small",isOpen:!0,title:a.createElement(H.A,{width:"100%",justifyContent:"center"},a.createElement(w.sA,{id:"HOTSPOT_FREE_TRIAL"})),actions:l(t,n),onRequestClose:A},a.createElement(Zt.A,null,a.createElement(H.A,{justifyContent:"space-between"},a.createElement(H.A,{width:"calc(50% - 8px)"},a.createElement(Jt.A,{label:"COMMON_DURATION",name:"trial_duration_minutes",full:!0,min:1,variant:"secondary",contentAfter:a.createElement(H.A,{marginRight:30},a.createElement(w.sA,{id:"COMMON_DATE_TIME_LABEL_MINUTES_CAPITALIZED",values:{minutes:e.trial_duration_minutes}}))})),a.createElement(H.A,{width:"calc(50% - 8px)"},a.createElement(Jt.A,{label:a.createElement(H.A,{alignItems:"center"},a.createElement(w.sA,{id:"HOTSPOT_PAYMENTS_PACKAGE_LABEL_TRIAL_LOCKOUT"}),a.createElement(Ln.A,{width:200,portal:!0,description:a.createElement(w.sA,{id:"HOTSPOT_PAYMENTS_PACKAGE_LABEL_TRIAL_LOCKOUT_TOOLTIP"})},a.createElement($A.A,{isActive:!0}))),name:"trial_reset",full:!0,variant:"secondary",contentAfter:a.createElement(H.A,{marginRight:30},a.createElement(w.sA,{id:"COMMON_DATE_TIME_LABEL_HOURS_CAPITALIZED",values:{hours:e.trial_reset}}))})))),a.createElement(Zt.A,null,a.createElement(Jt.A,{name:"limit_overwrite",type:"realCheckbox"},a.createElement(w.sA,{id:"HOTSPOT_PAYMENTS_LABEL_LIMITS_OVERWRITE"}))),e.limit_overwrite?a.createElement(Zt.A,null,a.createElement(H.A,{width:"calc(50% - 8px)",marginRight:"8px"},a.createElement(Jt.A,{label:"COMMON_DOWNLOAD_LIMIT",name:"limit_down",full:!0,variant:"secondary",contentAfter:a.createElement(H.A,{marginRight:CA.xO},a.createElement(w.sA,{id:"COMMON_SPEED_METRICS_MBPS"}))})),a.createElement(H.A,{width:"calc(50% - 8px)",marginLeft:"8px"},a.createElement(Jt.A,{label:"COMMON_UPLOAD_LIMIT",name:"limit_up",full:!0,variant:"secondary",contentAfter:a.createElement(H.A,{marginRight:CA.xO},a.createElement(w.sA,{id:"COMMON_SPEED_METRICS_MBPS"}))}))):null,a.createElement(Zt.A,null,a.createElement(H.A,{width:"calc(50% - 8px)"},a.createElement(Jt.A,{label:"COMMON_DATA_LIMIT",name:"limit_quota",full:!0,variant:"secondary",placeholder:"COMMON_UNLIMITED",contentAfter:a.createElement(H.A,{marginRight:CA.xO},a.createElement(w.sA,{id:"COMMON_UNIT_BYTES_SHORT",values:{prefix:"M"}}))}))),a.createElement(Zt.A,null,a.createElement(Jt.A,{name:"custom_payment_fields_enabled",type:"realCheckbox"},a.createElement(w.sA,{id:"HOTSPOT_PAYMENTS_PACKAGE_LABEL_FIELDS_ENABLED"}))),e.custom_payment_fields_enabled?a.createElement(Zt.A,null,a.createElement(kn.A,{columns:Vn,disableColumnFilters:!0,disableSelection:!0,disableTextPointer:!0,disableSort:!0,idField:"key",items:Gn(e,!0)})):null))},$n=({selectedPaymentPackage:e,onPaymentFormClose:A})=>{const t=(0,a.useMemo)(()=>({...Ve,...e,limit_up:e?.limit_up?String(Number(e.limit_up)/1e3):Ve.limit_up,limit_down:e?.limit_down?String(Number(e.limit_down)/1e3):Ve.limit_down}),[e]),n=(0,a.useMemo)(()=>e.name===nA?Qn:qn,[e.name]);return a.createElement(n,{initialValues:t,onPaymentFormClose:A})},el=xe.A.object().shape({[He.pM.X_STRIPE_API_KEY]:xe.A.string().when(["gateway","displayAuth"],{is:(e,A)=>e===We.Zg.STRIPE&&A.find(e=>e===We.WA.PAYMENT),then:xe.A.string().label("HOTSPOT_PAYMENTS_GATEWAY_LABEL_API_KEY").required()}),[He.Jp.X_PAYPAL_USERNAME]:xe.A.string().when(["gateway","displayAuth"],{is:(e,A)=>e===We.Zg.PAYPAL&&A.find(e=>e===We.WA.PAYMENT),then:xe.A.string().label("HOTSPOT_PAYMENTS_GATEWAY_LABEL_API_USERNAME").required()}),[He.Jp.X_PAYPAL_PASSWORD]:xe.A.string().when(["gateway","displayAuth"],{is:(e,A)=>e===We.Zg.PAYPAL&&A.find(e=>e===We.WA.PAYMENT),then:xe.A.string().label("HOTSPOT_PAYMENTS_GATEWAY_LABEL_API_PASSWORD").required()}),[He.Jp.X_PAYPAL_SIGNATURE]:xe.A.string().when(["gateway","displayAuth"],{is:(e,A)=>e===We.Zg.PAYPAL&&A.find(e=>e===We.WA.PAYMENT),then:xe.A.string().label("HOTSPOT_PAYMENTS_GATEWAY_LABEL_API_SIGNATURE").required()}),[He.pN.X_IPPAY_TERMINALID]:xe.A.string().when(["gateway","displayAuth"],{is:(e,A)=>e===We.Zg.IPPAY&&A.find(e=>e===We.WA.PAYMENT),then:xe.A.string().label("HOTSPOT_PAYMENTS_GATEWAY_LABEL_TERMINAL_ID").required()}),[He.YI.X_MERCHANT_WARRIOR_MERCHAND_UUID]:xe.A.string().when(["gateway","displayAuth"],{is:(e,A)=>e===We.Zg.MERCHANTWARRIOR&&A.find(e=>e===We.WA.PAYMENT),then:xe.A.string().label("HOTSPOT_PAYMENTS_GATEWAY_LABEL_MERCHANT_UUID").required()}),[He.YI.X_MERCHANT_WARRIOR_API_KEY]:xe.A.string().when(["gateway","displayAuth"],{is:(e,A)=>e===We.Zg.MERCHANTWARRIOR&&A.find(e=>e===We.WA.PAYMENT),then:xe.A.string().label("HOTSPOT_PAYMENTS_GATEWAY_LABEL_API_KEY").required()}),[He.YI.X_MERCHANT_WARRIOR_API_PASSPHRASE]:xe.A.string().when(["gateway","displayAuth"],{is:(e,A)=>e===We.Zg.MERCHANTWARRIOR&&A.find(e=>e===We.WA.PAYMENT),then:xe.A.string().label("HOTSPOT_PAYMENTS_GATEWAY_LABEL_API_PASSPHRASE").required()}),[He.$o.X_QUICKPAY_AGREEMNENT_ID]:xe.A.string().when(["gateway","displayAuth"],{is:(e,A)=>e===We.Zg.QUICKPAY&&A.find(e=>e===We.WA.PAYMENT),then:xe.A.string().label("HOTSPOT_PAYMENTS_GATEWAY_LABEL_AGREEMENT_ID").required()}),[He.$o.X_QUICKPAY_API_KEY]:xe.A.string().when(["gateway","displayAuth"],{is:(e,A)=>e===We.Zg.QUICKPAY&&A.find(e=>e===We.WA.PAYMENT),then:xe.A.string().label("HOTSPOT_PAYMENTS_GATEWAY_LABEL_API_USER_KEY").required()}),[He.$o.X_QUICKPAY_MERCHANT_ID]:xe.A.string().when(["gateway","displayAuth"],{is:(e,A)=>e===We.Zg.QUICKPAY&&A.find(e=>e===We.WA.PAYMENT),then:xe.A.string().label("HOTSPOT_PAYMENTS_GATEWAY_LABEL_MERCHANT_ID").required()}),[He.lk.X_AUTHORIZE_LOGIN_ID]:xe.A.string().when(["gateway","displayAuth"],{is:(e,A)=>e===We.Zg.AUTHORIZE&&A.find(e=>e===We.WA.PAYMENT),then:xe.A.string().label("HOTSPOT_PAYMENTS_GATEWAY_LABEL_API_LOGIN_ID").required()}),[He.lk.X_AUTHORIZE_TRANSACTION_KEY]:xe.A.string().when(["gateway","displayAuth"],{is:(e,A)=>e===We.Zg.AUTHORIZE&&A.find(e=>e===We.WA.PAYMENT),then:xe.A.string().label("HOTSPOT_PAYMENTS_GATEWAY_LABEL_TRANSACTION_KEY").required()})}),Al=({setFieldValue:e,innerSetFieldValue:A})=>{const t=(0,a.useCallback)(A=>({target:{value:t}})=>{[e,A].forEach(e=>{e(He.pM.X_STRIPE_API_KEY,t)})},[e]);return a.createElement(H.A,{marginTop:16},a.createElement(Jt.A,{full:!0,type:"password",name:He.pM.X_STRIPE_API_KEY,autoComplete:"new-password",passwordToggle:!0,variant:"secondary",label:"HOTSPOT_PAYMENTS_GATEWAY_LABEL_API_KEY",onChange:t(A)}))},tl=({setFieldValue:e,innerSetFieldValue:A})=>{const{values:{quickpay_testmode:t}}=(0,Ne.j7)(),n=(0,a.useCallback)(A=>({target:{value:t}})=>{[e,A].forEach(e=>{e(He.$o.X_QUICKPAY_MERCHANT_ID,t)})},[e]),l=(0,a.useCallback)(A=>({target:{value:t}})=>{[e,A].forEach(e=>{e(He.$o.X_QUICKPAY_API_KEY,t)})},[e]),r=(0,a.useCallback)(A=>({target:{value:t}})=>{[e,A].forEach(e=>{e(He.$o.X_QUICKPAY_AGREEMNENT_ID,t)})},[e]),i=(0,a.useCallback)(A=>a=>{[e,A].forEach(e=>{e(He.$o.QUICKPAY_TESTMODE,!t)})},[e,t]);return a.createElement(a.Fragment,null,a.createElement(H.A,{marginTop:16},a.createElement(Jt.A,{name:He.$o.X_QUICKPAY_MERCHANT_ID,label:"HOTSPOT_PAYMENTS_GATEWAY_LABEL_MERCHANT_ID",full:!0,variant:"secondary",onChange:n(A)})),a.createElement(H.A,{marginTop:16},a.createElement(Jt.A,{type:"password",name:He.$o.X_QUICKPAY_API_KEY,passwordToggle:!0,label:"HOTSPOT_PAYMENTS_GATEWAY_LABEL_API_USER_KEY",full:!0,variant:"secondary",autoComplete:"new-password",onChange:l(A)})),a.createElement(H.A,{marginTop:16},a.createElement(Jt.A,{type:"password",name:He.$o.X_QUICKPAY_AGREEMNENT_ID,passwordToggle:!0,label:"HOTSPOT_PAYMENTS_GATEWAY_LABEL_AGREEMENT_ID",full:!0,variant:"secondary",onChange:r(A)})),a.createElement(H.A,{marginTop:16},a.createElement(Jt.A,{type:"realCheckbox",name:He.$o.QUICKPAY_TESTMODE,onChange:i(A)},a.createElement(w.sA,{id:"HOTSPOT_PAYMENTS_GATEWAY_LABEL_QUICKPAY_TEST_MODE"}))))};var al=t(720561),nl=t(765562);const ll=({setFieldValue:e,innerSetFieldValue:A})=>{const{values:{paypal_use_sandbox:t}}=(0,Ne.j7)(),n=(0,a.useCallback)(A=>({target:{value:t}})=>{[e,A].forEach(e=>{e(He.Jp.X_PAYPAL_USERNAME,t)})},[e]),l=(0,a.useCallback)(A=>({target:{value:t}})=>{[e,A].forEach(e=>{e(He.Jp.X_PAYPAL_PASSWORD,t)})},[e]),r=(0,a.useCallback)(A=>({target:{value:t}})=>{[e,A].forEach(e=>{e(He.Jp.X_PAYPAL_SIGNATURE,t)})},[e]),i=(0,a.useCallback)(A=>a=>{[e,A].forEach(e=>{e(He.Jp.PAYPAL_USE_SANDBOX,!t)})},[e,t]);return a.createElement(a.Fragment,null,a.createElement(H.A,{marginTop:16},a.createElement(Jt.A,{name:He.Jp.X_PAYPAL_USERNAME,label:"HOTSPOT_PAYMENTS_GATEWAY_LABEL_API_USERNAME",full:!0,variant:"secondary",onChange:n(A)})),a.createElement(H.A,{marginTop:16},a.createElement(Jt.A,{type:"password",name:He.Jp.X_PAYPAL_PASSWORD,passwordToggle:!0,label:"HOTSPOT_PAYMENTS_GATEWAY_LABEL_API_PASSWORD",full:!0,variant:"secondary",autoComplete:"new-password",onChange:l(A)})),a.createElement(H.A,{marginTop:16},a.createElement(Jt.A,{type:"password",name:He.Jp.X_PAYPAL_SIGNATURE,passwordToggle:!0,label:"HOTSPOT_PAYMENTS_GATEWAY_LABEL_API_SIGNATURE",full:!0,variant:"secondary",autoComplete:"new-password",onChange:r(A)})),a.createElement(H.A,{marginTop:16,alignItems:"center"},a.createElement(Jt.A,{type:"realCheckbox",name:He.Jp.PAYPAL_USE_SANDBOX,onChange:i(A)},a.createElement(w.sA,{id:"HOTSPOT_PAYMENTS_GATEWAY_LABEL_PAYPAL_SANDBOX"})),a.createElement(H.A,{marginLeft:16},a.createElement(g.A,{href:nl.A.paypal,target:"_blank",rel:"noopener noreferrer",size:"small",type:"button",variant:"inline",Icon:al.A,iconProps:{variant:"twoTone",isActive:!0,size:"small"}},a.createElement(w.sA,{id:"HOTSPOT_PAYMENTS_GATEWAY_LABEL_APPLY_TEST_ACCOUNT"})))))},rl=({setFieldValue:e,innerSetFieldValue:A})=>{const{values:{merchantwarrior_use_sandbox:t}}=(0,Ne.j7)(),n=(0,a.useCallback)(A=>({target:{value:t}})=>{[e,A].forEach(e=>{e(He.YI.X_MERCHANT_WARRIOR_MERCHAND_UUID,t)})},[e]),l=(0,a.useCallback)(A=>({target:{value:t}})=>{[e,A].forEach(e=>{e(He.YI.X_MERCHANT_WARRIOR_API_KEY,t)})},[e]),r=(0,a.useCallback)(A=>({target:{value:t}})=>{[e,A].forEach(e=>{e(He.YI.X_MERCHANT_WARRIOR_API_PASSPHRASE,t)})},[e]),i=(0,a.useCallback)(A=>a=>{[e,A].forEach(e=>{e(He.YI.MERCHANT_WARRIOR_USE_SANDBOX,!t)})},[e,t]);return a.createElement(a.Fragment,null,a.createElement(H.A,{marginTop:16},a.createElement(Jt.A,{name:He.YI.X_MERCHANT_WARRIOR_MERCHAND_UUID,label:"HOTSPOT_PAYMENTS_GATEWAY_LABEL_MERCHANT_UUID",full:!0,variant:"secondary",onChange:n(A)})),a.createElement(H.A,{marginTop:16},a.createElement(Jt.A,{name:He.YI.X_MERCHANT_WARRIOR_API_KEY,label:"HOTSPOT_PAYMENTS_GATEWAY_LABEL_API_KEY",full:!0,variant:"secondary",onChange:l(A)})),a.createElement(H.A,{marginTop:16},a.createElement(Jt.A,{type:"password",name:He.YI.X_MERCHANT_WARRIOR_API_PASSPHRASE,passwordToggle:!0,label:"HOTSPOT_PAYMENTS_GATEWAY_LABEL_API_PASSPHRASE",full:!0,variant:"secondary",autoComplete:"new-password",onChange:r(A)})),a.createElement(H.A,{marginTop:16,alignItems:"center"},a.createElement(Jt.A,{type:"realCheckbox",name:"merchantwarrior_use_sandbox",onChange:i(A),checked:t},a.createElement(w.sA,{id:"HOTSPOT_PAYMENTS_GATEWAY_LABEL_AUTHORIZE_USE_TEST_ACCOUNT"})),a.createElement(H.A,{marginLeft:"16px"},a.createElement(g.A,{href:nl.A.merchantWarrior,target:"_blank",rel:"noopener noreferrer",size:"small",type:"button",variant:"inline",Icon:al.A,iconProps:{variant:"twoTone",isActive:!0,size:"small"}},a.createElement(w.sA,{id:"HOTSPOT_PAYMENTS_GATEWAY_LABEL_APPLY_TEST_ACCOUNT"})))))},il=({setFieldValue:e,innerSetFieldValue:A})=>{const{values:{ippay_use_sandbox:t}}=(0,Ne.j7)(),n=(0,a.useCallback)(A=>({target:{value:t}})=>{[e,A].forEach(e=>{e(He.pN.X_IPPAY_TERMINALID,t)})},[e]),l=(0,a.useCallback)(A=>a=>{[e,A].forEach(e=>{e(He.pN.IPPAY_USE_SANDBOX,!t)})},[e,t]);return a.createElement(a.Fragment,null,a.createElement(H.A,{marginTop:16},a.createElement(Jt.A,{name:He.pN.X_IPPAY_TERMINALID,full:!0,variant:"secondary",label:"HOTSPOT_PAYMENTS_GATEWAY_LABEL_TERMINAL_ID",onChange:n(A)})),a.createElement(H.A,{marginTop:16,alignItems:"center"},a.createElement(Jt.A,{type:"realCheckbox",name:He.pN.IPPAY_USE_SANDBOX,onChange:l(A)},a.createElement(w.sA,{id:"HOTSPOT_PAYMENTS_GATEWAY_LABEL_AUTHORIZE_USE_TEST_ACCOUNT"})),a.createElement(H.A,{marginLeft:16},a.createElement(g.A,{href:nl.A.ipPay,target:"_blank",rel:"noopener noreferrer",size:"small",type:"button",variant:"inline",Icon:al.A,iconProps:{variant:"twoTone",isActive:!0,size:"small"}},a.createElement(w.sA,{id:"HOTSPOT_PAYMENTS_GATEWAY_LABEL_APPLY_TEST_ACCOUNT"})))))},ol=({setFieldValue:e,innerSetFieldValue:A})=>{const{values:{authorize_use_sandbox:t}}=(0,Ne.j7)(),n=(0,a.useCallback)(A=>({target:{value:t}})=>{[e,A].forEach(e=>{e(He.lk.X_AUTHORIZE_LOGIN_ID,t)})},[e]),l=(0,a.useCallback)(A=>({target:{value:t}})=>{[e,A].forEach(e=>{e(He.lk.X_AUTHORIZE_TRANSACTION_KEY,t)})},[e]),r=(0,a.useCallback)(A=>a=>{[e,A].forEach(e=>{e(He.lk.AUTHORIZE_USE_SANDBOX,!t)})},[e,t]);return a.createElement(a.Fragment,null,a.createElement(H.A,{marginTop:16},a.createElement(Jt.A,{name:He.lk.X_AUTHORIZE_LOGIN_ID,full:!0,variant:"secondary",label:"HOTSPOT_PAYMENTS_GATEWAY_LABEL_API_LOGIN_ID",onChange:n(A)})),a.createElement(H.A,{marginTop:16},a.createElement(Jt.A,{type:"password",name:He.lk.X_AUTHORIZE_TRANSACTION_KEY,passwordToggle:!0,full:!0,variant:"secondary",autoComplete:"new-password",label:"HOTSPOT_PAYMENTS_GATEWAY_LABEL_TRANSACTION_KEY",onChange:l(A)})),a.createElement(H.A,{marginTop:16,alignItems:"center"},a.createElement(Jt.A,{type:"realCheckbox",name:He.lk.AUTHORIZE_USE_SANDBOX,onChange:r(A)},a.createElement(w.sA,{id:"HOTSPOT_PAYMENTS_GATEWAY_LABEL_AUTHORIZE_USE_TEST_ACCOUNT"})),a.createElement(H.A,{marginLeft:16},a.createElement(g.A,{href:nl.A.authorizeSandbox,target:"_blank",rel:"noopener noreferrer",size:"small",type:"button",variant:"inline",Icon:al.A,iconProps:{variant:"twoTone",isActive:!0,size:"small"}},a.createElement(w.sA,{id:"HOTSPOT_PAYMENTS_GATEWAY_LABEL_APPLY_TEST_ACCOUNT"})))))},sl={[We.Zg.STRIPE]:Al,[We.Zg.PAYPAL]:ll,[We.Zg.IPPAY]:il,[We.Zg.MERCHANTWARRIOR]:rl,[We.Zg.QUICKPAY]:tl,[We.Zg.AUTHORIZE]:ol},cl=({setFieldValue:e,innerSetFieldValue:A})=>{const t=sl[(0,Ne.j7)().values.gateway];return t?a.createElement(t,{setFieldValue:e,innerSetFieldValue:A}):null};var El=t(705145),ml=t(842630);const dl=(0,K.A)(g.A)`
  width: auto;
`,ul=({onPaymentsFormOpen:e,dispatch:A})=>{const{formatMessage:t}=(0,w.tz)(),n=(0,E.useSelector)(_A.Vj),l=(0,E.useSelector)(_A.U8),r=(0,a.useMemo)(()=>n.map((e,A)=>({...e,index:A})),[n]),i=(0,a.useMemo)(()=>{return{...Ye,enabled:Boolean(Object.keys(l||{}).length),name:nA,trial_reset:24,custom_payment_fields_enabled:!1,...(e=!0,Gn({},e).reduce((e,{key:A,required:t})=>({[`payment_fields_${A}_enabled`]:t,[`payment_fields_${A}_required`]:t,...e}),{})),...l,limit_down:l?.limit_down||null,limit_up:l?.limit_up||null,limit_quota:l?.limit_quota||null};var e},[l]),o=(0,a.useCallback)(async e=>{return a=(0,it.z)(e.amount)?t({id:"HOTSPOT_FREE_TRIAL"}):e.name,A((0,te.Go)(e._id)).catch(({msg:e})=>A((0,Ce.ox)({message:"HOTSPOT_PAYMENTS_PACKAGE_REMOVE_ERROR",icon:pe.C.danger,values:{name:a}},e)));var a},[A,t]),s=(0,a.useCallback)(A=>()=>{e(A)},[e]),c=(0,a.useCallback)(e=>async()=>{o(e)},[o]),m=(0,a.useMemo)(()=>r.map((e,A)=>a.createElement(H.A,{key:`payment-${A.toString()}`,gap:CA.xO,alignItems:"end",marginBottom:CA.Ln},a.createElement(El.A,{isTruncated:!0,size:"medium"},e[we.T.NAME]),a.createElement(ml.A,null,a.createElement(g.A,{name:`edit-package-${e[we.T._ID]||`payment-${A.toString()}`}`,variant:"inline",type:"button",onClick:s(e)},a.createElement(RA.A,{size:"inherit",color:"inherit"},a.createElement(w.sA,{id:"COMMON_ACTION_EDIT"}))),e[we.T._ID]?a.createElement(g.A,{name:`remove-package-${e[we.T._ID]||`payment-${A.toString()}`}`,variant:"inline",type:"button",onClick:c(e)},a.createElement(RA.A,{size:"inherit",color:"destructive"},a.createElement(w.sA,{id:"COMMON_ACTION_REMOVE"}))):null))),[r,c,s]),d=(0,a.useCallback)(()=>{e(i)},[e,i]),u=(0,a.useCallback)(async()=>{o(i)},[o,i]),T=(0,a.useCallback)(()=>{e()},[e]);return a.createElement(H.A,{marginTop:CA.Ln,flexDirection:"column"},a.createElement(H.A,{flexDirection:"column",justifyContent:"flex-start"},a.createElement(H.A,{gap:CA.xO,alignItems:"end",marginBottom:CA.Ln},a.createElement(RA.A,{size:"medium"},a.createElement(w.sA,{id:"HOTSPOT_FREE_TRIAL"})),a.createElement(ml.A,null,a.createElement(g.A,{name:`edit-package-${i[we.T._ID]}`,variant:"inline",type:"button",onClick:d},a.createElement(RA.A,{size:"inherit",color:"inherit"},a.createElement(w.sA,{id:i[we.T._ID]||i[we.T.ENABLED]?"COMMON_ACTION_EDIT":"COMMON_ACTION_CREATE"}))),i[we.T._ID]?a.createElement(g.A,{name:`remove-package-${i[we.T._ID]}`,variant:"inline",type:"button",onClick:u},a.createElement(RA.A,{size:"inherit",color:"destructive"},a.createElement(w.sA,{id:"COMMON_ACTION_REMOVE"}))):null)),m),a.createElement(H.A,null,a.createElement(ml.A,null,a.createElement(dl,{name:"create-hotspot-payment-package",size:"small",type:"button",variant:"inline",Icon:Gt.A,iconProps:{isActive:!0},onClick:T},a.createElement(RA.A,{size:"medium",color:"inherit"},a.createElement(w.sA,{id:"HOTSPOT_PAYMENTS_PACKAGE_BUTTON_CREATE"}))))))},Tl=({isPaymentsDefaultValid:e})=>{const{values:{displayAuth:A,gateway:t,x_stripe_api_key:n,x_paypal_username:l,x_paypal_password:r,x_paypal_signature:i,paypal_use_sandbox:o,x_ippay_terminalid:s,ippay_use_sandbox:c,x_merchantwarrior_merchantuuid:m,x_merchantwarrior_apikey:d,x_merchantwarrior_apipassphrase:u,merchantwarrior_use_sandbox:T,x_quickpay_merchantid:O,x_quickpay_apikey:I,x_quickpay_agreementid:S,quickpay_testmode:N,x_authorize_loginid:_,x_authorize_transactionkey:p,authorize_use_sandbox:R},handleReset:C,handleSubmit:M,setFieldValue:P}=(0,Ne.j7)(),D=(0,E.useDispatch)(),[f,b]=(0,a.useState)(!1),[v,L]=(0,a.useState)(!e),[h,y]=(0,a.useState)({}),z=(0,a.useMemo)(()=>({displayAuth:A,gateway:t,x_stripe_api_key:n,x_paypal_username:l,x_paypal_password:r,x_paypal_signature:i,paypal_use_sandbox:o,x_ippay_terminalid:s,ippay_use_sandbox:c,x_merchantwarrior_merchantuuid:m,x_merchantwarrior_apikey:d,x_merchantwarrior_apipassphrase:u,merchantwarrior_use_sandbox:T,x_quickpay_merchantid:O,x_quickpay_apikey:I,x_quickpay_agreementid:S,quickpay_testmode:N,x_authorize_loginid:_,x_authorize_transactionkey:p,authorize_use_sandbox:R}),[A,t,n,l,r,i,o,s,c,m,d,u,T,O,I,S,N,_,p,R]),x=(0,a.useCallback)(e=>{e?.preventDefault?.(),L(!0)},[]),W=(0,a.useCallback)((e,A)=>{A?.preventDefault?.(),e(),C(),L(!1)},[C]),U=(0,a.useCallback)(e=>{y(e||{}),b(!0)},[]),k=(0,a.useCallback)(()=>b(void 0),[]),G=(0,a.useCallback)(e=>()=>{W(e)},[W]),V=(0,a.useCallback)(e=>({value:A})=>{[P,e].forEach(e=>{e("gateway",A)})},[P]),X=(0,a.useCallback)((e,A,t,n)=>[{type:"button",text:a.createElement(w.sA,{id:t?"COMMON_ACTION_CANCEL":"COMMON_ACTION_CLOSE"}),onClick:e=>W(A,e)},{type:"button",text:a.createElement(w.sA,{id:"COMMON_ACTION_SAVE"}),onClick:()=>{e(),n&&L(!1)},variant:"primary",disabled:!t}],[W]);return a.createElement(a.Fragment,null,v?a.createElement(Ne.l1,{initialValues:z,onSubmit:Un.P1,validationSchema:el},({handleSubmit:e,setFieldValue:A,handleReset:t,dirty:n,isValid:l})=>f?a.createElement($n,{selectedPaymentPackage:h,onPaymentFormClose:k}):a.createElement(Zn,{size:"small",onRequestClose:G(t),title:a.createElement(H.A,{width:"100%",justifyContent:"center"},a.createElement(w.sA,{id:"HOTSPOT_PAYMENTS_HEADER_PAYMENT"})),actions:X(e,t,n,l)},a.createElement(H.A,null,a.createElement(Jt.A,{name:"gateway",type:"dropdown",sortedDropdown:!0,options:Be,translateOptions:!0,full:!0,variant:"secondary",label:"HOTSPOT_PAYMENTS_LABEL_PAYMENT_GATEWAY",translateLabel:!0,onChange:V(A)})),a.createElement(Qt.A,{margin:`${CA.Ln} 0 0 0`},a.createElement(H.A,null,a.createElement($A.A,{style:{marginRight:CA.kc},size:"original",isActive:!0,variant:"fill"}),a.createElement(RA.A,{size:"small",color:"text-2"},a.createElement(w.sA,{id:"HOTSPOT_PAYMENTS_FUTURE_RELEASE_NOTICE"})))),a.createElement(cl,{setFieldValue:P,innerSetFieldValue:A}),a.createElement(H.A,{marginTop:CA.Ln},a.createElement(RA.A,{size:"large",weight:"bold"},a.createElement(w.sA,{id:"HOTSPOT_PAYMENTS_BUBBLE_HEADER_PACKAGES"}))),a.createElement(ul,{onPaymentsFormOpen:U,dispatch:D}))):null,a.createElement(g.A,{type:"button",variant:"inline",onClick:x},a.createElement(RA.A,{size:"inherit",color:"inherit"},a.createElement(w.sA,{id:"COMMON_ACTION_EDIT"}))))};var Ol=t(137298),Il=t(153933),Sl=t(986977),Nl=t(888980),_l=t(697575);const pl=e=>0===e?"COMMON_UNLIMITED":e>1?"HOTSPOT_VOUCHER_STATUS_VALID_MULTI":"HOTSPOT_VOUCHER_STATUS_VALID_ONE",Rl=({duration:e})=>e<_l.ub?a.createElement(w.sA,{id:"COMMON_MINUTES",values:{minutes:Math.floor(e/_l.C)}}):e<_l.c9?a.createElement(w.sA,{id:"COMMON_HOURS",values:{hours:Math.floor(e/_l.ub)}}):a.createElement(w.sA,{id:"COMMON_DAYS",values:{days:Math.floor(e/_l.c9)}}),Cl=[{id:Nl.h.NAME,label:a.createElement(RA.A,{size:"medium",weight:"bold",color:"inherit"},a.createElement(w.sA,{id:_l.z$[Nl.h.NAME]})),renderCell:({note:e})=>a.createElement(RA.A,{size:"medium"},e),minWidth:110},{id:Nl.h.AMOUNT,label:a.createElement(w.sA,{id:_l.z$[Nl.h.AMOUNT]}),renderCell:({amount:e})=>a.createElement(RA.A,{size:"medium"},0===e?a.createElement(w.sA,{id:"COMMON_UNLIMITED"}):e),minWidth:60},{id:Nl.h.EXPIRATION,label:a.createElement(RA.A,{size:"medium",weight:"bold",color:"inherit"},a.createElement(w.sA,{id:_l.z$[Nl.h.EXPIRATION]})),renderCell:({duration:e})=>a.createElement(RA.A,{style:{textTransform:"capitalize"},color:"text-2",size:"medium"},a.createElement(Rl,{duration:e})),minWidth:60},{id:Nl.h.TYPE,label:a.createElement(RA.A,{size:"medium",weight:"bold",color:"inherit"},a.createElement(w.sA,{id:_l.z$[Nl.h.TYPE]})),renderCell:({quota:e})=>a.createElement(RA.A,{size:"medium"},a.createElement(w.sA,{id:pl(e)})),minWidth:70},{id:Nl.h.DATA_LIMIT,label:a.createElement(RA.A,{size:"medium",weight:"bold",color:"inherit"},a.createElement(w.sA,{id:_l.z$[Nl.h.DATA_LIMIT]})),renderCell:({qos_usage_quota:e})=>a.createElement(RA.A,{size:"medium"},e?(0,Ol.Bn)(e):a.createElement(w.sA,{id:"COMMON_FALLBACK"})),minWidth:80},{id:Nl.h.DOWNLOAD_UPLOAD_LIMIT,label:a.createElement(RA.A,{size:"medium",weight:"bold",color:"inherit"},a.createElement(w.sA,{id:_l.z$[Nl.h.DOWNLOAD_UPLOAD_LIMIT]})),renderCell:({qos_rate_max_down:e,qos_rate_max_up:A})=>a.createElement(RA.A,{size:"medium"},e?(0,Ol.Up)(e):a.createElement(w.sA,{id:"COMMON_FALLBACK"})," / ",A?(0,Ol.Up)(A):a.createElement(w.sA,{id:"COMMON_FALLBACK"})),minWidth:145}],Ml=({isVouchersDefaultValid:e,groupedHotspotVouchers:A=[],onCancel:t,onlyVoucherForm:n=!1})=>{const l=(0,E.useDispatch)(),[r,i]=(0,a.useState)(!1),[o,s]=(0,a.useState)(!e),c=(0,E.useSelector)(p.uS)||n,m=(0,E.useSelector)(NA.EL),d=(0,a.useCallback)(e=>{e?.preventDefault?.(),s(!0)},[]),u=(0,a.useCallback)(e=>{e?.preventDefault?.(),s(!1),t?.()},[t]),T=(0,a.useCallback)(e=>{e?.preventDefault?.(),i(!0)},[]),O=(0,a.useMemo)(()=>n?void 0:A.reduce((e,{ids:A})=>e+A.length,0),[n,A]),I=(0,a.useCallback)((e,A)=>(e?.preventDefault?.(),l(1===A.length?(0,C.fX)(A[0]):(0,C.UY)(A,A.length===O)).then(()=>l((0,C.P5)()))),[l,O]),S=(0,a.useMemo)(()=>[{type:"button",text:a.createElement(w.sA,{id:"COMMON_ACTION_CLOSE"}),onClick:u}],[u]),N=(0,a.useCallback)(e=>I(void 0,e.map(({ids:e})=>e).flat()),[I]),_=(0,a.useCallback)(()=>!m,[m]),R=(0,a.useCallback)(()=>i(!1),[]),M=(0,a.useCallback)(({note:e})=>e,[]);return c?a.createElement(a.Fragment,null,n||!o||r?null:a.createElement(Zn,{style:{content:{width:"767px",maxWidth:"100%"}},size:"large",onRequestClose:u,title:a.createElement(H.A,{width:"100%",justifyContent:"center"},a.createElement(w.sA,{id:"COMMON_VOUCHERS"})),actions:S},a.createElement(Il.Ay,{columns:Cl,disableColumnFilters:!0,disableSelection:!0,disableTextPointer:!0,disableSort:!0,items:A,isRemovable:_,removeItems:N,getName:M,footerContent:a.createElement(ml.A,null,a.createElement(g.A,{name:"add-new-voucher",size:"small",type:"button",variant:"inline",Icon:Gt.A,iconProps:{isActive:!0},onClick:T},a.createElement(RA.A,{size:"medium",color:"inherit"},a.createElement(w.sA,{id:"HOTSPOT_VOUCHER_ADD_NEW"}))))})),(o||n)&&r?a.createElement(Sl.A,{closeModal:R}):null,n?a.createElement(g.A,{style:{marginRight:CA.kc},variant:"inline",type:"button",size:"medium",onClick:T},a.createElement(w.sA,{id:"HOTSPOT_ADD_VOUCHER"})):a.createElement(g.A,{type:"button",variant:"inline",size:"medium",onClick:d},a.createElement(RA.A,{size:"inherit",color:"inherit"},a.createElement(w.sA,{id:"COMMON_ACTION_EDIT"})))):null};var Pl=t(306892);const Dl=({isRadiusDefaultValid:e,onCancel:A})=>{const t=(0,E.useSelector)(fe.selectAllRadiusOptions),n=(0,E.useSelector)(fe.selectDefaultRadiusProfile),{values:{radiusprofile_id:l,radius_disconnect_enabled:r,radius_auth_type:i,radius_disconnect_port:o},setFieldValue:s,handleReset:c,handleSubmit:m}=(0,Ne.j7)(),[d,u]=(0,a.useState)(!e),T=(0,a.useCallback)(e=>{e?.preventDefault?.(),u(!0)},[]),O=(0,a.useCallback)(async(e,t)=>{t?.preventDefault?.(),e(),c(),u(!1),A?.()},[A,c]),I=(0,a.useCallback)(e=>({value:A})=>{[s,e].forEach(e=>{e("radiusprofile_id",A)})},[s]),S=(0,a.useCallback)(e=>()=>{[s,e].forEach(e=>{e("radius_auth_type",Fe.CHAP)})},[s]),N=(0,a.useCallback)(e=>()=>{[s,e].forEach(e=>{e("radius_auth_type",Fe.MSCHAPV2)})},[s]),_=(0,a.useCallback)(e=>()=>{[s,e].forEach(e=>{e("radius_disconnect_enabled",!r)})},[s,r]),p=(0,a.useCallback)(e=>({target:{value:A}})=>{[s,e].forEach(e=>{e("radius_disconnect_port",+A)})},[s]),R=(0,a.useCallback)((e,A,t,n)=>[{type:"button",text:a.createElement(w.sA,{id:"COMMON_ACTION_CANCEL"}),onClick:e=>O(A,e)},{type:"button",text:a.createElement(w.sA,{id:"COMMON_ACTION_SAVE"}),onClick:()=>{e(),n&&u(!1)},variant:"primary",disabled:!t}],[O]),C=(0,a.useCallback)(e=>()=>{O(e)},[O]),M=(0,a.useMemo)(()=>(e=>xe.A.object().shape({radiusprofile_id:xe.A.string().test({name:"isDefaultRadiusProfileEnabled",test:A=>A!==e._id||e.enabled,message:a.createElement(w.sA,{id:"COMMON_VALIDATION_VALID_DEFAULT_RADIUS_PROFILE"})}),radius_disconnect_enabled:xe.A.boolean(),radius_auth_type:xe.A.string(),radius_disconnect_port:xe.A.number().when("radius_disconnect_enabled",{is:!0,then:xe.A.number().label("COMMON_RECEIVER_PORT").required().min(Pl.A.MIN).max(Pl.A.MAX)})}))(n),[n]);return a.createElement(a.Fragment,null,d?a.createElement(Ne.l1,{initialValues:{radiusprofile_id:l,radius_auth_type:i,radius_disconnect_enabled:r,radius_disconnect_port:o},onSubmit:Un.P1,validationSchema:M},({handleSubmit:e,setFieldValue:A,handleReset:n,dirty:l,isValid:i})=>a.createElement(Zn,{size:"small",onRequestClose:C(n),title:a.createElement(H.A,{width:"100%",justifyContent:"center"},a.createElement(w.sA,{id:"COMMON_RADIUS"})),actions:R(e,n,l,i)},a.createElement(H.A,{flexDirection:"column"},a.createElement(Jt.A,{label:"COMMON_RADIUS_PROFILE",name:"radiusprofile_id",options:t,type:"dropdown",sortedDropdown:!0,full:!0,validated:!0,variant:"secondary",translateLabel:!0,onChange:I(A)})),a.createElement(H.A,{marginTop:CA.Ln,flexDirection:"column"},a.createElement(RA.A,{color:"text-3",size:"small"},a.createElement(w.sA,{id:"COMMON_RADIUS_AUTHENTICATION_TYPE"})),a.createElement(H.A,{gap:CA.Ln},a.createElement(Jt.A,{name:"radius_auth_type",type:"radio",value:Fe.CHAP,fast:!0,onChange:S(A)},"CHAP"),a.createElement(Jt.A,{name:"radius_auth_type",type:"radio",value:Fe.MSCHAPV2,fast:!0,onChange:N(A)},"MS-CHAPv2"))),a.createElement(H.A,{marginTop:CA.Ln,justifyContent:"space-between"},a.createElement(H.A,{marginTop:18},a.createElement(Jt.A,{name:"radius_disconnect_enabled",type:"realCheckbox",tooltipMessage:a.createElement(w.sA,{id:"HOTSPOT_RADIUS_DESCRIPTION_DISCONNECT_REQUESTS"}),onChange:_(A),checked:r},a.createElement(w.sA,{id:"COMMON_DISCONNECT_REQUESTS"}))),a.createElement(H.A,{maxWidth:"100px",marginLeft:CA.kc},a.createElement(Jt.A,{full:!0,name:"radius_disconnect_port",label:"COMMON_RECEIVER_PORT",variant:"secondary",type:"number",min:Pl.A.MIN,max:Pl.A.MAX,disabled:!r,onChange:p(A)}))))):null,a.createElement(g.A,{type:"button",variant:"inline",onClick:T},a.createElement(RA.A,{size:"inherit",color:"inherit"},a.createElement(w.sA,{id:"COMMON_ACTION_EDIT"}))))},fl=xe.A.object().shape({x_password:xe.A.string().label("HOTSPOT_GUEST_PASSWORD").required()}),bl=({isPasswordDefaultValid:e,onCancel:A})=>{const{values:{x_password:t},handleSubmit:n,setFieldValue:l,handleReset:r}=(0,Ne.j7)(),[i,o]=(0,a.useState)(!e),s=(0,a.useCallback)(e=>{e?.preventDefault?.(),o(!0)},[]),c=(0,a.useCallback)((e,t)=>{t?.preventDefault?.(),e(),r(),o(!1),A?.()},[A,r]),E=(0,a.useCallback)(e=>({target:{value:A}})=>{[l,e].forEach(e=>{e("x_password",A)})},[l]),m=(0,a.useCallback)((e,A,t,n)=>[{type:"button",text:a.createElement(w.sA,{id:"COMMON_ACTION_CANCEL"}),onClick:e=>c(A,e)},{type:"button",text:a.createElement(w.sA,{id:"COMMON_ACTION_SAVE"}),onClick:()=>{e(),n&&o(!1)},variant:"primary",disabled:!t}],[c]),d=(0,a.useCallback)(e=>()=>{c(e)},[c]);return a.createElement(a.Fragment,null,i?a.createElement(Ne.l1,{initialValues:{x_password:t},onSubmit:Un.P1,validationSchema:fl},({handleSubmit:e,setFieldValue:A,handleReset:t,dirty:n,isValid:l})=>a.createElement(Zn,{size:"small",onRequestClose:d(t),title:a.createElement(H.A,{width:"100%",justifyContent:"center"},a.createElement(w.sA,{id:"COMMON_PASSWORD"})),actions:m(e,t,n,l)},a.createElement(H.A,null,a.createElement(Jt.A,{full:!0,type:"password",name:"x_password",autoComplete:"new-password",passwordToggle:!0,variant:"secondary",label:"HOTSPOT_GUEST_PASSWORD",onChange:E(A)})))):null,a.createElement(g.A,{type:"button",variant:"inline",onClick:s},a.createElement(RA.A,{size:"inherit",color:"inherit"},a.createElement(w.sA,{id:"COMMON_ACTION_EDIT"}))))},vl=xe.A.object().shape({facebook_app_id:xe.A.string().required(a.createElement(w.sA,{id:"COMMON_VALIDATION_EMPTY",values:{name:a.createElement(w.sA,{id:"COMMON_APP_ID"})}})),x_facebook_app_secret:xe.A.string().required(a.createElement(w.sA,{id:"COMMON_VALIDATION_EMPTY",values:{name:a.createElement(w.sA,{id:"HOTSPOT_FORM_AUTH_OPTIONS_FACEBOOK_APP_SECRET"})}})),facebook_scope_email:xe.A.boolean()}),Ll=({isFacebookDefaultValid:e,onCancel:A})=>{const{values:{facebook_app_id:t,x_facebook_app_secret:n,facebook_scope_email:l,portal_use_hostname:r},handleSubmit:i,setFieldValue:o,handleReset:s}=(0,Ne.j7)(),[c,E]=(0,a.useState)(!e),m=(0,a.useCallback)(e=>{e?.preventDefault?.(),E(!0)},[]),d=(0,a.useCallback)((e,t)=>{t?.preventDefault?.(),e(),s(),E(!1),A?.()},[A,s]),u=(0,a.useCallback)(e=>({target:{value:A}})=>{[o,e].forEach(e=>{e("facebook_app_id",A)})},[o]),T=(0,a.useCallback)(e=>({target:{value:A}})=>{[o,e].forEach(e=>{e("x_facebook_app_secret",A)})},[o]),O=(0,a.useCallback)(e=>A=>{[o,e].forEach(e=>{e("facebook_scope_email",!l)})},[o,l]),I=(0,a.useCallback)((e,A,t,n)=>[{type:"button",text:a.createElement(w.sA,{id:"COMMON_ACTION_CANCEL"}),onClick:e=>d(A,e)},{type:"button",text:a.createElement(w.sA,{id:"COMMON_ACTION_SAVE"}),onClick:()=>{e(),n&&E(!1)},variant:"primary",disabled:!t}],[d]),S=(0,a.useCallback)(e=>()=>{d(e)},[d]);return a.createElement(a.Fragment,null,c?a.createElement(Ne.l1,{initialValues:{facebook_app_id:t,x_facebook_app_secret:n,facebook_scope_email:l},onSubmit:Un.P1,validationSchema:vl},({handleSubmit:e,setFieldValue:A,handleReset:t,dirty:n,isValid:i})=>a.createElement(Zn,{size:"small",onRequestClose:S(t),title:a.createElement(H.A,{width:"100%",justifyContent:"center"},a.createElement(w.sA,{id:"HOTSPOT_FORM_AUTH_OPTIONS_FACEBOOK"})),actions:I(e,t,n,i)},a.createElement(H.A,{flexDirection:"column"},r?null:a.createElement(Qt.A,null,a.createElement(H.A,null,a.createElement($A.A,{isActive:!0,size:"original",style:{marginRight:CA.kc},variant:"fill"}),a.createElement(RA.A,{size:"medium"},a.createElement(w.sA,{id:"HOTSPOT_FORM_AUTH_OPTIONS_FACEBOOK_DOMAIN_INFO"})))),a.createElement(Jt.A,{full:!0,name:"facebook_app_id",variant:"secondary",label:"COMMON_APP_ID",onChange:u(A)})),a.createElement(H.A,{marginTop:16},a.createElement(Jt.A,{full:!0,type:"password",name:"x_facebook_app_secret",autoComplete:"new-password",passwordToggle:!0,variant:"secondary",label:"HOTSPOT_FORM_AUTH_OPTIONS_FACEBOOK_APP_SECRET",onChange:T(A)})),a.createElement(H.A,{marginTop:16},a.createElement(Jt.A,{name:"facebook_scope_email",type:"realCheckbox",onChange:O(A),checked:l},a.createElement(w.sA,{id:"HOTSPOT_FORM_AUTH_OPTIONS_FACEBOOK_SCOPE_EMAIL_DESCRIPTION"}))))):null,a.createElement(g.A,{type:"button",variant:"inline",onClick:m},a.createElement(RA.A,{size:"inherit",color:"inherit"},a.createElement(w.sA,{id:"COMMON_ACTION_EDIT"}))))},hl=xe.A.object().shape({custom_ip:xe.A.string().label("HOTSPOT_FORM_CUSTOM_PORTAL_LABEL").required().matches(ke.zF,{message:a.createElement(w.sA,{id:"COMMON_VALIDATION_VALID_IPV4"})})}),yl=({isExternalDefaultValid:e,onCancel:A})=>{const{values:{custom_ip:t},handleSubmit:n,setFieldValue:l,handleReset:r}=(0,Ne.j7)(),[i,o]=(0,a.useState)(!e),s=(0,a.useCallback)(e=>{e?.preventDefault?.(),o(!0)},[]),c=(0,a.useCallback)((e,t)=>{t?.preventDefault?.(),e(),r(),o(!1),A?.()},[A,r]),E=(0,a.useCallback)(e=>({target:{value:A}})=>{[l,e].forEach(e=>{e("custom_ip",A)})},[l]),m=(0,a.useCallback)((e,A,t,n)=>[{type:"button",text:a.createElement(w.sA,{id:"COMMON_ACTION_CANCEL"}),onClick:e=>c(A,e)},{type:"button",text:a.createElement(w.sA,{id:"COMMON_ACTION_SAVE"}),onClick:()=>{e(),n&&o(!1)},variant:"primary",disabled:!t}],[c]),d=(0,a.useCallback)(e=>()=>{c(e)},[c]);return a.createElement(a.Fragment,null,i?a.createElement(Ne.l1,{initialValues:{custom_ip:t},onSubmit:Un.P1,validationSchema:hl},({handleSubmit:e,setFieldValue:A,handleReset:t,dirty:n,isValid:l})=>a.createElement(Zn,{size:"small",onRequestClose:d(t),title:a.createElement(H.A,{width:"100%",justifyContent:"center"},a.createElement(w.sA,{id:"HOTSPOT_FORM_AUTH_OPTIONS_EXTERNAL"})),actions:m(e,t,n,l)},a.createElement(H.A,null,a.createElement(Jt.A,{full:!0,name:"custom_ip",variant:"secondary",label:"HOTSPOT_FORM_CUSTOM_PORTAL_LABEL",onChange:E(A)})))):null,a.createElement(g.A,{type:"button",variant:"inline",onClick:s},a.createElement(RA.A,{size:"inherit",color:"inherit"},a.createElement(w.sA,{id:"COMMON_ACTION_EDIT"}))))},zl=((0,K.A)(H.A)`
  border: 1px solid ${({theme:{themeName:e}})=>yA.Ay[`desktop-color-neutral-02-${e}`]};
  border-radius: ${yA.Ay["desktop-radius-base"]};
  padding: ${CA.kc};
  flex-direction: column;
  width: 100%;
  position: relative;
  gap: ${CA.kc};
`,(0,K.A)(DA.A)`
  > div:nth-child(2) {
    align-items: center;
    > div:first-child {
      display: flex;
    }
  }
`),gl=(0,a.lazy)(()=>t.e(97875).then(t.bind(t,197875))),xl=()=>{const{values:{displayAuth:e,facebook_enabled:A,facebook_app_id:t,x_facebook_app_secret:n,portal_hostname:l,portal_use_hostname:r,x_password:i,gateway:o,x_authorize_loginid:s,x_authorize_transactionkey:c,x_ippay_terminalid:m,x_stripe_api_key:d,x_merchantwarrior_merchantuuid:u,x_merchantwarrior_apikey:T,x_merchantwarrior_apipassphrase:O,x_paypal_username:I,x_paypal_password:S,x_paypal_signature:N,x_quickpay_merchantid:_,x_quickpay_apikey:R,x_quickpay_agreementid:C,radius_enabled:M,radiusprofile_id:P,radius_disconnect_enabled:D,radius_disconnect_port:f,custom_ip:b},setFieldValue:v}=(0,Ne.j7)(),L=(0,vn.W6)(),h=(0,Wn.A)(wn.E5),y=(0,a.useCallback)(()=>{L.push(h)},[L,h]),z=(0,E.useSelector)(p.pV),x=(0,E.useSelector)(Pe.Gq),W=(0,E.useSelector)(fe.selectHasAtLeastOneCustomProfile),U=(0,a.useMemo)(()=>[We.CR.CUSTOM].some(A=>e.includes(A)),[e]),k=(0,a.useMemo)(()=>!U&&AA.some(A=>e.includes(A)),[U,e]),G=(0,a.useCallback)((A,t)=>{if(U)return;const a=e.filter(e=>e!==A);t&&a.push(A),v("displayAuth",sA(a)),v(`${A}_enabled`,t),A===We.WA.FACEBOOK&&v("redirect_to_https",t)},[v,e,U]),V=(0,a.useCallback)((A,t)=>{k||U&&!e.includes(A)||v("displayAuth",sA(t?[...e,A]:[...e].filter(e=>e!==A)))},[v,k,U,e]),X=(0,a.useMemo)(()=>!A||Boolean(t)&&Boolean(n)&&(!r||Boolean(l)),[t,A,l,r,n]),Z=(0,a.useCallback)(({target:{checked:e}})=>G(We.WA.FACEBOOK,e),[G]),Y=(0,a.useCallback)(()=>{!X&&G(We.WA.FACEBOOK,!1)},[G,X]),B=(0,a.useMemo)(()=>!e.includes(We.WA.PASSWORD)||Boolean(i),[e,i]),F=(0,a.useCallback)(({target:{checked:e}})=>G(We.WA.PASSWORD,e),[G]),j=(0,a.useCallback)(()=>{!B&&G(We.WA.PASSWORD,!1)},[G,B]),K=(0,a.useMemo)(()=>{if(!e.includes(We.WA.PAYMENT))return!0;switch(o){case We.Zg.STRIPE:return Boolean(d);case We.Zg.IPPAY:return Boolean(m);case We.Zg.PAYPAL:return Boolean(I)&&Boolean(S)&&Boolean(N);case We.Zg.MERCHANTWARRIOR:return Boolean(u)&&Boolean(T)&&Boolean(O);case We.Zg.QUICKPAY:return Boolean(_)&&Boolean(R)&&Boolean(C);case We.Zg.AUTHORIZE:return Boolean(s)&&Boolean(c);default:return!0}},[e,o,d,s,c,m,T,O,u,S,N,I,C,R,_]),q=(0,a.useCallback)(({target:{checked:e}})=>G(We.WA.PAYMENT,e),[G]),J=(0,a.useMemo)(()=>e.includes(We.WA.VOUCHER),[e]),Q=(0,a.useCallback)(({target:{checked:e}})=>G(We.WA.VOUCHER,e),[G]),$=(0,a.useCallback)(()=>{!J&&G(We.WA.VOUCHER,!1)},[G,J]),ee=(0,a.useMemo)(()=>!M||Boolean(P)&&(!D||Boolean(f)),[M,P,D,f]),Ae=(0,a.useMemo)(()=>!x&&!M,[M,x]),te=(0,a.useMemo)(()=>Ae&&!W,[Ae,W]),ae=(0,a.useCallback)(({target:{checked:e}})=>G(We.WA.RADIUS,e),[G]),ne=(0,a.useCallback)(()=>{!ee&&G(We.WA.RADIUS,!1)},[G,ee]),le=(0,a.useMemo)(()=>!e.includes(We.CR.CUSTOM)||Boolean(b),[e,b]),re=(0,a.useCallback)(({target:{checked:e}})=>V(We.CR.CUSTOM,e),[V]),ie=(0,a.useCallback)(()=>le?null:V(We.CR.CUSTOM,!1),[V,le]),oe=(0,a.useMemo)(()=>[{id:"authenticationMethods",label:a.createElement(w.sA,{id:"HOTSPOT_AUTH_METHODS"}),openByDefault:!0,renderContent:()=>a.createElement(Ln.A,{description:U?a.createElement(w.sA,{id:"HOTSPOT_HOTSPOT_AUTH_WARNING"}):void 0},a.createElement(H.A,{flexDirection:"column",gap:CA.kc},a.createElement(zl,{checked:e.includes(We.WA.FACEBOOK),full:!0,id:We.WA.FACEBOOK,name:We.WA.FACEBOOK,labelProps:{icon:a.createElement(gl,null)},onChange:Z,variant:"boxed",disabled:U},a.createElement(H.A,{alignItems:"center",justifyContent:"space-between"},a.createElement(w.sA,{id:"HOTSPOT_FORM_AUTH_OPTIONS_FACEBOOK"}),e.includes(We.WA.FACEBOOK)?a.createElement(Ll,{isFacebookDefaultValid:X,onCancel:Y}):null)),a.createElement(zl,{checked:e.includes(We.WA.PASSWORD),full:!0,id:We.WA.PASSWORD,name:We.WA.PASSWORD,labelProps:{icon:a.createElement(gn.A,{size:"medium"})},onChange:F,variant:"boxed",disabled:U},a.createElement(H.A,{alignItems:"center",justifyContent:"space-between"},a.createElement(w.sA,{id:"COMMON_PASSWORD"}),e.includes(We.WA.PASSWORD)?a.createElement(bl,{isPasswordDefaultValid:B,onCancel:j}):null)),a.createElement(zl,{checked:e.includes(We.WA.PAYMENT),full:!0,id:We.WA.PAYMENT,name:We.WA.PAYMENT,labelProps:{icon:a.createElement(zn.A,{size:"medium"})},onChange:q,variant:"boxed",disabled:U},a.createElement(H.A,{alignItems:"center",justifyContent:"space-between"},a.createElement(w.sA,{id:"COMMON_PAYMENT"}),e.includes(We.WA.PAYMENT)?a.createElement(Tl,{isPaymentsDefaultValid:K}):null)),a.createElement(zl,{checked:e.includes(We.WA.VOUCHER),full:!0,id:We.WA.VOUCHER,name:We.WA.VOUCHER,labelProps:{icon:a.createElement(hn.A,{size:"medium"})},onChange:Q,variant:"boxed",disabled:U},a.createElement(H.A,{alignItems:"center",justifyContent:"space-between"},a.createElement(w.sA,{id:"COMMON_VOUCHERS"}),e.includes(We.WA.VOUCHER)?a.createElement(Ml,{isVouchersDefaultValid:J,groupedHotspotVouchers:z,onCancel:$}):null)),a.createElement(H.A,{flexDirection:"column",gap:CA.YC},a.createElement(Ln.A,{isInteractive:!0,description:!U&&te?a.createElement(w.sA,{id:"HOTSPOT_RADIUS_AUTH_WARNING",values:{button:a.createElement(g.A,{type:"button",style:{textTransform:"lowercase"},variant:"inline",onClick:y},a.createElement(w.sA,{id:"COMMON_HERE"}))}}):null},a.createElement(zl,{checked:e.includes(We.WA.RADIUS),full:!0,id:We.WA.RADIUS,name:We.WA.RADIUS,labelProps:{icon:a.createElement(yn.A,{size:"medium"})},onChange:ae,variant:"boxed",disabled:U||te},a.createElement(H.A,{alignItems:"center",justifyContent:"space-between"},a.createElement(w.sA,{id:"COMMON_RADIUS"}),e.includes(We.WA.RADIUS)?a.createElement(Dl,{isRadiusDefaultValid:ee,onCancel:ne}):null))),a.createElement(Hn.A,{fieldName:"radiusprofile_id"}))))}],[U,e,z,X,B,K,ee,te,J,Y,j,ne,$,Z,F,q,ae,Q,y]),se=(0,a.useMemo)(()=>[{id:"oneWayMethods",label:a.createElement(w.sA,{id:"HOTSPOT_ONE_WAY_METHODS"}),openByDefault:!0,renderContent:()=>a.createElement(Ln.A,{portal:!0,description:k?a.createElement(w.sA,{id:"HOTSPOT_ONE_WAY_MIX_WARNING"}):void 0},a.createElement(H.A,{flexDirection:"column",gap:CA.kc,width:"100%"},a.createElement(Ln.A,{description:U&&!e.includes(We.CR.CUSTOM)?a.createElement(w.sA,{id:"HOTSPOT_ONE_WAY_SINGLE_WARNING"}):void 0},a.createElement(zl,{checked:e.includes(We.CR.CUSTOM),full:!0,id:We.CR.CUSTOM,name:We.CR.CUSTOM,labelProps:{icon:a.createElement(xn.A,{size:"medium"})},onChange:re,variant:"boxed",disabled:k||U&&!e.includes(We.CR.CUSTOM)},a.createElement(H.A,{alignItems:"center",justifyContent:"space-between"},a.createElement(w.sA,{id:"HOTSPOT_FORM_AUTH_OPTIONS_EXTERNAL"}),e.includes(We.CR.CUSTOM)?a.createElement(yl,{isExternalDefaultValid:le,onCancel:ie}):null)))))}],[k,e,U,le,ie,re]);return a.createElement(a.Fragment,null,a.createElement(Aa,{type:Qt.I.ACCORDION,items:oe}),a.createElement(Aa,{type:Qt.I.ACCORDION,items:se}))},Wl=()=>a.createElement(ea,null,a.createElement(xl,null),a.createElement(bn,null),a.createElement(ta,null),a.createElement(la,null)),Hl=(0,K.A)(H.A)`
  position: absolute;
  right: 0;
  padding: ${CA.Ln} ${CA.Ln} 0 0;
`,wl=()=>{const e=(0,E.useDispatch)(),A=(0,E.useSelector)(m.o),t=(0,a.useCallback)(()=>{e((0,M.je)(A))},[e,A]);return a.createElement(Hl,null,a.createElement(da.A,{size:"original",actionable:!0,onClick:t}))},Ul=(0,K.A)(H.A)`
  width: 100%;
  height: 100%;
  gap: ${CA.Ln};
`,kl=()=>{const e=(0,E.useDispatch)(),A=(0,E.useSelector)(Pe.fX),t=(0,E.useSelector)(fe.selectDefaultRadiusProfile),o=(0,a.useMemo)(()=>({...De.GUEST_SETTINGS_DEFAULTS,...$e,...Qe,...Je,...t,...qe,...A,expire_unit:Number(A.expire_unit)||60,displayAuth:sA(oA(A)),setting_preference:Re.C.MANUAL}),[t,A]),m=(0,a.useCallback)(A=>{e((0,Ce.ox)(A))},[e]),d=(0,a.useCallback)(async A=>e((e=>(0,$.LK)(ve,e,`${Le}/${e}`))(A)),[e]),u=(0,a.useCallback)(async A=>e((e=>(0,$.QM)(e,he))(A)),[e]),T=(0,a.useCallback)(async t=>{const a=(0,_e.W0)(t.allowed_subnets,"allowed_subnet_",A.allowed_subnets.length),n=(0,_e.W0)(t.restricted_subnets,"restricted_subnet_",A.restricted_subnets.length),l=(e=>{const A={...e};delete A.displayAuth;const t=AA.reduce((A,t)=>(A[`${t}_enabled`]=e.displayAuth.some(e=>e===t),A),{});return{...A,...t,auth:cA(t,e.displayAuth)}})((0,_e.dq)(t,"allowed_subnets","restricted_subnets"));Ke.forEach(e=>{const A=l[`portal_customized_${e}_enabled`],t=l[`portal_customized_${e}_filename`];!A&&t&&(l[`portal_customized_${e}_filename`]="")});const r={...l,...a,...n,portal_customized_box_opacity:0===l.portal_customized_box_opacity?void 0:Math.round(l.portal_customized_box_opacity),portal_customized_welcome_text_enabled:Boolean(t.portal_customized_welcome_text)};return((e,{hotspotSettings:A,deleteImage:t})=>Promise.all(Ke.map(async a=>{const n=e[`portal_customized_${a}_enabled`],l=A[`portal_customized_${a}_filename`],r=e[`portal_customized_${a}_filename`],i=!n&&!!l,o=n&&"object"==typeof r,s=l&&l.startsWith(Ue.DU),c=l&&l.startsWith(Ue.vi),E=n&&"string"==typeof r&&r.startsWith(Ue.DU);return c||s||!(i||l&&(o||E)||l&&n&&!r)?Promise.resolve():t(l).catch(()=>Promise.resolve())})))(r,{hotspotSettings:A,deleteImage:d}).then(()=>((e,{createToast:A,uploadImage:t})=>Promise.all(Ke.map(async a=>{const n=`portal_customized_${a}_filename`,l=e[n];return"object"==typeof l?t(l.file).then(e=>({[n]:e.data[0]._id})).catch(()=>(A({icon:pe.C.warning,message:"COMMON_NOTICE_UPLOAD_ERROR"}),{[n]:""})):Promise.resolve({})})).then(A=>({...e,...A.reduce((e,A)=>({...e,...A}),{})})))(r,{createToast:m,uploadImage:u})).then(A=>e((0,s.zU)(A))).then(()=>{e((0,te.$E)()),e((0,c._)())}).catch(()=>{e((0,Ce.ox)({icon:pe.C.danger,message:"HOTSPOT_PORTAL_FAILURE"}))})},[m,d,e,A,u]),O=(0,a.useMemo)(()=>(e=>xe.A.object().shape({portal_customized_title:xe.A.string(),portal_customized_welcome_text:xe.A.string(),portal_customized_authentication_text:xe.A.string(),portal_customized_button_text:xe.A.string(),portal_customized_tos_enabled:xe.A.boolean(),portal_customized_tos:xe.A.string().when(["displayAuth","portal_customized_tos_enabled"],{is:(e,A)=>A&&![We.CR.CUSTOM].some(A=>e.includes(A)),then:xe.A.string().label("COMMON_TOS").required()}),portal_customized_box_opacity:xe.A.number().label("COMMON_BOX_OPACITY").min(0).max(100),redirect_enabled:xe.A.boolean(),redirect_url:xe.A.string().when("redirect_enabled",{is:!0,then:xe.A.string().label("COMMON_CUSTOM_URL").required(a.createElement(w.sA,{id:"COMMON_VALIDATION_EMPTY",values:{name:a.createElement(w.sA,{id:"COMMON_CUSTOM_URL"})}})).matches(ke.k,{message:a.createElement(w.sA,{id:"COMMON_VALIDATION_FORMAT_URL",values:{name:a.createElement(w.sA,{id:"COMMON_CUSTOM_URL"})}})})}),redirect_to_https:xe.A.boolean().when("facebook_enabled",{is:!0,then:xe.A.boolean().label("HOTSPOT_ADVANCED_VALIDATION_REDIRECT_TO_HTTPS_REQUIRED")}),portal_customized_success_text:xe.A.string().when("redirect_enabled",{is:!1,then:xe.A.string().label("COMMON_SUCCESS_TEXT")}),displayAuth:xe.A.array().of(xe.A.string()).label("COMMON_AUTH_TYPE"),gateway:xe.A.string(),facebook_app_id:xe.A.string().when(["displayAuth"],{is:e=>e.find(e=>e===We.WA.FACEBOOK),then:xe.A.string().label("COMMON_APP_ID").required()}),x_facebook_app_secret:xe.A.string().when(["displayAuth"],{is:e=>e.find(e=>e===We.WA.FACEBOOK),then:xe.A.string().label("HOTSPOT_FORM_AUTH_OPTIONS_FACEBOOK_APP_SECRET").required()}),facebook_enabled:xe.A.boolean(),portal_use_hostname:xe.A.boolean().when(["facebook_enabled"],{is:e=>e,then:xe.A.boolean().label("HOTSPOT_ADVANCED_VALIDATION_USE_HOSTNAME_REQUIRED")}),portal_hostname:xe.A.string().when(["portal_use_hostname"],{is:!0,then:xe.A.string().label("COMMON_DOMAIN").required().matches(ke.ky,{message:a.createElement(w.sA,{id:"COMMON_VALIDATION_FORMAT_FQDN",values:{name:a.createElement(w.sA,{id:"COMMON_DOMAIN"})}})})}),x_password:xe.A.string().when(["displayAuth"],{is:e=>e.find(e=>e===We.WA.PASSWORD),then:xe.A.string().label("HOTSPOT_GUEST_PASSWORD").required()}),[He.pM.X_STRIPE_API_KEY]:xe.A.string().when(["gateway","displayAuth"],{is:(e,A)=>e===We.Zg.STRIPE&&A.find(e=>e===We.WA.PAYMENT),then:xe.A.string().label("HOTSPOT_PAYMENTS_GATEWAY_LABEL_API_KEY").required()}),[He.Jp.X_PAYPAL_USERNAME]:xe.A.string().when(["gateway","displayAuth"],{is:(e,A)=>e===We.Zg.PAYPAL&&A.find(e=>e===We.WA.PAYMENT),then:xe.A.string().label("HOTSPOT_PAYMENTS_GATEWAY_LABEL_API_USERNAME").required()}),[He.Jp.X_PAYPAL_PASSWORD]:xe.A.string().when(["gateway","displayAuth"],{is:(e,A)=>e===We.Zg.PAYPAL&&A.find(e=>e===We.WA.PAYMENT),then:xe.A.string().label("HOTSPOT_PAYMENTS_GATEWAY_LABEL_API_PASSWORD").required()}),[He.Jp.X_PAYPAL_SIGNATURE]:xe.A.string().when(["gateway","displayAuth"],{is:(e,A)=>e===We.Zg.PAYPAL&&A.find(e=>e===We.WA.PAYMENT),then:xe.A.string().label("HOTSPOT_PAYMENTS_GATEWAY_LABEL_API_SIGNATURE").required()}),[He.pN.X_IPPAY_TERMINALID]:xe.A.string().when(["gateway","displayAuth"],{is:(e,A)=>e===We.Zg.IPPAY&&A.find(e=>e===We.WA.PAYMENT),then:xe.A.string().label("HOTSPOT_PAYMENTS_GATEWAY_LABEL_TERMINAL_ID").required()}),[He.YI.X_MERCHANT_WARRIOR_MERCHAND_UUID]:xe.A.string().when(["gateway","displayAuth"],{is:(e,A)=>e===We.Zg.MERCHANTWARRIOR&&A.find(e=>e===We.WA.PAYMENT),then:xe.A.string().label("HOTSPOT_PAYMENTS_GATEWAY_LABEL_MERCHANT_UUID").required()}),[He.YI.X_MERCHANT_WARRIOR_API_KEY]:xe.A.string().when(["gateway","displayAuth"],{is:(e,A)=>e===We.Zg.MERCHANTWARRIOR&&A.find(e=>e===We.WA.PAYMENT),then:xe.A.string().label("HOTSPOT_PAYMENTS_GATEWAY_LABEL_API_KEY").required()}),[He.YI.X_MERCHANT_WARRIOR_API_PASSPHRASE]:xe.A.string().when(["gateway","displayAuth"],{is:(e,A)=>e===We.Zg.MERCHANTWARRIOR&&A.find(e=>e===We.WA.PAYMENT),then:xe.A.string().label("HOTSPOT_PAYMENTS_GATEWAY_LABEL_API_PASSPHRASE").required()}),[He.$o.X_QUICKPAY_AGREEMNENT_ID]:xe.A.string().when(["gateway","displayAuth"],{is:(e,A)=>e===We.Zg.QUICKPAY&&A.find(e=>e===We.WA.PAYMENT),then:xe.A.string().label("HOTSPOT_PAYMENTS_GATEWAY_LABEL_AGREEMENT_ID").required()}),[He.$o.X_QUICKPAY_API_KEY]:xe.A.string().when(["gateway","displayAuth"],{is:(e,A)=>e===We.Zg.QUICKPAY&&A.find(e=>e===We.WA.PAYMENT),then:xe.A.string().label("HOTSPOT_PAYMENTS_GATEWAY_LABEL_API_USER_KEY").required()}),[He.lk.X_AUTHORIZE_LOGIN_ID]:xe.A.string().when(["gateway","displayAuth"],{is:(e,A)=>e===We.Zg.AUTHORIZE&&A.find(e=>e===We.WA.PAYMENT),then:xe.A.string().label("HOTSPOT_PAYMENTS_GATEWAY_LABEL_API_LOGIN_ID").required()}),[He.lk.X_AUTHORIZE_TRANSACTION_KEY]:xe.A.string().when(["gateway","displayAuth"],{is:(e,A)=>e===We.Zg.AUTHORIZE&&A.find(e=>e===We.WA.PAYMENT),then:xe.A.string().label("HOTSPOT_PAYMENTS_GATEWAY_LABEL_TRANSACTION_KEY").required()}),radiusprofile_id:xe.A.string().when(["displayAuth"],{is:e=>e.find(e=>e===We.WA.RADIUS),then:xe.A.string().label("COMMON_RADIUS_PROFILE").test({name:"isDefaultRadiusProfileEnabled",test:A=>A!==e._id||e.enabled,message:a.createElement(w.sA,{id:"COMMON_VALIDATION_VALID_DEFAULT_RADIUS_PROFILE"})})}),radius_disconnect_port:xe.A.string().when(["displayAuth","radius_disconnect_enabled"],{is:(e,A)=>A&&e.find(e=>e===We.WA.RADIUS),then:xe.A.string().label("COMMON_RECEIVER_PORT").required()}),portal_enabled:xe.A.bool(),allowed_subnets:xe.A.array().of(xe.A.string().label("COMMON_ENTRY").matches(tA,{message:({label:e})=>a.createElement(w.sA,{id:"COMMON_VALIDATION_VALID_IP_SUBNET_HOSTNAME",values:{name:a.createElement(w.sA,{id:e})}})}).required()),restricted_subnets:xe.A.array().of(xe.A.string().label("COMMON_ENTRY").matches(tA,{message:({label:e})=>a.createElement(w.sA,{id:"COMMON_VALIDATION_VALID_IP_SUBNET_HOSTNAME",values:{name:a.createElement(w.sA,{id:e})}})}).required()),expire:xe.A.mixed(),expire_number:xe.A.number().when("expire",{is:aA,then:xe.A.number().integer().label("HOTSPOT_ADVANCED_LABEL_CUSTOM_EXPIRATION").required().min(1).max(1e6)})}))(t),[t]);return(0,i.A)([(0,s.Uc)(void 0,{crudCacheStrategy:{type:n.e.CACHE}}),(0,be.fetchRadiusProfiles)(void 0,{crudCacheStrategy:{type:n.e.CACHE}}),(0,te.$E)(void 0,{crudCacheStrategy:{type:n.e.CACHE}}),(0,C.P5)(),(0,Me.j)(void 0,{type:n.e.CACHE}),(0,r.Zi)(l.B.LANGUAGES)],a.createElement(Ne.l1,{initialValues:o,onSubmit:T,enableReinitialize:!0,validationSchema:O},a.createElement(wt,null,a.createElement(Ul,null,a.createElement(Wl,null),a.createElement(Pt,null),a.createElement(wl,null)))),{trackingName:P.z.LANDING_PAGE})};var Gl=t(816271),Vl=t(398300),Xl=t(845030),Zl=t(517994),Yl=t(610783),Bl=t(28937);const Fl=(0,K.A)(H.A)`
  height: 100%;
  width: 100%;
  overflow: auto;
  flex-direction: column;
`;var jl=t(252734),Kl=t(36484),ql=t(893757);const Jl=e=>e,Ql=({header:{id:e}})=>ql.$r[e](e),$l=e=>ql.Wz[e],er=({column:{id:e},getValue:A})=>ql.KI[e](A()),Ar=e=>ql.fI[e],tr=ql.wJ.map(e=>({id:e,accessorFn:Jl,header:Ql,cell:er,...$l(e),enableResizing:!0,enableSorting:!0,compare:Ar(e)})),ar={wrapperFlexProps:{padding:"0px"},rowOptions:[{value:25,default:!1},{value:50,default:!1},{value:100,default:!0}]},nr={columns:tr,className:U.Fl,stickyHeader:!0};var lr=t(300696);const rr=()=>{const e=(0,E.useDispatch)(),A=(0,E.useSelector)((0,a.useMemo)(()=>(0,f.U)(b.U4.HOTSPOT_GUESTS),[])),t=(0,E.useSelector)(Bl.$n),n=(0,a.useCallback)(()=>{e((0,Kl.g7)(jl.V)),e((0,ne.yT)(u.l.HOTSPOT_GUESTS,{initialColumns:Object.values(lr.t)})),e((0,W.sV)(b.U4.HOTSPOT_GUESTS))},[e]),l=(0,a.useMemo)(()=>t.length&&A?a.createElement(x.A,{title:a.createElement(w.sA,{id:"COMMON_NO_MATCH"}),description:a.createElement(w.sA,{id:"CLIENTS_HOTSPOT_GUESTS_EMPTY_SEARCH_DETAILS",values:{button:a.createElement(g.A,{type:"button",variant:"inline",onClick:n},a.createElement(w.sA,{id:"COMMON_REMOVE_SEARCH_BUTTON_TEXT"})),target:a.createElement("span",{style:{textTransform:"lowercase"}},a.createElement(w.sA,{id:"COMMON_GUESTS"}))}})}):t.length?a.createElement(x.A,{title:a.createElement(w.sA,{id:"COMMON_NO_MATCH"}),description:a.createElement(w.sA,{id:"CLIENTS_EMPTY_FILTER_NO_CLIENTS_DETAILS",values:{button:a.createElement(g.A,{type:"button",variant:"inline",onClick:n},a.createElement(w.sA,{id:"COMMON_RESET_THEM_BUTTON_TEXT"}))}})}):a.createElement(x.A,{title:a.createElement(w.sA,{id:"CLIENTS_HOTSPOT_GUESTS_EMPTY_HEADER"})}),[t.length,A,n]);return a.createElement(Fl,null,a.createElement(d.A,{data:[],...nr}),l)};var ir=t(718556);const or=()=>{const e=(0,E.useDispatch)(),A=(0,E.useSelector)(Bl.C),t=(0,E.useSelector)(Bl.Q5),l=(0,E.useSelector)(m.Rj),{startDate:r,endDate:s}=(0,E.useSelector)(m.K5),c=(0,a.useCallback)(A=>{e((0,Xl.XP)({type:Vl.H.HOTSPOT_GUEST,id:A[ir.b.MAC]}))},[e]),[p,R]=(0,O.A)(u.l.HOTSPOT_GUESTS),[C,D]=(0,T.A)(u.l.HOTSPOT_GUESTS),f=(0,Gl.A)([Vl.H.HOTSPOT_GUEST]),{initialColumns:b=[]}=(0,_.A)(u.l.HOTSPOT_GUESTS),v=(0,a.useMemo)(()=>ql.wJ.reduce((e,A)=>(e[A]=b.includes(A),e),{}),[b]),L=(0,a.useCallback)(({pageNumber:e,rowsPerPage:t})=>a.createElement(d.A,{data:A,onRowClick:c,pageSize:t,pageIndex:e,activeRows:f,initialColumnSize:p,onColumnSizingChange:R,columnVisibility:v,sorting:C,onSort:D,...nr}),[A,c,f,D,C,p,R,v]),h=(0,a.useCallback)(A=>{A!==l&&e((0,M.Vu)(A))},[e,l]),y=(0,a.useCallback)(()=>{e((0,M.Vu)(N.B))},[e]);return(0,a.useEffect)(()=>{e((0,Yl.s)(void 0,{crudCacheStrategy:{type:n.e.CACHE}}))},[e]),(0,I.A)(t,`${o.M.HOTSPOT}-${P.z.GUESTS}`),(0,i.A)([(0,Zl.ne)({start:r.getTime(),end:s.getTime()},void 0,{crudCacheStrategy:{type:n.e.CACHE}})],A.length&&Object.values(v).some(Boolean)?a.createElement(S.A,{section:"COMMON_GUESTS",tableType:u.l.HOTSPOT_GUESTS,itemCount:A.length,onRenderTable:L,onPageChanged:h,onRowsChanged:y,pageNumber:l,...ar}):a.createElement(rr,null),{trackingName:P.z.GUESTS,renderKey:[r.getTime(),s.getTime()].join()})},sr=(0,K.A)(H.A,{shouldForwardProp:e=>!["hotspotRoute"].includes(e)})`
  width: 100%;
  height: 100%;
  padding: ${CA.Ln};
  ${({hotspotRoute:e,theme:A})=>e===P.z.LANDING_PAGE?`\n          padding: 0;\n          position: absolute;\n          z-index: 100;\n          background: ${(0,pt.L)({theme:A})};\n        `:""}
`,cr=()=>{const e=(0,E.useSelector)(m.j7),A=(0,a.useMemo)(()=>{switch(e){case P.z.GUESTS:return a.createElement(or,null);case P.z.PAYMENTS:return a.createElement(Se,null);case P.z.VOUCHERS:return a.createElement(Q,null);case P.z.LANDING_PAGE:return a.createElement(kl,null);default:return null}},[e]);return a.createElement(sr,{hotspotRoute:e},A)},Er=()=>{const e=(0,E.useDispatch)();return(0,a.useEffect)(()=>()=>{e((0,M.je)(P.z.GUESTS))},[e]),null},mr=()=>(Er(),(0,i.A)([(0,r.Zi)(l.B.HOTSPOT),(0,s.Uc)(void 0,{crudCacheStrategy:{type:n.e.CACHE}}),(0,c._)()],a.createElement(cr,null),{trackingName:o.M.HOTSPOT}))},195672:(e,A,t)=>{t.d(A,{z:()=>a});const a=e=>0===e},200826:(e,A,t)=>{t.d(A,{A:()=>u});var a=t(469733),n=t(296540),l=t(429252),r=t.n(l),i=t(198494),o=t(415246),s=t(305988),c=t(789768),E=t(249304);const m=Object.keys(E.l).reduce((e,A)=>(e[A]=!1,e),{}),d=e=>{const A=(0,a.useDispatch)(),t=(0,a.useSelector)(i.Bm);return(0,n.useEffect)(()=>{if(!m[e]){m[e]=!0;const a=s.W2[o.xz.TABLES][e],n=t[e]||{},l=a?.initialColumnSnapshot;if(l){const t={...n?.initialColumnSnapshot},a=[...n.initialColumns||[]];if(Object.keys(t).length)Object.entries(l).forEach(([e,A])=>{e in t||(t[e]=A)}),Object.entries(t).forEach(([e,A])=>{!a.includes(e)&&A&&a.push(e)}),r()(a,n.initialColumns)||A((0,c.yT)(e,{initialColumns:Array.from(new Set([...a,...n.initialColumns])),initialColumnSnapshot:t}));else if(a.length){const t=a.reduce((e,A)=>(e[A]=!0,e),{});A((0,c.yT)(e,{initialColumnSnapshot:t,initialColumns:Object.keys(t)}))}}}},[A,e,t]),null},u=e=>{d(e);return(0,a.useSelector)((0,n.useMemo)(()=>(0,i.h)(e),[e]))}},202013:(e,A,t)=>{t.d(A,{default:()=>E});var a=t(956347),n=t(469733),l=t(296540),r=t(928085),i=t(789367),o=t(792072),s=t(959341),c=t(771641);const E=()=>{const e=(0,a.W6)(),A=(0,n.useSelector)(o.JP),t=(0,r.A)(`${s.E0}?${s.XU}=${i.K.QOS_RULES}&${s.Nw}`),E=(0,l.useCallback)(()=>e.push(t),[e,t]);return(0,l.useMemo)(()=>({[c.q.AVAILABLE]:A,[c.q.REDIRECT]:E}),[A,E])}},203157:(e,A,t)=>{t.d(A,{A:()=>s});var a=t(296540),n=t(271856),l=t(400270),r=t(566723),i=t(294303),o=t(699784);const s=({enabled:e})=>a.createElement(i.A,{opacity:e?void 0:r.xN},a.createElement(n.A,{description:a.createElement(o.sA,{id:"COMMON_MATCH_OPPOSITE"}),portal:!0},a.createElement(l.A,{size:"original"})))},205908:(e,A,t)=>{t.d(A,{B:()=>r,L:()=>l});var a=t(296540),n=t(982858);const l=(0,a.createContext)(null),r=(0,a.createContext)({scan:{},status:n.y.PENDING})},212178:(e,A,t)=>{t.d(A,{A:()=>n});var a=t(296540);const n=e=>{const A=(0,a.useRef)();return(0,a.useEffect)(()=>{A.current=e},[e]),A.current}},221649:(e,A,t)=>{t.d(A,{I:()=>i});var a=t(462571),n=t(873501),l=t(628980),r=t(627440);const i={[r.VO.DASHBOARD]:void 0,[r.VO.TOPOLOGY]:void 0,[r.VO.DEVICES]:void 0,[r.VO.CLIENTS]:Object.values(l.D).flat().filter(Boolean),[r.VO.PORTS]:void 0,[r.VO.AIRVIEW]:Object.values(a.a).flat().filter(Boolean),[r.VO.INSIGHTS]:Object.values(n.I).flat().filter(Boolean),[r.VO.ADMINS]:void 0,[r.VO.SYSLOG]:void 0,[r.VO.SETTINGS]:void 0}},223670:(e,A,t)=>{t.d(A,{A:()=>s});var a=t(296540),n=t(366702),l=t(572112),r=t(140496);const i=(e,A)=>{if(!e)return null;switch(A){case r.e.DASHBOARD:return e>=l.A.XXL.FROM?{[r.N.DIAMETER]:150,[r.N.BORDER]:null,[r.N.PADDING]:20,[r.N.SPACER]:15,[r.N.THICKNESS]:10}:e>=l.A.XL.FROM?{[r.N.DIAMETER]:130,[r.N.BORDER]:null,[r.N.PADDING]:16,[r.N.SPACER]:15,[r.N.THICKNESS]:10}:e>=l.A.L.FROM?{[r.N.DIAMETER]:130,[r.N.BORDER]:null,[r.N.PADDING]:12,[r.N.SPACER]:15,[r.N.THICKNESS]:10}:e>=l.A.ML.FROM?{[r.N.DIAMETER]:130,[r.N.BORDER]:null,[r.N.PADDING]:12,[r.N.SPACER]:15,[r.N.THICKNESS]:10}:e>=l.A.M.FROM?{[r.N.DIAMETER]:130,[r.N.BORDER]:null,[r.N.PADDING]:12,[r.N.SPACER]:15,[r.N.THICKNESS]:10}:e>=l.A.SM.FROM?{[r.N.DIAMETER]:130,[r.N.BORDER]:null,[r.N.PADDING]:12,[r.N.SPACER]:15,[r.N.THICKNESS]:10}:e>=l.A.S.FROM?{[r.N.DIAMETER]:130,[r.N.BORDER]:null,[r.N.PADDING]:12,[r.N.SPACER]:15,[r.N.THICKNESS]:10}:e>=l.A.XS.FROM?{[r.N.DIAMETER]:130,[r.N.BORDER]:null,[r.N.PADDING]:12,[r.N.SPACER]:15,[r.N.THICKNESS]:10}:null;case r.e.SIDE_PANEL:return{[r.N.DIAMETER]:96,[r.N.BORDER]:null,[r.N.PADDING]:0,[r.N.SPACER]:10,[r.N.THICKNESS]:10};default:return null}},o={[r.N.DIAMETER]:null,[r.N.BORDER]:null,[r.N.PADDING]:null,[r.N.SPACER]:null,[r.N.THICKNESS]:null},s=e=>{const[A,t]=(0,a.useState)(i(document.body?.getBoundingClientRect()?.width,e)||o),{width:l}=(0,n.A)();return(0,a.useEffect)(()=>{const A=i(l,e);A&&t(A)},[l,e]),A}},224323:(e,A,t)=>{t.d(A,{A:()=>o});var a=t(296540),n=t(822336),l=t(71479),r=t(294303);const i=(0,l.A)(r.A)`
  width: 8px;
  height: 3px;
  background: ${({theme:{themeName:e}})=>n.Ay[`desktop-color-aqua-06-${e}`]};
`,o=e=>a.createElement(i,{...e})},226776:(e,A,t)=>{t.d(A,{y:()=>n});var a=t(691189);const n=(e={},A={})=>(0,a.Kd)("hotspotInfo","/v2/api/site/{site}/hotspot/info","hotspotInfoId",e,A)},232857:(e,A,t)=>{t.d(A,{eZ:()=>h,iV:()=>L,BU:()=>y,hP:()=>b,Uf:()=>f,sV:()=>v,$:()=>z});var a=t(785330),n=t(761541),l=t(296540),r=t(699784);const i=e=>l.createElement(r.sA,{id:f[e]}),o=e=>l.createElement(r.sA,{id:f[e]}),s=e=>l.createElement(r.sA,{id:f[e]}),c=e=>l.createElement(r.sA,{id:f[e]}),E=e=>l.createElement(r.sA,{id:f[e]}),m=e=>l.createElement(r.sA,{id:f[e]}),d=e=>l.createElement(r.sA,{id:f[e]});var u=t(731078),T=t(705145),O=t(137298),I=t(438369);const S=e=>l.createElement(T.A,{isTruncated:!0,size:"medium",color:"text-2"},e[n.$.QOS_RATE_MAX_UP]?l.createElement(I.A.Bytes,{size:"medium"},(0,O.Up)(e[n.$.QOS_RATE_MAX_UP])):l.createElement(r.sA,{id:"COMMON_UNLIMITED"}));var N;!function(e){e.USED="USED",e.USED_MULTIPLE="USED_MULTIPLE",e.EXPIRED="EXPIRED",e.VALID_ONE="VALID_ONE",e.VALID_MULTI="VALID_MULTI"}(N||(N={}));const _=e=>l.createElement(T.A,{isTruncated:!0,size:"medium",color:"text-2"},l.createElement(r.sA,{id:(()=>{switch(e[n.$.STATUS]){case N.EXPIRED:return"HOTSPOT_VOUCHER_STATUS_EXPIRED";case N.USED:return"HOTSPOT_VOUCHER_STATUS_USED";case N.USED_MULTIPLE:return e[n.$.QUOTA]>0?"HOTSPOT_VOUCHER_STATUS_USED_MULTIPLE_QUOTA":"HOTSPOT_VOUCHER_STATUS_USED_MULTIPLE";case N.VALID_MULTI:return 0===e[n.$.QUOTA]?"COMMON_UNLIMITED":e[n.$.QUOTA]>1?"HOTSPOT_VOUCHER_STATUS_VALID_MULTI":"HOTSPOT_VOUCHER_STATUS_VALID_ONE";default:return"HOTSPOT_VOUCHER_STATUS_VALID_ONE"}})(),values:{expires:e[n.$.STATUS_EXPIRES],quota:e[n.$.QUOTA],used:e[n.$.USED]}})),p=e=>l.createElement(T.A,{isTruncated:!0,size:"medium",color:"text-2"},e[n.$.NOTE]||l.createElement(r.sA,{id:"COMMON_FALLBACK"})),R=e=>l.createElement(T.A,{isTruncated:!0,size:"medium",color:"text-2"},e[n.$.DURATION]<60?l.createElement(r.sA,{id:"COMMON_MINUTES",values:{minutes:Math.floor(e[n.$.DURATION])}}):e[n.$.DURATION]<1440?l.createElement(r.sA,{id:"COMMON_HOURS",values:{hours:Math.floor(e[n.$.DURATION]/60)}}):l.createElement(r.sA,{id:"COMMON_DAYS",values:{days:Math.floor(e[n.$.DURATION]/1440)}}));var C=t(670);const M=e=>l.createElement(T.A,{isTruncated:!0,size:"medium",color:"text-2"},e[n.$.QOS_RATE_MAX_DOWN]?l.createElement(C.A.Bytes,{size:"medium"},(0,O.Up)(e[n.$.QOS_RATE_MAX_DOWN])):l.createElement(r.sA,{id:"COMMON_UNLIMITED"})),P=e=>l.createElement(T.A,{isTruncated:!0,size:"medium",color:"text-2"},e[n.$.QOS_USAGE_QUOTA]?l.createElement(l.Fragment,null,e[n.$.QOS_USAGE_QUOTA]," ",l.createElement(r.sA,{id:"COMMON_UNIT_BYTES_SHORT",values:{prefix:"M"}})):l.createElement(r.sA,{id:"COMMON_UNLIMITED"})),D=e=>l.createElement(T.A,{isTruncated:!0,size:"medium",color:"text-2"},e[n.$.CODE]||l.createElement(r.sA,{id:"COMMON_FALLBACK"})),f={[u.J.NAME]:"COMMON_NAME",[u.J.CODE]:"COMMON_CODE",[u.J.EXPIRATION]:"COMMON_EXPIRATION",[u.J.TYPE]:"COMMON_TYPE",[u.J.DATA_LIMIT]:"COMMON_DATA_LIMIT",[u.J.DOWNLOAD_LIMIT]:"COMMON_DOWNLOAD_LIMIT",[u.J.UPLOAD_LIMIT]:"COMMON_UPLOAD_LIMIT"},b={[u.J.NAME]:s,[u.J.CODE]:d,[u.J.EXPIRATION]:c,[u.J.TYPE]:o,[u.J.DATA_LIMIT]:m,[u.J.DOWNLOAD_LIMIT]:E,[u.J.UPLOAD_LIMIT]:i},v={[u.J.NAME]:{size:110,minSize:90,maxSize:1/0},[u.J.CODE]:{size:110,minSize:90,maxSize:1/0},[u.J.EXPIRATION]:{size:110,minSize:90,maxSize:1/0},[u.J.TYPE]:{size:110,minSize:90,maxSize:1/0},[u.J.DATA_LIMIT]:{size:110,minSize:90,maxSize:1/0},[u.J.DOWNLOAD_LIMIT]:{size:110,minSize:90,maxSize:1/0},[u.J.UPLOAD_LIMIT]:{size:110,minSize:90,maxSize:1/0}},L={[u.J.NAME]:p,[u.J.CODE]:D,[u.J.EXPIRATION]:R,[u.J.TYPE]:_,[u.J.DATA_LIMIT]:P,[u.J.DOWNLOAD_LIMIT]:M,[u.J.UPLOAD_LIMIT]:S},h=Object.values(u.J),y={[u.J.NAME]:(e,A)=>(0,a.j5)(e[n.$.NOTE],A[n.$.NOTE]),[u.J.CODE]:void 0,[u.J.EXPIRATION]:(e,A)=>(0,a.j5)(e[n.$.DURATION],A[n.$.DURATION]),[u.J.TYPE]:void 0,[u.J.DATA_LIMIT]:(e,A)=>(0,a.j5)(e[n.$.QOS_USAGE_QUOTA],A[n.$.QOS_USAGE_QUOTA]),[u.J.DOWNLOAD_LIMIT]:(e,A)=>(0,a.j5)(e[n.$.QOS_RATE_MAX_DOWN],A[n.$.QOS_RATE_MAX_DOWN]),[u.J.UPLOAD_LIMIT]:(e,A)=>(0,a.j5)(e[n.$.QOS_RATE_MAX_UP],A[n.$.QOS_RATE_MAX_UP])},z={[u.J.NAME]:!0,[u.J.CODE]:!1,[u.J.EXPIRATION]:!0,[u.J.TYPE]:!1,[u.J.DATA_LIMIT]:!0,[u.J.DOWNLOAD_LIMIT]:!0,[u.J.UPLOAD_LIMIT]:!0}},235937:(e,A,t)=>{t.d(A,{p:()=>n});var a=t(691189);const n=e=>(0,a.Kd)("spectrumScan",`/api/s/{site}/stat/spectrum-scan/${e}`,e,void 0,{idField:"mac"})},238986:(e,A,t)=>{t.d(A,{default:()=>E});var a=t(469733),n=t(296540),l=t(640488),r=t(510337),i=t(627440),o=t(706574),s=t(151033),c=t(771641);const E=()=>{const e=(0,a.useDispatch)(),A=(0,a.useSelector)(r.I),t=(0,n.useMemo)(()=>A[i.o9.NAVIGATION][i.mx.AVAILABLE],[A]),E=(0,l.A)(),m=(0,n.useCallback)(()=>{E(()=>{e((0,o.qX)(s.T2.AUDIT))})},[e,E]);return(0,n.useMemo)(()=>({[c.q.AVAILABLE]:t,[c.q.REDIRECT]:m}),[t,m])}},239764:(e,A,t)=>{t.d(A,{A:()=>d});var a=t(956347),n=t(469733),l=t(296540),r=t(874807),i=t(15095),o=t(627440),s=t(670180),c=t(469987),E=t(361485),m=t(46685);const d=()=>{const e=(0,n.useDispatch)(),A=(0,a.W6)(),t=(0,i.A)(`${o.VO.INSIGHTS}/${s.H.FLOWS}`);return(0,l.useCallback)((a=r.P1)=>{(0,n.batch)(()=>{e((0,m.A)()),e((0,c.AL)(!0)),e((0,c.lB)(E.X)),a(e)}),A.push(t)},[e,A,t])}},242454:(e,A,t)=>{t.d(A,{c:()=>n});var a=t(691189);const n=(e,A={},t={})=>(0,a.Kd)("excludedIps",(e=>`/v2/api/site/{site}/excluded-ips/${e}`)(e),e,A,t)},243046:(e,A,t)=>{t.d(A,{Ji:()=>d,jI:()=>T,pD:()=>u});var a=t(469733),n=t(516693),l=t(371715),r=t(691189),i=t(983228),o=t(887831),s=t(127448),c=t(510072),E=t(124348),m=t(635937);const d=(e={},A={})=>(0,r.t9)((0,s.E)(e.data),c.PATH,e,{idField:c.ID_FIELD,method:o.A.POST,fetchConfig:{getAllPostResponse:!0},failureToast:m.Xz,compareFunction:s.G,...A}),u=(e,A,t={},a={})=>l=>l((0,r.vB)(n.aC,null,null,o.A.PUT,c.MARK_CRITICAL_LOG_AS_READ_PATH.replace(c.MARK_CRITICAL_LOG_AS_READ_ID_PLACEHOLDER,e),t,null,a)).then(()=>{[(0,s.E)(A),i.A2].forEach(A=>{l({type:n._7,meta:{model:A,id:e}})})}),T=(e,A={},t={})=>m=>m((0,r.vB)(n.aC,null,null,o.A.PUT,c.MARK_ALL_CRITICAL_LOGS_AS_READ_PATH,A,null,t)).then(()=>{(0,a.batch)(()=>{m((0,l.lB)((0,s.E)(e))),m(d({data:{...e}})),m((0,l.lB)(i.A2)),m((0,E.c)())})})},248543:(e,A,t)=>{t.d(A,{J:()=>a,g:()=>n});const a=()=>document.getElementById("modal-container"),n=()=>document.getElementById("modal-settings-container")},254292:(e,A,t)=>{t.d(A,{oE:()=>u,mi:()=>d,xc:()=>E});var a=t(801081),n=t(137298),l=t(276907),r=t(919952),i=t(25553),o=t(87485),s=t(299423);const c=(0,a.Mz)(e=>(0,i.JC)(s.MODEL,e.models,{}),o.kh),E=e=>e[r.U.SHARED][l.N.SPEED_TEST].state,m=e=>{const A=e.map(e=>e.records.map(e=>e[1]))[0];return(0,n.N8)(A.reduce((e,A)=>e+A,0)/A.length/100)},d=(0,a.Mz)(c,e=>{const A={download:[],upload:[]};for(let t=0;t<e.length;t+=1){const a=e[t];a["download-progress"]&&!a["upload-progress"]&&A.download.push(m(a["download-progress"])),a["upload-progress"]&&A.upload.push(m(a["upload-progress"]))}const t=e[e.length-1];return{download:A.download,upload:A.upload,ping:Math.round(t?.latency||0),xput_download:Math.ceil(t?.xput_download||0),xput_upload:Math.ceil(t?.xput_upload||0),server:t?.server||void 0}}),u=(0,a.Mz)(c,e=>{const A=e[e.length-1];return A?{upload:A["upload-progress"]?m(A["upload-progress"]):null,download:A["download-progress"]?m(A["download-progress"]):null,ping:A?.latency||0,server:A?.server}:null})},257143:(e,A,t)=>{t.d(A,{K:()=>r});var a=t(627440),n=t(596731),l=t(670180);const r={[l.H.FLOWS]:`${n.Si[a.VO.INSIGHTS]}`.replace(n.wk,l.H.FLOWS),[l.H.ACTIVITY]:`${n.Si[a.VO.INSIGHTS]}`.replace(n.wk,l.H.ACTIVITY)}},259120:(e,A,t)=>{t.d(A,{A:()=>m});var a,n,l=t(296540),r=t(469733),i=t(840279),o=t(472807),s=t(874098),c=t(760919),E=t(986905);!function(e){e.ADD="ADD",e.REMOVE="REMOVE"}(a||(a={})),function(e){e.ADD_ALL="ADD_ALL",e.REMOVE_ALL="REMOVE_ALL"}(n||(n={}));const m=({tagId:e,data:A})=>{const t=(0,r.useDispatch)(),m=(0,r.useSelector)(s.MQ),d=(0,r.useSelector)(s.B8),u=(0,l.useCallback)(({id:e,action:A})=>{switch(A){case a.ADD:t((0,o.nS)([...d,e]));break;case a.REMOVE:t((0,o.nS)(d.filter(A=>A!==e)))}},[d,t]),T=(0,l.useCallback)(({ids:e,action:A})=>{switch(A){case n.ADD_ALL:t((0,o.nS)(e));break;case n.REMOVE_ALL:t((0,o.nS)([]))}},[t]),{[c.fP.CREATOR_MODE_FILTER]:O}=(0,E.A)(e);return(0,l.useMemo)(()=>{const t=e===m;return{multiSelectMode:t,...t&&{data:A.filter(O),multiSelectVariant:"icon",onGroupChange:u,onGroupAddAll:T},selection:t?d:(0,i.A)()}},[A,e,m,O,u,T,d])}},260183:(e,A,t)=>{t.d(A,{N:()=>r});var a=t(71479),n=t(294303),l=t(572112);const r=(0,a.A)(n.A)`
  overflow: hidden;
  position: relative;
  flex: 1;
  @media ${l.A.SIDE_NAVIGATION_BREAKPOINT_DOWN} {
    flex-direction: column;
  }
`},267291:(e,A,t)=>{t.d(A,{e:()=>o});var a=t(801081),n=t(25553),l=t(87485),r=t(124348);const i=(0,n.uh)((0,r.c)()),o=(0,a.Mz)(i,l.kh)},276420:(e,A,t)=>{t.d(A,{kL:()=>v,z6:()=>b,Ay:()=>h});var a=t(469733),n=t(296540),l=t(271856),r=t(758649),i=t(71479),o=t(699784),s=t(564985),c=t(252959),E=t(368116),m=t(217439),d=t(718073),u=t(592563),T=t(311785),O=t(566723),I=t(294303),S=t(545111),N=t(171073),_=t(736201),p=t(705145);const R=(0,i.A)(p.A)`
  ${({hoverable:e,theme:{motifPalette:{uBlue06:A}}})=>e&&`\n      &:hover {\n        color: ${A};\n      }\n  `}
`,C=({channelWidth:e,hoverable:A,isActiveChannelWidthScanning:t})=>n.createElement(R,{color:"text-3",size:"small",isTruncated:!0,hoverable:A},t?n.createElement(m.A,{color:"ublue-06"},n.createElement(o.sA,{id:"COMMON_DEVICE_STATE_RFSCANNING"})):n.createElement(n.Fragment,null,e," ",n.createElement(o.sA,{id:"COMMON_UNIT_MHZ"}))),M=(0,i.A)("div",(0,T.A)("columns","columnWidth","hideLegend"))`
  display: grid;
  grid-template-columns: ${({hideLegend:e})=>e?"":"60px"} repeat(
      ${({columns:e,columnWidth:A=20})=>`${e}, ${A}`}px
    );
  column-gap: 6px;
  row-gap: 6px;
`,P=(0,i.A)("div",(0,T.A)("rowIndex","columnIndexStart","columnIndexEnd"))`
  grid-column-start: ${({columnIndexStart:e})=>e};
  grid-column-end: ${({columnIndexEnd:e,columnIndexStart:A})=>e??A+1};
  grid-row-start: ${({rowIndex:e})=>e};
  display: flex;
  height: 16px;
`,D=({renderChannel:e,layout:A,band:t,hideLegend:l,channelsTableStyle:r})=>{const{mac:i,deviceName:s,supportedQuickScan:c,isQuickScanning:E,quickScanningChannelWidth:T,quickScanningRadio:p}=(0,n.useContext)(S.N),R=(0,a.useDispatch)(),D=Object.entries(A.channels),f=l?0:1;return n.createElement(I.A,{maxWidth:"100%",overflowX:"auto",paddingTop:O.kc,paddingBottom:O.kc,...r},n.createElement(M,{columns:A.columns+f,columnWidth:A.cellWidth,hideLegend:l},l?null:n.createElement(P,{rowIndex:1,columnIndexStart:1,columnIndexEnd:2},n.createElement(m.A,{color:"text-2",size:"small"},n.createElement(o.sA,{id:"COMMON_CHANNELS"}))),l?null:Object.entries(A.channels[_.P]||{}).map(([e,{from:A,to:t}])=>n.createElement(P,{key:e,rowIndex:1,columnIndexStart:A+f,columnIndexEnd:t+f},n.createElement(I.A,{justifyContent:"center",flex:1},n.createElement(m.A,{color:"text-3",size:"xsmall"},e)))),D.map(([A,a],r)=>{const m=A===T&&p===t&&E;return n.createElement(n.Fragment,{key:A},l?null:n.createElement(P,{rowIndex:r+1+1,columnIndexStart:1},n.createElement(I.A,{alignItems:"center",flex:1},c&&i&&t&&A&&!E?n.createElement(d.A,{description:n.createElement(o.sA,{id:"COMMON_QUICK_SCAN"}),placement:"right"},n.createElement(u.A,{variant:"emphasis",onPress:()=>{R((0,N.vX)(i,t,Number(A),s))}},n.createElement(C,{channelWidth:Number(A),hoverable:!0}))):n.createElement(C,{channelWidth:Number(A),isActiveChannelWidthScanning:m}))),Object.entries(a).map(([t,{from:a,to:l,row:i,custom:o}])=>n.createElement(P,{key:t,rowIndex:(i??r+1)+1,columnIndexStart:a+f,columnIndexEnd:l+f,className:m?_.S:void 0},e({channel:Number(t),channelWidth:Number(A),...o?{custom:o}:{}}))))})))},f=({maxFrequency:e,minFrequency:A,title:t,children:a,hideLegend:l})=>n.createElement(I.A,{flexDirection:"column",maxWidth:"100%"},l?null:n.createElement(I.A,{flexDirection:"row",gap:O.YC,alignItems:"baseline"},n.createElement(I.A,{minWidth:60},n.createElement(m.A,{size:"small",color:"text-2"},t)),n.createElement(m.A,{size:"small",color:"text-3"},n.createElement(o.sA,{id:"COMMON_MHZ_INTERVAL",values:{min:A,max:e}}))),n.createElement(I.A,null,a));var b;!function(e){e[e.NA=0]="NA",e[e.NG=1]="NG",e[e.LOWER_6E=2]="LOWER_6E",e[e.UPPER_6E=3]="UPPER_6E",e[e.FULL_6E=4]="FULL_6E"}(b||(b={}));const v={[b.NG]:{label:"COMMON_RADIO_BAND_NG",minFrequency:2412,maxFrequency:2484,getLayout:E.ir,band:s.sx.RADIO_NG},[b.NA]:{label:"COMMON_RADIO_BAND_NA",minFrequency:5180,maxFrequency:5885,getLayout:E.Ko,band:s.sx.RADIO_NA},[b.LOWER_6E]:{label:"COMMON_RADIO_BAND_6E",minFrequency:5935,maxFrequency:6515,getLayout:E.Dd,band:s.sx.RADIO_6E},[b.UPPER_6E]:{label:"COMMON_RADIO_BAND_6E",minFrequency:6535,maxFrequency:7115,getLayout:E.a0,band:s.sx.RADIO_6E},[b.FULL_6E]:{label:"COMMON_RADIO_BAND_6E",minFrequency:5935,maxFrequency:7115,getLayout:E.WE,band:s.sx.RADIO_6E}},L=(0,i.A)(r.A)`
  width: 16px;
  height: 16px;
  padding: 0;
`,h=({sectionId:e,renderChannel:A,channelWidths:t,hideLegend:r,channelsTableStyle:i})=>{const{band:m,getLayout:d,maxFrequency:u,minFrequency:T,label:O}=v[e],I=(0,a.useSelector)(c.H),[S,N]=(0,n.useState)(!0),_=(0,n.useMemo)(()=>n.createElement(l.A,{description:S?n.createElement(o.sA,{id:"COMMON_WIFI_CHANNELIZATION_COLLAPSE_CHANNELS"}):n.createElement(o.sA,{id:"COMMON_WIFI_CHANNELIZATION_EXPAND_CHANNELS"}),portal:!0},n.createElement(L,{type:"button",onClick:()=>N(!S)},S?"-":"+")),[S]),p=(0,n.useMemo)(()=>{const e=m===s.sx.RADIO_NG?(0,E.ir)(I,S,_):d(I);return t?{...e,channels:Object.fromEntries(Object.entries(e.channels).reduce((e,[A,a])=>(t?.includes(Number(A))&&e.push([A,a]),e),[]))}:e},[t,m,I,_,d,S]);return p&&Object.keys(p.channels||{}).length?n.createElement(f,{title:n.createElement(o.sA,{id:O}),minFrequency:T,maxFrequency:u,hideLegend:r},n.createElement(D,{layout:p,renderChannel:A,band:m,hideLegend:r,channelsTableStyle:i})):null}},280062:(e,A,t)=>{t.d(A,{A:()=>r});var a=t(296540),n=t(699784),l=t(842916);const r=({radio:e,suffix:A})=>l.U[e]?a.createElement(a.Fragment,null,a.createElement(n.sA,{id:l.U[e]}),A?a.createElement("span",null," ",A):null):a.createElement(n.sA,{id:"COMMON_FALLBACK"})},281837:(e,A,t)=>{t.d(A,{L6:()=>c,Rz:()=>m,_S:()=>O,df:()=>E,nH:()=>T,pn:()=>I,uS:()=>u,uc:()=>d});var a=t(822336),n=t(705145),l=t(71479),r=t(825032),i=t(566723),o=t(294303),s=t(360146);const c=(0,l.A)(o.A)`
  width: 100%;
  gap: ${s.g1}px;
`,E=(0,l.A)(o.A)`
  width: 100%;
  gap: ${s.ur}px;
`,m=(0,l.A)(o.A)`
  flex-direction: column;
  gap: ${i.kc};
  > span {
    cursor: pointer;
    white-space: nowrap;
  }
`,d=(0,l.A)(o.A)`
  width: ${s.Yk}px;
  position: relative;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
`,u=(0,l.A)(o.A,{shouldForwardProp:e=>!["dimension","outlineOverride","header"].includes(e)})`
  position: relative;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border-radius: 8px;
  margin-bottom: ${i.YC};
  ${({theme:{themeName:e},dimension:A=s.Yk,outlineOverride:t,header:n})=>`\n    border: ${s.jo}px solid ${a.Ay[t||`desktop-color-ublue-${e===r.S.DARK?"02":"04"}-${e}`]};\n    background: ${e===r.S.DARK?a.Ay["desktop-color-depth-bg-2-dark"]:a.Ay["desktop-color-neutral-00-light"]};\n    width: ${A}px;\n    min-width: ${A}px;\n    height: ${A}px;\n    min-height: ${A}px;\n      ${n?`&:after {\n              content: '${n}';\n              font-size: 10px;\n              color: ${a.Ay[`desktop-color-text-3-${e}`]};\n              position: absolute;\n              top: -${i.kc};\n              background: ${a.Ay[`desktop-color-neutral-01-${e}`]};\n              border-radius: ${a.Ay["desktop-radius-base"]};\n              padding: 0 ${i.YC};\n            }`:""}\n  `}
`,T=e=>(0,l.A)(e,{shouldForwardProp:e=>!["margin"].includes(e)})`
  ${({device:e,client:A})=>e?"\n        width: 100%;\n        height: 100%;\n        margin: 0 auto;\n      ":A?"max-width: 80%; max-height: 80%;":""};
  ${({margin:e})=>`\n    ${e?`margin: ${e} !important;`:""};\n  `}
`,O=(0,l.A)("div")`
  position: absolute;
  top: -${s.Yk/2}px;
  left: -${s.Yk/2}px;
  width: ${s.Yk}px;
  height: ${s.Yk}px;
  z-index: 1;
`,I=(0,l.A)(n.A)`
  width: calc(${s.Yk}px + ${s.Yk/2/2}px);
`},282811:(e,A,t)=>{t.d(A,{A3:()=>C,Ay:()=>P,KN:()=>N,Rx:()=>S,lo:()=>M});var a=t(296540),n=t(118818),l=t(217439),r=t(718073),i=t(71479),o=t(998837),s=t(566723),c=t(613870),E=t(332898),m=t(294303),d=t(532114),u=t(881295),T=t(699784),O=t(996734),I=t(546343);const S=31,N=20,_={[O.qU.SUCCESS]:"green06",[O.qU.WARNING]:"orange06",[O.qU.DANGER]:"red06",[O.qU.MISSING]:"neutral06"},p=(0,i.A)("div")`
  position: absolute;
  top: 0;
  left: -${s.YC};
  right: -${s.YC};
  bottom: 0;
  pointer-events: auto;
`,R=({signal:e})=>a.createElement(c.A,{width:16,height:16,strength:e,color:(0,u._v)(e),inactiveColor:(0,o.u)().motifPalette.neutral05}),C=({signal_percent:e=0,dBm:A})=>{const{themeName:t}=(0,o.u)();return a.createElement(m.A,{gap:s.kc,style:{userSelect:"none"}},e>0?a.createElement(d.A,{colorOverride:(0,u._i)(e,t)},A," ",a.createElement(T.sA,{id:"COMMON_UNIT_DBM"})):a.createElement(l.A,{color:"text-3",size:"medium"},a.createElement(T.sA,{id:"COMMON_NO_SIGNAL"})),a.createElement(E.A,{width:S,height:N,signal_percent:e}))},M=({signal:e,children:A})=>a.createElement(m.A,{gap:s.YC,style:{userSelect:"none"}},void 0!==e?a.createElement(R,{signal:e}):null,a.createElement(l.A,{color:"text-3",size:"medium"},A)),P=({statusCode:e,statusBallTooltip:A,slot:t,title:i,message:c,status:E,esim:d,card_present:u,isCompact:T})=>{const{motifPalette:O,motifPalette:{neutral03:S}}=(0,o.u)();return a.createElement(a.Fragment,null,a.createElement(m.A,{flexDirection:"column",flex:1,height:32},a.createElement(m.A,{borderBottom:T?void 0:`1px solid ${S}`,padding:T?void 0:s.YC,height:T?27:void 0,gap:s.kc,alignItems:"center"},a.createElement(m.A,{justifyContent:"center",alignItems:"center",position:"relative",pointerEvents:"none"},a.createElement(n.A,{color:O[_[e]]}),A?a.createElement(r.A,{description:A,placement:"top start"},a.createElement(p,null)):null),a.createElement(m.A,{width:70},a.createElement(l.A,{weight:"bold",size:"medium"},i||a.createElement(I.m$,{esim:d,slot:t,weight:T?"regular":"bold"}))),c?a.createElement(m.A,{width:T?"auto":150,flex:1},c):null,a.createElement(m.A,{...c?{width:90}:{flex:1},justifyContent:"flex-end"},E))))}},283455:(e,A,t)=>{t.d(A,{VN:()=>R,ck:()=>C,qV:()=>M});var a=t(801081),n=t(59308),l=t(269672),r=t(189601),i=t(25553),o=t(793177),s=t(87485);var c=t(531046);let E=null;const m=(0,r.WY)(({model:e,queryParams:A},{model:t,queryParams:a})=>e.lastFetchTime===t.lastFetchTime&&A.start===a.start&&A.end===a.end)((0,a.Mz)(e=>{return A=(({startDate:e,endDate:A})=>({start:e.getTime(),end:A.getTime()}))((0,o.kR)(e)),{model:(t=(0,i.JC)(c.A2,e.models,{queryParams:A},{idField:c.RR}),!t.isLoading&&t.lastFetchTime?(E={...A},t):(0,i.JC)(c.A2,e.models,{queryParams:E},{idField:c.RR})),queryParams:A};var A,t},e=>e),e=>e),d=(0,a.Mz)(m,({model:e})=>(0,s.kh)(e)[0]?.hotspotPayments||[]),u=(0,a.Mz)(m,({model:e})=>e.isLoading);var T=t(116351),O=t(337040),I=t(997918);const S=(e,A)=>!A||A.has(e[I.P._ID]),N=Object.values({}),_=(e,A)=>N.every(t=>t(e,A));var p=t(43399);const R=(0,a.Mz)(d,T.ls,(e,A)=>e.map(e=>({...e,[I.P.HOTSPOT_PACKAGE]:A.find(({name:A})=>A===e[I.P.PACKAGE])||{}}))),C=(0,a.Mz)(R,(0,n.U)(l.U4.HOTSPOT_PAYMENTS),p.S,(e,A,t)=>{const a=[];for(let n=0;n<e.length;n+=1){const l=e[n];S(l,A)&&_(l,t)&&a.push(l)}return a}),M=(0,a.Mz)(u,O.K,(e,A)=>e||A)},292170:(e,A,t)=>{t.d(A,{IL:()=>c,Ih:()=>s,Rf:()=>i,eS:()=>o,pZ:()=>E});var a=t(822336),n=t(939703),l=t(6521),r=t(725242);const i=e=>({style:{color:e}}),o=()=>({variant:"fill",className:r.k}),s=(e,A)=>{switch(e){case l.v.HIGH:return{color:a.Ay[`desktop-color-red-06-${A}`],background:(0,n.b_)(a.Ay[`desktop-color-red-06-${A}`],.1)};case l.v.MEDIUM:default:return{color:a.Ay[`desktop-color-orange-06-${A}`],background:"inherit"}}},c=e=>r.T[e]?.id||"COMMON_UNKNOWN_ERROR",E=(e,A)=>r.T[e]?.values?.(A)||{}},296968:(e,A,t)=>{var a;t.d(A,{x:()=>a}),function(e){e.MAIN="main",e.SETTINGS="settings"}(a||(a={}))},297465:(e,A,t)=>{t.d(A,{OL:()=>s,fX:()=>c,UY:()=>E,P5:()=>o});var a=t(691189),n=t(742920),l=t(294201),r=t(953141);const i="/api/s/{site}/cmd/hotspot",o=(e={},A={})=>(0,a.t9)("hotspotVouchers","/api/s/{site}/stat/voucher",e,{idField:"_id",...A}),s=e=>(0,a.Xj)(l.A.CREATE_VOUCHER,i,e,{failureToast:(e,A)=>({icon:n.C.danger,message:"HOTSPOT_VOUCHER_CREATE_ERROR",errorMessage:r.r[A.apiMsg],errorValues:A})}),c=e=>(0,a.Xj)(l.A.DELETE_VOUCHER,i,{_id:e},{failureToast:(e,A)=>({icon:n.C.danger,message:"HOTSPOT_VOUCHER_REVOKE_ERROR",values:{count:1},errorMessage:r.r[A.apiMsg],errorValues:A})}),E=(e,A=!1)=>(0,a.Xj)(l.A.DELETE_VOUCHERS,i,A?{all:!0}:{ids:e},{failureToast:(A,t)=>({icon:n.C.danger,message:"HOTSPOT_VOUCHER_REVOKE_ERROR",values:{count:e.length},errorMessage:r.r[t.apiMsg],errorValues:t})})},305434:(e,A,t)=>{t.d(A,{A:()=>T});var a=t(469733),n=t(296540),l=t(840279),r=t(556456),i=t(136048),o=t(596731),s=t(524332);const c=(0,n.memo)(({path:e,style:A={}})=>{const t=(0,n.useRef)(),{onRouteContainerAdded:l,onRouteContainerRemoved:i}=(0,a.useSelector)(r.g0);return(0,n.useEffect)(()=>{const{current:A}=t;return l(e,A),()=>{i(e,A)}},[e,l,i]),n.createElement("div",{"data-swai-route-container":e,style:{...A,width:"100%",height:"100%"},ref:t})});var E=t(566723),m=t(334779);const d={[m.Z.MAIN]:void 0,[m.Z.SETTINGS]:void 0,[m.Z.SYSLOG]:{paddingTop:E.xO,paddingLeft:E.Ln,paddingRight:E.Ln,paddingBottom:E.Ln}},u=(e,A)=>()=>n.createElement(c,{path:`/${e}`,style:d[A]}),T=e=>(0,a.useSelector)((0,n.useMemo)(()=>{switch(e){case m.Z.MAIN:return r.yB;case m.Z.SETTINGS:return r.aB;case m.Z.SYSLOG:return r.YQ;default:return l.A}},[e])).map((e=>A=>n.createElement(i.F,{key:A[s.rR.PATH],path:`${o.eu}/${A[s.rR.PATH]}`,render:u(A[s.rR.PATH],e)}))(e))},306892:(e,A,t)=>{t.d(A,{A:()=>a});const a={MIN:1,MAX:65535}},307330:(e,A,t)=>{t.d(A,{I:()=>n});var a=t(564985);const n=[a.sx.RADIO_NG,a.sx.RADIO_NA,a.sx.RADIO_6E,a.sx.RADIO_AD]},310067:(e,A,t)=>{t.d(A,{A:()=>o});var a=t(296540),n=t(822336),l=t(71479),r=t(294303);const i=(0,l.A)(r.A)`
  width: 8px;
  height: 8px;
  background: linear-gradient(
    to bottom,
    ${({theme:{themeName:e}})=>n.Ay[`desktop-color-aqua-06-${e}`]} 37.5%,
    transparent 37.5%,
    transparent 62.5%,
    ${({theme:{themeName:e}})=>n.Ay[`desktop-color-purple-06-${e}`]} 62.5%,
    ${({theme:{themeName:e}})=>n.Ay[`desktop-color-purple-06-${e}`]} 100%
  );
`,o=e=>a.createElement(i,{...e})},318787:(e,A,t)=>{t.d(A,{A:()=>E});var a=t(469733),n=t(296540),l=t(64741),r=t(429252),i=t.n(r),o=t(200826),s=t(789768);const c=(e,A)=>e?{id:e,isAscending:A}:void 0,E=e=>{const A=(0,a.useDispatch)(),{sortBy:t,isAscending:r}=(0,o.A)(e),[E,m]=(0,n.useState)(c(t,r)),d=(0,n.useMemo)(()=>(0,l.A)((t,a)=>{i()(t,a)||A((0,s.yT)(e,{sortBy:t?.id,isAscending:t?.isAscending}))},2e3),[A,e]);(0,n.useEffect)(()=>{d(E,c(t,r))},[E,d,t,r]);const u=(0,n.useCallback)((e,A)=>{m(c(e?.id,A))},[]);return(0,n.useMemo)(()=>[E,u],[E,u])}},319551:(e,A,t)=>{t.d(A,{A:()=>m,I:()=>E});var a=t(296540),n=t(888170),l=t(118818),r=t(259902),i=t(71479),o=t(691294);const s=(0,i.A)(l.A,{shouldForwardProp:e=>!["marginLeft","marginRight"].includes(e)})`
  width: 6px;
  height: 6px;
  ${({marginLeft:e})=>e&&`margin-left: ${e}px;`}
  ${({marginRight:e})=>e&&`margin-right: ${e}px;`}
`,c=(0,i.A)(r.A,{shouldForwardProp:e=>!["marginLeft","marginRight"].includes(e)})`
  width: 13px;
  height: 13px;
  color: ${n.Ay["white-6"]};
  ${({marginLeft:e})=>e&&`margin-left: ${e}px;`}
  ${({marginRight:e})=>e&&`margin-right: ${e}px;`}
`,E=(e,A,t)=>A===o.S2.ONLINE?"success":e!==o.sK.VPN&&e!==o.sK.TELEPORT&&t?"danger":"neutral",m=(0,a.memo)(({status:e,marginLeft:A=5,marginRight:t=12})=>"blocked"===e?a.createElement(c,{marginLeft:A-3,marginRight:t-3}):a.createElement(s,{variant:e,marginLeft:A,marginRight:t}))},325982:(e,A,t)=>{t.d(A,{ej:()=>P,GH:()=>D,L2:()=>f});var a=t(801081),n=t(189601),l=t(955615),r=t(532419),i=t(239417),o=t(6510),s=t(780811),c=t(951106),E=t(691294);const m=e=>"state"in e?(0,o.Q)(e):(e.name?(0,c.tn)(e):void 0)||e.display_name||e.mac;var d=t(165126),u=t(311135);const T=({isOnline:e})=>e,O=({isOnline:e})=>!e,I=({isFixed:e})=>e,S=({isFixed:e})=>!e,N={[u.Gr.SEARCH]:()=>!0,[u.Gr.NETWORK_ID]:()=>!0,[u.Gr.STATUS]:(e,A)=>!A[u.Gr.STATUS].length||Object.values({[u.EF.ONLINE]:A[u.Gr.STATUS].includes(u.EF.ONLINE)&&T(e),[u.EF.OFFLINE]:A[u.Gr.STATUS].includes(u.EF.OFFLINE)&&O(e)}).some(e=>e),[u.Gr.LEASE_TYPE]:(e,A)=>!A[u.Gr.LEASE_TYPE].length||Object.values({[u.iY.FIXED]:A[u.Gr.LEASE_TYPE].includes(u.iY.FIXED)&&I(e),[u.iY.DYNAMIC]:A[u.Gr.LEASE_TYPE].includes(u.iY.DYNAMIC)&&S(e)}).some(e=>e),[u.Gr.ACCESS_POINTS]:(e,A)=>!A[u.Gr.ACCESS_POINTS].length||A[u.Gr.ACCESS_POINTS].includes(e.uplink_mac),[u.Gr.BROADCASTS]:(e,A)=>!A[u.Gr.BROADCASTS].length||A[u.Gr.BROADCASTS].includes(e.essid)},_=Object.values(N),p=(e,A)=>_.every(t=>t(e,A)),R=({name:e="",hostname:A="",mac:t=""},a)=>!a||(e.toLowerCase().includes(a.toLowerCase())||A.toLowerCase().includes(a.toLowerCase())||t.toLowerCase().includes(a.toLowerCase()));var C=t(427007);const M=(0,n.WY)()((0,a.Mz)(i.A8,r.ID,(e,A)=>({...e.reduce((e,A)=>("mac"in A&&(e[A.mac]={uplink_mac:"uplink_mac"in A?A.uplink_mac:void 0,essid:"essid"in A?A.essid:void 0}),e),{}),...A.reduce((e,A)=>(e[A.mac]={uplink_mac:A.uplink?.uplink_mac,essid:void 0},e),{})})),e=>e),P=e=>(0,n.WY)()((0,a.Mz)((0,l.T)(e),M,({dhcp_lease_info:e=[]},A)=>{return e.map((t=A,e=>({id:e.mac,isOnline:"state"in e?!(0,s.aK8)(e.state):!("status"in e)||e.status===E.S2.ONLINE,isFixed:Boolean(e.use_fixedip),name:m(e),hostname:"hostname"in e?e.hostname:void 0,status:"state"in e?e.state:e.status,ip:e.ip,mac:e.mac,local_dns_record:e.local_dns_record,leaseTime:void 0,leaseExpirationTime:e.lease_expiration_time,deviceLease:"state"in e?e:void 0,clientLease:"status"in e?e:void 0,network_id:"network_id"in e?e.network_id:void 0,uplink_mac:t[e.mac]?.uplink_mac,essid:t[e.mac]?.essid})));var t}),e=>e),D=e=>(0,n.WY)()((0,a.Mz)(P(e),C.c0,C.zO,(e,A,t)=>{const a=[],n=e.length;for(let l=0;l<n;l+=1){const n=e[l];R(n,A)&&p(n,t)&&a.push(n)}return a}),e=>e),f=(e,A)=>(0,n.WY)()((0,a.Mz)(P(e),C.zO,(e,t)=>{return a=Object.values((n=A,(0,d.A)(N,n))),e.filter(e=>a.every(A=>A(e,t)));var a,n}),e=>e)},332898:(e,A,t)=>{t.d(A,{A:()=>s});var a=t(296540),n=t(822336),l=t(998837),r=t(881295),i=t(371207);const o=({height:e,width:A,strength:t=0,color:n="currentColor",inactiveColor:l="currentColor"})=>a.createElement("svg",{width:A,height:e,viewBox:"0 0 31 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("rect",{width:"2.2",height:"10",rx:"1",fill:t>=1?n:l}),a.createElement("rect",{x:"3.2",width:"2.2",height:"10",rx:"1",fill:t>=2?n:l}),a.createElement("rect",{x:"6.4",width:"2.2",height:"10",rx:"1",fill:t>=3?n:l}),a.createElement("rect",{x:"9.6",width:"2.2",height:"10",rx:"1",fill:t>=4?n:l}),a.createElement("rect",{x:"12.8",width:"2.2",height:"10",rx:"1",fill:t>=5?n:l}),a.createElement("rect",{x:"16",width:"2.2",height:"10",rx:"1",fill:t>=6?n:l}),a.createElement("rect",{x:"19.2",width:"2.2",height:"10",rx:"1",fill:t>=7?n:l}),a.createElement("rect",{x:"22.4",width:"2.2",height:"10",rx:"1",fill:t>=8?n:l}),a.createElement("rect",{x:"25.6",width:"2.2",height:"10",rx:"1",fill:t>=9?n:l}),a.createElement("rect",{x:"28.8",width:"2.2",height:"10",rx:"1",fill:t>=10?n:l})),s=({height:e,signal_percent:A,width:t})=>{const{themeName:s}=(0,l.u)(),{strength:c,color:E,inactiveColor:m}=(0,a.useMemo)(()=>({strength:(0,i.O)(A),color:(0,r._i)(A,s),inactiveColor:n.Ay[`desktop-color-neutral-05-${s}`]}),[A,s]);return a.createElement(o,{height:e,width:t,strength:c,color:E,inactiveColor:m})}},334779:(e,A,t)=>{var a;t.d(A,{Z:()=>a}),function(e){e.MAIN="main",e.SETTINGS="settings",e.SYSLOG="syslog"}(a||(a={}))},336576:(e,A,t)=>{t.d(A,{A:()=>p});var a=t(801081),n=t(189601),l=t(296540),r=t(472797),i=t(627440),o=t(789149);const s=({currentPage:e,preloadTranslation:A,getRouteHref:t})=>l.createElement(r.A,{...(0,o.E)({currentPage:e,preloadTranslation:A,getRouteHref:t})[i.VO.PORTS]});var c=t(808294),E=t(956347),m=t(136048),d=t(469733),u=t(415331);const T=e=>{const A=(0,d.useSelector)(c.hy);return l.createElement(u.A,{routes:A,...e})};var O=t(24699),I=t(596731);const S={[O.o.PORTS]:I.Si[i.VO.PORTS],[O.o.AV_MANAGER]:`${I.Si[i.VO.PORTS]}/${O.o.AV_MANAGER}`},N=()=>l.createElement(l.Fragment,null,l.createElement(l.Suspense,{fallback:null},l.createElement(E.dO,null,l.createElement(m.F,{path:S[O.o.AV_MANAGER],render:e=>l.createElement(T,{id:O.o.AV_MANAGER,...e})}),l.createElement(m.F,{path:I.Si[i.VO.PORTS],render:e=>l.createElement(T,{id:O.o.PORTS,...e})}))));var _=t(221649);const p=(0,n.WY)()((0,a.Mz)(c.U7,e=>({[i.o9.ROUTE_COMPONENT]:N,[i.o9.SIDE_NAVIGATION]:s,[i.o9.ROUTE]:{[i.Fm.AVAILABLE]:e},[i.o9.NAVIGATION]:{[i.mx.AVAILABLE]:e},[i.o9.DEPENDENCIES]:_.I[i.VO.PORTS]})),e=>e)},337040:(e,A,t)=>{t.d(A,{E:()=>o,K:()=>s});var a=t(801081),n=t(25553),l=t(87485),r=t(345558);const i=(0,n.uh)((0,r._)()),o=(0,a.Mz)(i,l.i6),s=(0,a.Mz)(i,l.RQ)},345558:(e,A,t)=>{t.d(A,{_:()=>l});var a=t(691189);const n="hotspotConfig",l=(e={},A={})=>(0,a.Kd)(n,"/api/stat/s/{site}/hotspotconfig",n,e,A)},354123:(e,A,t)=>{t.d(A,{jf:()=>N,yW:()=>_,uv:()=>p,JF:()=>T,j$:()=>I,Im:()=>M,Yz:()=>u,_E:()=>R,se:()=>C,iY:()=>O,RH:()=>d,lv:()=>S});var a=t(801081),n=t(429252),l=t.n(n);const r=e=>Math.floor(e.getTime()/1e3);var i=t(919952),o=t(580872),s=t(664967),c=t(584916);const E=[s.E[c.l.THIRTY_MINUTES],s.E[c.l.ONE_HOUR],s.E[c.l.ONE_DAY],s.E[c.l.ONE_WEEK],s.E[c.l.ONE_MONTH]];var m=t(950033);const d=e=>e[i.U.WIFI_SCANNER],u=(0,a.Mz)(d,({pageNumber:e})=>e),T=(0,a.Mz)(d,({dateRange:e})=>e),O=(0,a.Mz)(d,({dateRange:e})=>({start:r(e.startDate),end:r(e.endDate)})),I=(0,a.Mz)(T,({startDate:e,endDate:A})=>E.map(t=>{return a=t.getRange(new Date),{...t,range:a,selected:l()(e,a.startDate)&&l()(A,a.endDate)};var a})),S=(0,a.Mz)(d,({subsection:e})=>e),N=(0,a.Mz)(d,({band:e})=>e||[]),_=(0,a.Mz)(d,({channelWidth:e})=>e||[]),p=(0,a.Mz)(d,({channel:e})=>e||[]),R=(0,a.Mz)(d,({security:e})=>e||[]),C=(0,a.Mz)(d,({signal:e})=>e||[]),M=(0,a.Mz)(d,({dateRange:e,band:A,channelWidth:t,channel:a,security:n,signal:r})=>!(e.preset===m.e[o.G9.DATE_RANGE].preset&&l()(A,m.e[o.G9.BAND])&&l()(t,m.e[o.G9.CHANNEL_WIDTH])&&l()(a,m.e[o.G9.CHANNEL])&&l()(n,m.e[o.G9.SECURITY])&&l()(r,m.e[o.G9.SIGNAL])))},355944:(e,A,t)=>{t.d(A,{default:()=>o});var a=t(956347),n=t(296540),l=t(928085),r=t(959341),i=t(771641);const o=()=>{const e=(0,a.W6)(),A=!0,t=(0,l.A)(r._L),o=(0,n.useCallback)(()=>{e.push(t)},[e,t]);return(0,n.useMemo)(()=>({[i.q.AVAILABLE]:A,[i.q.REDIRECT]:o}),[A,o])}},360146:(e,A,t)=>{t.d(A,{P4:()=>i,WC:()=>c,Yk:()=>n,f$:()=>o,g1:()=>r,jo:()=>a,oT:()=>s,ur:()=>l});const a=2,n=40,l=16,r=2*l,i=16,o=2*a,s=24,c={cursorType:"pointer",portal:!0,width:252}},361461:(e,A,t)=>{t.a(e,async(e,a)=>{try{t.r(A),t.d(A,{default:()=>R});var n=t(296540),l=t(956347),r=t(469733),i=t(136048),o=t(721544),s=t(108916),c=t(596731),E=t(187483),m=t(602021),d=t(198494),u=t(727270),T=t(851226),O=e([T]),I=O.then?(await O)():O;T=I[0];const S=(0,n.lazy)(()=>Promise.all([t.e(70893),t.e(1758),t.e(91912),t.e(46880),t.e(83770),t.e(40124),t.e(73740),t.e(74925),t.e(43020),t.e(13015),t.e(10916),t.e(69029),t.e(61592),t.e(89195),t.e(48787),t.e(83102)]).then(t.bind(t,762934))),N=(0,n.lazy)(()=>t.e(81696).then(t.bind(t,719713))),_=(0,o.A)(N),p=({isNetworkServer:e})=>{const A=(0,r.useSelector)(s.M9),t=(0,r.useSelector)(d.GP),a=(0,r.useSelector)(E.bI),o=(0,r.useSelector)(m.AF),O=(0,r.useSelector)(E.qm),I=(0,n.useCallback)(r=>{if(e){if(A)return null;if(!t)return a&&(window.location.href=`${u.DU}account.ui.com/login?redirect=${window.location.href}`),n.createElement(l.rd,{to:"/login"})}return o?n.createElement(S,{...r,showNetworkServerHeader:O}):n.createElement(T.A,{...r,showNetworkServerHeader:O})},[A,a,e,t,O,o]);return n.createElement(n.Suspense,{fallback:null},n.createElement(l.dO,null,n.createElement(i.F,{path:"/login",component:_}),n.createElement(i.F,{path:c.eu,render:I})))},R=(0,n.memo)(p);a()}catch(e){a(e)}})},368116:(e,A,t)=>{t.d(A,{WE:()=>O,Dd:()=>I,a0:()=>S,Ko:()=>T,ir:()=>d});var a=t(141470),n=t(59116),l=t(564985),r=t(439173),i=t(736201);const o=(e,A)=>{const t=r.R[e],a=t[20],n=Object.keys(a).map(e=>+e).sort((e,A)=>(a[e]?.centerFrequency||0)-(a[A]?.centerFrequency||0)),l=((e,A)=>{const t=[];return Object.keys(e).filter(e=>e.startsWith(`channels_${A}`)).forEach(A=>{const a=A.split("_")[2];e[A].length>0&&(void 0===a||!Number.isNaN(+a))&&(t.push(void 0===a?i.P:+a),t.sort((e,A)=>e-A))}),t})(A,e),o=n.length+1,s=l.length;return l.reduce((e,A,a)=>Object.entries(t[A]).reduce((e,[t,{subChannels:l}])=>{const r=a+1,i=n.indexOf(l[0])+1,o=n.indexOf(l[l.length-1])+1+1;return e.channels[A]={...e.channels[A]||{},[t]:{row:r,from:i,to:o}},e},e),{columns:o,rows:s,cellWidth:16,channels:{}})},s=e=>{const A=o(l.sx.RADIO_6E,e),t=A.channels[320]?Object.entries(A.channels[320]).reduce((e,[A,t],a)=>(e[A]={...t,row:t.row+(a%2==1?1:0)},e),A.channels[320]):{};return{...A,...t,rows:A.rows+1}},c=(e,A)=>{switch(e){case 20:return Number(A)<=125;case 40:return Number(A)<=123;case 80:return Number(A)<=119;case 160:return Number(A)<=111;case 320:return Number(A)<=127;default:return!0}},E=e=>{const A=Object.values(e.channels).flatMap(e=>Object.values(e).flatMap(({to:e,from:A})=>[e,A])),t=Math.min(...A),a=Math.max(...A);return{...e,columns:a-t+1,channels:(0,n.A)(e.channels,e=>(0,n.A)(e,({from:e,to:A,...a})=>({from:e-t+1,to:A-t+1,...a})))}},m=(e,A,t)=>Object.keys(r.R[l.sx.RADIO_NG][e]).reduce((e,a,n)=>{const l=A*n+1;return e[a]={from:l,to:l+A,row:t},e},{}),d=(e,A,t)=>A?{columns:2*Object.keys(r.R[l.sx.RADIO_NG][20]).length+1,rows:2,cellWidth:5,channels:{20:{...m(20,2,1),14:{custom:t,from:27,to:29,row:1}},40:m(40,3,2)}}:{columns:6,rows:2,cellWidth:5,channels:{20:{1:{from:1,to:3,row:1},6:{from:3,to:5,row:1},11:{from:5,to:7,row:1},12:{custom:t,from:7,to:9,row:1}},40:{3:{from:1,to:4,row:2},11:{from:4,to:7,row:2}}}},u=[169,173,177,167,175,171,163],T=e=>{const A=o(l.sx.RADIO_NA,e);return E({...A,channels:(0,n.A)(A.channels,e=>(0,a.A)(e,(e,A)=>!u.includes(Number(A))))})},O=e=>E(s(e)),I=e=>{const A=s(e),t=(0,n.A)(A.channels,(e,A)=>(0,a.A)(e,(e,t)=>c(Number(A),Number(t))));return E({...A,channels:t})},S=e=>{const A=s(e),t=(0,n.A)(A.channels,(e,A)=>(0,a.A)(e,(e,t)=>!c(Number(A),Number(t))));return E({...A,channels:t})}},371207:(e,A,t)=>{t.d(A,{O:()=>n});const a=[[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 A=a.findIndex(([A,t])=>e>=A&&e<=t);return-1===A?0:A}},372382:(e,A,t)=>{t.d(A,{A:()=>i});var a=t(296540),n=t(951272),l=t(86838),r=t(79760);const i=({fieldName:e,validationMessageProps:A={}})=>{const{errors:t,touched:i,submitCount:o}=(0,n.j7)(),s=(0,r.t$)(e,t,i,o);return s?a.createElement(l.A,{isInvalid:!0,style:{padding:0},...A,label:s}):null}},372737:(e,A,t)=>{var a;t.d(A,{U:()=>a}),function(e){e.ARROW_DOWN="ArrowDown",e.ARROW_UP="ArrowUp",e.ENTER="Enter",e.ESCAPE="Escape"}(a||(a={}))},380367:(e,A,t)=>{t.d(A,{default:()=>E});var a=t(956347),n=t(469733),l=t(296540),r=t(15095),i=t(932357),o=t(627440),s=t(874807),c=t(771641);const E=()=>{const e=(0,a.W6)(),A=(0,r.A)(o.VO.DEVICES),t=(0,n.useSelector)(i.A),E=(0,l.useMemo)(()=>t[o.o9.NAVIGATION][o.mx.AVAILABLE],[t]),m=(0,l.useCallback)((t=s.P1)=>{t(),e.push(A)},[e,A]);return(0,l.useMemo)(()=>({[c.q.AVAILABLE]:E,[c.q.REDIRECT]:m}),[E,m])}},383225:(e,A,t)=>{t.d(A,{A:()=>o});var a=t(469733),n=t(296540),l=t(217439),r=t(699784),i=t(302167);const o=()=>n.createElement(l.A,{color:"text-3",size:"small"},n.createElement(r.sA,{id:"COMMON_WIFI_CHANNELIZATION_NOT_AVAILABLE_REGION",values:{countryCode:(0,a.useSelector)(i.AP)}}))},385273:(e,A,t)=>{t.d(A,{Mi:()=>N,Bp:()=>_,lc:()=>p,Eg:()=>S,Wm:()=>I});var a=t(801081),n=t(189601),l=t(834959),r=t(282556),i=t(807516),o=t(532419),s=t(691294),c=t(239417),E=t(943887),m=t(903216),d=t(6510),u=t(951106);const T=(e,A,t,a)=>{const n=(0,u.ei)(A,e),l="fingerprint"in e?e.fingerprint:void 0,r="oui"in e?e.oui:void 0,i=(0,c.lP)(t,l),o=i?.fingerprint_device_vendor,T=i?.fingerprint_device_name,O={id:e.id,ip:e.ip,name:e.name,display_name:e.display_name,type:e.type,uplink:n,uplinkName:n&&(0,d.Q)(n)||"",vendor:(o?String(o):r)||void 0,fingerprint_device_name:T||void 0,assoc_time:e.assoc_time,status:e.status,tags:e.tags};switch(O.type){case s.sK.TELEPORT:e.type===s.sK.TELEPORT&&(O.uniqueId=e.id,O.search_connection=a.COMMON_TELEPORT);break;case s.sK.VPN:e.type===s.sK.VPN&&(O.uniqueId=e.id,O.remote_ip=e.remote_ip,O.network_id=e.network_id,O.network_name=e.network_name,O.search_connection=a.COMMON_VPN,O["rx_bytes-r"]=e["rx_bytes-r"],O["tx_bytes-r"]=e["tx_bytes-r"]);break;case s.sK.WIRED:e.type===s.sK.WIRED&&(O.is_wired=e.is_wired,O.sw_port=e.sw_port,O.wired_rate_mbps=e.wired_rate_mbps,O.ipv4_lease_expiration_timestamp_seconds=e.ipv4_lease_expiration_timestamp_seconds,O.last_connection_network_name=e.last_connection_network_name,O.last_ip=e.last_ip,O.search_connection=a.COMMON_WIRED,O.search_wired_experience=(0,m.ir)(e.wired_rate_mbps),O.ipv6_address=e.ipv6_address?e.ipv6_address:[]);break;case s.sK.WIRELESS:e.type===s.sK.WIRELESS&&(O.ap_mac=e.ap_mac,O.channel=e.channel,O.channel_width=e.channel_width,O.essid=e.essid,O.eagerly_discovered=e.eagerly_discovered,O.radio=e.radio,O.radio_proto=e.radio_proto,O.fixed_ap_enabled=e.fixed_ap_enabled,O.mimo=e.mimo,O.ipv4_lease_expiration_timestamp_seconds=e.ipv4_lease_expiration_timestamp_seconds,O.last_connection_network_name=e.last_connection_network_name,O.last_ip=e.last_ip,O.signal=e.signal,O.search_connection=a.COMMON_WIRELESS,O.search_wifi_standard=(0,u.z0)(e.radio_proto),O.search_radio_band=a[(0,E.dI)(e.radio)],O.is_mlo=e.is_mlo,O.mlo_details=e.mlo_details,O.wifi_experience_score=e.wifi_experience_score,O.ipv6_address=e.ipv6_address?e.ipv6_address:[])}return O.type!==s.sK.VPN&&O.type!==s.sK.TELEPORT&&e.type!==s.sK.VPN&&e.type!==s.sK.TELEPORT&&(O.uniqueId=`${e.id}-${e.assoc_time}`,O.blocked=e.blocked,O.fingerprint=e.fingerprint,O.first_seen=e.first_seen,O.last_seen=60*Math.floor((e.last_seen||0)/60),O.hostname=e.hostname,O.is_guest=e.is_guest,O.mac=e.mac,O.note=e.note,O.network_id=e.network_id,O.network_name=e.network_name,O.network_members_group_ids=e.network_members_group_ids,O.oui=e.oui,O.uplink_mac=n?.mac||e.uplink_mac,O.unifi_device_info=e.unifi_device_info,O.usage_bytes=e.usage_bytes,O["1x_identity"]=e["1x_identity"],O.vlan=e.vlan,O.use_fixedip=e.use_fixedip,O.fixed_ip=e.fixed_ip,O.local_dns_record_enabled=e.local_dns_record_enabled,O.local_dns_record=e.local_dns_record,O["rx_bytes-r"]=e["rx_bytes-r"],O["tx_bytes-r"]=e["tx_bytes-r"],O.ups_device=e.ups_device),O},O=(e,A,t,a)=>{const n=e.length,r=[],i=new Set;for(let o=0;o<n;o+=1){const n=e[o];n.type!==s.sK.VPN&&n.type!==s.sK.TELEPORT&&n.unifi_device||i.has(n.id)||(r.push(T(n,A,t,a[l.B.COMMON])),i.add(n.id))}return r},I=(0,n.WY)()((0,a.Mz)(c.A8,o.gt,i.y1,(0,r.AF)([l.B.COMMON]),O),e=>e),S=(0,n.WY)()((0,a.Mz)(c.fq,o.gt,i.y1,(0,r.AF)([l.B.COMMON]),O),e=>e),N=(0,n.WY)()((0,a.Mz)(c.xD,o.gt,i.y1,(0,r.AF)([l.B.COMMON]),O),e=>e),_=(0,n.WY)()((0,a.Mz)(c.qs,o.gt,i.y1,(0,r.AF)([l.B.COMMON]),O),e=>e),p=(0,n.WY)()((0,a.Mz)(I,S,_,(e,A,t)=>[...e,...A,...t]),e=>e)},387098:(e,A,t)=>{t.d(A,{F:()=>a});const a=(e,A,t)=>e.sort(({id:e},{id:a})=>{const n=A.findIndex(A=>A===e),l=A.findIndex(e=>e===a),r=t.findIndex(A=>A===e),i=t.findIndex(e=>e===a);return-1===n&&-1===l?0:-1===n||-1===l?r-i:n-l}).map(({id:e})=>e)},395521:(e,A,t)=>{t.d(A,{A:()=>d,v:()=>m});var a=t(469733),n=t(296540),l=t(648092),r=t(187483),i=t(982858),o=t(205908),s=t(893562),c=t(55897),E=t(183878);const m=({children:e})=>{const A=(0,a.useDispatch)(),t=(0,a.useSelector)(r.bI),i=(0,a.useSelector)(r.ub),s=(0,a.useSelector)(l.a),c=(0,n.useMemo)(()=>new E.A({dispatch:A,isWebrtc:t,webSocketPool:s,isHybridApp:i}),[]);return(0,n.useEffect)(()=>c.close,[]),n.createElement(o.L.Provider,{value:c},e)},d=({mac:e,children:A})=>{const t=(0,n.useContext)(o.L),[a,l]=(0,n.useState)(null),r=(0,n.useRef)([]),[m,d]=(0,n.useState)(i.y.OFF);(0,n.useEffect)(()=>{a&&(r.current=[a,...r.current].slice(0,2),(0,c.q5)(c.Vn.WAVEFORM,a))},[r,a]),(0,n.useEffect)(()=>{(async()=>{const e=await(0,c.KF)(c.Vn.WAVEFORM);e&&l(e)})()},[]),(0,n.useEffect)(()=>{if(t&&e)try{t.open(e),t.on(E.c.SCAN_RECEIVED,l),t.on(E.c.STATUS_UPDATED,d)}catch(e){0,d(i.y.FAILED)}return()=>{t.off(E.c.SCAN_RECEIVED,l),t.off(E.c.STATUS_UPDATED,d),t.leave()}},[e]);const u=(0,n.useMemo)(()=>({scan:a||s.O1,status:m}),[a,m]);return n.createElement(o.B.Provider,{value:u},A)}},396483:(e,A,t)=>{var a,n;t.d(A,{C:()=>n,w:()=>a}),function(e){e.ID="id",e.STATE="state",e.UP="up",e.LABEL="label"}(a||(a={})),function(e){e.HISTORY="history",e.ISP_NAME="ispName",e.ISP_ASN="ispAsn",e.NETWORK_GROUP="networkGroup"}(n||(n={}))},396688:(e,A,t)=>{t.d(A,{z:()=>l});var a=t(718556),n=t(939575);const l=e=>e[a.b.IS_RETURNING]?n.E.RETURNING:n.E.NEW},399818:(e,A,t)=>{t.d(A,{A:()=>d,S:()=>E});var a=t(296540),n=t(217439),l=t(38937),r=t(566723),i=t(486006),o=t(294303),s=t(699784),c=t(951106);const E=({signal:e,size:A})=>e?a.createElement(n.A,{size:A,color:(0,l.a5)(e)},e," ",a.createElement(s.sA,{id:"COMMON_UNIT_DBM"})):a.createElement(n.A,{size:A,color:"inherit"},a.createElement(s.sA,{id:"COMMON_FALLBACK"})),m=({mlo_details:e,size:A})=>{if(!e)return a.createElement(n.A,{color:"inherit",size:A},a.createElement(s.sA,{id:"COMMON_FALLBACK"}));const{signal:t}=(0,c.Wc)(e);return a.createElement(o.A,{flexDirection:"row",gap:r.YC},a.createElement(E,{signal:t,size:A}),a.createElement(i.Ay,{report:i.ZF.SIGNAL,mlo_details:e}))},d=(0,a.memo)(({is_mlo:e,signal:A,size:t="medium",mlo_details:n})=>e?a.createElement(m,{size:t,mlo_details:n}):a.createElement(E,{signal:A,size:t}))},401479:(e,A,t)=>{t.d(A,{A:()=>o});var a=t(296540);var n=t(822336),l=t(71479),r=t(294303);const i=(0,l.A)(r.A,{shouldForwardProp:e=>!["color","dimension"].includes(e)})`
  width: ${({dimension:e})=>e}px;
  height: ${({dimension:e})=>e}px;
  border-radius: 50%;
  background-color: ${({color:e})=>e};
  border: ${({theme:{themeName:e}})=>n.Ay[`desktop-border-divider-${e}`]};
`,o=({color:e,dimension:A=16})=>a.createElement(i,{color:e,dimension:A})},404474:(e,A,t)=>{t.a(e,async(e,a)=>{try{t.d(A,{A:()=>v});var n=t(296540),l=t(469733),r=t(513180),i=t(523275),o=t(840279),s=t(282556),c=t(622217),E=t(764892),m=t(603281),d=t(602021),u=t(198494),T=t(70378),O=t(826094),I=t(570636),S=t(808028),N=t(87582),_=t(155918),p=t(396483),R=t(18395),C=t(168703),M=t(598937),P=t(872836),D=e([R]),f=D.then?(await D)():D;R=f[0];const b=()=>{const e=(0,l.useSelector)(N.S1),A=(0,l.useSelector)(c.CN),t=(0,l.useSelector)(I.L),a=(0,l.useSelector)(T.x),D=(0,l.useSelector)(s.zi),f=(0,l.useSelector)(u.BQ),b=(0,l.useSelector)(d.hq),v=(0,n.useMemo)(()=>new Intl.DateTimeFormat(D,{month:"short",day:"numeric",hour:"numeric",minute:"numeric",hourCycle:f,timeZone:b}),[D,f,b]),{[C.x.CURRENT_WAN_DETAILS]:L,[C.x.CURRENT_WAN_HISTORY_DETAILS]:h,[C.x.CURRENT_WAN_UPTIME]:y,[C.x.INITIAL_WAN_TAB]:z,[C.x.HEALTH_HISTORIES]:g,[C.x.DOWNTIME_HISTORY]:x,[C.x.NETWORK_GROUP_DETAILS]:W}=(0,n.useMemo)(()=>(e=>({[C.x.CURRENT_WAN_DETAILS]:t.find(e=>e[S.YQ.NETWORK_GROUP]===A)||(0,i.A)(),[C.x.CURRENT_WAN_HISTORY_DETAILS]:e,[C.x.CURRENT_WAN_UPTIME]:e[O.w5.UPTIME]||0,[C.x.INITIAL_WAN_TAB]:(t.find(e=>e[S.YQ.STATUS]?.[S.qg.STATE]===S.MY.UP)||(0,i.A)())[S.YQ.NETWORK_GROUP]||void 0,[C.x.HEALTH_HISTORIES]:a.reduce((e,A)=>(A[O.w5.NETWORK_GROUP]&&A[O.w5.NETWORK_GROUP]!==r.C.WAN_LTE_FAILOVER&&e.push({[p.C.HISTORY]:A[O.w5.HEALTH_HISTORY]||(0,o.A)(),[p.C.ISP_NAME]:A?.[O.w5.ISP_NAME]||void 0,[p.C.ISP_ASN]:A?.[O.w5.ISP_ASN]||0,[p.C.NETWORK_GROUP]:A[O.w5.NETWORK_GROUP]}),e),[])||(0,o.A)(),[C.x.DOWNTIME_HISTORY]:e[O.w5.DOWNTIME_HISTORY]||(0,o.A)(),[C.x.NETWORK_GROUP_DETAILS]:t.reduce((e,A)=>(A[S.YQ.NETWORK_GROUP]&&A[S.YQ.NETWORK_GROUP]!==r.C.WAN_LTE_FAILOVER&&e.push({[p.w.ID]:A[S.YQ.NETWORK_GROUP],[p.w.STATE]:A[S.YQ.STATUS]?.[S.qg.STATE]||void 0,[p.w.UP]:A[S.YQ.STATUS]?.[S.qg.UP]??!1,[p.w.LABEL]:A[S.YQ.NETWORK_NAME]||""}),e),[])}))(a.find(e=>e[O.w5.NETWORK_GROUP]===A)||(0,i.A)()),[t,a,A]),H=(0,R.A)(),w=(0,n.useMemo)(()=>[v.format(e[_.J.START_TIMESTAMP]).replace(",",""),v.format(e[_.J.END_TIMESTAMP]).replace(",","")].join(" - "),[v,e]),U=(0,n.useMemo)(()=>{return e=L[S.YQ.ISP]?.[S.mu.NAME]||void 0,{[C.x.CURRENT_WAN_DETAILS]:L,[C.x.CURRENT_WAN_HISTORY_DETAILS]:h,[C.x.CURRENT_WAN_UPTIME]:y,[C.x.INITIAL_WAN_TAB]:z,[C.x.IS_WAN_CONNECTED]:L[S.YQ.STATUS]?.[S.qg.STATE]===S.MY.UP,[C.x.HEALTH_HISTORIES]:g,[C.x.DOWNTIME_HISTORY]:x,[C.x.DATE_TIME_FORMAT]:v,[C.x.REDIRECTOR]:H,[C.x.TOOLTIP_TIME_RANGE]:w,[C.x.NETWORK_GROUP_DETAILS]:W,[C.x.HAS_MULTIPLE_WANS]:W.length>1,[C.x.MBB_STATUS]:L[S.YQ.STATUS]?.[S.qg.MBB_STATUS]||(0,i.A)(),[C.x.ISP_NAME]:e,[C.x.ISP_ASN]:L[S.YQ.ISP]?.[S.mu.ASN]||0,[C.x.CURRENT_ISP_ID]:(0,P.j)(A,e)};var e},[v,H,w,A,L,h,y,z,g,x,W]);return n.createElement(M.A.Provider,{value:U},n.createElement(E.A,null),n.createElement(m.A,null))},v=(0,n.memo)(b);a()}catch(e){a(e)}})},404868:(e,A,t)=>{t.d(A,{A:()=>o});var a=t(296540),n=t(897547),l=t(771641),r=t(147883);const i=(0,t(71479).A)("div")`
  margin-left: auto;
  > div:first-child {
    width: 12px;
    justify-content: flex-end;
  }
`,o=(0,a.memo)(({redirector:e,onBeforeRedirect:A})=>{const t=(0,a.useCallback)(()=>{A?.(),e[l.q.REDIRECT]()},[e,A]);return e[l.q.AVAILABLE]?a.createElement(i,null,a.createElement(n.A,{className:r.o,omitSvgMargin:!0,actionable:!0,size:"small",onClick:t})):null})},409912:(e,A,t)=>{t.d(A,{w:()=>i});var a=t(801081),n=t(523275),l=t(187483),r=t(448547);const i=(0,a.Mz)(l.nx,e=>e[r.Y7.ETPRO_ADAPTER]||(0,n.A)())},415331:(e,A,t)=>{t.d(A,{A:()=>c});var a=t(296540),n=t(582724),l=t(627440),r=t(956347),i=t(596731);const o=[l.VO.ADMINS],s=({id:e,routes:A,...t})=>o.includes(e)?null:a.createElement(r.rd,{to:(0,r.tW)(A[e][l.o9.REDIRECT_WHEN_UNAVAILABLE]?.[l.W4.PATH]||i.Si[l.VO.DASHBOARD],t.match.params)}),c=(0,a.memo)(e=>{const A=e.routes[e.id],t=A[l.o9.ROUTE_COMPONENT];return(0,n.A)(A[l.o9.DEPENDENCIES]||[],A[l.o9.ROUTE][l.Fm.AVAILABLE]?a.createElement(t,{...e}):a.createElement(s,{...e}))})},421851:(e,A,t)=>{t.d(A,{A:()=>i});var a=t(296540),n=t(874807),l=t(732063);const r={[l.V.HEIGHT]:void 0,[l.V.DASHBOARD_MINIMIZED]:void 0,[l.V.SET_DASHBOARD_MINIMIZED]:n.P1,[l.V.PRELOAD_DEVICES]:n.P1,[l.V.PRELOAD_UNIFI_DEVICES]:n.P1,[l.V.PRELOAD_CLIENTS]:n.P1},i=(0,a.createContext)(r)},424095:(e,A,t)=>{t.d(A,{A:()=>r});var a=t(296540),n=t(90757),l=t(573531);const r=({startTimestamp:e,uptimeParams:A})=>{const t=(0,a.useRef)(null),r=(0,a.useRef)(null),i=(0,a.useCallback)(A=>{t.current&&(t.current.innerText=e?(0,n.Ay)(Math.floor(Date.now()/1e3)-e,A).join(" "):l.L,r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{i(A)},1e3))},[e]);return(0,a.useEffect)(()=>(e&&i(A),()=>{r.current&&clearTimeout(r.current)}),[e,A,i]),a.createElement("span",{ref:t})}},424135:(e,A,t)=>{t.d(A,{A:()=>r});var a=t(296540),n=t(566723),l=t(294303);const r=({children:e,tooltip:A})=>a.createElement(l.A,{maxWidth:"100%",overflow:"hidden",gap:n.YC,alignItems:"center"},a.createElement(l.A,{flex:1,overflow:"hidden"},e),A)},427007:(e,A,t)=>{t.d(A,{O3:()=>T,SG:()=>d,Vz:()=>u,c0:()=>c,lq:()=>O,rZ:()=>E,sD:()=>m,zO:()=>s});var a=t(801081),n=t(429252),l=t.n(n),r=t(919952),i=t(311135),o=t(319808);const s=e=>e[r.U.DHCP_CLIENTS],c=(0,a.Mz)(s,e=>e[i.Gr.SEARCH]),E=(0,a.Mz)(s,e=>e[i.Gr.NETWORK_ID]),m=(0,a.Mz)(s,e=>e[i.Gr.STATUS]),d=(0,a.Mz)(s,e=>e[i.Gr.LEASE_TYPE]),u=(0,a.Mz)(s,e=>e[i.Gr.ACCESS_POINTS]),T=(0,a.Mz)(s,e=>e[i.Gr.BROADCASTS]),O=(0,a.Mz)(s,e=>l()(e,o.qF))},431116:(e,A,t)=>{t.d(A,{default:()=>S});var a=t(956347),n=t(469733),l=t(296540),r=t(15095),i=t(189268),o=t(627440),s=t(568977),c=t(670180),E=t(767974),m=t(260411),d=t(120205),u=t(622217),T=t(282933),O=t(584916),I=t(771641);const S=()=>{const e=(0,n.useDispatch)(),A=(0,a.W6)(),t=(0,r.A)(`${o.VO.INSIGHTS}/${c.H.ACTIVITY}`),S=(0,n.useSelector)(i.A),N=(0,n.useSelector)(s.mJ),_=(0,l.useMemo)(()=>S[o.o9.NAVIGATION][o.mx.AVAILABLE]&&N[c.H.ACTIVITY][o.o9.NAVIGATION][o.mx.AVAILABLE],[S,N]),p=(0,n.useSelector)(u.Ej),R=(0,l.useCallback)((a,n)=>{e((0,m.yJ)([{[E.wA.CAT]:a,[E.wA.APP]:n}])),e((0,m.P7)(d.f.APPS)),e((0,m.Xy)({startDate:new Date(p[T.VF.START_DATE]),endDate:new Date(p[T.VF.END_DATE]),preset:O.j})),A.push(t)},[A,t,e,p]);return(0,l.useMemo)(()=>({[I.q.AVAILABLE]:_,[I.q.REDIRECT]:R}),[_,R])}},432776:(e,A,t)=>{t.d(A,{U4:()=>i,ZR:()=>s,_d:()=>r,gv:()=>o,jY:()=>c,nr:()=>l});var a=t(691294),n=t(616498);const l=e=>e.type===a.sK.VPN||e.type===a.sK.TELEPORT||!(e.type!==a.sK.WIRED&&e.type!==a.sK.WIRELESS||!(e.use_fixedip||e.name||e.blocked||e.note||e.local_dns_record||(e.network_members_group_ids||[]).length)),r=e=>!l(e),i=e=>e.type!==a.sK.VPN&&e.type!==a.sK.TELEPORT&&e.local_dns_record_enabled&&Boolean(e.local_dns_record),o=e=>e.type!==a.sK.VPN&&e.type!==a.sK.TELEPORT&&e.use_fixedip&&Boolean(e.fixed_ip),s=e=>e.type!==a.sK.VPN&&e.type!==a.sK.TELEPORT&&e.is_guest,c=(e,A)=>!A[n.tJ.CONFIGURATIONS].length||Object.values({[n.Zt.DEFAULT]:A[n.tJ.CONFIGURATIONS].includes(n.Zt.DEFAULT)&&r(e),[n.Zt.GUESTS]:A[n.tJ.CONFIGURATIONS].includes(n.Zt.GUESTS)&&s(e),[n.Zt.LOCAL_DNS]:A[n.tJ.CONFIGURATIONS].includes(n.Zt.LOCAL_DNS)&&i(e),[n.Zt.FIXED_IP]:A[n.tJ.CONFIGURATIONS].includes(n.Zt.FIXED_IP)&&o(e),[n.Zt.CONFIGURED]:A[n.tJ.CONFIGURATIONS].includes(n.Zt.CONFIGURED)&&l(e)}).some(e=>e)},437523:(e,A,t)=>{t.a(e,async(e,a)=>{try{t.d(A,{A:()=>c});var n=t(469733),l=t(296540),r=t(821400),i=t(415331),o=e([r]),s=o.then?(await o)():o;r=s[0];const c=e=>{const A=(0,n.useSelector)(r.A);return l.createElement(i.A,{routes:A,...e})};a()}catch(e){a(e)}})},444578:(e,A,t)=>{t.d(A,{RS:()=>h,Hj:()=>y,vg:()=>z,Jd:()=>P,BF:()=>D,Tz:()=>b,eN:()=>v});var a=t(801081),n=t(998047),l=t(376618),r=t(785330),i=t(822336),o=t(25553),s=t(249304),c=t(652628),E=t(576814),m=t(564985),d=t(198494),u=t(439173),T=t(803167),O=t(280258),I=t(354123),S=t(580872);const N={[S.G9.BAND]:(e,A)=>!A[S.G9.BAND].length||A[S.G9.BAND].includes(e.radio),[S.G9.CHANNEL_WIDTH]:(e,A)=>!A[S.G9.CHANNEL_WIDTH].length||A[S.G9.CHANNEL_WIDTH].includes(String(e.bw)),[S.G9.CHANNEL]:(e,A)=>!A[S.G9.CHANNEL].length||A[S.G9.CHANNEL].includes(+e.channel),[S.G9.SECURITY]:(e,A)=>!A[S.G9.SECURITY].length||A[S.G9.SECURITY].includes(e.security),[S.G9.SIGNAL]:(e,A)=>!A[S.G9.SIGNAL].length||e.signal>=A[S.G9.SIGNAL][0]&&e.signal<=A[S.G9.SIGNAL][1]},_=Object.values(N),p=e=>({id:(0,E.s8)(e),essid:e.essid||e.bssid,date:new Date(1e3*e.last_seen),...e}),R=e=>Object.values((0,l.A)(e,"essid")).map(e=>{const A=(0,n.A)(e,({last_seen:e})=>e);return 1===e.length?A:{...A,parent:!0,apCount:e.filter(e=>e!==A).length,children:e.filter(e=>e!==A).map(({essid:e,bssid:t,security:a,radio:n,signal:l,noise:r,...i})=>({...i,hierarchy:1,parentId:A.id}))}}),C=(0,a.Mz)(e=>e.models?.wifiScanner,I.iY,c.Z$,(e,{start:A,end:t},a)=>{return n=(0,o.Lt)((0,E.ms)(A,t),e)?.data||[],a===O.H?n:n.filter(({ap_mac:e})=>e===a);var n}),M=(0,a.Mz)(C,e=>e.filter(e=>!!u.R?.[e?.band]?.[e?.bw>0?e.bw:T.L?.[e?.band]])),P=((0,a.Mz)(M,e=>R(e.map(e=>p(e)))),(0,a.Mz)(M,I.RH,(e,A)=>R(e.map(e=>p(e)).filter(e=>((e,A)=>_.every(t=>t(e,A)))(e,A))))),D=(0,a.Mz)(P,e=>e.length>0),f=(0,d.h)(s.l.WIFI_SCANNER),b=({from:e,rowsPerPage:A})=>(0,a.Mz)(P,f,(t,a)=>t.sort((e,A)=>a.isAscending?(0,r.j5)(e[a?.sortBy],A[a?.sortBy]):-(0,r.j5)(e[a?.sortBy],A[a?.sortBy])).slice(e,e+A)),v=((0,a.Mz)(M,e=>e?.length>0),(e,A,t)=>(0,a.Mz)(b(e),e=>{const a=[i.Ay[`desktop-color-navy-06-${A}`],i.Ay[`desktop-color-ublue-06-${A}`],i.Ay[`desktop-color-aqua-06-${A}`],i.Ay[`desktop-color-green-06-${A}`],i.Ay[`desktop-color-lime-06-${A}`],i.Ay[`desktop-color-yellow-06-${A}`],i.Ay[`desktop-color-orange-06-${A}`],i.Ay[`desktop-color-purple-06-${A}`]],n={[m.sx.RADIO_NG]:[],[m.sx.RADIO_NA]:[],[m.sx.RADIO_6E]:[]};return Object.keys(n).forEach(A=>{let l=0;n[A]=e.filter(e=>e.band===A).sort((e,A)=>e.center_freq-A.center_freq).map(e=>{a[l]||(l=0);const n=a[l];l+=1;const r=e?.bw>0?e?.bw:T.L[A];return{id:e.id,title:e.essid||t,xStart:Object.values(u.R[A][r])?.find(A=>A?.subChannels.includes(e.channel))?.lowerFrequency,xEnd:Object.values(u.R[A][r])?.find(A=>A?.subChannels.includes(e.channel))?.upperFrequency,height:e.signal,color:n}})}),n})),L=e=>(0,a.Mz)(I.jf,M,(A,t)=>t.reduce((t,a)=>(A.includes(a.radio)&&e in a&&(t[a[e]]=(t[a[e]]||0)+1),t),{})),h=L("bw"),y=L("channel"),z=L("security")},446260:(e,A,t)=>{t.d(A,{A:()=>o});var a=t(469733),n=t(296540),l=t(267509),r=t(600446),i=t(532419);const o=()=>{const e=(()=>{const e=(0,a.useSelector)(r.W);return e?.[l.dp.DEVICE]||void 0})(),A=(0,a.useSelector)((0,n.useMemo)(()=>(0,i.tG)(e),[e]));return e&&A.mac?A:void 0}},455155:(e,A,t)=>{t.d(A,{A:()=>s});var a=t(469733),n=t(296540),l=t(130851),r=t(765562);const i={};const o=(0,t(71479).A)("img",{shouldForwardProp:e=>"dimension"!==e})`
  ${({dimension:e=22})=>`\n    height: ${e}px;\n    width: ${e}px;\n  `}
`,s=(0,n.memo)(({iconFileName:e,dimension:A,style:t={}})=>{const s=(0,a.useSelector)(l.p);return n.createElement(o,{src:i[e]||encodeURI(`${r.A.dpiPath}${e}`),dimension:A,onLoad:({target:A})=>{i[e]=A.src},onError:({currentTarget:e})=>{e.src=`${s}/dpiFallback.svg`},style:t})})},455643:(e,A,t)=>{t.d(A,{A:()=>l});var a=t(296540),n=t(930662);const l=({duration:e,value:A,renderLabel:t,onComplete:l,maxValue:r=100,initialTime:i=0,...o})=>{const[s,c]=(0,a.useState)(0),E=(0,a.useRef)(null),m=(0,a.useRef)(0),d=(0,a.useCallback)(()=>{m.current+=.5;const A=Math.min(Math.round(100*m.current/e),r);A>=100&&(window.clearInterval(E.current),E.current=null,l?.()),c(A)},[e,r,l]);return(0,a.useEffect)(()=>{const t=()=>{E.current&&window.clearInterval(E.current)};if(A)return E.current&&window.clearInterval(E.current),t;m.current=i;const a=Math.min(Math.round(100*i/e),r);return c(a),i>=e?(l?.(),t):(E.current=window.setInterval(d,500),t)},[d,A,i,e,r,l]),a.createElement(n.A,{value:void 0!==A?A:s,label:t?t(e-m.current):void 0,...o})}},462571:(e,A,t)=>{t.d(A,{a:()=>r});var a=t(592510),n=t(171073),l=t(818526);const r={[l.t.RADIOS]:[],[l.t.ROAMING]:[(0,n.Uc)(void 0,{crudCacheStrategy:{type:a.e.CACHE}})],[l.t.WIFI_SCANNER]:[]}},469548:(e,A,t)=>{t.d(A,{A:()=>C});var a=t(469733),n=t(296540),l=t(822336),r=t(217439),i=t(701548),o=t(998837),s=t(566723),c=t(472797),E=t(294303),m=t(627440),d=t(699784),u=t(370295),T=t(292170),O=t(151033),I=t(267291),S=t(30611);var N,_;!function(e){e.KEY="key",e.COUNT="count",e.SEVERITY="severity",e.PARAMETERS="parameters"}(N||(N={})),function(e){e.ACCUMULATED_LOGS="accumulatedLogs",e.SEVERITY="severity"}(_||(_={}));const p={width:"100%",maxWidth:"max-content",portal:!0,cursorType:"pointer",position:"right"};var R=t(789149);const C=({currentPage:e,preloadTranslation:A,getRouteHref:t})=>{const{themeName:C}=(0,o.u)(),M=(0,a.useSelector)(I.e),P=(0,n.useMemo)(()=>M.reduce((e,A)=>{const t=(e=>{const A=e[O.k1.KEY];return A===O.zd.NETWORK_WAN_FAILED_2?`${O.zd.NETWORK_WAN_FAILED_2}-${e[O.k1.PARAMETERS]?.[S.ns.WAN_ID]?.[O.bP.ID]}`:A})(A);return u.f[A[O.k1.SEVERITY]][0]>u.f[e[_.SEVERITY]][0]&&(e[_.SEVERITY]=A[O.k1.SEVERITY]),e[_.ACCUMULATED_LOGS][t]?e[_.ACCUMULATED_LOGS][t][N.COUNT]+=1:e[_.ACCUMULATED_LOGS][t]={[N.KEY]:A[O.k1.KEY],[N.COUNT]:1,[N.SEVERITY]:A[O.k1.SEVERITY],[N.PARAMETERS]:A[O.k1.PARAMETERS]},e},{[_.ACCUMULATED_LOGS]:{},[_.SEVERITY]:O.S1.LOW}),[M]),D=(0,n.useMemo)(()=>{const e=Object.entries(P[_.ACCUMULATED_LOGS]).sort(([e,A],[t,a])=>(u.f[a[N.SEVERITY]][0]||0)-(u.f[A[N.SEVERITY]][0]||0)),A=e.length,t=[];for(let a=0;a<Math.min(10,A);a+=1){const[A,o]=e[a];t.push(n.createElement(E.A,{key:A,gap:s.YC,alignItems:"center"},n.createElement(i.A,{variant:"fill",color:l.Ay[`desktop-color-${(u.f[o[N.SEVERITY]]||u.f[O.S1.VERY_HIGH])[1]}-${C}`]}),n.createElement(r.A,{size:"small",color:"text-2"},n.createElement(d.sA,{id:(0,T.IL)(o[N.KEY]),values:(0,T.pZ)(o[N.KEY],o[N.PARAMETERS])}),o[N.COUNT]>1?` (${o[N.COUNT]})`:"")))}return A>10&&t.push(n.createElement(r.A,{key:A-10,size:"small",color:"text-2"},n.createElement(d.sA,{id:"COMMON_X_MORE",values:{count:A-10}}))),n.createElement(E.A,{flexDirection:"column",gap:s.kc},t)},[P,C]),f=(0,n.useMemo)(()=>M.length&&e!==m.VO.DASHBOARD?D:n.createElement(d.sA,{id:"COMMON_SIDE_NAV_DASHBOARD"}),[D,M.length,e]);return n.createElement(c.A,{...(0,R.E)({getRouteHref:t,preloadTranslation:A,currentPage:e})[m.VO.DASHBOARD],showWarning:Boolean(M.length),severity:P[_.SEVERITY],label:f,tooltipProps:p})}},472797:(e,A,t)=>{t.d(A,{A:()=>w});var a=t(296540),n=t(469733),l=t(874807),r=t(627440),i=t(801081),o=t(479503),s=t(604482),c=t(976592),E=t(568977),m=t(856929),d=t(994791),u=t(793177),T=t(616660);const O=(0,i.Mz)((0,o.zf)([s.g1.CLIENTS]),m.Eo,m.AT,m.qt,u.j7,(e,A,t,a,n)=>e&&[A,t,a].filter(Boolean).length>1&&n!==T.z.LANDING_PAGE),I=(0,i.Mz)((0,o.zf)([s.g1.PORT_MANAGEMENT,s.g1.PORT_STATS,s.g1.PORT_VLANS]),d.CQ,d.eu,(e,A,t)=>e&&[A,t].filter(Boolean).length>1),S=(0,i.Mz)((0,o.zf)([s.g1.AIRVIEW]),c.yc,c.EI,c.y8,(e,A,t,a)=>e&&[A,t,a].filter(Boolean).length>1),N=(0,i.Mz)((0,o.zf)([s.g1.INSIGHTS]),E.QI,E.S,E.EL,(e,A,t,a)=>e&&[A,t,a].filter(Boolean).length>1);var _;!function(e){e.HEIGHT="HEIGHT",e.RENDER_CONDITION="RENDER_CONDITION"}(_||(_={}));const p="#66A9FF",R=21,C="NAVIGATION_ITEM_CONNECTOR_LINEAR_GRADIENT_ID",M="NAVIGATION_ITEM_CONNECTOR_CLASSNAME",P="NAVIGATION_ITEM_OUTLINE_CLASSNAME",D=e=>{const A=Math.max(1,11.55),t=A+4;return`M0 ${e-.5}H${A}C${A+2.2091} ${e-.5} ${A+4} ${e-2.291} ${A+4} ${e-4.5}V4.5C${A+4} 2.29086 ${t+1.7899} 0.5 ${t+3.499} 0.5C${t+3.7173} 0.5 ${t+4.0986} 0.5 21 0.5`},f=e=>{const A=document.querySelector(`#${e}`)?.getBoundingClientRect();return A?A.top+window.scrollY-60+5:void 0},b=({mainRoute:e,isHovered:A})=>{const{[_.HEIGHT]:t,[_.RENDER_CONDITION]:i=l.bx}=(e=>({[r.VO.DASHBOARD]:{[_.HEIGHT]:void 0,[_.RENDER_CONDITION]:l.bx},[r.VO.TOPOLOGY]:{[_.HEIGHT]:void 0,[_.RENDER_CONDITION]:l.bx},[r.VO.DEVICES]:{[_.HEIGHT]:void 0,[_.RENDER_CONDITION]:l.bx},[r.VO.CLIENTS]:{[_.HEIGHT]:f(e),[_.RENDER_CONDITION]:O},[r.VO.PORTS]:{[_.HEIGHT]:f(e),[_.RENDER_CONDITION]:I},[r.VO.AIRVIEW]:{[_.HEIGHT]:f(e),[_.RENDER_CONDITION]:S},[r.VO.INSIGHTS]:{[_.HEIGHT]:f(e),[_.RENDER_CONDITION]:N},[r.VO.ADMINS]:{[_.HEIGHT]:void 0,[_.RENDER_CONDITION]:l.bx},[r.VO.SYSLOG]:{[_.HEIGHT]:void 0,[_.RENDER_CONDITION]:l.bx},[r.VO.SETTINGS]:{[_.HEIGHT]:void 0,[_.RENDER_CONDITION]:l.bx}}))(e)[e]||{};return(0,n.useSelector)(i)&&t?a.createElement(a.Fragment,{key:e},a.createElement("svg",{className:M,width:R,height:t,viewBox:`0 0 21 ${t}`,opacity:A?1:0,fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:D(t),stroke:`url(#${C})`}),a.createElement("defs",null,a.createElement("linearGradient",{id:C,x1:10.5,y1:"0%",x2:10.5,y2:"100%",gradientUnits:"objectBoundingBox"},a.createElement("stop",{offset:"0%",stopColor:p}),a.createElement("stop",{offset:"100%",stopColor:"#006FFF",stopOpacity:"0.3"})))),a.createElement("svg",{className:P,width:300,height:40,viewBox:"0 0 300 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("rect",{x:"0.5",y:"0.5",width:"247",height:"31",rx:"6",fill:"none",stroke:p}))):null};var v=t(196010);const L=({children:e,href:A,...t})=>a.createElement(v.A,{to:A,...t},e);var h=t(822336),y=t(463338),z=t(71479),g=t(370295),x=t(572112);const W=(0,z.A)("div",{shouldForwardProp:e=>!["active","isHovered"].includes(e)})`
  .${M} {
    position: absolute;
    top: 27px;
    left: 41px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
  }
  .${P} {
    position: absolute;
    top: 12px;
    left: 62px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
  }
  @media ${x.A.SIDE_NAVIGATION_BREAKPOINT_UP} {
    .${M}, .${P} {
      ${({active:e,isHovered:A})=>e&&A?"opacity: 1;":""}
    }
  }
`,H=(0,z.A)(y.A,{shouldForwardProp:e=>!["showWarning","severity"].includes(e)})`
  &:after {
    content: ' ';
    ${({showWarning:e})=>e?"":"display: none;"}
    position: absolute;
    width: 8px;
    height: 8px;
    top: 8px;
    right: 8px;
    ${({severity:e,theme:{themeName:A}})=>e?`background-color: ${h.Ay[`desktop-color-${g.f[e][1]}-${A}`]};`:null}
    border-radius: 10px;
    pointer-events: none;
  }
`,w=({label:e,href:A,id:t,showWarning:n=!1,severity:l,active:r,...i})=>{const{isHovered:o,onMouseEnter:s,onMouseLeave:c}=(()=>{const[e,A]=(0,a.useState)(!1);return{isHovered:e,onMouseEnter:(0,a.useCallback)(()=>{A(!0)},[]),onMouseLeave:(0,a.useCallback)(()=>{A(!1)},[])}})(),E=(0,a.useMemo)(()=>r?{delay:{open:2500,close:0}}:{},[r]);return a.createElement(W,{onMouseEnter:s,onMouseLeave:c,id:t,active:r,isHovered:o},a.createElement(H,{component:A?L:null,label:e,href:A,showWarning:n,tooltipProps:E,severity:l,active:r,...i}),a.createElement(b,{mainRoute:t,isHovered:o}))}},473990:(e,A,t)=>{t.d(A,{A:()=>d});var a=t(801081),n=t(189601),l=t(296540),r=t(472797),i=t(627440),o=t(789149);const s=({currentPage:e,preloadTranslation:A,getRouteHref:t})=>l.createElement(r.A,{...(0,o.E)({currentPage:e,preloadTranslation:A,getRouteHref:t})[i.VO.SETTINGS]}),c=(0,l.lazy)(()=>Promise.all([t.e(70893),t.e(91912),t.e(46880),t.e(40124),t.e(90372),t.e(73740),t.e(81237),t.e(68350),t.e(1865),t.e(68219),t.e(83286),t.e(26459),t.e(16653),t.e(13015),t.e(73640),t.e(99825),t.e(10179),t.e(37491),t.e(82594),t.e(6649),t.e(44965),t.e(29676),t.e(83986),t.e(48446),t.e(26472)]).then(t.bind(t,776820))),E=e=>l.createElement(l.Suspense,{fallback:null},l.createElement(c,{...e}));var m=t(221649);const d=(0,n.WY)()((0,a.Mz)(()=>({[i.o9.ROUTE_COMPONENT]:E,[i.o9.SIDE_NAVIGATION]:s,[i.o9.ROUTE]:{[i.Fm.AVAILABLE]:!0},[i.o9.NAVIGATION]:{[i.mx.AVAILABLE]:!0},[i.o9.DEPENDENCIES]:m.I[i.VO.SETTINGS]})),e=>e)},479503:(e,A,t)=>{t.d(A,{$R:()=>m,Ul:()=>c,tR:()=>d,zf:()=>E});var a=t(801081),n=(t(523275),t(604482)),l=t(276907),r=t(919952),i=t(198494);const o=e=>e[r.U.SHARED]?.[l.N.LEFT_FILTER]||{},s=(e,A,t)=>e[t]?.[n.d.PANEL_OPEN]??A[t]?.[n.d.PANEL_OPEN]??!1,c=e=>(0,a.Mz)(o,i.RO,(A,t)=>s(A,t,e)),E=(e=[])=>(0,a.Mz)(o,i.RO,(A,t)=>e.every(e=>s(A,t,e))),m=(e,A)=>(0,a.Mz)(o,i.RO,(t,a)=>(t[e]?.[n.d.COLUMNS_OPEN]&&t[e]?.[n.d.COLUMNS_ID]===A)??a[e]?.[n.d.COLUMNS_OPEN]??(a[e]?.[n.d.COLUMNS_OPEN]&&a[e]?.[n.d.COLUMNS_ID]===A)??!1),d=e=>(0,a.Mz)(o,i.RO,(A,t)=>A[e]?.[n.d.EDITOR_OPEN]??t[e]?.[n.d.EDITOR_OPEN]??t[e]?.[n.d.EDITOR_OPEN]??!1)},482572:(e,A,t)=>{t.d(A,{K5:()=>s,Se:()=>i,UI:()=>r,zd:()=>o});var a=t(71479),n=t(566723),l=t(294303);const r=(0,a.A)(l.A)`
  flex-direction: column;
  gap: ${n.kc};
`,i=(0,a.A)(l.A)`
  flex-direction: column;
  gap: ${n.YC};
`,o=(0,a.A)(l.A)`
  width: 100%;
  justify-content: space-between;
`,s=(0,a.A)(l.A)`
  align-items: center;
  gap: ${n.YC};
`},486006:(e,A,t)=>{t.d(A,{Ay:()=>O,ZF:()=>a});var a,n=t(296540),l=t(927099),r=t(943887),i=t(137298),o=t(38937),s=t(566723),c=t(699784),E=t(951106),m=t(11001),d=t(802123),u=t(294303);!function(e){e.MIMO_AND_STANDARD="mimoAndStandard",e.CHANNEL_AND_WIDTH="channelAndWidth",e.SIGNAL="signal",e.TX="tx",e.RX="rx"}(a||(a={}));const T={[a.MIMO_AND_STANDARD]:({detail:e})=>{const A=e.mimo?(0,E.iP)(e.mimo):n.createElement(c.sA,{id:"COMMON_FALLBACK"}),t=e.radio_proto?(0,E.z0)(e.radio_proto):n.createElement(c.sA,{id:"COMMON_FALLBACK"});return n.createElement(l.A,{size:"caption"},A," (",t,")")},[a.CHANNEL_AND_WIDTH]:({detail:{channel:e,channel_width:A}})=>n.createElement(l.A,{size:"caption"},e||n.createElement(c.sA,{id:"COMMON_FALLBACK"}),"  (",A||n.createElement(c.sA,{id:"COMMON_FALLBACK"})," ",n.createElement(c.sA,{id:"COMMON_UNIT_MHZ"}),")"),[a.SIGNAL]:({detail:{signal:e}})=>e?n.createElement(l.A,{size:"caption",color:(0,o.b5)(e)},e," ",n.createElement(c.sA,{id:"COMMON_UNIT_DBM"})):n.createElement(l.A,{size:"caption",color:"inherit"},n.createElement(c.sA,{id:"COMMON_FALLBACK"})),[a.TX]:({detail:{tx_rate:e}})=>e>0?n.createElement(m.A,{hideIcon:!0,bytesPerSecond:(0,i.Zz)(e),direction:"down",size:"small"}):n.createElement(l.A,{size:"caption"},n.createElement(c.sA,{id:"COMMON_FALLBACK"})),[a.RX]:({detail:{rx_rate:e}})=>e>0?n.createElement(m.A,{hideIcon:!0,bytesPerSecond:(0,i.Zz)(e),direction:"up",size:"small"}):n.createElement(l.A,{size:"caption"},n.createElement(c.sA,{id:"COMMON_FALLBACK"}))},O=({report:e,mlo_details:A})=>n.createElement(d.A,{enabled:!0,tooltipItems:A.map(A=>{const t=(0,r.YF)(A.radio),a=T[e];return n.createElement(u.A,{flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:s.Ln},n.createElement(l.A,{size:"caption"},t),a?n.createElement(u.A,{flexDirection:"row"},n.createElement(a,{detail:A})):null)}),neverShowListMarkers:!0})},486768:(e,A,t)=>{t.d(A,{default:()=>u});var a=t(956347),n=t(469733),l=t(296540),r=t(15095),i=t(976592),o=t(818526),s=t(498282),c=t(627440),E=t(312100),m=t(397910),d=t(771641);const u=()=>{const e=(0,a.W6)(),A=(0,n.useDispatch)(),t=(0,r.A)(`${c.VO.AIRVIEW}/${o.t.RADIOS}`),u=(0,n.useSelector)(s.A),T=(0,n.useSelector)(i.WK),O=(0,l.useMemo)(()=>u[c.o9.NAVIGATION][c.mx.AVAILABLE]&&T[o.t.RADIOS][c.o9.NAVIGATION][c.mx.AVAILABLE],[u,T]),I=(0,l.useCallback)(()=>{A((0,E.U)(m.o.MANUAL)),e.push(t)},[A,e,t]);return(0,l.useMemo)(()=>({[d.q.AVAILABLE]:O,[d.q.REDIRECT]:I}),[O,I])}},498282:(e,A,t)=>{t.d(A,{A:()=>u});var a=t(801081),n=t(189601),l=t(296540),r=t(472797),i=t(627440),o=t(789149);const s=({currentPage:e,preloadTranslation:A,getRouteHref:t})=>l.createElement(r.A,{...(0,o.E)({currentPage:e,preloadTranslation:A,getRouteHref:t})[i.VO.AIRVIEW]});var c=t(976592);const E=(0,l.lazy)(()=>Promise.all([t.e(70893),t.e(1758),t.e(46880),t.e(23195),t.e(81237),t.e(13015),t.e(10916),t.e(29676),t.e(15557),t.e(38662)]).then(t.bind(t,782062))),m=e=>l.createElement(l.Suspense,{fallback:null},l.createElement(E,{...e}));var d=t(221649);const u=(0,n.WY)()((0,a.Mz)(c.NR,e=>({[i.o9.ROUTE_COMPONENT]:m,[i.o9.SIDE_NAVIGATION]:s,[i.o9.ROUTE]:{[i.Fm.AVAILABLE]:e},[i.o9.NAVIGATION]:{[i.mx.AVAILABLE]:e},[i.o9.DEPENDENCIES]:d.I[i.VO.AIRVIEW]})),e=>e)},498765:(e,A,t)=>{t.d(A,{default:()=>m});var a=t(956347),n=t(469733),l=t(296540),r=t(834316),i=t(928085),o=t(187483),s=t(556456),c=t(55983),E=t(771641);const m=()=>{const e=(0,a.W6)(),A=!0,t=(0,i.A)(c.aY),m=(0,n.useSelector)(s.yE),d=(0,n.useSelector)(o.TP),u=(0,l.useCallback)(()=>{m?e.push(t):window.location.href=(0,r.$H)(d)},[e,m,t,d]);return(0,l.useMemo)(()=>({[E.q.AVAILABLE]:A,[E.q.REDIRECT]:u}),[u,A])}},499015:(e,A,t)=>{t.d(A,{I:()=>l,i:()=>n});var a=t(943887);const n=(e,A,t)=>A||t?`(${[A?`${e({id:(0,a.dI)(A)})}`:null,t?`${t} ${e({id:"COMMON_UNIT_MHZ"})}`:null].filter(Boolean).join(", ")})`:"",l=(e,A,t,a)=>`${e} ${n(A,t,a)}`},503793:(e,A,t)=>{t.d(A,{g:()=>S});var a=t(469733),n=t(296540),l=t(316144),r=t(699784),i=t(187483),o=t(409912),s=t(187452),c=t(602021),E=t(198494),m=t(792072),d=t(768195),u=t(532419),T=t(46119),O=t(765562);var I;!function(e){e.IS_AVAILABLE="isAvailable",e.IS_SUBSCRIBED="isSubscribed",e.UNAVAILABILITY_REASON="unavailabilityReason",e.REDIRECT="redirect"}(I||(I={}));const S=({hardwareUuid:e,enterprise:A}={})=>{const{formatMessage:t}=(0,r.tz)(),S=(0,a.useSelector)(o.w),N=(0,a.useSelector)(i.YL),_=(0,a.useSelector)(m.$c),p=(0,a.useSelector)(E.IG),R=(0,a.useSelector)(u.DQ),C=(0,a.useSelector)(u.$x),M=(0,a.useSelector)(c.df),P=(0,a.useSelector)(u.Q2),D=S[s.R.SUBSCRIPTION_STATE],f=D?.[s.D_.STATUS],b=D?.[s.D_.MESSAGE],v=S[s.R.OPEN_MODAL]||void 0,L=(0,n.useMemo)(()=>(0,l.Ad)(C),[C]),h=(0,n.useMemo)(()=>f&&!N?f===s.O$.SUBSCRIBED:P?.signature_type===d.D7.ETPRO,[f,N,P]),y=void 0,z=(0,n.useMemo)(()=>{return A=((e,A,t)=>()=>T.A.open(`${t?`${t}/ips`:O.A.cyberSecureActivation}/${e}/${A}`))(M,e||R,y),N?A:v||A;var A},[v,M,e,R,N,y]);return(0,n.useMemo)(()=>_?f&&!N?{[I.IS_AVAILABLE]:f===s.O$.AVAILABLE,[I.IS_SUBSCRIBED]:h,[I.UNAVAILABILITY_REASON]:b,[I.REDIRECT]:z}:{[I.IS_AVAILABLE]:p,[I.IS_SUBSCRIBED]:h,[I.UNAVAILABILITY_REASON]:p?b||void 0:t({id:"COMMON_CYBERSECURE_OWNER_TOOLTIP"},{enterprise:A||L}),redirect:z}:{[I.IS_AVAILABLE]:!1,[I.IS_SUBSCRIBED]:!1,[I.UNAVAILABILITY_REASON]:b,[I.REDIRECT]:z},[f,N,b,z,_,p,t,A,L,h])}},509426:(e,A,t)=>{t.d(A,{A:()=>o});var a=t(296540),n=t(822336),l=t(71479),r=t(294303);const i=(0,l.A)(r.A)`
  width: 8px;
  height: 3px;
  background: ${({theme:{themeName:e}})=>n.Ay[`desktop-color-purple-06-${e}`]};
`,o=e=>a.createElement(i,{...e})},510337:(e,A,t)=>{t.d(A,{I:()=>pt,_:()=>Ct});var a=t(801081),n=t(189601),l=t(627440),r=t(296540),i=t(469733),o=t(249304),s=t(29896),c=t(905410),E=t(512759),m=t(758649),d=t(733712),u=t(57867),T=t(699784);const O=(0,r.memo)(()=>{const e=(0,i.useDispatch)(),A=(0,r.useCallback)(()=>{e((0,u.A)())},[e]);return r.createElement(d.A,{title:r.createElement(T.sA,{id:"COMMON_NO_MATCH"}),description:r.createElement(T.sA,{id:"LOGS_NO_LOGS_FILTER_DESCRIPTION",values:{resetLink:r.createElement(m.A,{type:"button",onClick:A,variant:"inline"},r.createElement(T.sA,{id:"COMMON_RESET_THEM_BUTTON_TEXT"}))}})})}),I=(0,r.memo)(()=>r.createElement(d.A,{title:r.createElement(T.sA,{id:"LOGS_NO_LOGS"}),description:r.createElement(T.sA,{id:"LOGS_NO_LOGS_DESCRIPTION"})}));var S=t(604482),N=t(566723),_=t(329991),p=t(749177);const R=(0,r.memo)(()=>{const e=(0,p.A)(S.g1.LOGS);return r.createElement(_.A,{position:"relative",left:e?`-${N.sV}`:N.YC})});var C=t(71479),M=t(294303);const P=(0,C.A)(M.A)`
  width: 100%;
  position: sticky;
  left: 0;
  right: 0;
  top: 0;
`,D=(0,r.memo)(({logsLoading:e})=>{const A=(0,i.useSelector)(E.Qb),t=(0,r.useMemo)(()=>A?I:O,[A]);return r.createElement(P,null,e?r.createElement(R,null):r.createElement(t,null))});var f=t(83604),b=t(816271),v=t(860765),L=t(706574),h=t(244961),y=t(151033),z=t(199582),g=t(902529);const x=e=>r.createElement(T.sA,{id:ee[e]});var W=t(705145);const H=e=>r.createElement(W.A,{variant:"inherit",isTruncated:!0,...e}),w=e=>r.createElement(H,null,x(e)),U=e=>r.createElement(H,null,x(e)),k=e=>r.createElement(H,null,x(e)),G=e=>r.createElement(H,null,x(e)),V=e=>r.createElement(H,null,x(e));var X;!function(e){e.CORE_CATEGORY="coreCategory",e.EVENT="event",e.DESCRIPTION="description",e.SEVERITY="severity",e.DATE="date"}(X||(X={}));var Z=t(628999);const Y=(0,C.A)(M.A)`
  width: 100%;
  z-index: 999;
`,B=e=>r.createElement(Y,null,r.createElement(Z.A,{logSeverity:e[y.k1.SEVERITY]})),F=e=>r.createElement(W.A,{isTruncated:!0,size:"medium",color:"text-2"},r.createElement(T.sA,{id:`${y.yQ.SYS_LOG_EVENT}_${e[y.k1.EVENT]}`}));var j=t(89587);const K=e=>r.createElement(W.A,{isTruncated:!0,size:"medium",color:"text-2"},(0,j.x)({log:e,isSidePanel:!1}));var q=t(362156);const J=e=>r.createElement(W.A,{isTruncated:!0,size:"medium",color:"text-2"},e[y.k1.TIMESTAMP]?r.createElement(q.A,{timestamp:e[y.k1.TIMESTAMP],showSeconds:!0}):r.createElement(T.sA,{id:"COMMON_FALLBACK"}));var Q=t(635937);const $=e=>r.createElement(W.A,{isTruncated:!0,size:"medium",color:"text-2"},r.createElement(T.sA,{id:Q.Vx[e[y.k1.CATEGORY]]})),ee={[X.CORE_CATEGORY]:"COMMON_CATEGORY",[X.EVENT]:"COMMON_EVENT",[X.DESCRIPTION]:"COMMON_DESCRIPTION",[X.SEVERITY]:"COMMON_SEVERITY",[X.DATE]:"COMMON_DATE_TIME"},Ae={[X.CORE_CATEGORY]:V,[X.EVENT]:U,[X.DESCRIPTION]:k,[X.SEVERITY]:w,[X.DATE]:G},te={[X.CORE_CATEGORY]:{size:70,minSize:60,maxSize:1/0},[X.EVENT]:{size:120,minSize:50,maxSize:1/0},[X.DESCRIPTION]:{size:320,minSize:60,maxSize:1/0},[X.SEVERITY]:{size:70,minSize:60,maxSize:1/0},[X.DATE]:{size:100,minSize:30,maxSize:1/0}},ae={[X.CORE_CATEGORY]:$,[X.EVENT]:F,[X.DESCRIPTION]:K,[X.SEVERITY]:B,[X.DATE]:J},ne=Object.values(X),le=e=>e,re=({header:{id:e}})=>Ae[e](e),ie=e=>te[e],oe=({column:{id:e},getValue:A})=>ae[e](A()),se=ne.map(e=>({id:e,accessorFn:le,header:re,cell:oe,...ie(e),enableResizing:!0,enableSorting:!1})),ce="LOGS_TABLE_WRAPPER_CLASSNAME",Ee="LOGS_TABLE_HEADER_CLASSNAME",me="LOGS_TABLE_ROW_CLASSNAME",de={wrapperFlexProps:{padding:"0px"},rowOptions:[{value:25,default:!1},{value:50,default:!1},{value:100,default:!0}]},ue={columns:se,wrapperClassName:ce,headerClassName:Ee,rowClassName:me,stickyHeader:!0},Te="LOGS_CRITICAL_LOG_ROW_ID";var Oe=t(822336);const Ie=(0,C.A)(M.A,{shouldForwardProp:e=>"hasCriticalLogs"!==e})`
  width: 100%;
  height: 100%;
  overflow: auto;
  flex-direction: column;
  position: relative;
  scrollbar-gutter: stable;
  .${ce} {
    width: 100%;
  }
  .${Ee} {
    ${({theme:{themeName:e},hasCriticalLogs:A})=>A?`background: ${Oe.Ay[`desktop-color-neutral-01-${e}`]};`:""}
    > tr {
      > th {
        height: 24px !important;
        > div {
          height: 24px !important;
        }
        padding: 0 ${N.kc};
      }
    }
  }
  .${me} {
    height: 24px !important;
    > td {
      padding: 0 ${N.kc};
      > div {
        white-space: pre-line;
      }
    }
  }
  [${z.L}='${Te}'] {
    background: ${({theme:{themeName:e}})=>Oe.Ay[`desktop-color-neutral-01-${e}`]};
  }
`,Se=({logs:e,criticalLogIds:A,logsPageNumber:t,initialColumnSize:a,onColumnSizingChange:n})=>{const l=(0,i.useDispatch)(),o=(0,b.A)(h.WL),s=(0,i.useSelector)(E.wg),c=(0,i.useSelector)(E.I1),m=(0,i.useSelector)(E.Tc),d=(0,i.useSelector)(E.oR),u=(0,r.useCallback)(e=>{l((0,g.L)({log:e}))},[l]),T=(0,r.useMemo)(()=>ne.reduce((e,A)=>{switch(A){case X.CORE_CATEGORY:e[A]=1!==s.length;break;case X.EVENT:e[A]=1!==(()=>{switch(c){case y.T2.GENERAL:return m.length;case y.T2.AUDIT:return d.length;default:return 0}})();break;default:e[A]=!0}return e},{}),[s,c,m.length,d.length]),O=(0,r.useCallback)(e=>({[z.L]:A.includes(e[y.k1.ID])?Te:"LOGS_LOG_ROW_ID"}),[A]);return{onRenderTable:(0,r.useCallback)(({pageNumber:t,rowsPerPage:l})=>r.createElement(Ie,{hasCriticalLogs:Boolean(A.length)},r.createElement(f.A,{data:e,onRowClick:u,pageSize:l,pageIndex:t,rowProps:O,activeRows:o,initialColumnSize:a,onColumnSizingChange:n,columnVisibility:T,...ue})),[e,o,a,T,A.length,n,u,O]),onPageChanged:(0,r.useCallback)(e=>{e!==t&&l((0,L.ml)(e))},[l,t]),onRowsChanged:(0,r.useCallback)(()=>{l((0,L.ml)(v.B))},[l])}};var Ne=t(718073),_e=t(699948),pe=t(166911),Re=t(243046),Ce=t(472796),Me=t(602021);const Pe=()=>{const e=(0,i.useDispatch)(),A=(0,i.useSelector)(Me.EL),t=(0,i.useSelector)(E.CU),a=(0,i.useSelector)(E.d9),n=(0,i.useSelector)((0,r.useMemo)(()=>(0,Ce.AG)(t),[t])),l=(0,i.useSelector)((0,r.useMemo)(()=>(0,Ce.H_)(t),[t])),o=(0,i.useSelector)((0,r.useMemo)(()=>(0,Ce.WB)(t),[t])),s=(0,i.useSelector)((0,r.useMemo)(()=>(0,Ce.om)(t),[t])),c=(0,i.useSelector)((0,r.useMemo)(()=>(0,pe.tH)(a),[a])),m=(0,i.useSelector)((0,r.useMemo)(()=>(0,pe.DJ)(a),[a])),d=(0,r.useMemo)(()=>c.map(e=>e[y.k1.ID]),[c]),u=(0,r.useCallback)(A=>t=>{t.stopPropagation(),t.preventDefault(),e((0,Re.pD)(A,a))},[e,a]),O=(0,r.useCallback)(({rowId:e})=>r.createElement(Ne.A,{description:r.createElement(T.sA,{id:"LOG_DISMISS_EVENT"})},r.createElement("span",null,r.createElement(_e.A,{actionable:!0,onClick:u(e)}))),[u]),I=(0,r.useMemo)(()=>A?c:c.map(e=>({...e,_rowHoverContent:O})),[A,c,O]);return{logs:s||m?[]:d.length?[...I,...n.filter(e=>!d.includes(e[y.k1.ID]))]:n,criticalLogIds:d,logsTotalElementCount:l,logsOrMore:o,logsLoading:s||m}},De=(0,r.memo)(()=>{const e=(0,i.useSelector)(E.m_),{logs:A,criticalLogIds:t,logsTotalElementCount:a,logsOrMore:n,logsLoading:l}=Pe(),[m,d]=(0,s.A)(o.l.LOGS),{onRenderTable:u,onPageChanged:T,onRowsChanged:O}=Se({logs:A,criticalLogIds:t,logsPageNumber:e,initialColumnSize:m,onColumnSizingChange:d});return A.length?r.createElement(c.A,{section:"LOGS_LOGS",tableType:o.l.LOGS,itemCount:a,unknownCount:n,onRenderTable:u,onPageChanged:T,onRowsChanged:O,pageNumber:e,...de}):r.createElement(D,{logsLoading:l})});var fe=t(217439),be=t(592563),ve=t(701548),Le=t(998837);const he=(0,C.A)(M.A)`
  width: 100%;
  justify-content: space-between;
  border-radius: ${Oe.Ay["desktop-radius-global"]};
  padding: ${N.kc};
  background: ${({theme:{themeName:e}})=>Oe.Ay[`desktop-color-neutral-01-${e}`]};
`,ye=(0,C.A)(M.A)`
  gap: ${N.YC};
`,ze=(0,r.memo)(()=>{const e=(0,i.useDispatch)(),{motifPalette:{orange06:A}}=(0,Le.u)(),t=(0,i.useSelector)(E.d9),a=(0,i.useSelector)(Me.EL),n=(0,i.useSelector)((0,r.useMemo)(()=>(0,pe.ju)(t),[t])),l=(0,r.useCallback)(()=>{e((0,Re.jI)(t))},[e,t]);return n?r.createElement(he,null,r.createElement(ye,null,r.createElement(ve.A,{size:"original",variant:"fill",color:A}),r.createElement(fe.A,{color:"text-1",size:"medium"},r.createElement(T.sA,{id:"LOG_UNRESOLVED_EVENTS",values:{count:n}}))),a?null:r.createElement(be.A,{type:"button",fontSize:"medium",onPress:l},r.createElement(T.sA,{id:"COMMON_ACTION_CLEAR_ALL"}))):null});var ge=t(165126),xe=t(64741),We=t(429252),He=t.n(We),we=t(371715),Ue=t(960407),ke=t(22252),Ge=t(845030),Ve=t(975791),Xe=t(127448),Ze=t(717905),Ye=t(691189),Be=t(887831),Fe=t(987617);const je=(e={},A={})=>(0,Ye.sU)((0,Ve.dm)(e.data),Fe.gI,e,{method:Be.A.POST,idField:Fe.RR,fetchConfig:{getAllPostResponse:!0},additionalPayloadSelectors:{[Ze.bI.PAGE_NUMBER]:{},[Ze.bI.TOTAL_PAGE_COUNT]:{},[Ze.bI.TOTAL_ELEMENT_COUNT]:{},[Ze.bI.OR_MORE]:{}},failureToast:Q.Xz,compareFunction:Ve.Gw,payloadTransform:Ve.JL,...A});var Ke=t(200826);const qe={leading:!0},Je=()=>{const e=(0,i.useDispatch)(),A=(0,i.useSelector)(E.CU),t=(0,i.useSelector)(E.d9),a=(0,i.useSelector)((0,r.useMemo)(()=>(0,Ce.sf)(A),[A])),n=(0,i.useSelector)(E.m_),l=(0,i.useSelector)(E.eH),s=(0,i.useSelector)((0,r.useMemo)(()=>(0,Ce.li)(A),[A])),c=(0,i.useSelector)(Ue.it),m=(0,r.useMemo)(()=>h.WL.includes(c),[c]),{rowsPerPage:d}=(0,Ke.A)(o.l.LOGS),u=(0,r.useCallback)(A=>{(0,i.batch)(()=>{m&&e((0,Ge.K5)()),e((0,we.lB)((0,Ve.dm)(A))),e((0,L.ml)(v.B)),e(je({data:{...A,[y.hD.PAGE_NUMBER]:v.B}}))})},[e,m]),T=(0,r.useCallback)(A=>{(0,i.batch)(()=>{e((0,we.lB)((0,Xe.E)(A))),e((0,Re.Ji)({data:{...A}}))})},[e]),O=(0,r.useMemo)(()=>(0,xe.A)(u,1500,qe),[u]),I=(0,r.useMemo)(()=>(0,xe.A)(T,1500,qe),[T]),S=(0,r.useCallback)((A,t)=>{e(je({data:{...A,[y.hD.PAGE_NUMBER]:t}}))},[e]),N=(0,r.useRef)(A),_=He()((0,ge.A)(N.current,y.hD.PAGE_NUMBER),(0,ge.A)(A,y.hD.PAGE_NUMBER)),p=(0,r.useRef)(t),R=He()((0,ge.A)(p.current,y.hD.PAGE_NUMBER),(0,ge.A)(t,y.hD.PAGE_NUMBER));return(0,r.useEffect)(()=>{if(l)return e((0,L.ov)(!1)),u(A),void T(t);_||(e((0,L.ml)(v.B)),N.current=A,O(A)),R||(p.current=t,I(t))},[e,u,T,I,O,A,t,_,l,R]),(0,r.useEffect)(()=>{const e=(0,ke.G0)(n,d);(0,ke.Oi)({isNextPageUnloaded:(0,ke.$z)(s,e),allPagesLoaded:a,isSearchApplied:!1,areParamsEqual:_})&&S(A,e)},[S,d,_,a,A,s,e,n]),null};var Qe=t(751862);const $e=(0,r.memo)(()=>(Je(),r.createElement(Qe.x,null,r.createElement(ze,null),r.createElement(De,null))));var eA=t(956347),AA=t(592510),tA=t(582724),aA=t(15095),nA=t(556456),lA=t(55983),rA=t(1921);const iA=`${rA.A2}/defaults`,oA=`${rA.gI}/defaults`,sA=(e={},A={})=>(0,Ye.Kd)(iA,oA,"id",e,A);var cA=t(270701),EA=t(852445),mA=t(627068),dA=t(708984),uA=t(792072),TA=t(487598),OA=t(919952),IA=t(477140);const SA=(0,a.Mz)(e=>e[OA.U.LOGS_SETTINGS],e=>e[IA.D.SEARCH]);var NA;!function(e){e.EVENT="event",e.EVENT_LABEL="event_label",e.TYPE_LABEL="type_label"}(NA||(NA={}));const _A=e=>r.createElement(T.sA,{id:zA[e]}),pA=(0,C.A)(M.A)`
  align-items: center;
  gap: ${N.YC};
`,RA=e=>r.createElement(pA,null,_A(e)),CA=e=>r.createElement(pA,null,_A(e)),MA=e=>r.createElement(pA,null,_A(e));var PA;!function(e){e.TYPE="type",e.EVENT="event",e.MY_NOTIFICATIONS="myNotifications"}(PA||(PA={}));const DA=e=>r.createElement(W.A,{isTruncated:!0,size:"medium",color:"text-2"},e[NA.TYPE_LABEL]);var fA=t(25693),bA=t(755488);const vA=(0,C.A)(M.A)`
  align-items: center;
  gap: ${N.kc};
`,LA=({icon:e,isActive:A,onClick:t,themeName:a})=>(0,r.createElement)((e=>(0,C.A)(e)`
  cursor: pointer;
  border-radius: 50%;
  padding: 1px;
  border: 1px solid ${({theme:{themeName:e}})=>Oe.Ay[`desktop-color-neutral-03-${e}`]};
  color: ${({theme:{themeName:e}})=>Oe.Ay[`desktop-color-neutral-08-${e}`]};
`)(e),{size:"large",variant:"twoTone",motif:a,isActive:A,onClick:t}),hA=e=>{const A=(0,i.useDispatch)(),{themeName:t}=(0,Le.u)(),a=(0,i.useSelector)(mA.tn),n=(0,r.useCallback)(t=>()=>{const n={...a[dA.Oj.ALERT_EVENT_SETTINGS],[e[NA.EVENT]]:{...a[dA.Oj.ALERT_EVENT_SETTINGS][e[NA.EVENT]],[t]:!e[t]}};A((0,mA.sM)({...a,[dA.Oj.ALERT_EVENT_SETTINGS]:n,[dA.Oj.SETTING_PREFERENCE]:Object.values(n).some(e=>e[dA.y0.SEND_EMAIL]||e[dA.y0.SEND_MOBILE_PUSH_NOTIFICATION]||e[dA.y0.SHOW_IN_ALERT_PAGE])?dA.i$.ON:dA.i$.OFF}))},[A,a,e]);return r.createElement(vA,null,LA({icon:fA.A,isActive:e[dA.y0.SEND_MOBILE_PUSH_NOTIFICATION],onClick:n(dA.y0.SEND_MOBILE_PUSH_NOTIFICATION),themeName:t}),LA({icon:bA.A,isActive:e[dA.y0.SEND_EMAIL],onClick:n(dA.y0.SEND_EMAIL),themeName:t}))},yA=e=>r.createElement(W.A,{isTruncated:!0,size:"medium",color:"text-2"},e[NA.EVENT_LABEL]),zA={[PA.TYPE]:"COMMON_TYPE",[PA.EVENT]:"COMMON_EVENT",[PA.MY_NOTIFICATIONS]:"LOGS_MY_NOTIFICATIONS"},gA={[PA.TYPE]:RA,[PA.EVENT]:MA,[PA.MY_NOTIFICATIONS]:CA},xA={[PA.TYPE]:120,[PA.EVENT]:120,[PA.MY_NOTIFICATIONS]:50},WA={[PA.TYPE]:DA,[PA.EVENT]:yA,[PA.MY_NOTIFICATIONS]:hA},HA=Object.values(PA),wA=e=>e,UA=({header:{id:e}})=>gA[e](e),kA=e=>xA[e],GA=({column:{id:e},getValue:A})=>WA[e](A()),VA="LOGS_SETTINGS_TABLE_WRAPPER_CLASSNAME",XA="LOGS_SETTINGS_TABLE_HEADER_CLASSNAME",ZA="LOGS_SETTINGS_TABLE_ROW_CLASSNAME",YA={columns:HA.map(e=>({id:e,accessorFn:wA,header:UA,cell:GA,size:kA(e),enableResizing:!1,enableSorting:!1})),wrapperClassName:VA,headerClassName:XA,rowClassName:ZA,stickyHeader:!0},BA=(0,C.A)(M.A)`
  width: 100%;
  height: 100%;
  overflow: auto;
  flex-direction: column;
  position: relative;
  scrollbar-gutter: stable;
  .${VA} {
    width: 100%;
  }
  .${XA} {
    > tr {
      > th {
        height: 32px !important;
        > div {
          height: 32px !important;
        }
        padding: 0 ${N.kc};
      }
    }
  }
  .${ZA} {
    height: 32px !important;
    > td {
      padding: 0 ${N.kc};
      > div {
        white-space: pre-line;
      }
  }
`,FA=(0,r.memo)(()=>{const{formatMessage:e}=(0,T.tz)(),A=(0,i.useSelector)((0,r.useMemo)(()=>(e=>(0,n.WY)()((0,a.Mz)(mA.tn,SA,uA.Ty,TA.hX,TA.Zm,TA.hf,TA.Yd,TA.bR,(A,t,a,n,l,r,i,o)=>{return s=Object.entries(A[dA.Oj.ALERT_EVENT_SETTINGS]).filter(([e])=>(0,EA.r)({isSslInspectionSupported:a,featureAfcCapableApAdopted:n,featureLteBackupAdopted:l,featureMissionCriticalAdopted:r,featureUpsAdopted:i,featureMobileBroadbandAdopted:o})(e)).map(([A,t])=>({[NA.EVENT]:A,[NA.TYPE_LABEL]:e({id:Q.$4[t[dA.y0.SUBCATEGORY]]}),[NA.EVENT_LABEL]:e({id:`${y.yQ.SYS_LOG_EVENT}_${A}`}),...t})),(t?s.filter(e=>e[NA.TYPE_LABEL].toLowerCase().includes(t.toLowerCase())||e[NA.EVENT_LABEL].toLowerCase().includes(t.toLowerCase())):s).sort((e,A)=>{return 0===(t=e[NA.TYPE_LABEL].toLowerCase().localeCompare(A[NA.TYPE_LABEL].toLowerCase()))?e[NA.EVENT_LABEL].toLowerCase().localeCompare(A[NA.EVENT_LABEL].toLowerCase()):t;var t});var s}),e=>e))(e),[e]));return r.createElement(BA,null,r.createElement(f.A,{data:A,...YA}))});var jA,KA=t(343637),qA=t(279677),JA=t(296968);!function(e){e.LOGS="logs",e.SETTINGS="settings"}(jA||(jA={}));const QA="LOGS_SETTINGS_BREADCRUMB_DEFAULT_CLASSNAME",$A={className:QA,variant:"emphasis"},et=(0,r.memo)(()=>{const e=(0,eA.W6)(),A=(0,aA.A)(`${l.VO.SYSLOG}/${JA.x.MAIN}`),t=(0,r.useCallback)(()=>{e.push(A)},[e,A]);return r.createElement(KA.A,{...$A,onAction:t},r.createElement(qA.A,{id:jA.LOGS},r.createElement(T.sA,{id:"COMMON_SIDE_NAV_LOGS"})),r.createElement(qA.A,{id:jA.SETTINGS},r.createElement(T.sA,{id:"LOGS_PUSH_NOTIFICATION_SETTINGS"})))});var At=t(979106),tt=t(25553),at=t(87485);const nt=(0,tt.uh)(sA()),lt=(0,a.Mz)(nt,at.i6),rt=[{id:dA.i$.OFF,label:r.createElement(T.sA,{id:"COMMON_OFF"})},{id:dA.i$.ON,label:r.createElement(T.sA,{id:"COMMON_ON"})}],it=(0,C.A)(M.A)`
  margin-left: auto;
`,ot=(0,r.memo)(()=>{const e=(0,i.useDispatch)(),A=(0,i.useSelector)(mA.tn),t=(0,i.useSelector)(lt),a=(0,r.useCallback)(({id:a})=>{e((0,mA.sM)({...A,...(()=>{switch(a){case dA.i$.ON:return{...t};case dA.i$.OFF:return{[dA.Oj.SETTING_PREFERENCE]:dA.i$.OFF,[dA.Oj.ALERT_EVENT_SETTINGS]:Object.fromEntries(Object.entries(A[dA.Oj.ALERT_EVENT_SETTINGS]).map(([e,A])=>[e,{...A,[dA.y0.SEND_EMAIL]:!1,[dA.y0.SEND_MOBILE_PUSH_NOTIFICATION]:!1,[dA.y0.SHOW_IN_ALERT_PAGE]:!1}]))};default:return{}}})()}))},[e,A,t]);return r.createElement(it,null,r.createElement(At.A,{tabs:rt,selectedTab:A[dA.Oj.SETTING_PREFERENCE],onSelectTab:a,variant:"capsule"}))});var st=t(105925),ct=t(874807),Et=t(382915),mt=t(33703),dt=t(262817);const ut=(0,r.memo)(()=>{const e=(0,i.useDispatch)(),A=(0,i.useSelector)(SA),t=(0,r.useCallback)((A,t)=>{e((0,dt.L)(t))},[e]),a=(0,r.useCallback)(()=>{e((0,dt.L)(mt.V))},[e]);return r.createElement(st.A,{onAddTag:ct.P1,onRemoveTag:ct.P1,onReset:a,onChange:t,value:A,width:Et.Em})}),Tt=(0,C.A)(M.A)`
  width: 100%;
  align-items: center;
  gap: ${N.kc};
`,Ot=(0,r.memo)(()=>r.createElement(Tt,null,r.createElement(ut,null),r.createElement(ot,null))),It=(0,C.A)(M.A)`
  width: 50%;
  min-width: 700px;
  height: 100%;
  flex-direction: column;
  gap: ${N.Ln};
  padding: ${N.Ln};
  .${QA} > ol > li > span {
    max-width: unset;
  }
`,St=()=>(0,tA.A)([(0,cA.X)(void 0,{crudCacheStrategy:{type:AA.e.CACHE}}),sA(void 0,{crudCacheStrategy:{type:AA.e.CACHE}})],r.createElement(It,null,r.createElement(et,null),r.createElement(Ot,null),r.createElement(FA,null))),Nt=(0,r.memo)(()=>{const e=(0,i.useSelector)(nA.zn),A=(0,aA.A)(lA.p6);return e?r.createElement(eA.rd,{to:A}):r.createElement(St,null)}),_t={[JA.x.MAIN]:[],[JA.x.SETTINGS]:[]},pt=(0,n.WY)()((0,a.Mz)(()=>({[l.o9.ROUTE_COMPONENT]:$e,[l.o9.SIDE_NAVIGATION]:void 0,[l.o9.ROUTE]:{[l.Fm.AVAILABLE]:!0},[l.o9.NAVIGATION]:{[l.mx.AVAILABLE]:!0},[l.o9.DEPENDENCIES]:_t[JA.x.MAIN]})),e=>e),Rt=(0,n.WY)()((0,a.Mz)(()=>({[l.o9.ROUTE_COMPONENT]:Nt,[l.o9.SIDE_NAVIGATION]:void 0,[l.o9.ROUTE]:{[l.Fm.AVAILABLE]:!0},[l.o9.NAVIGATION]:{[l.mx.AVAILABLE]:!0},[l.o9.DEPENDENCIES]:_t[JA.x.SETTINGS]})),e=>e),Ct=(0,n.WY)()((0,a.Mz)(pt,Rt,(e,A)=>({[JA.x.MAIN]:e,[JA.x.SETTINGS]:A})),e=>e)},515941:(e,A,t)=>{t.d(A,{A:()=>s});var a=t(296540),n=t(71479),l=t(825032),r=t(294303);const i=({theme:{themeName:e}})=>e===l.S.DARK?"\nlinear-gradient(\n  90deg,\n  rgba(35, 35, 35, 0) 0%,\n  rgba(35, 35, 35, 0.8) 40%,\n  rgba(35, 35, 35, 0.8) 60%,\n  rgba(35, 35, 35, 0) 100%\n);":"\nlinear-gradient(\n  90deg,\n  rgba(225, 225, 225, 0) 0%,\n  rgba(225, 225, 225, 0.7) 40%,\n  rgba(225, 225, 225, 0.7) 60%,\n  rgba(225, 225, 225, 0) 100%\n);",o=(0,n.A)(r.A)`
  height: 100%;
  position: absolute;
  display: flex;
  width: 100%;
  height: auto;
  min-height: 100%;
  overflow: hidden;
  &:before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    width: 100%;
    height: 100%;
    transform: translateX(-100%);
    z-index: 2;
    background: ${i};
    animation-name: animation;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-delay: 1.5s;
    animation-timing-function: linear;
  }
  &:after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    width: 100%;
    height: 100%;
    transform: translateX(-100%);
    background: ${i};
    animation-name: animation;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
  }
  @keyframes animation {
    from {
      transform: translateX(-100%);
    }
    to {
      transform: translatex(100%);
    }
  }
`,s=(0,a.memo)(o)},515986:(e,A,t)=>{t.d(A,{Bm:()=>r,MF:()=>n,O2:()=>l,yu:()=>i});var a=t(678466);const n={UNIFI_WEBRTC_APP_CONTEXT_CHANGE:"UNIFI_WEBRTC_APP_CONTEXT_CHANGE"},l={UNIFI_WEBRTC_OBTAINING_CONTROLLER_INFO:"UNIFI_WEBRTC_OBTAINING_CONTROLLER_INFO",UNIFI_WEBRTC_ESTABLISHING_COMMUNICATION:"UNIFI_WEBRTC_ESTABLISHING_COMMUNICATION",UNIFI_WEBRTC_INITIALIZING_APPLICATION:"UNIFI_WEBRTC_INITIALIZING_APPLICATION"},r={DEVICE_OFFLINE:"DEVICE_OFFLINE",DEVICE_VERSION_INCOMPATIBLE:"DEVICE_VERSION_INCOMPATIBLE",ERROR_ESTABLISH_CONNECTION:"ERROR_ESTABLISH_CONNECTION",ERROR_NOT_LOGGED_INTO_SSO:"ERROR_NOT_LOGGED_INTO_SSO"},i=a.WEBRTC_EVENTS},517994:(e,A,t)=>{t.d(A,{$m:()=>o,ne:()=>i,xt:()=>s});var a=t(691189),n=t(87485),l=t(294201),r=t(751156);const i=({start:e,end:A},t={},n={})=>(0,a.An)([{model:r.A2,payload:(t=[])=>[{hotspotGuests:t,[r.RR]:`${e}_${A}`}]}],r.gI,{queryParams:{start:e,end:A},...t},{idField:r.RR,...n}),o=(e,A,t={})=>(0,a.Xj)(l.A.EXTEND,r.BX,{_id:e},{...(0,n.rk)("HOTSPOT_ACTIONS_EXTEND_ERROR",{guestName:A}),...t}),s=(e,A,t={})=>(0,a.Xj)(l.A.TERMINATE,r.BX,{_id:e},{...(0,n.rk)("HOTSPOT_ACTIONS_UNAUTHORIZE_ERROR",{guestName:A}),...t})},525512:(e,A,t)=>{t.d(A,{$N:()=>i,K6:()=>r,WM:()=>l});var a=t(300477);const n={},l=()=>n,r=(e,A,t=!1,l=null)=>{const r=l||(0,a.A)();return n[r]||(n[r]={eventKeys:Array.isArray(e)?e:[e],id:r,action:A,forSuperSite:t}),r},i=e=>{delete n[e]}},530813:(e,A,t)=>{t.d(A,{A:()=>d,d:()=>m});var a=t(296540),n=t(217439),l=t(705145),r=t(71479),i=t(311785),o=t(566723),s=t(699784),c=t(795097),E=t(294303);const m=(0,r.A)(c.A,(0,i.A)("showListMarkers","gap"))`
  padding-left: ${({showListMarkers:e})=>e?o.Ln:0};
  display: flex;
  flex-direction: column;
  gap: ${({gap:e})=>e??o.YC};

  > li {
    list-style-type: ${({showListMarkers:e})=>e?"disc":"none"};
  }
`;const d=function({items:e,getItemKey:A,renderItem:t,maxItemCount:r=20,renderShowMore:i,showListMarkers:c,listGap:d}){return a.createElement(E.A,{flexDirection:"column",gap:o.YC},a.createElement(m,{showListMarkers:c,gap:d},e.slice(0,r).map((e,n)=>a.createElement("li",{key:A(e,n)},a.createElement(l.A,{variant:"inherit",isTruncated:!0},t(e))))),r&&e.length>r?i?i(e):a.createElement(n.A,{variant:"inherit"},a.createElement(s.sA,{id:"COMMON_X_MORE",values:{count:e.length-r}})):null)}},531046:(e,A,t)=>{t.d(A,{A2:()=>a,RR:()=>l,gI:()=>n});const a="hotspotPayments",n="/api/s/{site}/stat/payment",l="_id"},532114:(e,A,t)=>{t.d(A,{A:()=>n});var a=t(217439);const n=(0,t(71479).A)(a.A,{shouldForwardProp:e=>"colorOverride"!==e})`
  ${({colorOverride:e})=>e?`color: ${e} !important`:""};
`},542616:(e,A,t)=>{t.d(A,{B:()=>r,Y:()=>i});var a=t(71479),n=t(311785),l=t(294303);const r=(0,a.A)("div",(0,n.A)("isInProgress","opacity","blur"))`
  ${({isInProgress:e,opacity:A=.5,blur:t=2})=>e?`\n      > * { \n        filter: blur(${t}px) opacity(${A});\n      }\n    `:""}
`,i=(0,a.A)(l.A)`
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
`},545111:(e,A,t)=>{t.d(A,{N:()=>a});const a=(0,t(296540).createContext)({mac:void 0,deviceName:void 0,isQuickScanning:!1,quickScanningChannelWidth:void 0,quickScanningRadio:void 0,supportedQuickScan:!1})},553240:(e,A,t)=>{t.d(A,{A:()=>n});var a=t(170459);const n=(e=[],A=[],t=[])=>e?.reduce((n,l)=>(n[l.radio]||(n[l.radio]=[]),n[l.radio].push({channel:(0,a.ry)({name:l.name,radio_table:e,radio_table_stats:A}),channelWidth:(0,a.Aq)(l,t?.find(e=>e.radio_name===l.name))}),n),{})||{}},556456:(e,A,t)=>{t.d(A,{XU:()=>d,YQ:()=>u,aB:()=>m,g0:()=>N,jO:()=>T,tx:()=>E,yB:()=>c,yE:()=>I,zn:()=>S});var a=t(801081),n=t(874807),l=t(187483),r=t(448547),i=t(524332),o=t(55983);const s=(0,a.Mz)(l.kb,e=>e[r.C2.SWAI_ROUTES]||[]),c=(0,a.Mz)(s,e=>e.filter(e=>o.ZP.every(A=>!e[i.rR.PATH].startsWith(A)))),E=(0,a.Mz)(c,e=>e.filter(e=>!e[i.rR.IS_HIDDEN])),m=(0,a.Mz)(s,e=>e.filter(e=>e[i.rR.PATH].startsWith(r.Kr.SETTINGS))),d=(0,a.Mz)(m,e=>e.filter(e=>!e[i.rR.IS_HIDDEN])),u=(0,a.Mz)(s,e=>e.filter(e=>e[i.rR.PATH].startsWith(r.Kr.SYSLOG))),T=(0,a.Mz)(u,e=>e.filter(e=>!e[i.rR.IS_HIDDEN])),O=e=>(0,a.Mz)(s,A=>A.some(A=>A[i.rR.PATH].includes(e)&&!A[i.rR.IS_HIDDEN])),I=(0,a.Mz)(O(o.aY),e=>e),S=(0,a.Mz)(O(o.p6),e=>e),N=(0,a.Mz)(l.nx,e=>e[r.Y7.ROUTES_ADAPTER]||{[i.bh.ROUTES]:[],[i.bh.ADD_ROUTES_LISTENER]:n.P1,[i.bh.REMOVE_ROUTES_LISTENER]:n.P1,[i.bh.ON_ROUTE_CONTAINER_ADDED]:n.P1,[i.bh.ON_ROUTE_CONTAINER_REMOVED]:n.P1})},557162:(e,A,t)=>{t.d(A,{Es:()=>D,FP:()=>u,GQ:()=>C,JC:()=>P,JJ:()=>_,Lc:()=>S,Lr:()=>c,Z6:()=>f,e5:()=>d,fs:()=>R,h5:()=>m,iB:()=>M,jg:()=>T,js:()=>p,kH:()=>s,nJ:()=>I,rj:()=>N,sw:()=>O,y6:()=>E});var a=t(801081),n=t(429252),l=t.n(n),r=t(919952),i=t(616498),o=t(843005);const s=e=>e[r.U.CLIENTS],c=(0,a.Mz)(s,e=>e[i.tJ.STATUS]),E=(0,a.Mz)(s,e=>e[i.tJ.CONNECTION]),m=(0,a.Mz)(s,e=>e[i.tJ.GROUPS]),d=(0,a.Mz)(s,e=>e[i.tJ.ACCESS_POINTS]),u=(0,a.Mz)(s,e=>e[i.tJ.BROADCASTS]),T=(0,a.Mz)(s,e=>e[i.tJ.VLANS]),O=(0,a.Mz)(s,e=>e[i.tJ.VENDORS]),I=(0,a.Mz)(s,e=>e[i.tJ.FINGERPRINT_DEVICE_NAMES]),S=(0,a.Mz)(s,e=>e[i.tJ.RADIOS]),N=(0,a.Mz)(s,e=>e[i.tJ.WIFI_GENERATIONS]),_=(0,a.Mz)(s,e=>e[i.tJ.SIGNAL]),p=(0,a.Mz)(s,e=>e[i.tJ.LINK_SPEEDS]),R=(0,a.Mz)(s,e=>e[i.tJ.DAILY_USAGE]),C=(0,a.Mz)(s,e=>e[i.tJ.CONFIGURATIONS]),M=(0,a.Mz)(s,e=>l()(e,o.C)),P=(0,a.Mz)(E,e=>!e.length||e.includes(i.VD.WIRELESS)),D=(0,a.Mz)(s,e=>e[i.tJ.WIFI_USAGE_DIAGRAM_VISIBILITY]),f=(0,a.Mz)(D,P,(e,A)=>e&&A)},560485:(e,A,t)=>{t.d(A,{j:()=>n});var a=t(691189);const n=(e,A)=>(0,a.Kd)("uiData","/api/ui-data","uiData",{queryParams:{invalidate:!!e||void 0}},{crudCacheStrategy:A,idField:"_id"})},567299:(e,A,t)=>{var a;t.d(A,{i:()=>a}),function(e){e.AGGREGATED_DASHBOARD="aggregatedDashboard",e.DEVICES="devices"}(a||(a={}))},568977:(e,A,t)=>{t.d(A,{S:()=>I,QI:()=>O,EL:()=>S,mJ:()=>p,Ng:()=>R});var a=t(801081),n=t(189601),l=t(627440),r=t(296540);const i=(0,r.lazy)(()=>Promise.all([t.e(30715),t.e(72272),t.e(15302)]).then(t.bind(t,621538))),o=()=>r.createElement(r.Suspense,{fallback:null},r.createElement(i,null)),s=(0,r.lazy)(()=>Promise.all([t.e(83286),t.e(89716),t.e(88788)]).then(t.bind(t,824443))),c=()=>r.createElement(r.Suspense,{fallback:null},r.createElement(s,null));var E=t(668478),m=t(532419),d=t(670180),u=t(873501),T=t(257143);const O=(0,a.Mz)(()=>!0),I=(0,a.Mz)(m.$8,m.m9,(e,A)=>!e||A),S=(0,a.Mz)(E._,e=>e),N=(0,n.WY)()((0,a.Mz)(O,e=>({[l.o9.ROUTE_COMPONENT]:o,[l.o9.SIDE_NAVIGATION]:void 0,[l.o9.ROUTE]:{[l.Fm.AVAILABLE]:e},[l.o9.NAVIGATION]:{[l.mx.AVAILABLE]:e},[l.o9.DEPENDENCIES]:u.I[d.H.FLOWS]})),e=>e),_=(0,n.WY)()((0,a.Mz)(I,e=>({[l.o9.ROUTE_COMPONENT]:c,[l.o9.SIDE_NAVIGATION]:void 0,[l.o9.ROUTE]:{[l.Fm.AVAILABLE]:e},[l.o9.NAVIGATION]:{[l.mx.AVAILABLE]:e},[l.o9.DEPENDENCIES]:u.I[d.H.ACTIVITY],[l.o9.REDIRECT_WHEN_UNAVAILABLE]:{[l.W4.PATH]:T.K[d.H.FLOWS]}})),e=>e),p=(0,n.WY)()((0,a.Mz)(N,_,(e,A)=>({[d.H.FLOWS]:e,[d.H.ACTIVITY]:A})),e=>e),R=(0,n.WY)()((0,a.Mz)(p,e=>Object.values(e).some(({[l.o9.ROUTE]:{[l.Fm.AVAILABLE]:e},[l.o9.NAVIGATION]:{[l.mx.AVAILABLE]:A}})=>e&&A)),e=>e)},570636:(e,A,t)=>{t.d(A,{L:()=>c});var a=t(801081),n=t(840279),l=t(523275),r=t(918710),i=t(897254);const o=(0,a.Mz)(r.e6,e=>e[i.ZJ.WAN]||(0,l.A)());var s;!function(e){e.GATEWAY="gateway",e.WAN_DETAILS="wan_details"}(s||(s={}));const c=(0,a.Mz)(o,e=>e[s.WAN_DETAILS]||(0,n.A)())},572112:(e,A,t)=>{t.d(A,{A:()=>r});var a=t(779005);const n={[a.L.XS]:{FROM:0,TO:374},[a.L.S]:{FROM:375,TO:567},[a.L.SM]:{FROM:568,TO:767},[a.L.M]:{FROM:768,TO:1023},[a.L.ML]:{FROM:1024,TO:1199},[a.L.L]:{FROM:1200,TO:1919},[a.L.XL]:{FROM:1920,TO:2559},[a.L.XXL]:{FROM:2560,TO:1/0}},l={DASHBOARD:{LAYOUT:{MOBILE:"(max-width: 767px)",DESKTOP:"(min-width: 768px)"},CHART:{MOBILE:"(max-width: 1419px)",DESKTOP:"(min-width: 1420px)"},BAND_SELECTOR:{MOBILE:"(max-width: 1119px)",DESKTOP:"(min-width: 1120px)"}}},r={...n,...l,SIDE_NAVIGATION_BREAKPOINT_UP:"(min-width: 601px)",SIDE_NAVIGATION_BREAKPOINT_DOWN:"(max-width: 600px)",VIEWPORT_XS:`(max-width: ${n[a.L.XS].TO}px)`,VIEWPORT_S:`(min-width: ${n[a.L.S].FROM}px) and (max-width: ${n[a.L.S].TO}px)`,VIEWPORT_SM:`(min-width: ${n[a.L.SM].FROM}px) and (max-width: ${n[a.L.SM].TO}px)`,VIEWPORT_M:`(min-width: ${n[a.L.M].FROM}px) and (max-width: ${n[a.L.M].TO}px)`,VIEWPORT_ML:`(min-width: ${n[a.L.ML].FROM}px) and (max-width: ${n[a.L.ML].TO}px)`,VIEWPORT_L:`(min-width: ${n[a.L.L].FROM}px) and (max-width: ${n[a.L.L].TO}px)`,VIEWPORT_XL:`(min-width: ${n[a.L.XL].FROM}px) and (max-width: ${n[a.L.XL].TO}px)`,VIEWPORT_XXL:`(min-width: ${n[a.L.XXL].FROM}px)`,VIEWPORT_XS_UP:`(min-width: ${n[a.L.S].FROM}px)`,VIEWPORT_S_UP:`(min-width: ${n[a.L.SM].FROM}px)`,VIEWPORT_SM_UP:`(min-width: ${n[a.L.M].FROM}px)`,VIEWPORT_M_UP:`(min-width: ${n[a.L.ML].FROM}px)`,VIEWPORT_ML_UP:`(min-width: ${n[a.L.L].FROM}px)`,VIEWPORT_L_UP:`(min-width: ${n[a.L.XL].FROM}px)`,VIEWPORT_XL_UP:`(min-width: ${n[a.L.XXL].FROM}px)`,VIEWPORT_S_DOWN:`(max-width: ${n[a.L.S].TO}px)`,VIEWPORT_SM_DOWN:`(max-width: ${n[a.L.SM].TO}px)`,VIEWPORT_M_DOWN:`(max-width: ${n[a.L.M].TO}px)`,VIEWPORT_ML_DOWN:`(max-width: ${n[a.L.ML].TO}px)`,VIEWPORT_L_DOWN:`(max-width: ${n[a.L.L].TO}px)`,VIEWPORT_XL_DOWN:`(max-width: ${n[a.L.XL].TO}px)`,VIEWPORT_XXL_DOWN:`(max-width: ${n[a.L.XXL].TO}px)`}},576814:(e,A,t)=>{t.d(A,{ms:()=>r,Qs:()=>i,s8:()=>l});var a=t(592510),n=t(691189);const l=e=>`${e.ap_mac}-${e.bssid}`,r=(e,A,t={},a={})=>(0,n.t9)("wifiScanner","/api/s/{site}/stat/rogueap",{...t,queryParams:{...t.queryParams||{},start:e,end:A}},{idField:l,...a}),i=(e,A)=>r(e,A,void 0,{crudCacheStrategy:{type:a.e.COMBINED,interval:12e3}})},580427:(e,A,t)=>{t.d(A,{D:()=>a});const a="2x"},596731:(e,A,t)=>{t.d(A,{On:()=>l,Si:()=>o,eu:()=>n,hH:()=>i,wk:()=>r});var a=t(627440);const n="/:site",l="section",r=`:${l}?`,i=":subSection?",o={[a.VO.DASHBOARD]:`${n}/${a.VO.DASHBOARD}/${r}`,[a.VO.TOPOLOGY]:`${n}/${a.VO.TOPOLOGY}`,[a.VO.DEVICES]:`${n}/${a.VO.DEVICES}`,[a.VO.CLIENTS]:`${n}/${a.VO.CLIENTS}/${r}`,[a.VO.PORTS]:`${n}/${a.VO.PORTS}/${r}`,[a.VO.AIRVIEW]:`${n}/${a.VO.AIRVIEW}/${r}`,[a.VO.INSIGHTS]:`${n}/${a.VO.INSIGHTS}/${r}/${i}`,[a.VO.ADMINS]:`${n}/${a.VO.ADMINS}/${r}`,[a.VO.SYSLOG]:`${n}/${a.VO.SYSLOG}/${r}`,[a.VO.SETTINGS]:`${n}/${a.VO.SETTINGS}`}},597372:(e,A,t)=>{t.d(A,{A:()=>d});var a=t(801081),n=t(189601),l=t(296540),r=t(472797),i=t(627440),o=t(789149);const s=({currentPage:e,preloadTranslation:A,getRouteHref:t})=>l.createElement(r.A,{...(0,o.E)({currentPage:e,preloadTranslation:A,getRouteHref:t})[i.VO.SYSLOG]}),c=(0,l.lazy)(()=>Promise.all([t.e(46880),t.e(23195),t.e(83286),t.e(82942),t.e(45378)]).then(t.bind(t,532082))),E=e=>l.createElement(l.Suspense,{fallback:null},l.createElement(c,{...e}));var m=t(221649);const d=(0,n.WY)()((0,a.Mz)(()=>({[i.o9.ROUTE_COMPONENT]:E,[i.o9.SIDE_NAVIGATION]:s,[i.o9.ROUTE]:{[i.Fm.AVAILABLE]:!0},[i.o9.NAVIGATION]:{[i.mx.AVAILABLE]:!0},[i.o9.DEPENDENCIES]:m.I[i.VO.SYSLOG]})),e=>e)},597766:(e,A,t)=>{var a,n,l,r,i;t.d(A,{AW:()=>r,G:()=>i,GA:()=>n,eX:()=>l,hC:()=>a}),function(e){e.METRICS_BY_ISP_ID="metrics_by_isp_id"}(a||(a={})),function(e){e.HISTORY="history",e.LIVE="live"}(n||(n={})),function(e){e.TIMESTAMP="timestamp",e.AVG_OBSTRUCTION="avg_obstruction",e.MAX_OBSTRUCTION="max_obstruction",e.MIN_OBSTRUCTION="min_obstruction",e.AVG_POP_PING_LATENCY_MS="avg_pop_ping_latency_ms",e.MAX_POP_PING_LATENCY_MS="max_pop_ping_latency_ms",e.MIN_POP_PING_LATENCY_MS="min_pop_ping_latency_ms"}(l||(l={})),function(e){e.OBSTRUCTION="obstruction",e.POP_PING_LATENCY_MS="pop_ping_latency_ms",e.SOFTWARE_UPDATE_STATE="software_update_state",e.SOFTWARE_VERSION="software_version"}(r||(r={})),function(e){e.SOFTWARE_UPDATE_STATE_UNKNOWN="SOFTWARE_UPDATE_STATE_UNKNOWN",e.IDLE="IDLE",e.FETCHING="FETCHING",e.PRE_CHECK="PRE_CHECK",e.WRITING="WRITING",e.POST_CHECK="POST_CHECK",e.REBOOT_REQUIRED="REBOOT_REQUIRED",e.DISABLED="DISABLED",e.FAULTED="FAULTED"}(i||(i={}))},598447:(e,A,t)=>{t.d(A,{A:()=>i});var a=t(296540),n=t(217439),l=t(38937),r=t(699784);const i=({signal:e,...A})=>e?a.createElement(n.A,{size:"medium",color:(0,l.a5)(e),...A},e," ",a.createElement(r.sA,{id:"COMMON_UNIT_DBM"})):a.createElement(n.A,{size:"medium",color:"inherit",...A},a.createElement(r.sA,{id:"COMMON_FALLBACK"}))},598937:(e,A,t)=>{t.d(A,{A:()=>o});var a=t(296540),n=t(523275),l=t(840279),r=t(168703);const i={[r.x.CURRENT_WAN_DETAILS]:(0,n.A)(),[r.x.CURRENT_WAN_HISTORY_DETAILS]:(0,n.A)(),[r.x.CURRENT_WAN_UPTIME]:void 0,[r.x.INITIAL_WAN_TAB]:void 0,[r.x.IS_WAN_CONNECTED]:void 0,[r.x.HEALTH_HISTORIES]:(0,l.A)(),[r.x.DOWNTIME_HISTORY]:(0,l.A)(),[r.x.DATE_TIME_FORMAT]:(0,n.A)(),[r.x.REDIRECTOR]:(0,n.A)(),[r.x.TOOLTIP_TIME_RANGE]:void 0,[r.x.NETWORK_GROUP_DETAILS]:(0,l.A)(),[r.x.HAS_MULTIPLE_WANS]:void 0,[r.x.MBB_STATUS]:(0,n.A)(),[r.x.ISP_NAME]:void 0,[r.x.ISP_ASN]:void 0,[r.x.CURRENT_ISP_ID]:void 0},o=(0,a.createContext)(i)},602338:(e,A,t)=>{t.d(A,{F:()=>E,K:()=>m});var a=t(469733),n=t(296540),l=t(249304),r=t(789768),i=t(190497),o=t(267509),s=t(600446),c=t(656883);const E=()=>{const e=(0,a.useDispatch)(),A=(0,a.useSelector)(s.W);return(0,n.useCallback)(async t=>{const a={...A,[o.dp.DEVICE]:t};e((0,c.n)(a)),await e((0,r.yT)(l.l.RADIOS,{filters:a}))},[e,A])},m=()=>{const e=(0,a.useDispatch)(),A=(0,a.useSelector)(s.W);return(0,n.useCallback)(async t=>{const a={...A,[o.dp.SSID]:i.nc,[o.dp.MACS]:t};e((0,c.n)(a)),e((0,r.yT)(l.l.RADIOS,{filters:a}))},[e,A])}},603281:(e,A,t)=>{t.d(A,{A:()=>uE});var a=t(296540),n=t(469733),l=t(1959),r=t(186869),i=t(87582),o=t(155918),s=t(340936),c=t(217439),E=t(668995),m=t(874807),d=t(398300),u=t(845030),T=t(699784),O=t(771641),I=t(168703),S=t(598937),N=t(732063),_=t(421851),p=t(360146);const R=(e,A,t=void 0)=>(0,a.useMemo)(()=>e.slice(0,((e,A,t)=>{const a=[];for(let A=0;A<e;A+=1)a.push(p.Yk+p.ur+(Number.isInteger(t)?p.g1*(t-1)/e:0));for(let t=e;t>0;t-=1){if(a.reduce((e,A)=>e+A,0)-p.ur<A)return a.length;a.pop()}return e})(e.length,A,t)),[e,A,t]);var C=t(801081),M=t(523275),P=t(840279),D=t(918710),f=t(619066);const b=(0,C.Mz)(D.e6,e=>e[r.o.find(A=>A in e)]||(0,M.A)()),v=(0,C.Mz)(b,e=>e[f.zt.USAGE_BY]||(0,P.A)()),L={[o.Z.MOST_ACTIVE_APPS_APS_CLIENTS]:"DASHBOARD_NO_APS_CLIENTS_APPS",[o.Z.MOST_ACTIVE_APPS_CLIENTS]:"DASHBOARD_NO_APPS_OR_CLIENTS",[o.Z.MOST_ACTIVE_APS_CLIENTS]:"DASHBOARD_NO_APS_OR_CLIENTS",[o.Z.MOST_ACTIVE_APPS_APS]:"DASHBOARD_NO_APS_OR_APPS",[o.Z.MOST_ACTIVE_APPS]:"DASHBOARD_NO_APPS",[o.Z.V2_MOST_ACTIVE_APS]:"DASHBOARD_NO_APS",[o.Z.V2_MOST_ACTIVE_CLIENTS]:"DASHBOARD_NO_CLIENTS"};var h=t(71479),y=t(294303);const z=(0,h.A)(y.A)`
  justify-content: center;
  width: 100%;
`,g=(0,a.memo)(()=>{const e=(0,n.useSelector)(i.C_),A=(0,a.useMemo)(()=>r.o.find(A=>e.includes(A)),[e]);return a.createElement(z,null,a.createElement(c.A,{color:"text-1",size:"medium"},a.createElement(T.sA,{id:L[A]||"DASHBOARD_NO_APS_CLIENTS_APPS"})))});var x=t(325898),W=t(271856),H=t(646189),w=t(703447),U=t(705145),k=t(628291),G=t(903216),V=t(438369),X=t(670),Z=t(482572),Y=t(580427);const B=({mostActiveClient:e,tooltipTimeRange:A,motif:t})=>a.createElement(Z.UI,null,a.createElement(Z.Se,null,a.createElement(Z.K5,null,a.createElement(w.A,{size:Y.D,width:p.oT,height:p.oT,client:e}),a.createElement(U.A,{size:"medium",weight:"bold",color:"text-1",isTruncated:!0},e[f.cb.DISPLAY_NAME]||a.createElement(T.sA,{id:"COMMON_UNKNOWN"})))),a.createElement(Z.Se,null,a.createElement(c.A,{size:"small",color:"text-2"},A)),a.createElement(Z.Se,null,a.createElement(Z.zd,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_DOWNLOAD"})),a.createElement(Z.K5,null,a.createElement(X.A.Icon,{size:"small"}),a.createElement(c.A,{size:"small",color:"traffic-down"},(0,G.FI)(e[f.cb.RECEIVED_BYTES])))),a.createElement(Z.zd,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_UPLOAD"})),a.createElement(Z.K5,null,a.createElement(V.A.Icon,{size:"small"}),a.createElement(c.A,{size:"small",color:"traffic-up"},(0,G.FI)(e[f.cb.TRANSMITTED_BYTES])))),a.createElement(Z.zd,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_TRAFFIC"})),a.createElement(c.A,{size:"small",color:"text-2"},(0,G.FI)(e[f.cb.TOTAL_BYTES]))),f.cb.SATISFACTION in e?a.createElement(Z.zd,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_EXPERIENCE"})),a.createElement(c.A,{size:"small",style:{color:(0,k.L)(e[f.cb.SATISFACTION],t)}},e[f.cb.SATISFACTION],"%")):null));var F=t(713570),j=t(281837);const K=({mostActiveClient:e,tooltipTimeRange:A,theMostActiveTotalBytes:t,onClick:n})=>a.createElement(W.A,{description:a.createElement(B,{mostActiveClient:e,tooltipTimeRange:A,motif:(0,x.A)().motif}),...p.WC},a.createElement(j.uc,{onClick:n(e[f.cb.MAC])},a.createElement(j._S,null,a.createElement(H.A,{size:2*p.Yk,mac:e[f.cb.MAC]})),a.createElement(j.uS,null,(0,a.createElement)((0,j.nH)(w.A),{client:e,width:p.oT,height:p.oT,size:Y.D}),a.createElement(F.A,{offset:e[f.cb.TOTAL_BYTES]/t})),a.createElement(j.pn,{size:"xsmall",color:"text-3",isCentered:!0,isTruncated:!0},e[f.cb.DISPLAY_NAME])));var q=t(601242),J=t(455155);const Q=({dpiApp:{iconFileName:e,name:A},mostActiveApp:t,tooltipTimeRange:n})=>a.createElement(Z.UI,null,a.createElement(Z.Se,null,a.createElement(Z.K5,null,a.createElement(J.A,{iconFileName:e,dimension:p.oT}),a.createElement(U.A,{size:"medium",weight:"bold",color:"text-1",isTruncated:!0},A))),a.createElement(Z.Se,null,a.createElement(c.A,{size:"small",color:"text-2"},n)),a.createElement(Z.Se,null,a.createElement(Z.zd,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_DOWNLOAD"})),a.createElement(Z.K5,null,a.createElement(X.A.Icon,{size:"small"}),a.createElement(c.A,{size:"small",color:"traffic-down"},(0,G.FI)(t[f.MZ.RECEIVED_BYTES])))),a.createElement(Z.zd,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_UPLOAD"})),a.createElement(Z.K5,null,a.createElement(V.A.Icon,{size:"small"}),a.createElement(c.A,{size:"small",color:"traffic-up"},(0,G.FI)(t[f.MZ.TRANSMITTED_BYTES])))),a.createElement(Z.zd,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_TRAFFIC"})),a.createElement(c.A,{size:"small",color:"text-2"},(0,G.FI)(t[f.MZ.TOTAL_BYTES]))))),$=({mostActiveApp:e,tooltipTimeRange:A,theMostActiveTotalBytes:t,onClick:n})=>{const{category:l,application:r}=(0,a.useMemo)(()=>({category:e[f.MZ.CATEGORY],application:e[f.MZ.APPLICATION]}),[e]),i=(0,a.useMemo)(()=>(0,q.HH)((0,E.h)(l,r)),[l,r]);return a.createElement(W.A,{description:a.createElement(Q,{dpiApp:i,mostActiveApp:e,tooltipTimeRange:A}),...p.WC},a.createElement(j.uc,{onClick:n(l,r)},a.createElement(j.uS,null,(0,a.createElement)((0,j.nH)(J.A),{iconFileName:i.iconFileName,dimension:p.oT}),a.createElement(F.A,{offset:e[f.MZ.TOTAL_BYTES]/t})),a.createElement(j.pn,{size:"xsmall",color:"text-3",isCentered:!0,isTruncated:!0},i.name)))};var ee=t(6176);const Ae=({mostActiveAp:e,tooltipTimeRange:A,motif:t})=>a.createElement(Z.UI,null,a.createElement(Z.Se,null,a.createElement(Z.K5,null,a.createElement(ee.A,{model:e[f.CF.AP_DETAILS][f.oe.MODEL],width:p.oT,height:p.oT}),a.createElement(U.A,{size:"medium",weight:"bold",color:"text-1",isTruncated:!0},e[f.CF.AP_DETAILS][f.oe.NAME]||a.createElement(T.sA,{id:"COMMON_UNKNOWN"})))),a.createElement(c.A,{size:"small",color:"text-2"},A),a.createElement(Z.Se,null,a.createElement(Z.zd,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_DOWNLOAD"})),a.createElement(Z.K5,null,a.createElement(X.A.Icon,{size:"small"}),a.createElement(c.A,{size:"small",color:"traffic-down"},(0,G.FI)(e[f.CF.RECEIVED_BYTES])))),a.createElement(Z.zd,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_UPLOAD"})),a.createElement(Z.K5,null,a.createElement(V.A.Icon,{size:"small"}),a.createElement(c.A,{size:"small",color:"traffic-up"},(0,G.FI)(e[f.CF.TRANSMITTED_BYTES])))),a.createElement(Z.zd,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_TRAFFIC"})),a.createElement(c.A,{size:"small",color:"text-2"},(0,G.FI)(e[f.CF.TOTAL_BYTES]))),a.createElement(Z.zd,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_EXPERIENCE"})),a.createElement(c.A,{size:"small",style:{color:(0,k.L)(e[f.CF.SATISFACTION],t)}},e[f.CF.SATISFACTION],"%")))),te=({mostActiveAp:e,tooltipTimeRange:A,theMostActiveTotalBytes:t,onClick:n})=>a.createElement(W.A,{description:a.createElement(Ae,{mostActiveAp:e,tooltipTimeRange:A,motif:(0,x.A)().motif}),...p.WC},a.createElement(j.uc,{onClick:n(e[f.CF.MAC])},a.createElement(j.uS,null,(0,a.createElement)((0,j.nH)(ee.A),{model:e[f.CF.AP_DETAILS][f.oe.MODEL],width:p.oT,height:p.oT}),a.createElement(F.A,{offset:e[f.CF.TOTAL_BYTES]/t})),a.createElement(j.pn,{size:"xsmall",color:"text-3",isCentered:!0,isTruncated:!0},e[f.CF.AP_DETAILS][f.oe.NAME])));var ae,ne;!function(e){e.MOST_ACTIVE_APS="mostActiveAps",e.MOST_ACTIVE_CLIENTS="mostActiveClients",e.MOST_ACTIVE_APPS="mostActiveApps"}(ae||(ae={})),function(e){e.BLOCKS="blocks",e.HIGHEST_TOTAL_BYTES="highestTotalBytes"}(ne||(ne={}));const le=(0,a.memo)(()=>{const e=(0,n.useDispatch)(),{ref:A,width:t}=(0,s.A)(),r=(0,n.useSelector)(v),i=(0,a.useMemo)(()=>[...new Set(r.map(({type:e})=>e))].length,[r]),o=R(r,t,i),p=(0,a.useContext)(S.A),C=p[I.x.TOOLTIP_TIME_RANGE],M=(0,a.useCallback)(A=>()=>{e((0,u.XP)({type:d.H.DEVICE,id:A}))},[e]),P=(0,a.useCallback)(A=>()=>{e((0,u.XP)({type:d.H.CLIENT,id:A}))},[e]),D=(0,a.useContext)(S.A)[I.x.REDIRECTOR],b=p[I.x.REDIRECTOR][O.d.ACTIVITY_APP][O.q.REDIRECT],L=(0,a.useCallback)((e,A)=>()=>{b(e,A)},[b]),h=(0,a.useMemo)(()=>o.reduce((e,A,t,n)=>{switch(0===t&&(e[ae.MOST_ACTIVE_APS][ne.HIGHEST_TOTAL_BYTES]=Math.max(...n.filter(e=>e[f.CF.TYPE]===f.y1.AP).map(e=>e[f.CF.TOTAL_BYTES])),e[ae.MOST_ACTIVE_CLIENTS][ne.HIGHEST_TOTAL_BYTES]=Math.max(...n.filter(e=>e[f.cb.TYPE]===f.y1.CLIENT).map(e=>e[f.cb.TOTAL_BYTES])),e[ae.MOST_ACTIVE_APPS][ne.HIGHEST_TOTAL_BYTES]=Math.max(...n.filter(e=>e[f.MZ.TYPE]===f.y1.APP).map(e=>e[f.MZ.TOTAL_BYTES]))),A.type){case f.y1.AP:{const t=A;A[f.CF.AP_DETAILS]&&e[ae.MOST_ACTIVE_APS][ne.BLOCKS].push(a.createElement(te,{key:t[f.CF.MAC],mostActiveAp:t,theMostActiveTotalBytes:e[ae.MOST_ACTIVE_APS][ne.HIGHEST_TOTAL_BYTES],tooltipTimeRange:C,onClick:M}));break}case f.y1.CLIENT:{const t=A;e[ae.MOST_ACTIVE_CLIENTS][ne.BLOCKS].push(a.createElement(K,{key:t[f.cb.MAC],mostActiveClient:t,theMostActiveTotalBytes:e[ae.MOST_ACTIVE_CLIENTS][ne.HIGHEST_TOTAL_BYTES],tooltipTimeRange:C,onClick:P}));break}case f.y1.APP:{const t=A;e[ae.MOST_ACTIVE_APPS][ne.BLOCKS].push(a.createElement($,{key:(0,E.h)(t[f.MZ.APPLICATION],t[f.MZ.CATEGORY]),mostActiveApp:t,theMostActiveTotalBytes:e[ae.MOST_ACTIVE_APPS][ne.HIGHEST_TOTAL_BYTES],tooltipTimeRange:C,onClick:L}));break}}return e},{[ae.MOST_ACTIVE_APS]:{[ne.BLOCKS]:[],[ne.HIGHEST_TOTAL_BYTES]:0},[ae.MOST_ACTIVE_CLIENTS]:{[ne.BLOCKS]:[],[ne.HIGHEST_TOTAL_BYTES]:0},[ae.MOST_ACTIVE_APPS]:{[ne.BLOCKS]:[],[ne.HIGHEST_TOTAL_BYTES]:0}}),[o,C,M,P,L]),y=(0,a.useContext)(_.A)[N.V.PRELOAD_DEVICES],z=(0,a.useContext)(_.A)[N.V.PRELOAD_UNIFI_DEVICES],x=(0,a.useContext)(_.A)[N.V.PRELOAD_CLIENTS],W=(0,a.useCallback)(()=>{y(),z(),x()},[y,z,x]);return a.createElement(l.cW,null,a.createElement(j.df,{onMouseEnter:W},a.createElement(j.L6,{ref:A},h[ae.MOST_ACTIVE_APS][ne.BLOCKS].length||h[ae.MOST_ACTIVE_CLIENTS][ne.BLOCKS].length||h[ae.MOST_ACTIVE_APPS][ne.BLOCKS].length?a.createElement(a.Fragment,null,h[ae.MOST_ACTIVE_APS][ne.BLOCKS].length?a.createElement(j.Rz,null,a.createElement(c.A,{size:"small",color:"text-2",onClick:D[O.d.DEVICES][O.q.AVAILABLE]?D[O.d.DEVICES][O.q.REDIRECT]:m.P1},a.createElement(T.sA,{id:"DASHBOARD_TOP_APS"})),a.createElement(j.df,null,h[ae.MOST_ACTIVE_APS][ne.BLOCKS])):null,h[ae.MOST_ACTIVE_CLIENTS][ne.BLOCKS].length?a.createElement(j.Rz,null,a.createElement(c.A,{size:"small",color:"text-2",onClick:D[O.d.CLIENTS][O.q.AVAILABLE]?D[O.d.CLIENTS][O.q.REDIRECT]:m.P1},a.createElement(T.sA,{id:"COMMON_TOP_CLIENTS"})),a.createElement(j.df,null,h[ae.MOST_ACTIVE_CLIENTS][ne.BLOCKS])):null,h[ae.MOST_ACTIVE_APPS][ne.BLOCKS].length?a.createElement(j.Rz,null,a.createElement(c.A,{size:"small",color:"text-2",onClick:D[O.d.ACTIVITY_APPS][O.q.AVAILABLE]?D[O.d.ACTIVITY_APPS][O.q.REDIRECT]:m.P1},a.createElement(T.sA,{id:"COMMON_TOP_APPS"})),a.createElement(j.df,null,h[ae.MOST_ACTIVE_APPS][ne.BLOCKS])):null):a.createElement(g,null))))});var re,ie,oe,se=t(404868),ce=t(897254);!function(e){e.RADIO_CHANNELS="radio_channels"}(re||(re={})),function(e){e.ACTIVE_CHANNELS="active_channels",e.AVAILABLE_CHANNELS="available_channels",e.RADIO="radio"}(ie||(ie={})),function(e){e.AP_COUNT="ap_count",e.CHANNEL="channel",e.CLIENT_COUNT="client_count"}(oe||(oe={}));const Ee=(0,C.Mz)(D.e6,e=>e[ce.ZJ.WIFI_CHANNELS]||(0,M.A)()),me=(0,C.Mz)(Ee,e=>e[re.RADIO_CHANNELS]||(0,P.A)());var de=t(564985);const ue=[de.sx.RADIO_NG,de.sx.RADIO_NA];var Te=t(566723);const Oe=(0,h.A)(y.A)`
  gap: ${Te.kc};
`,Ie=(0,h.A)(y.A)`
  flex-direction: column;
  gap: ${Te.kc};
  width: 100%;
  overflow: auto;
`,Se=(0,h.A)(y.A,{shouldForwardProp:e=>!["availableChannelCount","containerWidth"].includes(e)})`
  white-space: nowrap;
  gap: ${2}px;
  > div {
    width: ${({containerWidth:e,availableChannelCount:A})=>(e-2*(A-1))/A}px;
  }
`;var Ne=t(943887),_e=t(822336);const pe=(0,h.A)(y.A,{shouldForwardProp:e=>"radio"!==e})`
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: ${Te.YC};
  min-width: ${20}px;
  max-width: ${48}px;
  &:not(:first-child) {
    margin-left: ${16}px;
  }
  ${({radio:e})=>`\n    &.${e} ~ &.${e} {\n      &:not(:first-child) {\n        margin-left: 0;\n      }\n      > :first-child {\n        display: none;\n      }\n    }\n  `}
  > :first-child {
    align-self: baseline;
  }
  > div {
    width: 100%;
  }
`,Re=(0,h.A)(y.A)`
  gap: ${Te.YC};
  width: 100%;
  justify-content: space-between;
`,Ce=(0,h.A)(y.A,{shouldForwardProp:e=>"hasAp"!==e})`
  width: 100%;
  height: 4px;
  margin: ${Te.YC} 0;
  background: ${({hasAp:e,theme:{themeName:A}})=>e?_e.Ay[`desktop-color-green-05-${A}`]:_e.Ay[`desktop-color-neutral-03-${A}`]};
`,Me=(0,h.A)(y.A)`
  > div:not(:last-child) {
    margin-bottom: ${Te.YC};
  }
`,Pe=({radioChannelLabelId:e,channel:A,client_count:t,ap_count:n})=>a.createElement(Me,{flexDirection:"column"},a.createElement(y.A,{justifyContent:"space-between"},a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_CHANNEL"})),a.createElement(c.A,{size:"small",color:"text-2"},a.createElement(T.sA,{id:e})," (",A,")")),a.createElement(y.A,{justifyContent:"space-between"},a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_APS"})),a.createElement(c.A,{size:"small",color:"text-2"},n)),a.createElement(y.A,{justifyContent:"space-between"},a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_CLIENTS"})),a.createElement(c.A,{size:"small",color:"text-2"},t))),De=(0,a.memo)(({radio:e,channel:A,client_count:t,ap_count:n})=>{const l=(0,a.useMemo)(()=>(0,Ne.dI)(e),[e]);return a.createElement(pe,{radio:`radio-${e}`,className:`radio-${e}`},a.createElement(Re,null,a.createElement(c.A,{size:"small",color:"text-2"},a.createElement(T.sA,{id:l}))),a.createElement(W.A,{width:160,description:a.createElement(Pe,{radioChannelLabelId:l,channel:A,client_count:t,ap_count:n}),portal:!0},a.createElement(Ce,{hasAp:Boolean(n)})),a.createElement(c.A,{size:"small",color:"text-3"},A))}),fe=(0,a.memo)(()=>{const{ref:e,width:A}=(0,s.A)(),t=(0,n.useSelector)(me),r=(0,a.useContext)(S.A)[I.x.REDIRECTOR][O.d.RADIOS],i=(0,a.useMemo)(()=>{const e=[],A=[],a=t.length;for(let n=0;n<a;n+=1){const{active_channels:a=[],radio:l}=t[n],r=[...new Set([...t[n].available_channels||(0,P.A)(),...a.map(({channel:e})=>e)])],i=r?.length||0;for(let t=0;t<i;t+=1){const n=r[t],{ap_count:i,client_count:o}=a.find(({channel:e})=>e===n)||{ap_count:0,client_count:0,channel:void 0};(ue.includes(l)?e:A).push({radio:l,channel:n,ap_count:i,client_count:o})}}return[e,A].filter(e=>Boolean(e.length))},[t]);return i.length?a.createElement(l.cW,{ref:e},a.createElement(Oe,null,a.createElement(Ie,null,i.map(e=>e.length?a.createElement(Se,{key:e.map(({radio:e,channel:A})=>`${e}-${A}`).join(""),availableChannelCount:e.length,containerWidth:A},e.map(({radio:e,channel:A,ap_count:t,client_count:n})=>a.createElement(De,{key:`${e}-${A}`,radio:e,channel:A,client_count:n,ap_count:t}))):null)),a.createElement(se.A,{redirector:r}))):null});var be=t(300477),ve=t(939703),Le=t(83604),he=t(199582),ye=t(986238);const ze=(e,A)=>t=>a.createElement("span",{...A.includes(e)&&{className:ye.ab}},t),ge=e=>({id:A})=>({[he.L]:String(e.includes(A))});var xe=t(572112),We=t(147883);const He=(0,h.A)(y.A,{shouldForwardProp:e=>!["customBorder","customPadding"].includes(e)})`
  padding: ${({customPadding:e})=>`${e}px ${e}px ${e}px 0`};
  @media ${xe.A.DASHBOARD.CHART.MOBILE} {
    padding: ${({customPadding:e})=>`${e}px 0`};
  }
  .${ye.WO} {
    transform: translateY(-6px);
  }
  .${ye.kz} {
    transform: translateY(-8px);
  }
  & * > text:first-of-type {
    font-size: 14px;
    fill: ${({theme:{themeName:e}})=>_e.Ay[`desktop-color-text-1-${e}`]};
  }
  & * > text:last-of-type {
    font-size: 12px;
    fill: ${({theme:{themeName:e}})=>_e.Ay[`desktop-color-text-3-${e}`]};
  }
`,we=(0,h.A)("div",{shouldForwardProp:e=>"minSizes"!==e})`
  width: 100%;
  height: 100%;
  margin-top: ${Te.xO};
  table {
    border: none;
    .${ye.ab} {
      display: flex;
      justify-content: flex-end;
    }
    [${he.L}='true'] > div {
      display: flex;
      justify-content: flex-end;
    }
    > thead {
      > tr > th {
        padding: 0 0 ${Te.YC} 0;
        font-weight: normal;
        &:before {
          content: none;
        }
        span {
          width: 100%;
        }
        > span > button {
          display: none;
        }
      }
    }
    > tbody {
      > tr > td {
        padding: 0 0 ${Te.YC} 0;
        height: 24px;
        &:before {
          content: none;
        }
        ${({minSizes:e})=>e.map((e,A)=>`\n          &:nth-child(${A+1}) {\n            min-width: ${e}px;\n          }\n        `)}
      }
    }
  }
`,Ue=(0,h.A)(y.A)`
  justify-content: space-between;
  gap: ${Te.Ln};
  width: 100%;
  position: relative;
  .${We.o} {
    position: relative;
    top: 6px;
    @media ${xe.A.DASHBOARD.CHART.MOBILE} {
      position: absolute;
      right: 0;
      top: 0;
    }
  }
`,ke=(0,h.A)(y.A)`
  align-items: center;
  width: 100%;
  @media ${xe.A.DASHBOARD.CHART.MOBILE} {
    flex-direction: column;
    align-items: center;
  }
`;var Ge;!function(e){e.BROADCAST="broadcast",e.EXPERIENCE="experience",e.GUESTS="guests",e.TOTAL="total"}(Ge||(Ge={}));const Ve=({total:e})=>a.createElement(c.A,{size:"small",color:"text-2"},e),Xe=({guests:e})=>a.createElement(c.A,{size:"small",color:"text-2"},e);var Ze=t(38937);const Ye=({experience:e})=>a.createElement(c.A,{size:"small",style:{color:(0,k.L)(e,(0,x.A)().motif)}},a.createElement(T.sA,{id:(0,Ze.gd)(e)})),Be=({broadcast:e})=>a.createElement(U.A,{size:"small",color:"text-2",isTruncated:!0},e),Fe={[Ge.BROADCAST]:"COMMON_STATUS_BROADCAST",[Ge.EXPERIENCE]:"COMMON_EXPERIENCE",[Ge.GUESTS]:"COMMON_GUESTS",[Ge.TOTAL]:"COMMON_TOTAL"},je={[Ge.BROADCAST]:80,[Ge.EXPERIENCE]:70,[Ge.GUESTS]:50,[Ge.TOTAL]:50},Ke={[Ge.BROADCAST]:Be,[Ge.EXPERIENCE]:Ye,[Ge.GUESTS]:Xe,[Ge.TOTAL]:Ve},qe={[Ge.BROADCAST]:({broadcast:e})=>e,[Ge.EXPERIENCE]:({experience:e})=>e,[Ge.GUESTS]:({guests:e})=>e,[Ge.TOTAL]:({total:e})=>e},Je=[Ge.EXPERIENCE,Ge.GUESTS,Ge.TOTAL],Qe=Object.values(je),$e={id:Ge.TOTAL,isAscending:!1};var eA=t(396660);const AA=e=>e,tA=e=>je[e],aA=e=>({header:{id:A}})=>a.createElement(T.sA,{id:Fe[A]},ze(e,Je)),nA=({column:{id:e},getValue:A})=>Ke[e](A()),lA=Object.values(Ge).map(e=>{return{id:e,accessorFn:AA,minSize:tA(e),header:aA(e),cell:nA,compare:(A=e,(0,eA.l0)(e=>qe[A](e))),...ye.b2};var A}),rA=(0,a.memo)(({formattedDashboardWifiClientsByBroadcast:e})=>a.createElement(we,{minSizes:Qe},a.createElement(Le.A,{data:e,columns:lA,columnProps:ge(Je),sorting:$e,...ye.kk})));var iA=t(23797),oA=t(223670),sA=t(140496);const cA=(0,h.A)(y.A)`
  width: 100%;
  flex-direction: column;
  gap: ${Te.YC};
`,EA=(0,h.A)(y.A)`
  width: 100%;
  gap: ${Te.YC};
  margin-bottom: ${Te.YC};
`,mA=(0,h.A)(y.A)`
  width: 100%;
  justify-content: space-between;
`,dA=({broadcast:e,experience:A,guests:t,total:n,tooltipTimeRange:l})=>a.createElement(cA,null,a.createElement(EA,null,a.createElement(c.A,{color:"text-1",size:"medium",weight:"bold"},e)),a.createElement(y.A,{marginBottom:Te.YC},a.createElement(c.A,{size:"small",color:"text-2"},l)),a.createElement(mA,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_EXPERIENCE"})),a.createElement(c.A,{size:"small",style:{color:(0,k.L)(A,(0,x.A)().motif)}},a.createElement(T.sA,{id:(0,Ze.gd)(A)}))),a.createElement(mA,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_GUESTS"})),a.createElement(c.A,{size:"small",color:"text-2"},t)),a.createElement(mA,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_TOTAL"})),a.createElement(c.A,{size:"small",color:"text-2"},n))),uA=(0,a.memo)(({formattedDashboardWifiClientsByBroadcast:e,totalClients:A})=>{const{formatMessage:t}=(0,T.tz)(),{border:n,padding:l,diameter:r,spacer:i,thickness:o}=(0,oA.A)(sA.e.DASHBOARD),s=(0,a.useMemo)(()=>t({id:"DASHBOARD_TOTAL_WIFI_CLIENTS"}),[t]),c=(0,a.useMemo)(()=>A,[A]),E=(0,a.useContext)(S.A)[I.x.TOOLTIP_TIME_RANGE],m=(0,a.useCallback)(e=>a.createElement(dA,{...e,tooltipTimeRange:E}),[E]);return a.createElement(He,{customBorder:n,customPadding:l},a.createElement(iA.A,{items:e,renderTooltipMessage:m,title:c,description:s,spacer:i,thickness:o,size:r,...ye.Ho}))}),TA=(0,a.memo)(()=>{const e=(0,a.useCallback)((0,ve.r0)(),[]),A=(0,a.useMemo)(()=>[{broadcast:"Guest",experience:100,guests:4,total:20},{broadcast:"Office 1",experience:90,guests:5,total:16},{broadcast:"Office 2",experience:80,guests:1,total:12},{broadcast:"Office 3",experience:40,guests:1,total:8},{broadcast:"Office 4",experience:30,guests:1,total:4},{broadcast:"Office 5",experience:20,guests:1,total:1}].map(({broadcast:A,experience:t,guests:a,total:n},l)=>({id:(0,be.A)(),broadcast:A,experience:t,guests:a,total:n,color:e(l.toString()),value:n})),[e]),t=(0,a.useContext)(S.A)[I.x.REDIRECTOR][O.d.CLIENTS];return a.createElement(l.cW,null,a.createElement(Ue,null,a.createElement(ke,null,a.createElement(uA,{formattedDashboardWifiClientsByBroadcast:A,totalClients:29}),a.createElement(rA,{formattedDashboardWifiClientsByBroadcast:A})),a.createElement(se.A,{redirector:t})))});var OA,IA=t(768195);!function(e){e.AP="ap",e.EXPERIENCE="experience",e.GUESTS="guests",e.TOTAL="total"}(OA||(OA={}));const SA=({total:e})=>a.createElement(c.A,{size:"small",color:"text-2"},e),NA=({guests:e})=>a.createElement(c.A,{size:"small",color:"text-2"},e),_A=({experience:e})=>a.createElement(c.A,{size:"small",style:{color:(0,k.L)(e,(0,x.A)().motif)}},a.createElement(T.sA,{id:(0,Ze.gd)(e)}));var pA=t(6510);var RA=t(118818);const CA=(0,h.A)(y.A)`
  align-items: center;
  gap: ${Te.YC};
`,MA=(0,h.A)(RA.A,{shouldForwardProp:e=>"color"!==e})`
  background-color: ${({color:e})=>e};
  margin-right: ${Te.YC};
`,PA=(0,h.A)(y.A)`
  align-items: center;
  gap: ${Te.YC};
  cursor: pointer;
`,DA=({ap:{model:e,name:A,mac:t},color:l})=>{const r=(0,n.useDispatch)(),i=(0,a.useCallback)(()=>r((0,u.XP)({type:d.H.DEVICE,id:t})),[r,t]),o=(0,a.useMemo)(()=>(0,pA.Q)({name:A,model:e,mac:t}),[A,e,t]);return a.createElement(CA,null,a.createElement(MA,{color:l}),a.createElement(PA,{onClick:i},a.createElement(ee.A,{width:20,height:20,model:e}),a.createElement(U.A,{size:"small",color:"text-2",isTruncated:!0},o)))},fA={[OA.AP]:"COMMON_ACCESS_POINT",[OA.EXPERIENCE]:"COMMON_EXPERIENCE",[OA.GUESTS]:"COMMON_GUESTS",[OA.TOTAL]:"COMMON_TOTAL"},bA={[OA.AP]:110,[OA.EXPERIENCE]:70,[OA.GUESTS]:50,[OA.TOTAL]:50},vA={[OA.AP]:DA,[OA.EXPERIENCE]:_A,[OA.GUESTS]:NA,[OA.TOTAL]:SA},LA={[OA.AP]:({ap:{name:e}})=>e,[OA.EXPERIENCE]:({experience:e})=>e,[OA.GUESTS]:({guests:e})=>e,[OA.TOTAL]:({total:e})=>e},hA=[OA.EXPERIENCE,OA.GUESTS,OA.TOTAL],yA=Object.values(bA),zA={id:OA.TOTAL,isAscending:!1},gA=e=>e,xA=e=>bA[e],WA=e=>({header:{id:A}})=>a.createElement(T.sA,{id:fA[A]},ze(e,hA)),HA=({column:{id:e},getValue:A})=>vA[e](A()),wA=Object.values(OA).map(e=>{return{id:e,accessorFn:gA,minSize:xA(e),header:WA(e),cell:HA,compare:(A=e,(0,eA.l0)(e=>LA[A](e))),...ye.b2};var A}),UA=(0,a.memo)(({formattedDashboardWifiClientsByAp:e})=>a.createElement(we,{minSizes:yA},a.createElement(Le.A,{data:e,columns:wA,columnProps:ge(hA),sorting:zA,...ye.kk}))),kA=(0,h.A)(y.A)`
  width: 100%;
  flex-direction: column;
  gap: ${Te.YC};
`,GA=(0,h.A)(y.A)`
  width: 100%;
  gap: ${Te.YC};
  margin-bottom: ${Te.YC};
`,VA=(0,h.A)(y.A)`
  width: 100%;
  justify-content: space-between;
`,XA=({ap:{name:e,model:A,mac:t},experience:n,guests:l,total:r,tooltipTimeRange:i})=>a.createElement(kA,null,a.createElement(GA,null,a.createElement(ee.A,{model:A,width:20,height:20}),a.createElement(c.A,{color:"text-1",size:"medium",weight:"bold"},(0,pA.Q)({name:e,model:A,mac:t}))),a.createElement(y.A,{marginBottom:Te.YC},a.createElement(c.A,{size:"small",color:"text-2"},i)),a.createElement(VA,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_EXPERIENCE"})),a.createElement(c.A,{size:"small",style:{color:(0,k.L)(n,(0,x.A)().motif)}},a.createElement(T.sA,{id:(0,Ze.gd)(n)}))),a.createElement(VA,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_GUESTS"})),a.createElement(c.A,{size:"small",color:"text-2"},l)),a.createElement(VA,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_TOTAL"})),a.createElement(c.A,{size:"small",color:"text-2"},r))),ZA=(0,a.memo)(({formattedDashboardWifiClientsByAp:e,totalClients:A})=>{const{formatMessage:t}=(0,T.tz)(),{border:n,padding:l,diameter:r,spacer:i,thickness:o}=(0,oA.A)(sA.e.DASHBOARD),s=(0,a.useMemo)(()=>t({id:"DASHBOARD_TOTAL_WIFI_CLIENTS"}),[t]),c=(0,a.useMemo)(()=>A,[A]),E=(0,a.useContext)(S.A)[I.x.TOOLTIP_TIME_RANGE],m=(0,a.useCallback)(e=>a.createElement(XA,{...e,tooltipTimeRange:E}),[E]);return a.createElement(He,{customBorder:n,customPadding:l},a.createElement(iA.A,{items:e,renderTooltipMessage:m,title:c,description:s,spacer:i,thickness:o,size:r,...ye.Ho}))}),YA=(0,a.memo)(()=>{const e=(0,a.useCallback)((0,ve.r0)(),[]),A=(0,a.useMemo)(()=>[{ap:{model:IA.W4.U6M,name:"U6 Mesh",mac:"1"},experience:100,guests:4,total:20},{ap:{model:IA.W4.U6EXT,name:"U6 Extender",mac:"2"},experience:90,guests:5,total:16},{ap:{model:IA.W4.U6EXT,name:"U6 U6 Extender",mac:"3"},experience:80,guests:1,total:12},{ap:{model:IA.W4.U6EXT,name:"U6 Extender",mac:"4"},experience:40,guests:1,total:8},{ap:{model:IA.W4.U6M,name:"U6 Mesh",mac:"5"},experience:30,guests:1,total:4},{ap:{model:IA.W4.U6EXT,name:"U6 Extender",mac:"6"},experience:20,guests:1,total:1}].map(({ap:A,experience:t,guests:a,total:n},l)=>({id:(0,be.A)(),ap:A,experience:t,guests:a,total:n,color:e(l.toString()),value:n})),[e]),t=(0,a.useContext)(S.A)[I.x.REDIRECTOR][O.d.CLIENTS];return a.createElement(l.cW,null,a.createElement(Ue,null,a.createElement(ke,null,a.createElement(ZA,{formattedDashboardWifiClientsByAp:A,totalClients:29}),a.createElement(UA,{formattedDashboardWifiClientsByAp:A})),a.createElement(se.A,{redirector:t})))});var BA,FA,jA,KA=t(231755),qA=t(622217),JA=t(549430),QA=t(702236);!function(e){e.CATEGORIES="categories",e.TOTAL_AP_COUNT="total_ap_count"}(BA||(BA={})),function(e){e.BAND_COUNT="band_count",e.CATEGORY_ID="category_id",e.WIFI_TX_RETRY_STATS="wifi_tx_retry_stats"}(FA||(FA={})),function(e){e.AP_COUNT="ap_count",e.AVG_TX_RETRY_PERCENT="avg_tx_retry_percent",e.RADIO="radio"}(jA||(jA={}));const $A=(0,C.Mz)(D.e6,e=>e[ce.ZJ.WIFI_TX_RETRIES]||(0,M.A)()),et=(0,C.Mz)($A,e=>e[BA.CATEGORIES]||(0,P.A)());var At,tt,at;!function(e){e.TOTAL_ATTMEPTS="total_attempts",e.FAILED_CLIENT_CONNECTIONS="failed_client_connections",e.ASSOCIATION_RATIO="association_ratio",e.AUTHENTICATION_RATIO="authentication_ratio",e.DHCP_RATIO="dhcp_ratio",e.DNS_RATIO="dns_ratio",e.SUCCESS_RATIO="success_ratio"}(At||(At={})),function(e){e.ATTEMPTS="attempts",e.RADIO_FILTER="radio_filter"}(tt||(tt={})),function(e){e.RADIO_CONNECTIVITY="radio_connectivity"}(at||(at={}));const nt=(0,C.Mz)(D.e6,e=>e[ce.ZJ.WIFI_CONNECTIVITY]||(0,M.A)()),lt=(0,C.Mz)(nt,e=>e[at.RADIO_CONNECTIVITY]||(0,P.A)());var rt,it,ot;!function(e){e.RADIO="radio",e.TX_RETRIES_PERCENTAGE="tx_retries_percentage",e.SESSION_PERCENTAGE="session_percentage"}(rt||(rt={})),function(e){e.BAND_COUNT="band_count",e.SESSION_PERCENTAGE="session_percentage",e.RADIO_STATS="radio_stats",e.CATEGORY_ID="category_id"}(it||(it={})),function(e){e.CATEGORIES="categories"}(ot||(ot={}));const st=(0,C.Mz)(D.e6,e=>e[ce.ZJ.WIFI_CLIENT_EXPERIENCE]||(0,M.A)()),ct=(0,C.Mz)(st,e=>e[ot.CATEGORIES]||(0,P.A)());var Et,mt,dt,ut;!function(e){e.CLIENTS_COUNT="clients_count",e.PHY_RATE_MAX="phy_rate_max",e.TOTAL_TRAFFIC_PERCENTAGE="total_traffic_percentage",e.TX_RETRIES_PERCENTAGE="tx_retries_percentage",e.WEAKEST_CLIENTS_SIGNAL_AVG="weakest_clients_signal_avg",e.RADIO_FILTER="radio_filter"}(Et||(Et={})),function(e){e.MAC="mac",e.MODEL="model",e.NAME="name",e.TYPE="type"}(mt||(mt={})),function(e){e.RADIO_GROUPS="radio_groups",e.DEVICE_META="device_meta"}(dt||(dt={})),function(e){e.DENSITY_DETAILS="density_details"}(ut||(ut={}));const Tt=(0,C.Mz)(D.e6,e=>e[ce.ZJ.AP_RADIO_DENSITY]||(0,M.A)()),Ot=(0,C.Mz)(Tt,e=>e[ut.DENSITY_DETAILS]||(0,P.A)()),It=(e,A)=>e.map(e=>{return e[FA.BAND_COUNT]?(t=e[FA.WIFI_TX_RETRY_STATS].filter(e=>e[jA.RADIO]===A),{...e,[FA.BAND_COUNT]:t.length,[FA.WIFI_TX_RETRY_STATS]:t}):e;var t}),St=(e,A)=>e.map(e=>{return e[it.SESSION_PERCENTAGE]?(t=e[it.RADIO_STATS].filter(e=>e[rt.RADIO]===A),{...e,[it.RADIO_STATS]:t,[it.SESSION_PERCENTAGE]:(([e=(0,M.A)()])=>e[rt.SESSION_PERCENTAGE])(t)}):e;var t});var Nt,_t=t(320138);!function(e){e.WIFI_CONNECTIVITY="wifiConnectivity",e.AP_RADIO_TX_RETRIES="apRadioTxRetries",e.SIGNAL_STRENGTH_DISTRIBUTION="signalStrengthDistribution",e.AP_DENSITY="apDensity"}(Nt||(Nt={}));const pt={[Nt.WIFI_CONNECTIVITY]:(0,M.A)(),[Nt.AP_RADIO_TX_RETRIES]:(0,P.A)(),[Nt.SIGNAL_STRENGTH_DISTRIBUTION]:(0,P.A)(),[Nt.AP_DENSITY]:(0,P.A)()},Rt=(0,a.createContext)(pt);var Ct=t(60101);const Mt=(0,h.A)(y.A)`
  width: 100%;
  height: 100%;
  gap: ${Ct.VM}px;
  align-items: center;
  flex-wrap: wrap;
  width: ${Ct.VM+2*Ct.pH}px;
  @media ${xe.A.DASHBOARD.BAND_SELECTOR.MOBILE} {
    flex-wrap: unset;
    width: 100%;
  }
`,Pt=(0,h.A)(y.A,{shouldForwardProp:e=>"fullWidth"!==e})`
  flex-direction: column;
  gap: ${Te.xO};
  align-items: center;
  @media ${xe.A.DASHBOARD.BAND_SELECTOR.MOBILE} {
    width: 100%;
  }
  width: ${({fullWidth:e})=>e?"100%":`${Ct.pH}px`};
`,Dt=(0,h.A)(y.A)`
  width: 100%;
  flex-direction: column;
  gap: ${Te.xO};
  .${Ct.Y5} {
    @media ${xe.A.DASHBOARD.BAND_SELECTOR.MOBILE} {
      display: none;
    }
  }
`,ft=(0,h.A)(y.A)`
  gap: ${Te.Ln};
  width: 100%;
  @media ${xe.A.DASHBOARD.BAND_SELECTOR.MOBILE} {
    flex-direction: column;
  }
`,bt={[_t.x.RADIO_NG]:"COMMON_RADIO_BAND_NG",[_t.x.RADIO_NA]:"COMMON_RADIO_BAND_NA",[_t.x.RADIO_6E]:"COMMON_RADIO_BAND_6E"},vt=(0,h.A)(y.A,{shouldForwardProp:e=>"selected"!==e&&"disabled"!==e})`
  cursor: ${({disabled:e})=>e?"default":"pointer"};
  padding: ${Te.YC};
  height: 28px;
  align-items: center;
  border: 1px solid
    ${({theme:{themeName:e},selected:A})=>A?_e.Ay[`desktop-color-ublue-04-${e}`]:_e.Ay[`desktop-color-neutral-03-${e}`]};
  border-radius: ${_e.Ay["desktop-radius-base"]};
  white-space: nowrap;
  width: 100%;
  justify-content: center;
`,Lt=(0,a.memo)(({dashboardBandTab:e,disabled:A,onClick:t})=>{const l=(0,n.useSelector)(qA.$U);return a.createElement(vt,{disabled:A,selected:l===e,onClick:A?m.P1:t(e)},a.createElement(c.A,{color:A?"text-4":"text-2",size:"small"},a.createElement(T.sA,{id:bt[e]})))}),ht=(0,a.memo)(({topWidgets:e,bottomWidgets:A})=>{const t=(0,n.useDispatch)(),r=(0,n.useSelector)(qA.$U),i=(0,n.useSelector)(lt),o=(0,n.useSelector)(et),s=(0,n.useSelector)(ct),c=(0,n.useSelector)(Ot),E=(0,a.useCallback)(e=>()=>{t((0,QA.lQ)(e))},[t]),m=(0,a.useMemo)(()=>Ct.gO.reduce((e,A)=>{e[_t.S.BAND_SELECTOR_DATA][Nt.WIFI_CONNECTIVITY][A]=((e,A)=>e.find(e=>e[tt.RADIO_FILTER]===A)?.[tt.ATTEMPTS]||(0,M.A)())(i,A),e[_t.S.BAND_SELECTOR_DATA][Nt.AP_DENSITY][A]=((e,A)=>e.reduce((e,t)=>{const a=t[dt.RADIO_GROUPS].find(e=>e[Et.RADIO_FILTER]===A);return a&&e.push({[dt.RADIO_GROUPS]:[a],[dt.DEVICE_META]:t[dt.DEVICE_META]}),e},[]))(c,A);const t=(()=>{switch(A){case _t.x.RADIO_NG:case _t.x.RADIO_NA:case _t.x.RADIO_6E:return{[Nt.AP_RADIO_TX_RETRIES]:It(o,A),[Nt.SIGNAL_STRENGTH_DISTRIBUTION]:St(s,A)};default:return{[Nt.AP_RADIO_TX_RETRIES]:o,[Nt.SIGNAL_STRENGTH_DISTRIBUTION]:s}}})();return e[_t.S.BAND_SELECTOR_DATA][Nt.AP_RADIO_TX_RETRIES][A]=t[Nt.AP_RADIO_TX_RETRIES],e[_t.S.BAND_SELECTOR_DATA][Nt.SIGNAL_STRENGTH_DISTRIBUTION][A]=t[Nt.SIGNAL_STRENGTH_DISTRIBUTION],e[_t.S.DISABLED_STATES][A]=!Object.keys(e[_t.S.BAND_SELECTOR_DATA][Nt.WIFI_CONNECTIVITY][A]).length&&e[_t.S.BAND_SELECTOR_DATA][Nt.AP_RADIO_TX_RETRIES][A].every(e=>!e[FA.BAND_COUNT])&&e[_t.S.BAND_SELECTOR_DATA][Nt.SIGNAL_STRENGTH_DISTRIBUTION][A].every(e=>!e[it.SESSION_PERCENTAGE])&&!e[_t.S.BAND_SELECTOR_DATA][Nt.AP_DENSITY][A].some(e=>e[dt.RADIO_GROUPS].length),e},{[_t.S.DISABLED_STATES]:{[_t.x.RADIO_NG]:!1,[_t.x.RADIO_NA]:!1,[_t.x.RADIO_6E]:!1},[_t.S.BAND_SELECTOR_DATA]:{[Nt.WIFI_CONNECTIVITY]:{[_t.x.RADIO_NG]:{},[_t.x.RADIO_NA]:{},[_t.x.RADIO_6E]:{}},[Nt.AP_RADIO_TX_RETRIES]:{[_t.x.RADIO_NG]:[],[_t.x.RADIO_NA]:[],[_t.x.RADIO_6E]:[]},[Nt.SIGNAL_STRENGTH_DISTRIBUTION]:{[_t.x.RADIO_NG]:[],[_t.x.RADIO_NA]:[],[_t.x.RADIO_6E]:[]},[Nt.AP_DENSITY]:{[_t.x.RADIO_NG]:[],[_t.x.RADIO_NA]:[],[_t.x.RADIO_6E]:[]}}}),[o,s,i,c]),d=m[_t.S.DISABLED_STATES],u=m[_t.S.BAND_SELECTOR_DATA],O=(0,a.useMemo)(()=>[d[_t.x.RADIO_NG],d[_t.x.RADIO_NA],d[_t.x.RADIO_6E]].every(Boolean)?null:a.createElement(l.cW,{width:"auto",nested:!0},a.createElement(Mt,null,Ct.gO.map(e=>{return A=d[e],a.createElement(W.A,{key:e,width:"100%",maxWidth:"max-content",noWrap:!0,cursorType:A?"default":"pointer",description:A?a.createElement(T.sA,{id:"DASHBOARD_NO_DATA_AVAILABLE"}):void 0},a.createElement(Pt,{fullWidth:e===_t.x.RADIO_6E},a.createElement(Lt,{dashboardBandTab:e,disabled:A,onClick:E})));var A}))),[d,E]);(0,a.useEffect)(()=>{if(d[r]){const[e]=Object.entries(d).find(([e,A])=>!A)||[JA.m3];t((0,QA.lQ)(e))}},[d,r,t]);const I=(0,a.useMemo)(()=>({[Nt.WIFI_CONNECTIVITY]:u[Nt.WIFI_CONNECTIVITY][r],[Nt.AP_RADIO_TX_RETRIES]:u[Nt.AP_RADIO_TX_RETRIES][r],[Nt.SIGNAL_STRENGTH_DISTRIBUTION]:u[Nt.SIGNAL_STRENGTH_DISTRIBUTION][r],[Nt.AP_DENSITY]:u[Nt.AP_DENSITY][r]}),[u,r]);return a.createElement(Rt.Provider,{value:I},a.createElement(Dt,null,a.createElement(ft,null,O,e.length?e:A),e.length&&A.length?a.createElement(a.Fragment,null,a.createElement(KA.A,{className:Ct.Y5}),a.createElement(ft,null,A)):null))});var yt,zt,gt=t(744759),xt=t(956347),Wt=t(282556),Ht=t(15095),wt=t(627440),Ut=t(337263),kt=t(866593),Gt=t(902733),Vt=t(782081);!function(e){e.FINGERPRINT_COUNTERS="fingerprint_counters"}(yt||(yt={})),function(e){e.COUNT="count",e.FINGERPRINT="fingerprint"}(zt||(zt={}));const Xt=e=>({...e,[zt.FINGERPRINT]:{...e[zt.FINGERPRINT],[Vt.V.DEV_ID]:e[zt.FINGERPRINT][Vt.V.COMPUTED_DEV_ID]}}),Zt=(0,C.Mz)(D.e6,e=>e[ce.ZJ.MOST_COMMON_CLIENT_FINGERPRINTS]||(0,M.A)()),Yt=(0,C.Mz)(Zt,e=>(e[yt.FINGERPRINT_COUNTERS]||(0,P.A)()).map(Xt));var Bt=t(718073),Ft=t(998837),jt=t(239417);const Kt=(0,h.A)(y.A)`
  flex-direction: column;
  gap: ${Te.kc};
`,qt=(0,h.A)(y.A)`
  align-items: center;
  gap: ${Te.YC};
`,Jt=(0,h.A)(y.A)`
  width: 100%;
  justify-content: space-between;
`,Qt=({children:e,fingerprintDeviceName:A,tooltipTimeRange:t,count:n})=>a.createElement(Kt,null,a.createElement(qt,null,e,a.createElement(U.A,{size:"medium",color:"text-1-oncolor-alpha",weight:"bold",isTruncated:!0},A)),a.createElement(c.A,{size:"small",color:"text-2-oncolor-alpha"},t),a.createElement(Jt,null,a.createElement(c.A,{size:"small",color:"text-1-oncolor-alpha"},a.createElement(T.sA,{id:"COMMON_DEVICE_COUNT"})),a.createElement(c.A,{size:"small",color:"text-2-oncolor-alpha"},n))),$t=({fingerprintCounter:e,countFormatter:A,tooltipTimeRange:t,onClick:l})=>{const{fingerprint_device_name:r}=(0,n.useSelector)((0,a.useMemo)(()=>(0,jt.OF)(e[zt.FINGERPRINT]),[e])),i=(0,a.useMemo)(()=>a.createElement(w.A,{size:Y.D,width:p.oT,height:p.oT,client:e}),[e]),o=(0,a.useMemo)(()=>A.format(e[zt.COUNT]),[A,e]);return a.createElement(Bt.A,{description:a.createElement(Qt,{fingerprintDeviceName:r,tooltipTimeRange:t,count:o},i)},a.createElement(j.uc,{onClick:l(r)},a.createElement(j.uS,{outlineOverride:`desktop-color-neutral-03-${(0,Ft.u)().themeName}`,header:o},i),a.createElement(j.pn,{size:"xsmall",color:"text-3",isCentered:!0,isTruncated:!0},r)))},ea=(0,h.A)(y.A)`
  width: 100%;
  flex-direction: column;
  gap: ${Te.xO};
`,Aa=(0,h.A)(y.A)`
  width: 100%;
  gap: ${Te.Ln};
`,ta=(0,h.A)(y.A)`
  justify-content: center;
  width: 100%;
`,aa=(0,a.memo)(()=>{const e=(0,n.useDispatch)(),A=(0,xt.W6)(),t=(0,Ht.A)(wt.VO.CLIENTS),{ref:r,width:i}=(0,s.A)(),o=R((0,n.useSelector)(Yt),i),E=(0,a.useContext)(S.A)[I.x.TOOLTIP_TIME_RANGE],m=(0,n.useSelector)(Wt.zi),d=(0,a.useMemo)(()=>new Intl.NumberFormat(m,{notation:"compact",compactDisplay:"short"}),[m]),u=(0,a.useCallback)(a=>()=>{a&&e((0,Ut.Rj)([a])),A.push(t)},[A,t,e]);return(0,a.useEffect)(()=>{kt.wb.forEach(Gt.b)},[]),a.createElement(l.cW,null,o.length?a.createElement(ea,null,a.createElement(c.A,{size:"small",color:"text-2"},a.createElement(T.sA,{id:"COMMON_MOST_COMMON_DEVICES"})),a.createElement(Aa,{ref:r},o.map(e=>a.createElement($t,{key:JSON.stringify(e),fingerprintCounter:e,countFormatter:d,tooltipTimeRange:E,onClick:u})))):a.createElement(ta,null,a.createElement(c.A,{color:"text-1",size:"medium"},a.createElement(T.sA,{id:"DASHBOARD_NO_CLIENTS"}))))});var na,la=t(891528);!function(e){e.ID="id",e.WIDGETS="widgets",e.CONTENT="content"}(na||(na={}));const ra=(e,A,t)=>e.reduce((e,a)=>(A.includes(a)&&e.push(t[a]),e),[]);var ia,oa;!function(e){e.SUMMARY="summary"}(ia||(ia={})),function(e){e.NUM_STA="num_sta",e.RADIO="radio",e.RX_BYTES="rx_bytes",e.SATISFACTION="satisfaction",e.STANDARD="standard",e.TX_BYTES="tx_bytes"}(oa||(oa={}));const sa=(0,C.Mz)(D.e6,e=>e[ce.ZJ.WIFI_TECHNOLOGY]||(0,M.A)()),ca=(0,C.Mz)(sa,e=>e[ia.SUMMARY]||(0,P.A)());var Ea;!function(e){e.TYPE="type",e.ACTIVITY="activityPercent",e.EXPERIENCE="experience",e.CONNECTIONS="connetions"}(Ea||(Ea={}));const ma=(0,h.A)(y.A)`
  align-items: center;
  gap: ${Te.YC};
`,da=(0,h.A)(RA.A,{shouldForwardProp:e=>"color"!==e})`
  background-color: ${({color:e})=>e};
  margin-right: ${Te.YC};
`,ua=(0,h.A)(y.A)`
  margin: 0 ${Te.YC};
  height: 16px;
  border-right: ${({theme:{themeName:e}})=>_e.Ay[`desktop-border-divider-${e}`]};
`,Ta=({standard:e,radio:A,color:t})=>a.createElement(ma,null,a.createElement(da,{color:t}),a.createElement(c.A,{size:"small",color:"text-2"},de.oI[e]),a.createElement(ua,null),a.createElement(U.A,{size:"small",color:"text-2",isTruncated:!0},a.createElement(T.sA,{id:(0,Ne.dI)(A)}))),Oa=({satisfaction:e})=>a.createElement(c.A,{size:"small",style:{color:(0,k.L)(e,(0,x.A)().motif)}},a.createElement(T.sA,{id:(0,Ze.gd)(e)})),Ia=({num_sta:e})=>a.createElement(c.A,{size:"small",color:"text-2"},e),Sa=(0,h.A)(y.A)`
  flex-direction: column;
  gap: ${Te.YC};
`,Na=(0,h.A)(y.A)`
  justify-content: space-between;
`,_a=(0,h.A)(y.A)`
  align-items: center;
  gap: ${Te.YC};
`,pa=({rx_bytes:e,tx_bytes:A,totalTraffic:t})=>a.createElement(Sa,null,a.createElement(Na,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_DOWNLOAD"})),a.createElement(_a,null,a.createElement(X.A.Icon,{size:"small"}),a.createElement(c.A,{size:"small",color:"traffic-down"},(0,G.FI)(e)))),a.createElement(Na,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_UPLOAD"})),a.createElement(_a,null,a.createElement(V.A.Icon,{size:"small"}),a.createElement(c.A,{size:"small",color:"traffic-up"},(0,G.FI)(A)))),a.createElement(Na,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_TRAFFIC"})),a.createElement(c.A,{size:"small",color:"text-2"},(0,G.FI)(A+e))),a.createElement(Na,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_TOTAL_TRAFFIC"})),a.createElement(c.A,{size:"small",color:"text-2"},(0,G.FI)(t))));var Ra=t(930662);const Ca=(0,h.A)(y.A)`
  width: 100%;
  > div {
    width: 100% !important;
  }
`,Ma=(0,h.A)(Ra.A)`
  height: 8px;
`,Pa=({tx_bytes:e,rx_bytes:A,totalTraffic:t,activityPercent:n})=>a.createElement(Ca,null,a.createElement(W.A,{width:220,portal:!0,description:a.createElement(pa,{tx_bytes:e,rx_bytes:A,totalTraffic:t})},a.createElement(Ma,{value:n,variant:"primary"}))),Da={[Ea.TYPE]:"COMMON_TYPE",[Ea.ACTIVITY]:"COMMON_ACTIVITY",[Ea.EXPERIENCE]:"COMMON_EXPERIENCE",[Ea.CONNECTIONS]:"DASHBOARD_CONNECTIONS"},fa={[Ea.TYPE]:120,[Ea.ACTIVITY]:50,[Ea.EXPERIENCE]:80,[Ea.CONNECTIONS]:85},ba={[Ea.TYPE]:Ta,[Ea.ACTIVITY]:Pa,[Ea.EXPERIENCE]:Oa,[Ea.CONNECTIONS]:Ia},va={[Ea.TYPE]:({standard:e})=>e,[Ea.ACTIVITY]:({activityPercent:e})=>e,[Ea.EXPERIENCE]:({satisfaction:e})=>e,[Ea.CONNECTIONS]:({num_sta:e})=>e},La=[Ea.EXPERIENCE,Ea.CONNECTIONS],ha=Object.values(fa),ya={id:Ea.ACTIVITY,isAscending:!1},za=e=>e,ga=e=>fa[e],xa=e=>({header:{id:A}})=>a.createElement(T.sA,{id:Da[A]},ze(e,La)),Wa=({column:{id:e},getValue:A})=>ba[e](A()),Ha=Object.values(Ea).map(e=>{return{id:e,accessorFn:za,minSize:ga(e),header:xa(e),cell:Wa,compare:(A=e,(0,eA.l0)(e=>va[A](e))),...ye.b2};var A}),wa=(0,a.memo)(({formattedDashboardWifiTechnologySummary:e})=>a.createElement(we,{minSizes:ha},a.createElement(Le.A,{data:e,columns:Ha,columnProps:ge(La),sorting:ya,...ye.kk}))),Ua=(0,h.A)(y.A)`
  width: 100%;
  flex-direction: column;
  gap: ${Te.YC};
`,ka=(0,h.A)(y.A)`
  width: 100%;
  gap: ${Te.YC};
  margin-bottom: ${Te.YC};
`,Ga=(0,h.A)(y.A)`
  width: 100%;
  justify-content: space-between;
`,Va=(0,h.A)(y.A)`
  align-items: center;
  gap: ${Te.YC};
`,Xa=({rx_bytes:e,tx_bytes:A,totalTraffic:t,satisfaction:n,standard:l,radio:r,num_sta:i,tooltipTimeRange:o})=>a.createElement(Ua,null,a.createElement(ka,null,a.createElement(c.A,{size:"medium",weight:"bold",color:"text-1"},de.oI[l]," | ",a.createElement(T.sA,{id:(0,Ne.dI)(r)}))),a.createElement(y.A,{marginBottom:Te.YC},a.createElement(c.A,{size:"small",color:"text-2"},o)),a.createElement(Ga,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_DOWNLOAD"})),a.createElement(Va,null,a.createElement(X.A.Icon,{size:"small"}),a.createElement(c.A,{size:"small",color:"traffic-down"},(0,G.FI)(e)))),a.createElement(Ga,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_UPLOAD"})),a.createElement(Va,null,a.createElement(V.A.Icon,{size:"small"}),a.createElement(c.A,{size:"small",color:"traffic-up"},(0,G.FI)(A)))),a.createElement(Ga,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_TRAFFIC"})),a.createElement(c.A,{size:"small",color:"text-2"},(0,G.FI)(A+e))),a.createElement(Ga,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_TOTAL_TRAFFIC"})),a.createElement(c.A,{size:"small",color:"text-2"},(0,G.FI)(t))),a.createElement(Ga,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_EXPERIENCE"})),a.createElement(c.A,{size:"small",style:{color:(0,k.L)(n,(0,x.A)().motif)}},n,"%")),a.createElement(Ga,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"DASHBOARD_CONNECTIONS"})),a.createElement(c.A,{size:"small",color:"text-2"},i)));var Za;!function(e){e.ID="id",e.VALUE="value",e.TOTAL_TRAFFIC="totalTraffic",e.ACTIVITY_PERCENT="activityPercent",e.COLOR="color"}(Za||(Za={}));const Ya=(0,a.memo)(({dashboardWifiTechnologySummaryTotalClients:e,formattedDashboardWifiTechnologySummary:A})=>{const{formatMessage:t}=(0,T.tz)(),{border:n,padding:l,diameter:r,spacer:i,thickness:o}=(0,oA.A)(sA.e.DASHBOARD),s=(0,a.useMemo)(()=>t({id:"DASHBOARD_TOTAL_CONNECTIONS"}),[t]),c=(0,a.useMemo)(()=>e,[e]),E=(0,a.useContext)(S.A)[I.x.TOOLTIP_TIME_RANGE],m=(0,a.useCallback)(e=>e[Za.ID]?a.createElement(Xa,{...e,tooltipTimeRange:E}):null,[E]);return a.createElement(He,{customBorder:n,customPadding:l},a.createElement(iA.A,{items:A,renderTooltipMessage:m,title:c,description:s,spacer:i,thickness:o,size:r,...ye.Ho}))}),Ba=(0,a.memo)(()=>{const{[I.x.REDIRECTOR]:{[O.d.RADIOS]:e}}=(0,a.useContext)(S.A),A=(0,n.useSelector)(ca),{dashboardWifiTechnologySummaryTotalClients:t,dashboardWifiTechnologySummaryTotalTraffic:r}=(0,a.useMemo)(()=>A.reduce((e,{num_sta:A,rx_bytes:t,tx_bytes:a})=>(e.dashboardWifiTechnologySummaryTotalClients+=A,e.dashboardWifiTechnologySummaryTotalTraffic+=t+a,e),{dashboardWifiTechnologySummaryTotalClients:0,dashboardWifiTechnologySummaryTotalTraffic:0}),[A]),i=(0,a.useCallback)((0,ve.r0)(),[]),o=(0,a.useMemo)(()=>A.map(({num_sta:e,radio:A,tx_bytes:t,rx_bytes:a,satisfaction:n,standard:l},o)=>({num_sta:e,radio:A,rx_bytes:a,tx_bytes:t,standard:l,satisfaction:n,id:`${l}__${A}`,[Za.VALUE]:e,[Za.TOTAL_TRAFFIC]:r,[Za.ACTIVITY_PERCENT]:Math.min((t+a)/r*100,100),[Za.COLOR]:i(o.toString())})),[A,r,i]);return a.createElement(l.cW,null,a.createElement(Ue,null,a.createElement(ke,null,a.createElement(Ya,{dashboardWifiTechnologySummaryTotalClients:t,formattedDashboardWifiTechnologySummary:o}),a.createElement(wa,{formattedDashboardWifiTechnologySummary:o})),a.createElement(se.A,{redirector:e})))});var Fa,ja,Ka=t(411502),qa=t(52361);!function(e){e.RX_BYTES="rx_bytes",e.TX_BYTES="tx_bytes",e.USAGE_BY_APP="usage_by_app"}(Fa||(Fa={})),function(e){e.APPLICATION="application",e.BYTES_RECEIVED="bytes_received",e.BYTES_TRANSMITTED="bytes_transmitted",e.CATEGORY="category",e.TOTAL_BYTES="total_bytes"}(ja||(ja={}));const Ja=(0,C.Mz)(D.e6,e=>e[ce.ZJ.TRAFFIC_IDENTIFICATION]||(0,M.A)()),Qa=(0,C.Mz)(Ja,e=>e[Fa.USAGE_BY_APP]||(0,P.A)());var $a;!function(e){e.NAME="name",e.RX_BYTES="rx_bytes",e.TX_BYTES="tx_bytes",e.TRAFFIC="traffic"}($a||($a={}));const en=({tx_bytes:e})=>a.createElement(c.A,{size:"small",color:"traffic-up"},(0,G.FI)(e)),An=({traffic:e})=>a.createElement(c.A,{size:"small",color:"text-2"},(0,G.FI)(e)),tn=(0,h.A)(y.A)`
  align-items: center;
  gap: ${Te.YC};
`,an=(0,h.A)(RA.A,{shouldForwardProp:e=>"color"!==e})`
  background-color: ${({color:e})=>e};
  margin-right: ${Te.YC};
`,nn=({color:e,name:A,iconFileName:t})=>a.createElement(tn,null,a.createElement(an,{color:e}),a.createElement(J.A,{iconFileName:t,dimension:20}),a.createElement(U.A,{size:"small",color:"text-2",isTruncated:!0},A||a.createElement(T.sA,{id:"COMMON_UNKNOWN"}))),ln=({rx_bytes:e})=>a.createElement(c.A,{size:"small",color:"traffic-down"},(0,G.FI)(e)),rn={[$a.NAME]:"COMMON_APPLICATION",[$a.RX_BYTES]:"COMMON_DOWN",[$a.TX_BYTES]:"COMMON_UP",[$a.TRAFFIC]:"COMMON_TRAFFIC"},on={[$a.NAME]:100,[$a.RX_BYTES]:60,[$a.TX_BYTES]:60,[$a.TRAFFIC]:60},sn={[$a.NAME]:nn,[$a.RX_BYTES]:ln,[$a.TX_BYTES]:en,[$a.TRAFFIC]:An},cn={[$a.NAME]:({name:e})=>e,[$a.RX_BYTES]:({rx_bytes:e})=>e,[$a.TX_BYTES]:({tx_bytes:e})=>e,[$a.TRAFFIC]:({traffic:e})=>e},En=[$a.RX_BYTES,$a.TX_BYTES,$a.TRAFFIC],mn=Object.values(on),dn={id:$a.TRAFFIC,isAscending:!1},un=e=>e,Tn=e=>on[e],On=e=>({header:{id:A}})=>a.createElement(T.sA,{id:rn[A]},ze(e,En)),In=({column:{id:e},getValue:A})=>sn[e](A()),Sn=Object.values($a).map(e=>{return{id:e,accessorFn:un,minSize:Tn(e),header:On(e),cell:In,compare:(A=e,(0,eA.l0)(e=>cn[A](e))),...ye.b2};var A}),Nn=(0,a.memo)(({formattedDashboardTrafficIdentificationUsageByApp:e})=>a.createElement(we,{minSizes:mn},a.createElement(Le.A,{data:e,columns:Sn,columnProps:ge(En),sorting:dn,...ye.kk}))),_n=(0,h.A)(y.A)`
  width: 100%;
  flex-direction: column;
  gap: ${Te.YC};
`,pn=(0,h.A)(y.A)`
  width: 100%;
  gap: ${Te.YC};
  margin-bottom: ${Te.YC};
`,Rn=(0,h.A)(y.A)`
  width: 100%;
  justify-content: space-between;
`,Cn=(0,h.A)(y.A)`
  align-items: center;
  gap: ${Te.YC};
`,Mn=({name:e,iconFileName:A,rx_bytes:t,tx_bytes:n,traffic:l,tooltipTimeRange:r})=>a.createElement(_n,null,a.createElement(pn,null,a.createElement(J.A,{iconFileName:A}),a.createElement(c.A,{color:"text-1",size:"medium",weight:"bold"},e||a.createElement(T.sA,{id:"COMMON_UNKNOWN"}))),a.createElement(y.A,{marginBottom:Te.YC},a.createElement(c.A,{size:"small",color:"text-2"},r)),a.createElement(Rn,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_DOWNLOAD"})),a.createElement(Cn,null,a.createElement(X.A.Icon,{size:"small"}),a.createElement(c.A,{size:"small",color:"traffic-down"},(0,G.FI)(t)))),a.createElement(Rn,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_UPLOAD"})),a.createElement(Cn,null,a.createElement(V.A.Icon,{size:"small"}),a.createElement(c.A,{size:"small",color:"traffic-up"},(0,G.FI)(n)))),a.createElement(Rn,null,a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_TRAFFIC"})),a.createElement(c.A,{size:"small",color:"text-2"},(0,G.FI)(l))));var Pn;!function(e){e.NAME="name",e.ICON_FILE_NAME="iconFileName",e.COMPOUND_APP_ID="compoundAppId",e.RX_BYTES="rx_bytes",e.TX_BYTES="tx_bytes",e.TRAFFIC="traffic",e.COLOR="color"}(Pn||(Pn={}));const Dn=(0,a.memo)(({formattedDashboardTrafficIdentificationUsageByApp:e,totalBytes:A})=>{const{formatMessage:t}=(0,T.tz)(),{border:n,padding:l,diameter:r,spacer:i,thickness:o}=(0,oA.A)(sA.e.DASHBOARD),s=(0,a.useMemo)(()=>(0,G.FI)(A),[A]),c=(0,a.useMemo)(()=>t({id:"COMMON_TOTAL_TRAFFIC"}),[t]),E=(0,a.useMemo)(()=>e.map(e=>({...e,value:e[Pn.TRAFFIC],id:e[Pn.COMPOUND_APP_ID]})),[e]),m=(0,a.useContext)(S.A)[I.x.TOOLTIP_TIME_RANGE],d=(0,a.useCallback)(e=>e.id?a.createElement(Mn,{...e,tooltipTimeRange:m}):null,[m]);return a.createElement(He,{customBorder:n,customPadding:l},a.createElement(iA.A,{items:E,renderTooltipMessage:d,title:s,description:c,spacer:i,thickness:o,size:r,...ye.Ho}))}),fn=(0,a.memo)(()=>{const{formatMessage:e}=(0,T.tz)(),A=(0,n.useSelector)(Qa),t=(0,a.useMemo)(()=>e({id:"COMMON_UNKNOWN"}),[e]),{formattedDashboardTrafficIdentificationUsageByApp:r,totalBytes:i}=(0,a.useMemo)(()=>{const e=[];let a=0;const n=A.length;for(let l=0;l<n;l+=1){const{category:n,application:r,bytes_received:i,bytes_transmitted:o}=A[l],s=(0,E.h)(n,r),c=(0,q.HH)(s);c?.name&&c.name.toLowerCase()!==Ka.HV&&(e.push({[Pn.COMPOUND_APP_ID]:s,[Pn.NAME]:c.name||t,[Pn.ICON_FILE_NAME]:c.iconFileName,[Pn.RX_BYTES]:i,[Pn.TX_BYTES]:o,[Pn.TRAFFIC]:i+o,[Pn.COLOR]:(0,qa.f)((0,qa.B)(l),4)}),a+=i+o)}return{formattedDashboardTrafficIdentificationUsageByApp:e,totalBytes:a}},[A,t]),o=(0,a.useContext)(S.A)[I.x.REDIRECTOR][O.d.ACTIVITY_APPS];return a.createElement(l.cW,null,a.createElement(Ue,null,a.createElement(ke,null,a.createElement(Dn,{formattedDashboardTrafficIdentificationUsageByApp:r,totalBytes:i}),a.createElement(Nn,{formattedDashboardTrafficIdentificationUsageByApp:r})),a.createElement(se.A,{redirector:o})))}),bn=(e,A)=>e?e>=80?_e.Ay[`desktop-color-green-05-${A}`]:e>=60?_e.Ay[`desktop-color-orange-06-${A}`]:_e.Ay[`desktop-color-red-06-${A}`]:_e.Ay[`desktop-color-neutral-03-${A}`],vn=(0,h.A)(y.A)`
  width: 100%;
  justify-content: space-between;
`,Ln=(0,h.A)(y.A,{shouldForwardProp:e=>"hasValue"!==e})`
  align-items: center;
  gap: ${Te.kc};
`,hn=(0,h.A)(y.A)`
  align-items: center;
  span {
    transition:
      color 1000ms linear,
      opacity 1000ms linear;
  }
`,yn=(0,h.A)(y.A)`
  flex-direction: column;
  gap: ${Te.YC};
`,zn=(0,a.memo)(({success_ratio:e=0,failed_client_connections:A=0})=>{const{[I.x.REDIRECTOR]:{[O.d.ROAMING]:t}}=(0,a.useContext)(S.A);return a.createElement(vn,null,a.createElement(Ln,{hasValue:e>0},a.createElement(c.A,{size:"small",color:"text-2"},a.createElement(T.sA,{id:"COMMON_WIFI_CONNECTIVITY"})),a.createElement(W.A,{portal:!0,width:"100%",maxWidth:"max-content",description:e?a.createElement(yn,null,a.createElement(c.A,{color:"text-1",size:"small",weight:"bold"},a.createElement(T.sA,{id:"DASHBOARD_INITIAL_CLIENT_CONNECTION"})),a.createElement(c.A,{color:"text-2",size:"small"},a.createElement(T.sA,{id:e<100?"DASHBOARD_ATTEMPT_UNSUCCESSFUL":"DASHBOARD_ATTEMPT_SUCCESSFUL",values:{failed_client_connections:A}}))):null},a.createElement(hn,null,a.createElement(c.A,{style:{opacity:e?1:0,pointerEvents:e?"all":"none"},size:"small",color:"text-3"},a.createElement(T.sA,{id:"COMMON_SUCCESS"})," ",a.createElement(c.A,{size:"small",style:{color:bn(e,(0,Ft.u)().themeName),opacity:e?1:0}},e,"%"))))),a.createElement(se.A,{redirector:t}))}),gn=(0,h.A)(y.A)`
  > span {
    transition:
      color 1000ms linear,
      opacity 1000ms linear;
  }
`,xn=(0,a.memo)(({percentage:e})=>a.createElement(gn,null,a.createElement(c.A,{size:"small",style:{color:bn(e,(0,Ft.u)().themeName),opacity:e?1:0}},e,"%"))),Wn="WIFI_CONNECTIVITY_SECTION_CONTENT_TEXT_CLASSNAME",Hn=(0,h.A)(y.A,{shouldForwardProp:e=>"percentage"!==e})`
  width: 100%;
  height: 16px;
  border-radius: ${_e.Ay["desktop-radius-base"]};
  background: ${({percentage:e,theme:{themeName:A}})=>bn(e,A)};
  transition: background 1000ms linear;
  .${Wn} {
    color: #fff;
  }
  padding-left: ${Te.YC};
`,wn=(0,a.memo)(({id:e,percentage:A})=>a.createElement(Hn,{percentage:A},a.createElement(c.A,{size:"small",className:Wn,color:"inherit"},a.createElement(T.sA,{id:e})))),Un=(0,h.A)(y.A)`
  flex-direction: column;
  gap: ${Te.YC};
  width: 100%;
`,kn=(0,a.memo)(({id:e,percentage:A=0})=>a.createElement(Un,null,a.createElement(wn,{id:e,percentage:A}),a.createElement(xn,{percentage:A}))),Gn=(0,h.A)(y.A)`
  width: 100%;
  gap: ${Te.YC};
`,Vn=(0,a.memo)(({wifiConnectivity:e})=>a.createElement(Gn,null,a.createElement(kn,{id:"COMMON_ASSOC",percentage:e[At.ASSOCIATION_RATIO]}),a.createElement(kn,{id:"COMMON_AUTH",percentage:e[At.AUTHENTICATION_RATIO]}),a.createElement(kn,{id:"COMMON_DHCP",percentage:e[At.DHCP_RATIO]}),a.createElement(kn,{id:"COMMON_DNS",percentage:e[At.DNS_RATIO]}))),Xn=(0,h.A)(y.A)`
  width: 100%;
  flex-direction: column;
  gap: ${Te.kc};
`,Zn=(0,a.memo)(()=>{const e=(0,a.useContext)(Rt)[Nt.WIFI_CONNECTIVITY];return a.createElement(l.cW,{nested:!0},a.createElement(Xn,null,a.createElement(zn,{success_ratio:e[At.SUCCESS_RATIO],failed_client_connections:e[At.FAILED_CLIENT_CONNECTIONS]}),a.createElement(Vn,{wifiConnectivity:e})))}),Yn=(0,h.A)(y.A)`
  width: 100%;
  justify-content: space-between;
`,Bn=(0,a.memo)(()=>{const{[I.x.REDIRECTOR]:{[O.d.RADIOS]:e}}=(0,a.useContext)(S.A);return a.createElement(Yn,null,a.createElement(c.A,{size:"small",color:"text-2"},a.createElement(T.sA,{id:"DASHBOARD_MODULE_SIGNAL_STRENGTH_DISTRIBUTION"})),a.createElement(se.A,{redirector:e}))});var Fn=t(518689),jn=t(776309),Kn=t(126457);const qn=(0,h.A)(y.A)`
  width: 100%;
  justify-content: space-between;
  margin-top: ${Te.YC};
`,Jn=(0,a.memo)(({values:e})=>a.createElement(qn,null,e.map(e=>a.createElement(c.A,{key:e,size:"small",color:"text-3"},e))));var Qn=t(758649),$n=t(735521);const el=(0,h.A)(y.A)`
  width: 100%;
  flex-direction: column;
  gap: ${Te.YC};
`,Al=({session_percentage:e,category_id:A,radio_stats:t,isFirst:n,isLast:l,dBm:r,tooltipTimeRange:i,onWifiPerformanceClick:o,onImproveNetworkSpeedsClick:s})=>a.createElement(el,null,a.createElement(y.A,{justifyContent:"space-between"},a.createElement(c.A,{size:"medium",weight:"bold",color:"text-1"},a.createElement(T.sA,{id:"COMMON_SIGNAL_STRENGTH"}))),a.createElement(y.A,{marginTop:Te.YC,marginBottom:Te.YC},a.createElement(c.A,{size:"small",color:"text-2"},i)),a.createElement(y.A,{justifyContent:"space-between"},a.createElement(c.A,{size:"small",color:"text-2"},a.createElement(T.sA,{id:"COMMON_SIGNAL"})),a.createElement(c.A,{size:"small",color:"text-2"},n||l?a.createElement(a.Fragment,null,a.createElement(T.sA,{id:n?"COMMON_BELOW":"COMMON_ABOVE"}),a.createElement(c.A,{size:"inherit",color:$n.Bi[(0,Ze.im)(-(A-(n?10:0)))]}," -",A-(n?10:0)," ",r)):a.createElement(a.Fragment,null,a.createElement(c.A,{size:"inherit",color:$n.Bi[(0,Ze.im)(-A)]}," -",A," ",r," "),a.createElement(T.sA,{id:"COMMON_TO"}),a.createElement(c.A,{size:"inherit",color:$n.Bi[(0,Ze.im)(-(A-10))]}," -",A-10," ",r)))),a.createElement(y.A,{justifyContent:"space-between"},a.createElement(c.A,{size:"small",color:"text-2"},a.createElement(T.sA,{id:"DASHBOARD_CLIENT_SESSIONS"})),a.createElement(c.A,{size:"small",color:"text-2"},(0,Fn.i)(e),"%")),a.createElement(y.A,{justifyContent:"space-between",marginTop:Te.YC},a.createElement(c.A,{weight:"bold",size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_BAND"})),a.createElement(c.A,{weight:"bold",size:"small",color:"text-1"},a.createElement(T.sA,{id:"DASHBOARD_AVG_TX_RETRIES"}))),t.map(({radio:e,tx_retries_percentage:A})=>a.createElement(y.A,{key:e,justifyContent:"space-between"},a.createElement(c.A,{size:"small",color:"text-2"},a.createElement(T.sA,{id:(0,Ne.dI)(e)})),a.createElement(c.A,{size:"small",color:"text-2"},(0,Fn.i)(A),"%"))),a.createElement(y.A,{alignItems:"center",gap:Te.xO,marginTop:Te.kc},a.createElement(Qn.A,{type:"button",variant:"inline",size:"small",onClick:o},a.createElement(T.sA,{id:"DASHBOARD_WIFI_COVERAGE"})),A>=80?a.createElement(Qn.A,{type:"button",variant:"inline",size:"small",onClick:s},a.createElement(T.sA,{id:"COMMON_WIFI_TIPS_TITLE"})):null));var tl=t(955161);const al="SIGNAL_STRENGTH_DISTRIBUTION_BLOCK_TEXT_CLASSNAME",nl=(0,h.A)(y.A,{shouldForwardProp:e=>"color"!==e})`
  width: 100%;
  height: 16px;
  border-radius: ${_e.Ay["desktop-radius-base"]};
  background: ${({color:e})=>e};
  transition: background 1000ms linear;
  .${al} {
    color: #fff;
  }
  position: relative;
  > div {
    width: 100%;
  }
`,ll=(0,h.A)(y.A)`
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
`,rl=(0,a.memo)(({value:e,color:A,description:t,delay:n,isInteractive:l=!1,tooltipWidth:r})=>{const i=(0,a.useCallback)(e=>((e,A,t={open:0,close:0},n=240)=>l=>a.createElement(W.A,{description:e,maxWidth:"inherit",width:n,isInteractive:A,delay:t,portal:!0},l))(t,l,n,r)(e),[t,l,n,r]);return a.createElement(nl,{color:A},a.createElement(tl.A,{condition:Boolean(e),wrapper:i},a.createElement(ll,null,a.createElement(U.A,{color:"inherit",isTruncated:!0,className:al,size:"small"},e))))}),il=(0,h.A)(y.A)`
  width: 100%;
  height: 100%;
  flex-direction: column;
`,ol=(0,h.A)(y.A)`
  height: 100%;
  width: 100%;
  gap: ${Te.YC};
`,sl=(0,a.memo)(()=>{const{formatMessage:e}=(0,T.tz)(),{themeName:A}=(0,Ft.u)(),t=(0,n.useDispatch)(),l=(0,a.useContext)(S.A),{[I.x.REDIRECTOR]:{[O.d.RADIOS]:{[O.q.REDIRECT]:r}}}=(0,a.useContext)(S.A),i=(0,a.useCallback)(()=>{t((0,Kn.to)({modalType:jn.A.WIFI_PERFORMANCE_TIPS}))},[t]),o=(0,a.useCallback)(e=>e>=2?_e.Ay[`desktop-color-green-05-${A}`]:_e.Ay[`desktop-color-orange-06-${A}`],[A]),s=(0,a.useMemo)(()=>e({id:"COMMON_UNIT_DBM"}),[e]),c=(0,a.useContext)(Rt)[Nt.SIGNAL_STRENGTH_DISTRIBUTION],E=l[I.x.TOOLTIP_TIME_RANGE],{SignalStrengthDistributionBlocks:m,signalStrengthSessionCategoryIds:d}=(0,a.useMemo)(()=>{const e=[],A=[],t=c.length;for(let n=0;n<t;n+=1){const l=c[n];e.push(a.createElement(rl,{key:l[it.CATEGORY_ID],value:l[it.SESSION_PERCENTAGE]?`${(0,Fn.i)(l[it.SESSION_PERCENTAGE])}%`:null,color:(0,ve.b_)(o(n),l[it.SESSION_PERCENTAGE]?1:.1),description:a.createElement(Al,{session_percentage:l[it.SESSION_PERCENTAGE],isFirst:0===n,isLast:t-1===n,category_id:l[it.CATEGORY_ID],radio_stats:l[it.RADIO_STATS],dBm:s,tooltipTimeRange:E,onWifiPerformanceClick:r,onImproveNetworkSpeedsClick:i}),delay:{open:0,close:l[it.CATEGORY_ID]>=80?20:0},tooltipWidth:270,isInteractive:!0})),A.push(`-${l[it.CATEGORY_ID]}`)}return{SignalStrengthDistributionBlocks:e,signalStrengthSessionCategoryIds:A}},[c,s,E,o,r,i]),u=(0,a.useMemo)(()=>[...d,s],[d,s]);return a.createElement(il,null,a.createElement(ol,null,m),a.createElement(Jn,{values:u}))}),cl=(0,h.A)(y.A)`
  width: 100%;
  flex-direction: column;
  gap: ${Te.kc};
`,El=(0,a.memo)(()=>a.createElement(l.cW,{nested:!0},a.createElement(cl,null,a.createElement(Bn,null),a.createElement(sl,null)))),ml=(0,h.A)(y.A)`
  width: 100%;
  flex-direction: column;
  gap: ${Te.kc};
`,dl=(0,h.A)(y.A)`
  width: 100%;
  justify-content: space-between;
`,ul=(0,a.memo)(()=>{const{[I.x.REDIRECTOR]:{[O.d.RADIOS]:e}}=(0,a.useContext)(S.A);return a.createElement(dl,null,a.createElement(c.A,{size:"small",color:"text-2"},a.createElement(T.sA,{id:"DASHBOARD_MODULE_AP_RADIO_TX_RETRIES"})),a.createElement(se.A,{redirector:e}))});var Tl;!function(e){e.GRAPH_TOOLTIP_INTL_NUMBER_FORMAT="graphTooltipIntlNumberFormat",e.GRAPH_AXIS_INTL_NUMBER_FORMAT="graphAxisIntlNumberFormat",e.GRAPH_AXIS_INTL_DATE_TIME_FORMAT="graphAxisIntlDateTimeFormat",e.GRAPH_TOOLTIP_DATE_INTL_DATE_TIME_FORMAT="graphTooltipDateIntlDateTimeFormat",e.GRAPH_TOOLTIP_TIME_INTL_DATE_TIME_FORMAT="graphTooltipTimeIntlDateTimeFormat"}(Tl||(Tl={}));const Ol={[Tl.GRAPH_TOOLTIP_INTL_NUMBER_FORMAT]:void 0,[Tl.GRAPH_AXIS_INTL_NUMBER_FORMAT]:void 0,[Tl.GRAPH_AXIS_INTL_DATE_TIME_FORMAT]:void 0,[Tl.GRAPH_TOOLTIP_DATE_INTL_DATE_TIME_FORMAT]:void 0,[Tl.GRAPH_TOOLTIP_TIME_INTL_DATE_TIME_FORMAT]:void 0},Il=(0,a.createContext)(Ol),Sl=(0,h.A)(y.A)`
  width: 100%;
  height: 100%;
  flex-direction: column;
`,Nl=(0,h.A)(y.A)`
  height: 100%;
  width: 100%;
  gap: ${Te.YC};
`,_l=(0,h.A)(y.A)`
  width: 100%;
  justify-content: space-between;
  margin-top: ${Te.YC};
`,pl=(0,a.memo)(({values:e})=>a.createElement(_l,null,e.map(e=>a.createElement(c.A,{key:e,size:"small",color:"text-3"},e)))),Rl=(0,h.A)(y.A)`
  width: 100%;
  flex-direction: column;
  gap: ${Te.YC};
`,Cl=(0,h.A)("table")`
  border: none;
  > tbody > tr {
    th {
      padding-bottom: ${Te.YC};
    }
    > th,
    td {
      &:first-child {
        text-align: start;
      }
      &:nth-child(2) {
        text-align: center;
      }
      &:last-child {
        text-align: end;
      }
    }
  }
`,Ml=({wifi_tx_retry_stats:e,tooltipTimeRange:A})=>a.createElement(Rl,null,a.createElement(c.A,{weight:"bold",size:"medium",color:"text-1"},a.createElement(T.sA,{id:"DASHBOARD_AVG_TX_RETRIES"})),a.createElement(y.A,{marginBottom:Te.YC,marginTop:Te.YC},a.createElement(c.A,{size:"small",color:"text-2"},A)),a.createElement(Cl,{cellSpacing:"0",cellPadding:"0"},a.createElement("tbody",null,a.createElement("tr",null,a.createElement("th",null,a.createElement(c.A,{weight:"bold",size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_BAND"}))),a.createElement("th",null,a.createElement(c.A,{weight:"bold",size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_APS"}))),a.createElement("th",null,a.createElement(c.A,{weight:"bold",size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_TX_RETRIES"})))),e.map(({radio:e,ap_count:A,avg_tx_retry_percent:t})=>a.createElement("tr",{key:e},a.createElement("td",null,a.createElement(c.A,{size:"small",color:"text-2"},a.createElement(T.sA,{id:(0,Ne.dI)(e)}))),a.createElement("td",null,a.createElement(c.A,{size:"small",color:"text-2"},A)),a.createElement("td",null,a.createElement(c.A,{size:"small",color:"text-2"},(0,Fn.i)(t),"%"))))))),Pl="AP_RADIO_TX_RETRIES_BLOCK_TEXT_CLASSNAME",Dl=(0,h.A)(y.A,{shouldForwardProp:e=>"color"!==e})`
  width: 100%;
  height: 16px;
  border-radius: ${_e.Ay["desktop-radius-base"]};
  background: ${({color:e})=>e};
  transition: background 1000ms linear;
  .${Pl} {
    color: #fff;
  }
  position: relative;
  > div {
    width: 100%;
  }
`,fl=(0,h.A)(y.A)`
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
`,bl=(0,a.memo)(({value:e,color:A,description:t,delay:n,isInteractive:l=!1,tooltipWidth:r})=>{const i=(0,a.useCallback)(e=>((e,A,t={open:0,close:0},n=240)=>l=>a.createElement(W.A,{description:e,maxWidth:"inherit",width:n,isInteractive:A,delay:t,portal:!0},l))(t,l,n,r)(e),[t,l,n,r]);return a.createElement(Dl,{color:A},a.createElement(tl.A,{condition:Boolean(e),wrapper:i},a.createElement(fl,null,a.createElement(c.A,{color:"inherit",className:Pl,size:"small"},e))))}),vl=(0,a.memo)(()=>{const{themeName:e}=(0,Ft.u)(),A=(0,a.useCallback)(A=>{switch(A){case 0:return _e.Ay[`desktop-color-red-06-${e}`];case 1:return _e.Ay[`desktop-color-orange-06-${e}`];default:return _e.Ay[`desktop-color-green-05-${e}`]}},[e]),t=(0,a.useContext)(Rt)[Nt.AP_RADIO_TX_RETRIES],n=(0,a.useContext)(Il)[I.x.TOOLTIP_TIME_RANGE],{ApRadioTxRetriesBlocks:l,apRadioTxRetriesLegendValues:r}=(0,a.useMemo)(()=>{const e=[],l=[],r=t.length;for(let i=0;i<r;i+=1){const r=t[i];0===i&&l.push(`${r[FA.CATEGORY_ID]+10}%+`),e.push(a.createElement(bl,{key:r[FA.CATEGORY_ID],value:(r[FA.WIFI_TX_RETRY_STATS]||(0,P.A)()).reduce((e,A)=>e+A[jA.AP_COUNT],0)||null,color:(0,ve.b_)(A(i),r[FA.BAND_COUNT]?1:.1),description:a.createElement(Ml,{wifi_tx_retry_stats:r[FA.WIFI_TX_RETRY_STATS],tooltipTimeRange:n})})),l.push(`${r[FA.CATEGORY_ID]}%`)}return{ApRadioTxRetriesBlocks:e,apRadioTxRetriesLegendValues:l}},[t,n,A]);return a.createElement(Sl,null,a.createElement(Nl,null,l),a.createElement(pl,{values:r}))}),Ll=(0,a.memo)(()=>a.createElement(l.cW,{nested:!0},a.createElement(ml,null,a.createElement(ul,null),a.createElement(vl,null)))),hl=(0,h.A)(y.A)`
  flex-direction: column;
  gap: ${Te.kc};
`;var yl;!function(e){e.GOOD="GOOD",e.MEDIUM="MEDIUM",e.NO_DATA="NO_DATA"}(yl||(yl={}));var zl=t(701548),gl=t(27075);const xl=(0,h.A)(y.A)`
  width: 100%;
  justify-content: space-between;
`,Wl=(0,h.A)(y.A)`
  gap: ${Te.YC};
  align-items: center;
`,Hl=(0,a.memo)(({apDeploymentDensityStatus:e})=>{const{themeName:A}=(0,Ft.u)(),{[I.x.REDIRECTOR]:{[O.d.ROAMING]:t}}=(0,a.useContext)(S.A),{id:n,icon:l,color:r}=(0,a.useMemo)(()=>(e=>({[yl.GOOD]:{id:"COMMON_AP_DENSITY_IS_GOOD",icon:a.createElement(gl.A,{size:"original",variant:"fill",color:_e.Ay[`desktop-color-green-05-${e}`]}),color:"positive"},[yl.MEDIUM]:{id:"COMMON_AP_DEPLOYMENT_DENSITY_MIGHT_NEED_IMPROVEMENT",icon:a.createElement(zl.A,{size:"original",variant:"fill",color:_e.Ay[`desktop-color-orange-06-${e}`]}),color:"notice"},[yl.NO_DATA]:{id:void 0,icon:void 0,color:void 0}}))(A)[e],[A,e]);return a.createElement(xl,null,a.createElement(Wl,null,l,n?a.createElement(c.A,{size:"small",color:r},a.createElement(T.sA,{id:n})):null),a.createElement(se.A,{redirector:t}))}),wl=-90,Ul=-30,kl="AP_DENSITY_SPECTRUM_AXIS_TICK_LABEL_EVEN_CLASSNAME",Gl=(0,h.A)("div")`
  width: 100%;
  height: ${56}px;
  position: relative;
`,Vl=(0,h.A)("svg")`
  position: relative;
`,Xl=(0,h.A)("svg")`
  position: absolute;
  width: 100%;
  height: 100%;
  @media ${xe.A.DASHBOARD.LAYOUT.MOBILE} {
    .${kl} {
      display: none;
    }
  }
`;var Zl=t(23961);const Yl=(e,A,t)=>e?"0.05%":A?"99.95%":t;const Bl=t(132196).AH`
  position: initial;
`,Fl=12,jl={open:0,close:400},Kl="SPECTRUM_PIN_DEVICE_CLASSNAME",ql=(0,h.A)("div",{shouldForwardProp:e=>!["stroke","fill","r"].includes(e)})`
  border-radius: 50%;
  border-width: 1.35px;
  width: ${({r:e})=>2*e+"px"};
  height: ${({r:e})=>2*e+"px"};
  border-style: solid;
  border-color: ${({stroke:e})=>e};
  background-color: ${({fill:e})=>e};
  .${Kl} {
    position: fixed;
    width: 22px;
    height: 22px;
  }
`,Jl=(0,h.A)(ql,{shouldForwardProp:e=>!["top","opacity"].includes(e)})`
  position: fixed;
  top: ${({top:e})=>e}px;
  border-color: ${({stroke:e,opacity:A})=>(0,ve.b_)(e,A)};
  background-color: transparent;
  z-index: -1;
`,Ql=(0,h.A)(y.A,{shouldForwardProp:e=>!["stroke","show"].includes(e)})`
  padding: 0 2px;
  background: ${({stroke:e})=>e};
  justify-content: center;
  align-items: center;
  border-radius: 2px;
  width: fit-content;
  z-index: 1;
  position: fixed;
  top: -8px;
  right: 0;
  justify-self: flex-end;
  visibility: ${({show:e})=>e?"visible":"hidden"};
`,$l=(0,h.A)(y.A,{shouldForwardProp:e=>"stroke"!==e})`
  background: ${({stroke:e})=>e};
  border-radius: 2px;
  padding: 0 1px;
  width: fit-content;
  position: relative;
  transform: translate(-50%, -50%);
  left: 50%;
  bottom: -50%;
`;var er=t(58891),Ar=t(72892),tr=t(137298),ar=t(960407);const nr=e=>e<1,lr=(0,h.A)(y.A)`
  flex-direction: column;
  gap: ${Te.YC};
`,rr=(0,h.A)(y.A)`
  justify-content: space-between;
  align-items: center;
`,ir=(0,h.A)(y.A)`
  align-items: center;
  gap: ${Te.YC};
`,or=(0,h.A)(y.A,{shouldForwardProp:e=>"stroke"!==e})`
  border-radius: 2px;
  padding: 0 2px;
  background: ${({stroke:e})=>e};
`,sr=(0,h.A)(y.A)`
  margin-left: auto;
  position: relative;
  left: ${Te.kc};
  align-items: center;
`,cr=({pinStackedList:e,isMesh:A,stroke:t,dashboardBandTab:l})=>{const r=(0,n.useDispatch)(),i=(0,n.useSelector)(ar.gm),o=(0,n.useSelector)(ar.LK),[s,E]=(0,a.useState)(0),m=e[s],O=m[dt.RADIO_GROUPS][0],I=m[dt.DEVICE_META],S=I[mt.MAC],N=0===s,_=s===e.length-1,p=(A,t)=>{A.preventDefault(),A.stopPropagation(),E(t);const a=e[t][dt.DEVICE_META][mt.MAC];o&&o===d.H.DEVICE&&a&&i&&i!==a&&r((0,u.XP)({type:d.H.DEVICE,id:a}))};return a.createElement(lr,null,a.createElement(rr,null,a.createElement(ir,null,a.createElement(ee.A,{width:20,height:20,model:I[mt.MODEL]}),a.createElement(c.A,{size:"small",color:"text-1"},(0,pA.Q)({name:I[mt.NAME],model:I[mt.MODEL],mac:S})),A?a.createElement(or,{stroke:t},a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_MESH"}))):null)),A?a.createElement(a.Fragment,null,a.createElement(rr,null,a.createElement(ir,null,a.createElement(c.A,{size:"small",color:"text-2"},"Ch. 44 (5 GHz, 80 MHz)")),a.createElement(ir,null,a.createElement(c.A,{size:"small",color:"text-2"},"-48 dBm"))),a.createElement(rr,null,a.createElement(ir,null,a.createElement(c.A,{size:"small",color:"text-2"},"Ch. 213 (6 GHz, 160 MHz)")),a.createElement(ir,null,a.createElement(c.A,{size:"small",color:"text-2"},"-46 dBm"))),a.createElement(rr,null,a.createElement(ir,null,a.createElement(c.A,{size:"small",color:"text-2"},a.createElement(T.sA,{id:"COMMON_UPLINK"}))),a.createElement(ir,null,"U7 Pro XG"))):null,nr(O[Et.TOTAL_TRAFFIC_PERCENTAGE])?a.createElement(rr,null,a.createElement(c.A,{size:"small",color:"orange-06"},a.createElement(T.sA,{id:"COMMON_UNABLE_TO_ACCURATELY_ASSESS_PERFORMANCE_DUE_TO_LOW_TRAFFIC_VOLUME"}))):null,a.createElement(rr,null,a.createElement(ir,null,a.createElement(c.A,{size:"small",color:"text-2"},a.createElement(T.sA,{id:"COMMON_PERCENTAGE_OF_ALL_TRAFFIC"}))),a.createElement(ir,null,a.createElement(c.A,{size:"small",color:"text-2"},O[Et.TOTAL_TRAFFIC_PERCENTAGE],"%"))),a.createElement(rr,null,a.createElement(ir,null,a.createElement(c.A,{size:"small",color:"text-2"},a.createElement(T.sA,{id:"COMMON_MAX_PHY_RATE"}))),a.createElement(ir,null,a.createElement(c.A,{size:"small",color:"text-2"},(0,tr.zX)(O[Et.PHY_RATE_MAX])))),a.createElement(rr,null,a.createElement(ir,null,a.createElement(c.A,{size:"small",color:"text-2"},a.createElement(T.sA,{id:bt[l]})," ",a.createElement(T.sA,{id:"COMMON_CLIENTS"}))),a.createElement(ir,null,a.createElement(c.A,{size:"small",color:"text-2"},O[Et.CLIENTS_COUNT]))),a.createElement(rr,null,a.createElement(ir,null,a.createElement(c.A,{size:"small",color:"text-2"},a.createElement(T.sA,{id:"DASHBOARD_AVG_CLIENT_SIGNAL"}))),a.createElement(ir,null,a.createElement(c.A,{color:$n.Bi[(0,Ze.im)(O[Et.WEAKEST_CLIENTS_SIGNAL_AVG])],size:"small"},O[Et.WEAKEST_CLIENTS_SIGNAL_AVG]," ",a.createElement(T.sA,{id:"COMMON_UNIT_DBM"})))),a.createElement(rr,null,a.createElement(ir,null,a.createElement(c.A,{size:"small",color:"text-2"},a.createElement(T.sA,{id:"COMMON_TX_RETRIES"}))),a.createElement(ir,null,a.createElement(c.A,{color:"text-2",size:"small"},O[Et.TX_RETRIES_PERCENTAGE],"%"))),e.length>1?a.createElement(sr,null,a.createElement(Ar.A,{actionable:!N,size:"original",onClick:e=>{N||p(e,s-1)}}),a.createElement(c.A,{color:"text-3",size:"small"},a.createElement(T.sA,{id:"COMMON_X_OF_Y",values:{x:s+1,y:e.length}})),a.createElement(er.A,{actionable:!_,size:"original",onClick:e=>{_||p(e,s+1)}})):null)},Er=(0,a.memo)(({x:e,pinItem:A,pinStackedList:t,stroke:n,fill:l,displayNumber:r,onClick:i,isMesh:o,dashboardBandTab:s})=>{const E=(0,a.useCallback)(()=>{i(A)},[i,A]),m=(0,a.useMemo)(()=>(e=>"0%"===e?"0.1%":"100%"===e?"99.9%":e)(e),[e]);return a.createElement(Vl,{overflow:"visible",x:m,onClick:E},a.createElement("g",{transform:"translate(-12, -28)"},a.createElement("line",{x1:Fl,y1:24,x2:Fl,y2:28,stroke:n,strokeWidth:1.4}),a.createElement("foreignObject",{width:24,height:24,overflow:"visible"},a.createElement(W.A,{portal:!0,isInteractive:!0,cursorType:"pointer",width:"100%",delay:jl,description:a.createElement(cr,{pinStackedList:t,isMesh:o,stroke:n,dashboardBandTab:s}),className:Bl},r>1?a.createElement(a.Fragment,null,a.createElement(Jl,{stroke:n,fill:l,r:Fl,top:-2,opacity:.8}),a.createElement(Jl,{stroke:n,fill:l,r:Fl,top:-4,opacity:.4})):null,a.createElement(ql,{stroke:n,fill:l,r:Fl},a.createElement(Ql,{stroke:n,show:r>1},a.createElement(c.A,{size:"xsmall",color:"text-1"},r)),a.createElement(ee.A,{className:Kl,model:A[dt.DEVICE_META][mt.MODEL]}),o?a.createElement($l,{stroke:n},a.createElement(c.A,{size:"xsmall",color:"text-1"},a.createElement(T.sA,{id:"COMMON_MESH"}))):null)))))});var mr=t(825032);const dr=e=>Math.min(Math.max(...e[dt.RADIO_GROUPS].map(e=>e[Et.WEAKEST_CLIENTS_SIGNAL_AVG]),wl),Ul),ur=(()=>{const e=[];for(let A=wl;A<=Ul;A+=3)e.push([A,A+2]);return e})();var Tr;!function(e){e.X="x",e.STROKE="stroke",e.FILL="fill",e.PIN_ITEM="pinItem",e.PIN_STACKED_LIST="pinStackedList",e.SHOW_WARNING="showWarning",e.DISPLAY_NUMBER="displayNumber",e.ON_CLICK="onClick",e.IS_MESH="isMesh"}(Tr||(Tr={}));const Or=(0,a.memo)(({dashboardApRadioDensityDetails:e,onClick:A,dashboardBandTab:t})=>{const{themeName:n}=(0,Ft.u)(),l=(0,a.useMemo)(()=>(e=>({[$n.mV.SUCCESS]:{stroke:_e.Ay[`desktop-color-green-06-${e}`],fill:_e.Ay[`desktop-color-green-${e===mr.S.DARK?"08":"02"}-${e}`]},[$n.mV.WARNING]:{stroke:_e.Ay[`desktop-color-orange-06-${e}`],fill:_e.Ay[`desktop-color-orange-${e===mr.S.DARK?"08":"02"}-${e}`]},[$n.mV.DANGER]:{stroke:_e.Ay[`desktop-color-red-06-${e}`],fill:_e.Ay[`desktop-color-red-${e===mr.S.DARK?"08":"02"}-${e}`]},[$n.mV.NEUTRAL]:{stroke:_e.Ay[`desktop-color-neutral-03-${e}`],fill:_e.Ay[`desktop-color-neutral-${e===mr.S.DARK?"08":"02"}-${e}`]},[$n.mV.UNKNOWN]:{stroke:_e.Ay[`desktop-color-neutral-03-${e}`],fill:_e.Ay[`desktop-color-neutral-${e===mr.S.DARK?"08":"02"}-${e}`]}}))(n),[n]),r=(0,a.useMemo)(()=>{const n={},r=e.length;for(let t=0;t<r;t+=1){const a=e[t],r=dr(a),i=(0,Ze.b5)(r),o=nr(a[dt.RADIO_GROUPS][0]?.[Et.TOTAL_TRAFFIC_PERCENTAGE])?$n.mV.NEUTRAL:i,s=ur.findIndex(([e,A])=>r>=e&&r<=A);s>-1&&(n[s]?(n[s][Tr.DISPLAY_NUMBER]+=1,n[s][Tr.PIN_STACKED_LIST].push(a),n[s][Tr.STROKE]=l[i].stroke,n[s][Tr.FILL]=l[i].fill):n[s]={[Tr.PIN_ITEM]:a,[Tr.PIN_STACKED_LIST]:[a],[Tr.X]:((0,Zl.qE)(r,wl,Ul)-wl)/60*100+"%",[Tr.STROKE]:l[o].stroke,[Tr.FILL]:l[o].fill,[Tr.ON_CLICK]:A,[Tr.DISPLAY_NUMBER]:1,[Tr.IS_MESH]:!1})}return Object.values(n).map(e=>{const A=e.pinStackedList.sort((e,A)=>dr(e)-dr(A)),n={...e,pinItem:A[0],pinStackedList:A};return a.createElement(Er,{key:A.map(e=>e[dt.DEVICE_META][mt.MAC]).join(),...n,dashboardBandTab:t})})},[e,l,A,t]);return a.createElement(a.Fragment,{key:e.map(e=>e[dt.DEVICE_META][mt.MAC]).join()},r)});var Ir=t(785929);const Sr=(0,h.A)("div")`
  height: ${Ir.Cz}px;
  overflow: hidden;
  border-top-right-radius: 5px;
  border-top-left-radius: 5px;
`,Nr=(0,a.memo)(()=>a.createElement("foreignObject",{width:"100%",height:Ir.Cz,y:-Ir.Cz},a.createElement(Sr,null,a.createElement("svg",{width:"100%",height:"100%"},a.createElement("rect",{opacity:Ir.Ux,x:"0",width:"100%",height:Ir.Cz,strokeWidth:0,fill:`url(#${Ir.Ow})`,rx:Ir.Tk,ry:Ir.M3}),a.createElement("defs",null,a.createElement("linearGradient",{id:Ir.Ow,x1:"0",y1:"0",x2:"100%",y2:"0",gradientUnits:"userSpaceOnUse"},Ir.RG.map(([e,A])=>a.createElement("stop",{key:`${e}${A}`,offset:A,stopColor:e})))))))),_r=(0,a.memo)(({x:e,tickLength:A,label:t,isEven:n,isFirst:l,isLast:r})=>{const{themeName:i}=(0,Ft.u)(),{tickOffset:o,labelOffset:s}=(0,a.useMemo)(()=>l?{tickOffset:.5,labelOffset:0}:r?{tickOffset:-.5,labelOffset:-20}:{tickOffset:0,labelOffset:-10},[l,r]);return a.createElement("g",{transform:`translate(${o}, 0.5)`},a.createElement("line",{x1:e,y1:0,x2:e,y2:A,style:{stroke:_e.Ay[`desktop-color-neutral-03-${i}`],strokeWidth:1.4},strokeLinecap:"round"}),t?a.createElement("g",{transform:`translate(${s}, 0)`,className:n?kl:void 0},a.createElement("foreignObject",{x:e,y:10,overflow:"visible",color:_e.Ay[`desktop-color-neutral-06-${i}`],width:1,height:1},a.createElement(c.A,{color:"text-3",size:"small"},t))):null)}),pr=(0,a.memo)(()=>a.createElement(a.Fragment,null,(()=>{const e=[];for(let A=wl;A<=Ul;A+=1){const t=(A-wl)/60*100+"%",n=A===wl,l=A===Ul;e.push(a.createElement(_r,{key:t,x:Yl(n,l,t),tickLength:(()=>A%10==0?12:A%5==0?8:4)(),label:A%5==0?`${A}`:void 0,isEven:A%2!=0,isFirst:n,isLast:l}))}return e})())),Rr=(0,a.memo)(({dashboardApRadioDensityDetails:e,onClick:A})=>{const t=(0,n.useSelector)(qA.$U);return a.createElement(Gl,null,a.createElement(Xl,{fill:"none",overflow:"visible"},a.createElement("svg",{y:"50%",overflow:"visible"},a.createElement(pr,null),a.createElement(Nr,null),a.createElement(Or,{dashboardApRadioDensityDetails:e,onClick:A,dashboardBandTab:t}))))}),Cr=(0,a.memo)(({dashboardApRadioDensityDetails:e})=>{const A=(0,n.useDispatch)(),t=(0,a.useCallback)(e=>{A((0,u.XP)({type:d.H.DEVICE,id:e[dt.DEVICE_META][mt.MAC]}))},[A]);return a.createElement(Rr,{dashboardApRadioDensityDetails:e,onClick:t})}),Mr=(0,a.memo)(()=>{const e=(0,a.useContext)(Rt)[Nt.AP_DENSITY],A=(0,a.useMemo)(()=>{if(!e.length)return yl.NO_DATA;const A=e.flatMap(e=>e[dt.RADIO_GROUPS].map(e=>(0,Ze.im)(e[Et.WEAKEST_CLIENTS_SIGNAL_AVG])));return A.includes($n.mV.DANGER)||A.includes($n.mV.WARNING)?yl.MEDIUM:yl.GOOD},[e]),t=(0,a.useContext)(_.A)[N.V.PRELOAD_DEVICES],n=(0,a.useContext)(_.A)[N.V.PRELOAD_UNIFI_DEVICES],r=(0,a.useCallback)(()=>{t(),n()},[t,n]);return a.createElement(l.cW,{nested:!0},a.createElement(hl,{onMouseEnter:r},a.createElement(Hl,{apDeploymentDensityStatus:A}),a.createElement(Cr,{dashboardApRadioDensityDetails:e})))}),Pr={[o.Z.WIFI_CLIENT_EXPERIENCE]:a.createElement(gt.A,{key:o.Z.WIFI_CLIENT_EXPERIENCE,dashboardWidget:o.Z.WIFI_CLIENT_EXPERIENCE},a.createElement(El,null)),[o.Z.WIFI_TX_RETRIES]:a.createElement(gt.A,{key:o.Z.WIFI_TX_RETRIES,dashboardWidget:o.Z.WIFI_TX_RETRIES},a.createElement(Ll,null)),[o.Z.WIFI_CONNECTIVITY]:a.createElement(gt.A,{key:o.Z.WIFI_CONNECTIVITY,dashboardWidget:o.Z.WIFI_CONNECTIVITY},a.createElement(Zn,null)),[o.Z.AP_RADIO_DENSITY]:a.createElement(gt.A,{key:o.Z.AP_RADIO_DENSITY,dashboardWidget:o.Z.AP_RADIO_DENSITY},a.createElement(Mr,null))},Dr={[o.Z.TRAFFIC_IDENTIFICATION]:a.createElement(gt.A,{key:o.Z.TRAFFIC_IDENTIFICATION,dashboardWidget:o.Z.TRAFFIC_IDENTIFICATION},a.createElement(fn,null)),[o.Z.WIFI_TECHNOLOGY]:a.createElement(gt.A,{key:o.Z.WIFI_TECHNOLOGY,dashboardWidget:o.Z.WIFI_TECHNOLOGY},a.createElement(Ba,null))},fr=(0,h.A)(y.A)`
  flex-direction: column;
  gap: ${Te.kc};
`,br=(0,h.A)(y.A)`
  gap: ${Te.Ln};
  @media ${xe.A.DASHBOARD.CHART.MOBILE} {
    flex-direction: column;
  }
`,vr=(0,a.memo)(()=>{const e=(0,n.useSelector)(i.C_),A=(0,a.useMemo)(()=>[{[na.ID]:la.x.MOST_ACTIVE,[na.WIDGETS]:r.o,[na.CONTENT]:a.createElement(gt.A,{key:la.x.MOST_ACTIVE,dashboardWidget:r.o},a.createElement(le,null))},{[na.ID]:la.x.MOST_COMMON_CLIENT_FINGERPRINTS,[na.WIDGETS]:[o.Z.MOST_COMMON_CLIENT_FINGERPRINTS],[na.CONTENT]:a.createElement(gt.A,{key:la.x.MOST_COMMON_CLIENT_FINGERPRINTS,dashboardWidget:o.Z.MOST_COMMON_CLIENT_FINGERPRINTS},a.createElement(aa,null))},{[na.ID]:la.x.ACTIVE_CHANNELS,[na.WIDGETS]:[o.Z.WIFI_CHANNELS],[na.CONTENT]:a.createElement(gt.A,{key:la.x.ACTIVE_CHANNELS,dashboardWidget:o.Z.WIFI_CHANNELS},a.createElement(fe,null))},{[na.ID]:la.x.BAND_SELECTOR,[na.WIDGETS]:Ct.hD,[na.CONTENT]:a.createElement(gt.A,{key:la.x.BAND_SELECTOR,dashboardWidget:Ct.hD},a.createElement(l.cW,null,a.createElement(ht,{topWidgets:ra(e,Ct.Tk,Pr),bottomWidgets:ra(e,Ct.P_,Pr)})))},{[na.ID]:la.x.CHARTS,[na.WIDGETS]:ye.Mw,[na.CONTENT]:a.createElement(gt.A,{key:la.x.CHARTS,dashboardWidget:ye.Mw},a.createElement(br,null,ra(e,ye.Mw,Dr),a.createElement(gt.A,{dashboardWidget:void 0},a.createElement(YA,null)),a.createElement(gt.A,{dashboardWidget:void 0},a.createElement(TA,null))))}].sort((e=>(A,t)=>{const a=e.findIndex(e=>A[na.WIDGETS].includes(e)),n=e.findIndex(e=>t[na.WIDGETS].includes(e));if(a>-1||n>-1){if(a<n)return-1;if(a>n)return 1}return 0})(e)).map(e=>e[na.CONTENT]),[e]);return a.createElement(fr,null,A)});var Lr=t(282933),hr=t(602021),yr=t(198494),zr=t(396483),gr=t(449588),xr=t(773412),Wr=t(610305),Hr=t(826094),wr=t(968906);var Ur;!function(e){e.SUCCESS="success",e.HIGH_LATENCY="high_latency",e.WAN_DOWNTIME="wan_downtime",e.CONSOLE_OFFLINE="console_offline",e.FAILOVER_WAN_ACTIVE="failover_wan_active",e.PACKET_LOSS="packet_loss"}(Ur||(Ur={}));const kr=e=>{return A=(e=>({[la.v.GREEN]:_e.Ay[`desktop-color-green-05-${e}`],[la.v.YELLOW]:_e.Ay[`desktop-color-yellow-06-${e}`],[la.v.ORANGE]:_e.Ay[`desktop-color-orange-06-${e}`],[la.v.RED]:_e.Ay[`desktop-color-red-06-${e}`],[la.v.GREY]:_e.Ay[`desktop-color-neutral-06-${e}`],[la.v.BLUE]:_e.Ay[`desktop-color-ublue-04-${e}`]}))(e),{[Ur.SUCCESS]:A[la.v.GREEN],[Ur.HIGH_LATENCY]:A[la.v.YELLOW],[Ur.WAN_DOWNTIME]:A[la.v.RED],[Ur.CONSOLE_OFFLINE]:A[la.v.GREY],[Ur.FAILOVER_WAN_ACTIVE]:A[la.v.BLUE],[Ur.PACKET_LOSS]:A[la.v.RED]};var A};var Gr;!function(e){e.FORMAT_TIMESTAMP="formatTimestamp",e.OPEN_ISP_PANEL="openIspPanel"}(Gr||(Gr={}));const Vr={[Gr.FORMAT_TIMESTAMP]:m.P1,[Gr.OPEN_ISP_PANEL]:m.P1},Xr=(0,a.createContext)(Vr),Zr=(0,h.A)(y.A,{shouldForwardProp:e=>"color"!==e})`
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin: 0 ${Te.kc};
  background: ${({color:e})=>e};
`,Yr=({timestamp:e,color:A,formatTimestamp:t,healthInterval:n})=>a.createElement(y.A,{flexDirection:"column"},a.createElement(c.A,{size:"small",color:"text-1",weight:"bold"},a.createElement(T.sA,{id:"DASHBOARD_MODULE_INTERNET_FAILOVER_ACTIVE"})),a.createElement(y.A,{alignItems:"center",marginTop:Te.kc},a.createElement(Zr,{color:A}),a.createElement(c.A,{color:"text-2",size:"small"},t(e)," - ",t(e+n)))),Br=({timestamp:e,color:A,formatTimestamp:t,healthInterval:n,dashboardDateRangePreset:l})=>a.createElement(y.A,{flexDirection:"column",maxWidth:300},a.createElement(c.A,{size:"small",color:"text-1",weight:"bold"},a.createElement(T.sA,{id:"DASHBOARD_MODULE_INTERNET_PACKET_LOSS"})),a.createElement(y.A,{alignItems:"center",marginTop:Te.kc},a.createElement(Zr,{color:A}),a.createElement(c.A,{style:{whiteSpace:"nowrap"},color:"text-2",size:"small"},t(e,l===Lr.ND.ONE_MONTH?{hour:void 0,minute:void 0,second:void 0}:{})," - ",t(e+n,l===Lr.ND.ONE_MONTH?{hour:void 0,minute:void 0,second:void 0}:{}))),a.createElement(y.A,{marginTop:Te.kc},a.createElement(c.A,{color:"text-2",size:"small"},a.createElement(T.sA,{id:"DASHBOARD_MODULE_INTERNET_PACKET_LOSS_NOTICE"})))),Fr=({timestamp:e,color:A,latency_avg_ms:t,latency_max_ms:n,formatTimestamp:l,healthInterval:r,sla_verification_server:i,dashboardDateRangePreset:o})=>a.createElement(y.A,{flexDirection:"column",gap:Te.kc},a.createElement(c.A,{size:"small",color:"text-1",weight:"bold"},a.createElement(T.sA,{id:"DASHBOARD_MODULE_INTERNET_HEALTH_LATENCY"})),a.createElement(y.A,{alignItems:"center"},a.createElement(Zr,{color:A}),a.createElement(c.A,{color:"text-2",size:"small"},l(e,o===Lr.ND.ONE_MONTH?{hour:void 0,minute:void 0,second:void 0}:{})," - ",l(e+r,o===Lr.ND.ONE_MONTH?{hour:void 0,minute:void 0,second:void 0}:{}))),a.createElement(y.A,{justifyContent:"space-between"},a.createElement(c.A,{color:"text-2",size:"small"},a.createElement(T.sA,{id:"DASHBOARD_ISP_AVG_LAT"})),a.createElement(c.A,{color:"text-2",size:"small"},a.createElement(T.sA,{id:"COMMON_UNIT_MILLISECONDS_SHORT",values:{value:t}}))),a.createElement(y.A,{justifyContent:"space-between"},a.createElement(c.A,{color:"text-2",size:"small"},a.createElement(T.sA,{id:"DASHBOARD_ISP_MAX_LAT"})),a.createElement(c.A,{color:"text-2",size:"small"},a.createElement(T.sA,{id:"COMMON_UNIT_MILLISECONDS_SHORT",values:{value:n}}))),i?a.createElement(y.A,{justifyContent:"space-between"},a.createElement(c.A,{color:"text-2",size:"small"},a.createElement(T.sA,{id:"COMMON_VERIFICATION_SERVER"})),a.createElement(c.A,{color:"text-2",size:"small"},i)):null),jr=(0,h.A)(y.A)`
  align-items: center;
  &:not(:last-child) {
    margin-bottom: ${Te.kc};
  }
`,Kr=({timestamp:e,color:A,formatTimestamp:t,healthInterval:n})=>{const l=(0,a.useContext)(S.A)[I.x.DOWNTIME_HISTORY].filter(A=>A[Hr.F7.TIMESTAMP]<e?A[Hr.F7.TIMESTAMP]+1e3*A[Hr.F7.DOWNTIME_IN_SECONDS]>e:A[Hr.F7.TIMESTAMP]<e+n).slice(0,7);return a.createElement(y.A,{flexDirection:"column"},a.createElement(c.A,{size:"small",color:"text-1",weight:"bold"},a.createElement(T.sA,{id:"COMMON_INTERNET_DISCONNECTED"})),l.length?a.createElement(y.A,{flexDirection:"column",marginTop:Te.kc},l.map(e=>a.createElement(jr,{key:e[Hr.F7.TIMESTAMP]},a.createElement(Zr,{color:A}),a.createElement(c.A,{color:"text-2",size:"small"},t(e[Hr.F7.TIMESTAMP])," - ",t(e[Hr.F7.TIMESTAMP]+1e3*e[Hr.F7.DOWNTIME_IN_SECONDS]))))):null)};var qr=t(171443);const Jr=({offline_reason:e,timestamp:A,color:t,formatTimestamp:n,healthInterval:l})=>a.createElement(y.A,{flexDirection:"column"},a.createElement(c.A,{size:"small",color:"text-1",weight:"bold"},a.createElement(T.sA,{id:"COMMON_CONSOLE_OFFLINE"})),e?.length?e.map(({reason:e,timestamp:A})=>a.createElement(y.A,{justifyContent:"space-between",marginTop:Te.kc,key:A},a.createElement(c.A,{color:"text-2",size:"small"},a.createElement(T.sA,{id:qr.ey[e]||"COMMON_UNKNOWN"})),a.createElement(y.A,{marginLeft:16,alignItems:"center"},a.createElement(Zr,{color:t}),a.createElement(c.A,{color:"text-2",size:"small"},n(A))))):a.createElement(y.A,{alignItems:"center",marginTop:Te.kc},a.createElement(Zr,{color:t}),a.createElement(c.A,{color:"text-2",size:"small"},n(A)," - ",n(A+l))));var Qr;!function(e){e.HEALTH_INTERVAL="healthInterval"}(Qr||(Qr={}));const $r={[Qr.HEALTH_INTERVAL]:void 0},ei=(0,a.createContext)($r),Ai=({wan_downtime:e,high_latency:A,not_reported:t,offline_reason:n,failover_wan_active:l,packet_loss:r,timestamp:i,color:o,latency_avg_ms:s,latency_max_ms:c,sla_verification_server:E,dashboardDateRangePreset:m})=>{const d=(0,a.useContext)(Xr)[Gr.FORMAT_TIMESTAMP],u=(0,a.useContext)(ei)[Qr.HEALTH_INTERVAL];return l?a.createElement(Yr,{timestamp:i,color:o,formatTimestamp:d,healthInterval:u}):e?a.createElement(Kr,{timestamp:i,color:o,formatTimestamp:d,healthInterval:u}):r?a.createElement(Br,{timestamp:i,color:o,formatTimestamp:d,healthInterval:u,dashboardDateRangePreset:m}):A?a.createElement(Fr,{timestamp:i,color:o,latency_avg_ms:s,latency_max_ms:c,formatTimestamp:d,healthInterval:u,sla_verification_server:E,dashboardDateRangePreset:m}):t?a.createElement(Jr,{timestamp:i,offline_reason:n,color:o,formatTimestamp:d,healthInterval:u}):null},ti=(0,a.memo)(({networkGroup:e})=>{const A=(0,a.useContext)(Xr),t=(0,a.useMemo)(()=>({[O.q.AVAILABLE]:!0,[O.q.REDIRECT]:A[Gr.OPEN_ISP_PANEL](e)}),[A,e]);return a.createElement(se.A,{redirector:t})});var ai=t(302167),ni=t(881314),li=t(115603),ri=t(980059),ii=t(855019);const oi=(0,h.A)(y.A)`
  align-items: center;
  gap: ${Te.YC};
`,si=(0,a.memo)(()=>{const e=(0,n.useDispatch)(),A=(0,n.useSelector)(li.t)[ri.U.MAC],t=(0,a.useCallback)(()=>{e((0,u.XP)({type:d.H.DEVICE,tab:ii.BC.SETTINGS,id:A}))},[e,A]);return a.createElement(oi,null,a.createElement(zl.A,{size:"original",variant:"fill",color:_e.Ay[`desktop-color-red-06-${(0,Ft.u)().themeName}`]}),a.createElement(c.A,{size:"small",color:"text-2-oncolor-alpha"},a.createElement(T.sA,{id:"DASHBOARD_INTERNET_VERIFICATION_SERVER_NOTIFICATION_TOOLTIP",values:{br:T.br,button:a.createElement(Qn.A,{type:"button",variant:"inline",onClick:t},a.createElement(T.sA,{id:"COMMON_INTERNET_VERIFICATION_SERVER_LABEL"}))}})))});var ci,Ei;!function(e){e.INTERNET_VERIFICATION_SERVER="INTERNET_VERIFICATION_SERVER",e.NO_INTERNET="NO_INTERNET"}(ci||(ci={})),function(e){e.ID="id",e.CONDITION="condition",e.COMPONENT="Component"}(Ei||(Ei={}));const mi=({children:e})=>{const A=(0,n.useSelector)(li.t),t=(0,n.useSelector)(ai.oY),l=A[ri.U.TYPE],{id:r,Component:i}=(0,a.useMemo)(()=>[{id:ci.INTERNET_VERIFICATION_SERVER,condition:!l&&t&&t!==ni.DEFAULT_GATEWAY_SETTINGS.echo_server,Component:a.createElement(si,null)}].find(({condition:e})=>e)||(0,M.A)(),[t,l]);return r?a.createElement(Bt.A,{style:{minWidth:"fit-content"},description:i},a.createElement("div",{style:{display:"flex",alignItems:"center"}},e)):a.createElement(a.Fragment,null,e)},di=(0,h.A)(y.A)`
  width: 100%;
  gap: ${Te.YC};
  align-items: center;
  padding-right: ${Te.S2};
  position: relative;
`,ui=(0,h.A)(y.A)`
  width: 100%;
  gap: 5px;
  align-items: center;
`,Ti=({dashboardHealthHistory:e})=>{const{themeName:A}=(0,Ft.u)(),t=(0,n.useSelector)(qA.Ej)[Lr.VF.PRESET],l=(0,a.useMemo)(()=>100/e[zr.C.HISTORY].length*100/100,[e]),r=(0,a.useMemo)(()=>kr(A),[A]),i=(0,a.useCallback)(e=>({message:a.createElement(Ai,{wan_downtime:e[Hr.Gq.WAN_DOWNTIME],high_latency:e[Hr.Gq.HIGH_LATENCY],not_reported:e[Hr.Gq.NOT_REPORTED],offline_reason:e[Hr.Gq.OFFLINE_REASON],failover_wan_active:e[Hr.Gq.FAILOVER_WAN_ACTIVE],packet_loss:e[Hr.Gq.PACKET_LOSS],timestamp:e[Hr.Gq.TIMESTAMP],color:e.color,latency_avg_ms:e[Hr.Gq.LATENCY_AVG_MS],latency_max_ms:e[Hr.Gq.LATENCY_MAX_MS],sla_verification_server:e[Hr.Gq.SLA_VERIFICATION_SERVER],dashboardDateRangePreset:t}),width:"100%",maxWidth:"max-content",tooltipProps:{position:"top"},animate:!1,delay:.2,hidden:!(e[Hr.Gq.PACKET_LOSS]||e[Hr.Gq.FAILOVER_WAN_ACTIVE]||e[Hr.Gq.WAN_DOWNTIME]||e[Hr.Gq.HIGH_LATENCY]||e[Hr.Gq.NOT_REPORTED])}),[t]),{formattedInternetHealth:o,internetHealthInterval:s}=(0,a.useMemo)(()=>{let A=0;const t=[],a=e[zr.C.HISTORY].length;a&&(A=e[zr.C.HISTORY][1][Hr.Gq.TIMESTAMP]-e[zr.C.HISTORY][0][Hr.Gq.TIMESTAMP]);for(let A=0;A<a;A+=1){const a=e[zr.C.HISTORY][A];t.push({value:l,color:r[a[Hr.Gq.FAILOVER_WAN_ACTIVE]&&Ur.FAILOVER_WAN_ACTIVE||a[Hr.Gq.WAN_DOWNTIME]&&Ur.WAN_DOWNTIME||a[Hr.Gq.PACKET_LOSS]&&Ur.PACKET_LOSS||a[Hr.Gq.HIGH_LATENCY]&&Ur.HIGH_LATENCY||a[Hr.Gq.NOT_REPORTED]&&Ur.CONSOLE_OFFLINE||Ur.SUCCESS],style:{cursor:a[Hr.Gq.FAILOVER_WAN_ACTIVE]||a[Hr.Gq.WAN_DOWNTIME]||a[Hr.Gq.PACKET_LOSS]||a[Hr.Gq.HIGH_LATENCY]||a[Hr.Gq.NOT_REPORTED]?"pointer":"default"},[Hr.Gq.WAN_DOWNTIME]:a[Hr.Gq.WAN_DOWNTIME],[Hr.Gq.HIGH_LATENCY]:a[Hr.Gq.HIGH_LATENCY],[Hr.Gq.NOT_REPORTED]:a[Hr.Gq.NOT_REPORTED],[Hr.Gq.OFFLINE_REASON]:a[Hr.Gq.OFFLINE_REASON],[Hr.Gq.FAILOVER_WAN_ACTIVE]:a[Hr.Gq.FAILOVER_WAN_ACTIVE],[Hr.Gq.PACKET_LOSS]:a[Hr.Gq.PACKET_LOSS],[Hr.Gq.TIMESTAMP]:a[Hr.Gq.TIMESTAMP],[Hr.Gq.LATENCY_AVG_MS]:a[Hr.Gq.LATENCY_AVG_MS],[Hr.Gq.LATENCY_MAX_MS]:a[Hr.Gq.LATENCY_MAX_MS],[Hr.Gq.SLA_VERIFICATION_SERVER]:a[Hr.Gq.SLA_VERIFICATION_SERVER]})}return{formattedInternetHealth:t,internetHealthInterval:A}},[r,e,l]),c=(0,a.useMemo)(()=>({[Qr.HEALTH_INTERVAL]:s}),[s]);return o.length?a.createElement(ei.Provider,{value:c},a.createElement(di,{...wr.A.addDataTestId(wr.A.TestId.INTERNET_HEALTH)},a.createElement(ui,null,a.createElement(mi,null,a.createElement(Wr.A,{ispName:e[zr.C.ISP_NAME],ispAsn:e[zr.C.ISP_ASN]})),a.createElement(xr.A,{height:qr.JW,items:o,itemTooltip:i})),a.createElement(ti,{networkGroup:e[zr.C.NETWORK_GROUP]}))):null},Oi=(0,h.A)(y.A)`
  gap: ${Te.YC};
  flex-direction: column;
`,Ii=(0,a.memo)(()=>{const e=(0,n.useDispatch)(),A=(0,n.useSelector)(hr.hq),t=(0,n.useSelector)(Wt.zi),l=(0,n.useSelector)(yr.BQ),r=(0,a.useContext)(S.A)[I.x.HEALTH_HISTORIES],i=(0,n.useSelector)(qA.oV),o=(0,n.useSelector)(qA.nc),s=(0,a.useMemo)(()=>i===gr.wp.WAN&&o!==JA.Je?r.filter(e=>e[zr.C.NETWORK_GROUP]===o):r,[r,o,i]),c=(0,a.useCallback)((e,a)=>new Intl.DateTimeFormat(t,{timeZone:A,hourCycle:l,hour:"numeric",minute:"2-digit",day:"numeric",month:"short",second:"2-digit",...a}).format(e),[t,A,l]),E=(0,a.useCallback)(A=>()=>{e((0,u.XP)({type:d.H.ISP_DETAILS,id:A}))},[e]),m=(0,a.useMemo)(()=>({[Gr.FORMAT_TIMESTAMP]:c,[Gr.OPEN_ISP_PANEL]:E}),[c,E]);return a.createElement(Xr.Provider,{value:m},a.createElement(Oi,null,s.map(e=>a.createElement(Ti,{key:e[zr.C.NETWORK_GROUP],dashboardHealthHistory:e}))))}),Si=(e,A,t,a,n)=>new Intl.DateTimeFormat(e,{hourCycle:a,timeZone:n,...(()=>{switch(A){case Lr.ND.ONE_HOUR:return{hour:"numeric",minute:"numeric"};case Lr.ND.ONE_DAY:return{hour:"numeric",...t&&{minute:"numeric"}};case Lr.ND.ONE_WEEK:return{weekday:"short"};default:return{}}})()}),Ni=(e,A,t)=>new Intl.DateTimeFormat(e,{hourCycle:A,timeZone:t,day:"numeric",month:"short",hour:"numeric",minute:"numeric"}),_i=(e,A,t,a)=>new Intl.DateTimeFormat(A,{hourCycle:t,timeZone:a,hour:"numeric",minute:"numeric",...e===Lr.ND.ONE_MONTH&&{month:"short",day:"numeric"}});var pi=t(979106);const Ri=(0,h.A)(y.A)`
  width: auto;
`,Ci=(0,a.memo)(({tabs:e,dashboardGraphTab:A})=>{const t=(0,n.useDispatch)(),l=(0,a.useCallback)(({id:e})=>{t((0,QA.al)(e))},[t]);return a.createElement(Ri,null,e.length>1?a.createElement(pi.A,{tabs:e,selectedTab:A,onSelectTab:l,variant:"filter"}):null)});var Mi=t(489391),Pi=t(936344),Di=t(885529),fi=t(195462),bi=t(348287).Buffer;const vi=e=>bi.from(JSON.stringify(e),"binary").toString("base64"),Li=e=>JSON.parse(bi.from(e,"base64").toString("ascii"));var hi,yi,zi;!function(e){e.HISTORY="history",e.BY_RADIO_BAND="by_radio_band",e.NO_STATS_REASON="no_stats_reason",e.RX_BYTES="rx_bytes",e.TX_BYTES="tx_bytes"}(hi||(hi={})),function(e){e.HISTORY="history",e.RX_BYTES="rx_bytes",e.TX_BYTES="tx_bytes"}(yi||(yi={})),function(e){e.TX_BYTE_R="tx_byte-r",e.RX_BYTE_R="rx_byte-r",e.NUM_STA="num_sta",e.TIMESTAMP="timestamp",e.TX_RETRY_PERCENTAGE="tx_retry_percentage"}(zi||(zi={}));const gi=(0,C.Mz)(D.e6,e=>e[ce.ZJ.WIFI_ACTIVITY]||(0,M.A)()),xi=(0,C.Mz)(gi,e=>e[hi.HISTORY]||(0,P.A)()),Wi=(0,C.Mz)(gi,e=>e[hi.BY_RADIO_BAND]||(0,M.A)()),Hi=(0,C.Mz)(gi,e=>e[hi.RX_BYTES]||0),wi=(0,C.Mz)(gi,e=>e[hi.TX_BYTES]||0),Ui=(0,C.Mz)(gi,e=>e[hi.NO_STATS_REASON]);var ki=t(945132);const Gi=11,Vi=625e3,Xi=100,Zi={[Lr.ND.ONE_HOUR]:12,[Lr.ND.ONE_DAY]:24,[Lr.ND.ONE_WEEK]:24,[Lr.ND.ONE_MONTH]:31},Yi={[Lr.ND.ONE_HOUR]:1,[Lr.ND.ONE_DAY]:12,[Lr.ND.ONE_WEEK]:6,[Lr.ND.ONE_MONTH]:1},Bi=(e,A,t)=>(({formatMessage:a})=>(([t,n])=>(0,fi.v)([t,n],Zi[e]).map((e,t,n)=>({value:e,label:t===n.length-1?a({id:"COMMON_NOW"}):t%4==0&&A.format(e)||null})))([t[0]?.timestamp||Date.now()-ki.jU,t[t.length-1]?.timestamp||Date.now()]))((0,T.tz)()),Fi=e=>Math.max(e,320),ji=e=>Array.from(Array((Zi[e]-1)*Yi[e]).keys());var Ki=t(130851),qi=t(881716),Ji=t(662965);const Qi=(0,a.memo)(()=>a.createElement(qi.A,{size:"medium",icon:a.createElement(Ji.A,null),title:a.createElement(c.A,{size:"medium",color:"text-2",weight:"bold"},a.createElement(T.sA,{id:"DASHBOARD_WIFI_MODULE_OVERLAY_NO_WIFI_NETWORK_TITLE"})),description:a.createElement(c.A,{size:"medium",color:"text-2"},a.createElement(T.sA,{id:"DASHBOARD_WIFI_MODULE_OVERLAY_NO_WIFI_NETWORK_DESC"}))}));var $i=t(595369);const eo=(0,h.A)("img",{shouldForwardProp:e=>"chartWidth"!==e})`
  bottom: 30px;
  position: absolute;
  left: ${50}px;
  width: ${({chartWidth:e})=>e-60}px;
`,Ao=(0,h.A)(y.A)`
  justify-content: inherit;
  align-items: inherit;
`,to=(0,a.memo)(({imagePath:e,chartWidth:A})=>a.createElement(Ao,null,a.createElement(qi.A,{size:"medium",icon:a.createElement($i.A,{variant:"fill"}),title:a.createElement(c.A,{size:"medium",color:"text-2",weight:"bold"},a.createElement(T.sA,{id:"DASHBOARD_WIFI_MODULE_OVERLAY_NO_DATA_TITLE"})),description:a.createElement(c.A,{size:"medium",color:"text-2"},a.createElement(T.sA,{id:"DASHBOARD_WIFI_MODULE_OVERLAY_NO_DATA_DESC"}))}),a.createElement(eo,{chartWidth:A,src:`${e}/dashboard/collectingDataGraph.png`,alt:"Chart Data"})));var ao=t(424226);const no=(0,a.memo)(()=>a.createElement(qi.A,{size:"medium",icon:a.createElement(ao.A,{variant:"fill"}),title:a.createElement(c.A,{size:"medium",color:"text-2",weight:"bold"},a.createElement(T.sA,{id:"DASHBOARD_WIFI_MODULE_OVERLAY_NO_CLIENT_TITLE"})),description:a.createElement(c.A,{size:"medium",color:"text-2"},a.createElement(T.sA,{id:"DASHBOARD_WIFI_MODULE_OVERLAY_NO_CLIENT_DESC"}))}));var lo=t(844356);const ro=(0,a.memo)(()=>a.createElement(qi.A,{size:"medium",icon:a.createElement(lo.A,null),title:a.createElement(c.A,{size:"medium",color:"text-2",weight:"bold"},a.createElement(T.sA,{id:"DASHBOARD_WIFI_MODULE_OVERLAY_NO_ADOPTED_AP_TITLE"})),description:a.createElement(c.A,{size:"medium",color:"text-2"},a.createElement(T.sA,{id:"DASHBOARD_WIFI_MODULE_OVERLAY_NO_ADOPTED_AP_DESC"}))})),io=(0,h.A)(y.A)`
  position: absolute;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
`,oo=(0,a.memo)(({chartWidth:e,aggregatedDashboardNoStatsReason:A})=>{const t=(0,n.useSelector)(Ki.p),l=(0,a.useMemo)(()=>{switch(A){case ce.YC.NO_ADOPTED_AP:return ro;case ce.YC.NO_CREATED_WIFI:return Qi;case ce.YC.NO_ACTIVE_CLIENTS:return no;case ce.YC.NO_DATA:return to;default:return null}},[A]);return l?a.createElement(io,{width:e},a.createElement(l,{imagePath:t,chartWidth:e})):null});var so=t(13994),co=t(509426),Eo=t(224323),mo=t(308072);const uo=(e,A,t)=>{switch(e){case mo.z.WIFI_ACTIVITY:switch(A){case mo.f.DOWNLOAD:return _e.Ay[`desktop-color-aqua-06-${t}`];case mo.f.UPLOAD:return _e.Ay[`desktop-color-purple-06-${t}`];default:return}case mo.z.TX_RETRIES:return _e.Ay[`desktop-color-orange-06-${t}`];default:return}},To=(e,A)=>({value:t,label:n},l)=>({value:t,label:0===l?a.createElement(ao.A,{style:{transform:"translate(-15px, -10px)"},color:_e.Ay[`desktop-color-text-4-${e}`],size:"original"}):n&&A.format(+t)||null}),Oo=e=>({value:A,label:t},a)=>({value:A,label:0===a?"%":t&&e.format(+A)||null}),Io=({value:e})=>({value:e,label:null}),So=e=>({[zi.NUM_STA]:e[zi.NUM_STA],[zi.RX_BYTE_R]:e[zi.RX_BYTE_R],[zi.TX_BYTE_R]:e[zi.TX_BYTE_R],[zi.TX_RETRY_PERCENTAGE]:e[zi.TX_RETRY_PERCENTAGE]});var No,_o,po,Ro,Co,Mo,Po;!function(e){e.RX_BYTES="rx_bytes",e.TX_BYTES="tx_bytes"}(No||(No={})),function(e){e.AVG_LATENCY_MS="avg_latency_ms",e.AVG_PACKET_LOSS_PCT="avg_packet_loss_pct",e.AVG_RX_RATE_BPS="avg_rx_rate_bps",e.AVG_TX_RATE_BPS="avg_tx_rate_bps",e.CLIENT_COUNT="client_count",e.TIMESTAMP="timestamp"}(_o||(_o={})),function(e){e.HISTORY="history",e.SUMMARY="summary"}(po||(po={})),function(e){e.ISP_ASN="isp_asn",e.ISP_NAME="isp_name",e.NAME="name"}(Ro||(Ro={})),function(e){e.NETWORK_GROUPS="network_groups",e.ACTIVITY_BY_NETWORK_GROUP="activity_by_network_group",e.TOTAL_ACTIVITY="total_activity",e.NO_StATS_REASON="no_stats_reason"}(Co||(Co={})),function(e){e.ALLOWED="allowed",e.BLOCKED="blocked"}(Mo||(Mo={})),function(e){e.ALLOWED="allowed",e.BLOCKED="blocked"}(Po||(Po={}));var Do=t(564196);const fo=(e,A,t)=>{switch(e){case Do._.WAN_ACTIVITY:switch(A){case Do.y.DOWNLOAD:return _e.Ay[`desktop-color-aqua-06-${t}`];case Do.y.UPLOAD:return _e.Ay[`desktop-color-purple-06-${t}`];default:return}case Do._.AVG_LATENCY:return _e.Ay[`desktop-color-yellow-06-${t}`];case Do._.PACKET_LOSS:return _e.Ay[`desktop-color-red-06-${t}`];default:return}},bo=(e,A)=>({value:t,label:n},l)=>({value:t,label:0===l?a.createElement(ao.A,{style:{transform:"translate(-15px, -10px)"},color:_e.Ay[`desktop-color-text-4-${e}`],size:"original"}):n&&A.format(+t)||null}),vo=(e,A)=>({value:t,label:a},n)=>({value:t,label:0===n?e({id:"COMMON_UNIT_MS"}):a&&A.format(+t)||null}),Lo=e=>({value:A,label:t},a)=>({value:A,label:0===a?"%":t&&e.format(+A)||null}),ho=({value:e})=>({value:e,label:null}),yo=e=>({[_o.AVG_RX_RATE_BPS]:e[_o.AVG_RX_RATE_BPS],[_o.AVG_TX_RATE_BPS]:e[_o.AVG_TX_RATE_BPS],[_o.AVG_LATENCY_MS]:e[_o.AVG_LATENCY_MS],[_o.AVG_PACKET_LOSS_PCT]:e[_o.AVG_PACKET_LOSS_PCT],[_o.CLIENT_COUNT]:e[_o.CLIENT_COUNT]}),zo=(e,A)=>{switch(e){case Mo.ALLOWED:return _e.Ay[`desktop-color-ublue-06-${A}`];case Mo.BLOCKED:return _e.Ay[`desktop-color-red-06-${A}`];default:return}};var go=t(264894);const xo=(e,A,t)=>{switch(e){case go.G.WAN_ACTIVITY:switch(A){case go.O.DOWNLOAD:return _e.Ay[`desktop-color-aqua-06-${t}`];case go.O.UPLOAD:return _e.Ay[`desktop-color-purple-06-${t}`];default:return}case go.G.AVG_LATENCY:return _e.Ay[`desktop-color-yellow-06-${t}`];case go.G.PACKET_LOSS:return _e.Ay[`desktop-color-red-06-${t}`];case go.G.OBSTRUCTIONS:return _e.Ay[`desktop-color-orange-06-${t}`];default:return}};var Wo,Ho,wo;!function(e){e.WAN_AVG_LATENCY="wan_avg_latency",e.WAN_PACKET_LOSS="wan_packet_loss",e.WAN_CLIENTS="wan_clients",e.STARLINK_OBSTRUCTIONS="starlink_obstructions",e.STARLINK_PACKET_LOSS="starlink_packet_loss",e.STARLINK_AVG_LATENCY="starlink_avg_latency",e.WIFI_CLIENTS="wifi_clients",e.WIFI_TX_RETRIES="wifi_txRetries",e.FLOWS_ALLOWED="flows_allowed",e.FLOWS_BLOCKED="flows_blocked"}(Wo||(Wo={})),function(e){e.TOP="#F4F4F5",e.MIDDLE="#EEEEEF",e.BOTTOM="#D3D3D3"}(Ho||(Ho={})),function(e){e.LABEL="label",e.LEGEND="legend",e.DESCRIPTION="description",e.TOOLTIP="tooltip",e.DISABLED_TOOLTIP="disabled_tooltip"}(wo||(wo={}));const Uo=(0,h.A)(y.A,{shouldForwardProp:e=>!["disabled"].includes(e)})`
  height: 32px;
  cursor: pointer;
  align-items: center;
  padding: 0 ${Te.kc};
  gap: ${Te.kc};
  border-radius: ${_e.Ay["desktop-radius-base"]};
  ${({theme:{themeName:e}})=>`\n    background-color: ${_e.Ay[`desktop-color-input-bg-generic-enabled-${e}`]};\n    &:hover {\n      background-color: ${_e.Ay[`desktop-color-input-bg-generic-hover-${e}`]};\n    }\n  `};
  ${({disabled:e})=>e?"\n  opacity: 0.5;\n  cursor: not-allowed;\n    ":""}
  white-space: nowrap;
  > span,
  > label {
    @media (max-width: 1360px) {
      display: none;
    }
  }
  > label > div {
    margin: 0 !important;
  }
`,ko=(0,h.A)(y.A)`
  width: 3px;
  height: 3px;
  background: ${({theme:{themeName:e}})=>fo(Do._.AVG_LATENCY,void 0,e)};
`,Go=(0,h.A)(y.A)`
  width: 3px;
  height: 3px;
  background: ${({theme:{themeName:e}})=>fo(Do._.PACKET_LOSS,void 0,e)};
`,Vo=(0,h.A)(y.A)`
  align-items: center;
  > div:first-child {
    margin-right: 2px;
  }
`,Xo=(0,h.A)(y.A)`
  width: 3px;
  height: 3px;
  background: ${({theme:{themeName:e}})=>uo(mo.z.TX_RETRIES,void 0,e)};
`,Zo=(0,h.A)(y.A)`
  width: 8px;
  height: 3px;
  background: ${({theme:{themeName:e}})=>xo(go.G.OBSTRUCTIONS,void 0,e)};
`,Yo=(0,h.A)(y.A)`
  width: 3px;
  height: 3px;
  background: ${({theme:{themeName:e}})=>xo(go.G.PACKET_LOSS,void 0,e)};
`,Bo=(0,h.A)(y.A)`
  width: 3px;
  height: 3px;
  background: ${({theme:{themeName:e}})=>xo(go.G.AVG_LATENCY,void 0,e)};
`,Fo=(0,h.A)(y.A,{shouldForwardProp:e=>!["width","height"].includes(e)})`
  width: ${({width:e=10})=>e}px;
  height: ${({height:e=5})=>e}px;
  border-radius: 1px;
  border: ${({theme:{themeName:e}})=>_e.Ay[`desktop-border-divider-${e}`]};
  background: linear-gradient(
    180deg,
    ${Ho.TOP} 0%,
    ${Ho.MIDDLE} 0.01%,
    ${Ho.BOTTOM} 100%
  );
  box-sizing: content-box;
`,jo=(0,h.A)(y.A,{shouldForwardProp:e=>!["width","height"].includes(e)})`
  width: ${({width:e=10})=>e}px;
  height: ${({height:e=5})=>e}px;
  border-radius: 1px;
  background: ${({theme:{themeName:e}})=>zo(Mo.ALLOWED,e)};
  box-sizing: content-box;
`,Ko=(0,h.A)(y.A,{shouldForwardProp:e=>!["width","height"].includes(e)})`
  width: ${({width:e=10})=>e}px;
  height: ${({height:e=5})=>e}px;
  border-radius: 1px;
  background: ${({theme:{themeName:e}})=>zo(Mo.BLOCKED,e)};
  box-sizing: content-box;
`,qo=(0,h.A)(y.A)`
  width: 100%;
  flex-direction: column;
  gap: ${Te.YC};
`,Jo=(0,h.A)(y.A)`
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
`,Qo=({wifiGraphState:e,timestamp:A,num_sta:t,rxByteR:n,txByteR:l,interval:r,dashboardWifiGraphTxRetries:i,dashboardWifiGraphClients:o,txRetryPercentage:s})=>{const{[Tl.GRAPH_TOOLTIP_DATE_INTL_DATE_TIME_FORMAT]:E}=(0,a.useContext)(Il);return a.createElement(qo,null,a.createElement(Jo,{marginBottom:Te.YC},a.createElement(c.A,{size:"small",color:"text-2"},E.format(A)," - ",E.format(A+r))),(()=>{switch(e){case mo.f.INTERNET_ACTIVITY:return a.createElement(a.Fragment,null,a.createElement(Jo,null,a.createElement(Jo,{gap:Te.YC},a.createElement(Eo.A,null),a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_AVG_DOWNLOAD"}))),a.createElement(Jo,null,a.createElement(X.A.Icon,{size:"small"}),a.createElement(c.A,{size:"small",color:"traffic-down"},(0,tr.zX)(n)))),a.createElement(Jo,null,a.createElement(Jo,{gap:Te.YC},a.createElement(co.A,null),a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_AVG_UPLOAD"}))),a.createElement(Jo,null,a.createElement(V.A.Icon,{size:"small"}),a.createElement(V.A.Bytes,{size:"small"},(0,tr.zX)(l)))));case mo.f.DOWNLOAD:return a.createElement(Jo,null,a.createElement(Jo,{gap:Te.YC},a.createElement(Eo.A,null),a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_AVG_DOWNLOAD"}))),a.createElement(Jo,null,a.createElement(X.A.Icon,{size:"small"}),a.createElement(c.A,{size:"small",color:"traffic-down"},(0,tr.zX)(n))));case mo.f.UPLOAD:return a.createElement(Jo,null,a.createElement(Jo,{gap:Te.YC},a.createElement(co.A,null),a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_AVG_UPLOAD"}))),a.createElement(Jo,null,a.createElement(V.A.Icon,{size:"small"}),a.createElement(V.A.Bytes,{size:"small"},(0,tr.zX)(l))));default:return null}})(),i?a.createElement(Jo,null,a.createElement(Jo,{gap:Te.YC},a.createElement(Vo,null,a.createElement(Xo,null),a.createElement(Xo,null)),a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_AVG_TX_RETRIES"}))),Number.isFinite(s)&&s>-1?a.createElement(c.A,{size:"small",color:"green-06"},`${(0,Fn.i)(s)}%`):a.createElement(c.A,{size:"small",color:"text-2"},a.createElement(T.sA,{id:"COMMON_FALLBACK"}))):null,o?a.createElement(Jo,null,a.createElement(Jo,{gap:Te.YC},a.createElement(Fo,{width:6,height:2}),a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_WIFI_CLIENTS"}))),a.createElement(c.A,{size:"small",color:"text-2"},t||a.createElement(T.sA,{id:"COMMON_FALLBACK"}))):null)},$o=({wifiGraphState:e,top:A,left:t,chartWidth:n,chartHeight:l,innerColor:r,timestamp:i,dashboardWifiGraphTxRetries:o,dashboardWifiGraphClients:s,tooltipRenderCondition:c,tooltipProps:E,hidden:m,num_sta:d,rxByteR:u,txByteR:T,interval:O,txRetryPercentage:I})=>a.createElement(so.A,{width:258,topA:A,leftA:t,topB:E.top,leftB:E.left,chartWidth:n,chartHeight:l,hidden:m,description:a.createElement(Qo,{wifiGraphState:e,timestamp:i,num_sta:d,rxByteR:u,txByteR:T,interval:O,dashboardWifiGraphTxRetries:o,dashboardWifiGraphClients:s,txRetryPercentage:I}),innerColor:r,tooltipRenderCondition:c});var es=t(964238);const As=(0,a.memo)(({wifiGraphChartState:e,wifiGraphGraphState:A,timeSeriesData:t,maxY:n,yAxisMax:l,yAxisMin:r,y2AxisMax:i,y2AxisMin:o,mouseData:s,tooltipRef:c,getCoordinates:E,chartHovered:m,renderTooltip:d})=>{const{themeName:u}=(0,Ft.u)(),T=(0,a.useMemo)(()=>e===mo.z.WIFI_ACTIVITY?"curved":"linear",[e]),O=(0,a.useMemo)(()=>uo(e,A,u),[e,A,u]),I=(0,a.useCallback)(t=>d(t,e,A),[d,e,A]);return a.createElement(es.A,{data:t,maxY:n,mouseData:s,getCoordinates:E,interpolation:T,allowCustomDots:!0,dashed:e===mo.z.TX_RETRIES,forY2Axis:e===mo.z.WIFI_ACTIVITY,yAxisMax:l,yAxisMin:r,y2AxisMax:i,y2AxisMin:o,tooltipPortal:c?.current,lineColor:O,showTooltip:m,customGradientId:A,renderTooltip:I})}),ts=(e,A)=>A/e,as=e=>0===e?-1:e,ns={[gr.wp.WAN]:{[gr.B4.CLIENTS]:{[mr.S.DARK]:(0,ve.J2)("#9B9DA7",.25),[mr.S.LIGHT]:(0,ve.J2)("#B6B9C4",.25)}},[gr.wp.WIFI]:{[gr.WU.CLIENTS]:{[mr.S.DARK]:(0,ve.J2)("#9B9DA7",.25),[mr.S.LIGHT]:(0,ve.J2)("#B6B9C4",.25)}},[gr.wp.FLOWS]:{[gr.mV.ALLOWED]:{[mr.S.DARK]:(0,ve.b_)(_e.Ay[`desktop-color-ublue-05-${mr.S.DARK}`],.9),[mr.S.LIGHT]:(0,ve.b_)(_e.Ay[`desktop-color-ublue-05-${mr.S.LIGHT}`],.9)},[gr.mV.BLOCKED]:{[mr.S.DARK]:(0,ve.b_)(_e.Ay[`desktop-color-red-06-${mr.S.DARK}`],.9),[mr.S.LIGHT]:(0,ve.b_)(_e.Ay[`desktop-color-red-06-${mr.S.LIGHT}`],.9)}}},ls=(0,C.Mz)(xi,qA.BI,Wi,(e,A,t)=>A===JA.Zv?e:t[A]?.[yi.HISTORY]||(0,P.A)()),rs=[mo.f.INTERNET_ACTIVITY,mo.f.DOWNLOAD],is=[mo.f.INTERNET_ACTIVITY,mo.f.UPLOAD],os=(0,h.A)(y.A)`
  width: 100%;
  height: 100%;
`,ss=(0,a.memo)(({width:e,height:A})=>{const t=(0,n.useSelector)(qA.df),l=(0,n.useSelector)(qA.g8),r=(0,n.useSelector)(qA.C4),i=(0,n.useSelector)(qA.Ej),{themeName:o}=(0,Ft.u)(),s=(0,a.useRef)(void 0),c=(0,a.useRef)({value:0,left:0,top:0}),E=(0,n.useSelector)(ls),m=(0,n.useSelector)(Ui),d=vi(E),u=(0,a.useContext)(Il),T=u[Tl.GRAPH_AXIS_INTL_NUMBER_FORMAT],O=u[Tl.GRAPH_AXIS_INTL_DATE_TIME_FORMAT],I=i[Lr.VF.PRESET],{dashboardWifiActivityHistoryInterval:S,encodedDashboardWifiGraphClientHistory:N,encodedDashboardWifiGraphDownloadHistory:_,encodedDashboardWifiGraphUploadHistory:p,highestNumSta:R,highestRxByteR:C,highestTxByteR:M,highestRxTxByteR:P,barsVariant:D}=(0,a.useMemo)(()=>{const e=Li(d),A=(e[1]?.[zi.TIMESTAMP]||0)-(e[0]?.[zi.TIMESTAMP]||0),t=[],a=[],n=[];let l=0,r=0,i=0,s=0;const c=e[0]?.[zi.TIMESTAMP]||0,E=((e[e.length-1]?.[zi.TIMESTAMP]||0)-c)/(Zi[I]-1)/Yi[I],m=e.length;for(let A=0;A<m;A+=1){const o=e[A],m=So(o);a.push({x:o[zi.TIMESTAMP],y:o[zi.RX_BYTE_R],custom:m}),n.push({x:o[zi.TIMESTAMP],y:o[zi.TX_BYTE_R],custom:m}),o[zi.NUM_STA]>l&&(l=o[zi.NUM_STA]),o[zi.RX_BYTE_R]>r&&(r=o[zi.RX_BYTE_R]),o[zi.TX_BYTE_R]>i&&(i=o[zi.TX_BYTE_R]);const d=o[zi.RX_BYTE_R]+o[zi.TX_BYTE_R];d>s&&(s=d);const u=ji(I).find(e=>{return A=o[zi.TIMESTAMP],t=c+E*(e+1),A>=c+E*e&&A<=t;var A,t});if(u>=0){t[u]||(t[u]=[]);const e=Math.max(o[zi.NUM_STA],...t[u].map(e=>e[zi.NUM_STA]));e>l&&(l=e),t[u].push({x:c+E*u,y:1,[zi.NUM_STA]:e})}}return{dashboardWifiActivityHistoryInterval:A,encodedDashboardWifiGraphClientHistory:vi(l>Xi?e.map(e=>({x:e[zi.TIMESTAMP],y:e[zi.NUM_STA],[zi.NUM_STA]:e[zi.NUM_STA],color:ns[gr.wp.WIFI][gr.WU.CLIENTS][o]})).filter(({x:t})=>t+A<=e[e.length-1]?.[zi.TIMESTAMP]):t.map(e=>new Array(Math.max(1,...e.map(e=>e[zi.NUM_STA]||0))).fill({...e[0],y:e[0][zi.NUM_STA]?e[0].y:0,color:ns[gr.wp.WIFI][gr.WU.CLIENTS][o]})).filter(Boolean)),encodedDashboardWifiGraphDownloadHistory:vi(a),encodedDashboardWifiGraphUploadHistory:vi(n),highestNumSta:l,highestRxByteR:r,highestTxByteR:i,highestRxTxByteR:s,barsVariant:l>Xi?"grouped":"stacked"}},[d,I,o]),f=(0,a.useMemo)(()=>R<40?50:100*Math.ceil((R+1)/100),[R]),b=(0,a.useCallback)(e=>l?(e||0)*ts(100,f):e,[f,l]),v=(0,a.useMemo)(()=>{const e=Li(d),A=[];for(let t=0;t<e.length;t+=1){const a=e[t];A.push({x:a[zi.TIMESTAMP],y:b(a[zi.TX_RETRY_PERCENTAGE]),custom:So(a)})}return vi(A)},[d,b]),{unit:L,power:h,bytes:y}=(0,a.useMemo)(()=>(0,Mi.cS)({[mo.f.INTERNET_ACTIVITY]:Math.max(P,Vi),[mo.f.DOWNLOAD]:Math.max(C,Vi),[mo.f.UPLOAD]:Math.max(M,Vi)}[t],"bitrate","SI"),[C,M,P,t]),{yAxisMap:z,yAxisMax:g}=(0,a.useMemo)(()=>l?{yAxisMap:To(o,T),yAxisMax:f}:r?{yAxisMap:Oo(T),yAxisMax:100}:{yAxisMap:Io,yAxisMax:100},[l,r,o,T,f]),x=(0,a.useMemo)(()=>(0,fi.Y)(g,Gi,!0).map(z),[g,z]),W=(0,a.useMemo)(()=>{return e=y>Vi?Math.ceil(y+.1*y):y,(0,fi.Y)((0,Mi.cS)(e,"bitrate","SI",h).value<1e3?e:y,Gi,!0).map(({value:e,label:A},t)=>{return{value:e,label:0===t?L:A&&(a=(0,Mi.cS)(+e,"bitrate","SI",h).value,(n=a.toFixed(1)).length<=4?n:Math.trunc(a))||null};var a,n});var e},[y,L,h]),H=Bi(I,O,E),w=(0,a.useCallback)((e,A)=>e===mo.z.WIFI_ACTIVITY&&(t!==mo.f.INTERNET_ACTIVITY||A===mo.f.DOWNLOAD),[t]),U=(0,a.useCallback)(({top:n,left:i,x:s,y:E,hidden:m,custom:d={}},u,T)=>(w(u,T)&&(c.current={value:E,left:i,top:n}),a.createElement($o,{wifiGraphState:t,top:n,left:i,chartWidth:e,chartHeight:A,hidden:m,innerColor:uo(u,T,o),timestamp:s,tooltipProps:c.current,tooltipRenderCondition:w(u,T),dashboardWifiGraphTxRetries:r,dashboardWifiGraphClients:l,num_sta:d[zi.NUM_STA]||0,rxByteR:d[zi.RX_BYTE_R]||0,txByteR:d[zi.TX_BYTE_R]||0,interval:S,txRetryPercentage:d[zi.TX_RETRY_PERCENTAGE]||0})),[t,r,l,S,A,e,o,w]),k=(0,a.useCallback)(({maxY:e,yAxisMax:A,yAxisMin:n,y2AxisMax:l,y2AxisMin:r,mouseData:i,getCoordinates:o,chartHovered:c})=>a.createElement(a.Fragment,{key:t},rs.includes(t)?a.createElement(As,{wifiGraphChartState:mo.z.WIFI_ACTIVITY,wifiGraphGraphState:mo.f.DOWNLOAD,timeSeriesData:Li(_),maxY:e,yAxisMax:A,yAxisMin:n,y2AxisMax:l,y2AxisMin:r,mouseData:i,tooltipRef:s,getCoordinates:o,chartHovered:c,renderTooltip:U}):null,is.includes(t)?a.createElement(As,{wifiGraphChartState:mo.z.WIFI_ACTIVITY,wifiGraphGraphState:mo.f.UPLOAD,timeSeriesData:Li(p),maxY:e,yAxisMax:A,yAxisMin:n,y2AxisMax:l,y2AxisMin:r,mouseData:i,tooltipRef:s,getCoordinates:o,chartHovered:c,renderTooltip:U}):null),[t,_,p,U]),G=(0,a.useCallback)(({maxY:e,yAxisMax:A,yAxisMin:t,y2AxisMax:n,y2AxisMin:l,mouseData:i,getCoordinates:o,chartHovered:c})=>r?a.createElement(As,{wifiGraphChartState:mo.z.TX_RETRIES,timeSeriesData:Li(v),maxY:e,yAxisMax:A,yAxisMin:t,y2AxisMax:n,y2AxisMin:l,mouseData:i,tooltipRef:s,getCoordinates:o,chartHovered:c,renderTooltip:U}):null,[r,v,U]),V=(0,a.useCallback)(({getCoordinates:e,size:{width:A,height:t}})=>l?a.createElement(Di.A,{continuous:!0,data:Li(N),getCoordinates:e,hideStroke:!0,disableHoverHighlight:!0,width:A,height:t,stackedBarSpacing:1,variant:D,barFullWidth:!0}):null,[D,N,l]),X=(0,a.useCallback)((e,A,t,n,l,r,i,o,s,c)=>a.createElement(a.Fragment,{key:gr.wp.WIFI},k({maxY:t,yAxisMax:r,yAxisMin:i,y2AxisMax:o,y2AxisMin:s,mouseData:A,getCoordinates:e,chartHovered:c}),G({maxY:t,yAxisMax:r,yAxisMin:i,y2AxisMax:o,y2AxisMin:s,mouseData:A,getCoordinates:e,chartHovered:c}),V({getCoordinates:e,size:l})),[V,G,k]);return a.createElement(os,{...wr.A.addDataTestId(wr.A.TestId.DASHBOARD_WIFI_GRAPH)},a.createElement(oo,{chartWidth:e,aggregatedDashboardNoStatsReason:m}),a.createElement(Pi.A,{yAxis:x,y2Axis:W,xAxis:H,width:e,height:Fi(A)},X),a.createElement("div",{ref:s}))});var cs=t(415246);const Es=(0,C.Mz)(D.e6,e=>e[ce.ZJ.WAN_ACTIVITY]||(0,M.A)()),ms=(0,C.Mz)(Es,e=>e[Co.NETWORK_GROUPS]||(0,P.A)()),ds=(0,C.Mz)(Es,e=>e[Co.NO_StATS_REASON]||(0,M.A)());var us=t(189601),Ts=t(746289);const Os=e=>({...e,[_o.AVG_PACKET_LOSS_PCT]:e[_o.AVG_PACKET_LOSS_PCT]??null});var Is;!function(e){e.STARLINK="starlink",e.DEFAULT="default"}(Is||(Is={}));const Ss=(0,C.Mz)(Es,qA.nc,(e,A)=>(e[Co.ACTIVITY_BY_NETWORK_GROUP]||(0,M.A)())[A]||e[Co.TOTAL_ACTIVITY]||(0,M.A)()),Ns=(0,C.Mz)(Ss,e=>(e[po.HISTORY]||(0,P.A)()).map(Os)),_s=(0,C.Mz)(Ss,e=>e[po.SUMMARY]||(0,M.A)()),ps=(0,us.WY)()((0,C.Mz)(Es,qA.nc,(e,A)=>{return((t=(e[Co.NETWORK_GROUPS]||(0,P.A)()).find(e=>e[Ro.NAME]===A)||(0,M.A)())[Ro.ISP_ASN]||(0,P.A)()).includes(Ts.Z)||(t[Ro.ISP_NAME]||(0,P.A)()).includes(Ts.ej);var t}),e=>e),Rs=(0,C.Mz)(ps,e=>e?Is.STARLINK:Is.DEFAULT),Cs=(0,h.A)(y.A)`
  width: 100%;
  flex-direction: column;
  gap: ${Te.YC};
`,Ms=(0,h.A)(y.A)`
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
`,Ps=({wanGraphState:e,timestamp:A,interval:t,dashboardWanGraphAvgLatency:n,dashboardWanGraphPacketLoss:l,dashboardWanGraphClients:r,avgRxRateBps:i,avgTxRateBps:o,avgLatency:s,avgPacketLoss:E,clients:m,graphTooltipDateIntlDateTimeFormat:d,areAllWans:u})=>a.createElement(Cs,null,a.createElement(Ms,{marginBottom:Te.YC},a.createElement(c.A,{size:"small",color:"text-2"},d.format(A)," - ",d.format(A+t))),(()=>{switch(e){case Do.y.INTERNET_ACTIVITY:return a.createElement(a.Fragment,null,a.createElement(Ms,null,a.createElement(Ms,{gap:Te.YC},a.createElement(Eo.A,null),a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_AVG_DOWNLOAD"}))),a.createElement(Ms,null,a.createElement(X.A.Icon,{size:"small"}),a.createElement(c.A,{size:"small",color:"traffic-down"},(0,tr.zX)(i)))),a.createElement(Ms,null,a.createElement(Ms,{gap:Te.YC},a.createElement(co.A,null),a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_AVG_UPLOAD"}))),a.createElement(Ms,null,a.createElement(V.A.Icon,{size:"small"}),a.createElement(V.A.Bytes,{size:"small"},(0,tr.zX)(o)))));case Do.y.DOWNLOAD:return a.createElement(Ms,null,a.createElement(Ms,{gap:Te.YC},a.createElement(Eo.A,null),a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_AVG_DOWNLOAD"}))),a.createElement(Ms,null,a.createElement(X.A.Icon,{size:"small"}),a.createElement(c.A,{size:"small",color:"traffic-down"},(0,tr.zX)(i))));case Do.y.UPLOAD:return a.createElement(Ms,null,a.createElement(Ms,{gap:Te.YC},a.createElement(co.A,null),a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_AVG_UPLOAD"}))),a.createElement(Ms,null,a.createElement(V.A.Icon,{size:"small"}),a.createElement(V.A.Bytes,{size:"small"},(0,tr.zX)(o))));default:return null}})(),n?a.createElement(a.Fragment,null,a.createElement(Ms,null,a.createElement(Ms,{gap:Te.YC},a.createElement(Vo,null,a.createElement(ko,null),a.createElement(ko,null)),a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"DASHBOARD_ISP_AVG_LAT"}))),a.createElement(Ms,null,Number.isFinite(s)?a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_UNIT_MILLISECONDS_SHORT",values:{value:s>0?s:"<1"}})):a.createElement(c.A,{size:"small",color:"text-3"},a.createElement(T.sA,{id:"COMMON_FALLBACK"}))))):null,l?a.createElement(Ms,null,a.createElement(Ms,{gap:Te.YC},a.createElement(Vo,null,a.createElement(Go,null),a.createElement(Go,null)),a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"DASHBOARD_PACKET_LOSS"}))),a.createElement(Ms,null,Number.isFinite(E)&&E>-1?a.createElement(c.A,{size:"small",color:"text-1"},`${(0,Fn.i)(E)}%`):a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_FALLBACK"})))):null,r&&u?a.createElement(Ms,null,a.createElement(Ms,{gap:Te.YC},a.createElement(Fo,{width:6,height:2}),a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"DASHBOARD_CONNECTIONS"}))),m||a.createElement(T.sA,{id:"COMMON_FALLBACK"})):null),Ds=({wanGraphState:e,top:A,left:t,chartWidth:n,chartHeight:l,innerColor:r,timestamp:i,interval:o,tooltipRenderCondition:s,tooltipProps:c,hidden:E,dashboardWanGraphAvgLatency:m,dashboardWanGraphPacketLoss:d,dashboardWanGraphClients:u,avgRxRateBps:T,avgTxRateBps:O,avgLatency:I,avgPacketLoss:S,clients:N,graphTooltipDateIntlDateTimeFormat:_,areAllWans:p})=>a.createElement(so.A,{width:258,topA:A,leftA:t,topB:c.top,leftB:c.left,chartWidth:n,chartHeight:l,hidden:E,description:a.createElement(Ps,{wanGraphState:e,timestamp:i,interval:o,dashboardWanGraphAvgLatency:m,dashboardWanGraphPacketLoss:d,dashboardWanGraphClients:u,avgRxRateBps:T,avgTxRateBps:O,avgLatency:I,avgPacketLoss:S,clients:N,graphTooltipDateIntlDateTimeFormat:_,areAllWans:p}),innerColor:r,tooltipRenderCondition:s}),fs=(0,a.memo)(({wanGraphChartState:e,wanGraphGraphState:A,timeSeriesData:t,maxY:n,yAxisMax:l,yAxisMin:r,y2AxisMax:i,y2AxisMin:o,mouseData:s,tooltipRef:c,getCoordinates:E,chartHovered:m,renderTooltip:d})=>{const{themeName:u}=(0,Ft.u)(),T=(0,a.useMemo)(()=>e===Do._.WAN_ACTIVITY?"curved":"linear",[e]),O=(0,a.useMemo)(()=>fo(e,A,u),[e,A,u]),I=(0,a.useCallback)(t=>d(t,e,A),[d,e,A]);return a.createElement(es.A,{data:t,maxY:n,mouseData:s,getCoordinates:E,interpolation:T,allowCustomDots:!0,dashed:[Do._.AVG_LATENCY,Do._.PACKET_LOSS].includes(e),forY2Axis:e===Do._.WAN_ACTIVITY,yAxisMax:l,yAxisMin:r,y2AxisMax:i,y2AxisMin:o,tooltipPortal:c?.current,lineColor:O,showTooltip:m,customGradientId:A,renderTooltip:I})}),bs=[Do.y.INTERNET_ACTIVITY,Do.y.DOWNLOAD],vs=[Do.y.INTERNET_ACTIVITY,Do.y.UPLOAD],Ls=(0,h.A)(y.A)`
  width: 100%;
  height: 100%;
`,hs=(0,a.memo)(({width:e,height:A})=>{const{themeName:t}=(0,Ft.u)(),{formatMessage:l}=(0,T.tz)(),r=(0,a.useRef)({value:0,left:0,top:0}),i=(0,n.useSelector)(qA.nc),o=(0,a.useRef)(void 0),s=(0,n.useSelector)(Ns),c=(0,n.useSelector)(qA.Ej),E=(0,n.useSelector)(qA.Uj),m=(0,n.useSelector)(yr.WQ)[cs.X4.WAN_GRAPH_CLIENTS],d=(0,n.useSelector)(qA.FX),u=(0,n.useSelector)(qA.q9),O=(0,n.useSelector)(ds),{[Tl.GRAPH_TOOLTIP_DATE_INTL_DATE_TIME_FORMAT]:I,[Tl.GRAPH_AXIS_INTL_NUMBER_FORMAT]:S,[Tl.GRAPH_AXIS_INTL_DATE_TIME_FORMAT]:N}=(0,a.useContext)(Il),_=c[Lr.VF.PRESET],p=vi(s),{encodedDashboardWanGraphDownloadHistory:R,encodedDashboardWanGraphUploadHistory:C,encodedDashboardWanGraphClientsHistory:M,barsVariant:P,dashboardWanActivityHistoryInterval:D,highestRxTxRateBps:f,highestRxRateBps:b,highestTxRateBps:v,highestClientCount:L,highestAvgLatency:h,highestPacketLoss:y}=(0,a.useMemo)(()=>{const e=Li(p),A=(e[1]?.[_o.TIMESTAMP]||0)-(e[0]?.[_o.TIMESTAMP]||0),a=[],n=[],l=[];let r=0,i=0,o=0,s=0,c=0,E=0;const m=e[0]?.[_o.TIMESTAMP]||0,d=((e[e.length-1]?.[_o.TIMESTAMP]||0)-m)/(Zi[_]-1)/Yi[_],u=e.length;for(let A=0;A<u;A+=1){const t=e[A],u=yo(t);a.push({x:t[_o.TIMESTAMP],y:t[_o.AVG_RX_RATE_BPS]||0,custom:u}),n.push({x:t[_o.TIMESTAMP],y:t[_o.AVG_TX_RATE_BPS]||0,custom:u}),t[_o.AVG_RX_RATE_BPS]>i&&(i=t[_o.AVG_RX_RATE_BPS]),t[_o.AVG_TX_RATE_BPS]>o&&(o=t[_o.AVG_TX_RATE_BPS]);const T=t[_o.AVG_RX_RATE_BPS]+t[_o.AVG_TX_RATE_BPS];T>r&&(r=T);const O=ji(_).find(e=>{return A=t[_o.TIMESTAMP],a=m+d*(e+1),A>=m+d*e&&A<=a;var A,a});if(O>=0){l[O]||(l[O]=[]);const e=Math.max(t[_o.CLIENT_COUNT],...l[O].map(e=>e[_o.CLIENT_COUNT]));e>s&&(s=e),t[_o.CLIENT_COUNT]>s&&(s=t[_o.CLIENT_COUNT]),l[O].push({x:m+d*O,y:1,[_o.CLIENT_COUNT]:e})}t[_o.AVG_LATENCY_MS]>c&&(c=t[_o.AVG_LATENCY_MS]),t[_o.AVG_PACKET_LOSS_PCT]>E&&(E=t[_o.AVG_PACKET_LOSS_PCT])}return{encodedDashboardWanGraphDownloadHistory:vi(a),encodedDashboardWanGraphUploadHistory:vi(n),encodedDashboardWanGraphClientsHistory:vi(s>Xi?e.map(e=>({x:e[_o.TIMESTAMP],y:e[_o.CLIENT_COUNT],[_o.CLIENT_COUNT]:e[_o.CLIENT_COUNT],color:ns[gr.wp.WAN][gr.B4.CLIENTS][t]})).filter(({x:t})=>t+A<=e[e.length-1]?.[_o.TIMESTAMP]):l.map(e=>new Array(Math.max(1,...e.map(e=>e[_o.CLIENT_COUNT]||0))).fill({...e[0],y:e[0][_o.CLIENT_COUNT]?e[0].y:0,color:ns[gr.wp.WAN][gr.B4.CLIENTS][t]})).filter(Boolean)),barsVariant:s>Xi?"grouped":"stacked",dashboardWanActivityHistoryInterval:A,highestRxTxRateBps:r,highestRxRateBps:i,highestTxRateBps:o,highestClientCount:s,highestAvgLatency:c,highestPacketLoss:E}},[p,_,t]),z=(0,a.useMemo)(()=>L<40?50:100*Math.ceil((L+1)/100),[L]),g=(0,a.useMemo)(()=>h<140?150:100*Math.ceil((h+1)/100),[h]),x=(0,a.useMemo)(()=>y<90?100:100*Math.ceil((y+1)/100),[y]),W=(0,a.useCallback)(e=>(e||0)*ts(g,z),[g,z]),H=(0,a.useCallback)(e=>e||0,[]),w=(0,a.useCallback)(e=>m?W(e):H(e),[W,H,m]),U=(0,a.useCallback)(e=>(e||0)*ts(x,z),[z,x]),k=(0,a.useCallback)(e=>(e||0)*ts(x,g),[g,x]),G=(0,a.useCallback)(e=>e||0,[]),V=(0,a.useCallback)(e=>m?U(e):d?k(e):G(e),[d,m,U,k,G]),{encodedDashboardWanGraphPacketLossHistory:X,encodedDashboardWanGraphLatencyHistory:Z}=(0,a.useMemo)(()=>{const e=Li(p),A=[],t=[],a=e.length;for(let n=0;n<a;n+=1){const a=e[n],l=yo(a);A.push({x:a[_o.TIMESTAMP],y:as(V(a[_o.AVG_PACKET_LOSS_PCT])),custom:l}),t.push({x:a[_o.TIMESTAMP],y:w(a[_o.AVG_LATENCY_MS]),custom:l})}return{encodedDashboardWanGraphPacketLossHistory:vi(A),encodedDashboardWanGraphLatencyHistory:vi(t)}},[p,w,V]),Y=Bi(_,N,s),{yAxisMap:B,yAxisMax:F}=(0,a.useMemo)(()=>m&&i===JA.Je?{yAxisMap:bo(t,S),yAxisMax:z}:d?{yAxisMap:vo(l,S),yAxisMax:g}:u?{yAxisMap:Lo(S),yAxisMax:x}:{yAxisMap:ho,yAxisMax:100},[i,d,u,z,g,m,t,S,x,l]),j=(0,a.useMemo)(()=>(0,fi.Y)(F,Gi,!0).map(B),[F,B]),{unit:K,power:q,bytes:J}=(0,a.useMemo)(()=>(0,Mi.cS)({[Do.y.INTERNET_ACTIVITY]:Math.max(f,Vi),[Do.y.DOWNLOAD]:Math.max(b,Vi),[Do.y.UPLOAD]:Math.max(v,Vi)}[E],"bitrate","SI"),[f,b,v,E]),Q=(0,a.useMemo)(()=>{return e=J>Vi?Math.ceil(J+.1*J):J,(0,fi.Y)((0,Mi.cS)(e,"bitrate","SI",q).value<1e3?e:J,Gi,!0).map(({value:e,label:A},t)=>{return{value:e,label:0===t?K:A&&(a=(0,Mi.cS)(+e,"bitrate","SI",q).value,(n=a.toFixed(1)).length<=4?n:Math.trunc(a))||null};var a,n});var e},[J,K,q]),$=(0,a.useCallback)((e,A)=>e===Do._.WAN_ACTIVITY&&(E!==Do.y.INTERNET_ACTIVITY||A===Do.y.DOWNLOAD),[E]),ee=(0,a.useCallback)(({top:n,left:l,x:o,y:s,hidden:c,custom:T={}},O,S)=>($(O,S)&&(r.current={value:s,left:l,top:n}),a.createElement(Ds,{wanGraphState:E,top:n,left:l,chartWidth:e,chartHeight:A,hidden:c,innerColor:fo(O,S,t),timestamp:o,interval:D,tooltipProps:r.current,tooltipRenderCondition:$(O,S),dashboardWanGraphAvgLatency:d,dashboardWanGraphPacketLoss:u,dashboardWanGraphClients:m,avgRxRateBps:T[_o.AVG_RX_RATE_BPS]||0,avgTxRateBps:T[_o.AVG_TX_RATE_BPS]||0,avgLatency:T[_o.AVG_LATENCY_MS],avgPacketLoss:T[_o.AVG_PACKET_LOSS_PCT],clients:T[_o.CLIENT_COUNT],graphTooltipDateIntlDateTimeFormat:I,areAllWans:i===JA.Je})),[i,$,r,E,A,d,u,t,D,e,m,I]),Ae=(0,a.useCallback)(({maxY:e,yAxisMax:A,yAxisMin:t,y2AxisMax:n,y2AxisMin:l,mouseData:r,getCoordinates:i,chartHovered:s})=>a.createElement(a.Fragment,{key:E},bs.includes(E)?a.createElement(fs,{wanGraphChartState:Do._.WAN_ACTIVITY,wanGraphGraphState:Do.y.DOWNLOAD,timeSeriesData:Li(R),maxY:e,yAxisMax:A,yAxisMin:t,y2AxisMax:n,y2AxisMin:l,mouseData:r,tooltipRef:o,getCoordinates:i,chartHovered:s,renderTooltip:ee}):null,vs.includes(E)?a.createElement(fs,{wanGraphChartState:Do._.WAN_ACTIVITY,wanGraphGraphState:Do.y.UPLOAD,timeSeriesData:Li(C),maxY:e,yAxisMax:A,yAxisMin:t,y2AxisMax:n,y2AxisMin:l,mouseData:r,tooltipRef:o,getCoordinates:i,chartHovered:s,renderTooltip:ee}):null),[E,R,C,o,ee]),te=(0,a.useCallback)(({maxY:e,yAxisMax:A,yAxisMin:t,y2AxisMax:n,y2AxisMin:l,mouseData:r,getCoordinates:i,chartHovered:s})=>d?a.createElement(fs,{wanGraphChartState:Do._.AVG_LATENCY,timeSeriesData:Li(Z),maxY:e,yAxisMax:A,yAxisMin:t,y2AxisMax:n,y2AxisMin:l,mouseData:r,tooltipRef:o,getCoordinates:i,chartHovered:s,renderTooltip:ee}):null,[d,o,Z,ee]),ae=(0,a.useCallback)(({maxY:e,yAxisMax:A,yAxisMin:t,y2AxisMax:n,y2AxisMin:l,mouseData:r,getCoordinates:i,chartHovered:s})=>u?a.createElement(fs,{wanGraphChartState:Do._.PACKET_LOSS,timeSeriesData:Li(X),maxY:e,yAxisMax:A,yAxisMin:t,y2AxisMax:n,y2AxisMin:l,mouseData:r,tooltipRef:o,getCoordinates:i,chartHovered:s,renderTooltip:ee}):null,[u,o,X,ee]),ne=(0,a.useCallback)(({getCoordinates:e,size:{width:A,height:t}})=>m?a.createElement(Di.A,{continuous:!0,data:Li(M),getCoordinates:e,hideStroke:!0,disableHoverHighlight:!0,width:A,height:t,stackedBarSpacing:1,variant:P,barFullWidth:!0}):null,[m,M,P]),le=(0,a.useCallback)((e,A,t,n,l,r,i,o,s,c)=>a.createElement(a.Fragment,{key:gr.wp.WAN},Ae({maxY:t,yAxisMax:r,yAxisMin:i,y2AxisMax:o,y2AxisMin:s,mouseData:A,getCoordinates:e,chartHovered:c}),te({maxY:t,yAxisMax:r,yAxisMin:i,y2AxisMax:o,y2AxisMin:s,mouseData:A,getCoordinates:e,chartHovered:c}),ae({maxY:t,yAxisMax:r,yAxisMin:i,y2AxisMax:o,y2AxisMin:s,mouseData:A,getCoordinates:e,chartHovered:c}),ne({getCoordinates:e,size:l})),[Ae,te,ae,ne]);return a.createElement(Ls,{...wr.A.addDataTestId(wr.A.TestId.DASHBOARD_WAN_GRAPH)},a.createElement(oo,{chartWidth:e,aggregatedDashboardNoStatsReason:O}),a.createElement(Pi.A,{yAxis:j,xAxis:Y,y2Axis:Q,width:e,height:Fi(A)},le),a.createElement("div",{ref:o}))});var ys=t(889750),zs=t(597766);const gs=(e,A)=>({value:t,label:a},n)=>({value:t,label:0===n?e({id:"COMMON_UNIT_MS"}):a&&A.format(+t)||null}),xs=e=>({value:A,label:t},a)=>({value:A,label:0===a?"%":t&&e.format(+A)||null}),Ws=ho,Hs=e=>e[_o.TIMESTAMP],ws=e=>e[_o.AVG_RX_RATE_BPS]||0,Us=e=>e[_o.AVG_TX_RATE_BPS],ks=e=>e[_o.AVG_PACKET_LOSS_PCT],Gs=e=>e[zs.eX.AVG_OBSTRUCTION],Vs=(e,A)=>zs.eX.AVG_POP_PING_LATENCY_MS in e?e[zs.eX.AVG_POP_PING_LATENCY_MS]:A[_o.AVG_LATENCY_MS],Xs=(e,A)=>({[_o.AVG_RX_RATE_BPS]:ws(e),[_o.AVG_TX_RATE_BPS]:Us(e),[_o.AVG_PACKET_LOSS_PCT]:ks(e),[zs.eX.AVG_OBSTRUCTION]:Gs(A),[zs.eX.AVG_POP_PING_LATENCY_MS]:Vs(A,e)});var Zs=t(813378);const Ys=(0,h.A)(y.A)`
  width: 100%;
  flex-direction: column;
  gap: ${Te.YC};
`,Bs=(0,h.A)(y.A)`
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
`,Fs=({timestamp:e,interval:A,graphTooltipDateIntlDateTimeFormat:t,starlinkWanGraphState:n,averageDownloadBps:l,averageUploadBps:r,dashboardStarlinkGraphObstructions:i,dashboardStarlinkGraphAvgLatency:o,dashboardStarlinkGraphPacketLoss:s,avgObstruction:E,avgLatency:m,avgPacketLoss:d,hasDashboardIspMetricsByIspIdHistory:u})=>a.createElement(Ys,null,a.createElement(Bs,{marginBottom:Te.YC},a.createElement(c.A,{size:"small",color:"text-2"},t.format(e)," - ",t.format(e+A))),(()=>{switch(n){case go.O.INTERNET_ACTIVITY:return a.createElement(a.Fragment,null,a.createElement(Bs,null,a.createElement(Bs,{gap:Te.YC},a.createElement(Eo.A,null),a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_AVG_DOWNLOAD"}))),a.createElement(Bs,null,a.createElement(X.A.Icon,{size:"small"}),a.createElement(c.A,{size:"small",color:"traffic-down"},(0,tr.zX)(l)))),a.createElement(Bs,null,a.createElement(Bs,{gap:Te.YC},a.createElement(co.A,null),a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_AVG_UPLOAD"}))),a.createElement(Bs,null,a.createElement(V.A.Icon,{size:"small"}),a.createElement(V.A.Bytes,{size:"small"},(0,tr.zX)(r)))));case go.O.DOWNLOAD:return a.createElement(Bs,null,a.createElement(Bs,{gap:Te.YC},a.createElement(Eo.A,null),a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_AVG_DOWNLOAD"}))),a.createElement(Bs,null,a.createElement(X.A.Icon,{size:"small"}),a.createElement(c.A,{size:"small",color:"traffic-down"},(0,tr.zX)(l))));case go.O.UPLOAD:return a.createElement(Bs,null,a.createElement(Bs,{gap:Te.YC},a.createElement(co.A,null),a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_AVG_UPLOAD"}))),a.createElement(Bs,null,a.createElement(V.A.Icon,{size:"small"}),a.createElement(V.A.Bytes,{size:"small"},(0,tr.zX)(r))));default:return null}})(),u&&i?a.createElement(Bs,null,a.createElement(Bs,{gap:Te.YC},a.createElement(Zo,null),a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"DASHBOARD_AVG_OBSTRUCTIONS"}))),a.createElement(Bs,null,Number.isFinite(E)&&E>-1?a.createElement(c.A,{size:"small",color:(0,Zs.V)(E)},`${(0,Fn.i)(E,3)}%`):a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_FALLBACK"})))):null,o?a.createElement(Bs,null,a.createElement(Bs,{gap:Te.YC},a.createElement(Vo,null,a.createElement(Bo,null),a.createElement(Bo,null)),a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"DASHBOARD_ISP_AVG_LAT"}))),a.createElement(Bs,null,Number.isFinite(m)?a.createElement(c.A,{size:"small",color:"text-3"},a.createElement(T.sA,{id:"COMMON_UNIT_MILLISECONDS_SHORT",values:{value:m>0?(0,Fn.i)(m):"<1"}})):a.createElement(c.A,{size:"small",color:"text-3"},a.createElement(T.sA,{id:"COMMON_FALLBACK"})))):null,s?a.createElement(Bs,null,a.createElement(Bs,{gap:Te.YC},a.createElement(Vo,null,a.createElement(Yo,null),a.createElement(Yo,null)),a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"DASHBOARD_PACKET_LOSS"}))),a.createElement(Bs,null,Number.isFinite(d)&&d>-1?a.createElement(c.A,{size:"small",color:"text-1"},`${(0,Fn.i)(d)}%`):a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_FALLBACK"})))):null),js=({top:e,left:A,chartWidth:t,chartHeight:n,tooltipProps:l,hidden:r,tooltipRenderCondition:i,innerColor:o,timestamp:s,interval:c,graphTooltipDateIntlDateTimeFormat:E,starlinkWanGraphState:m,averageDownloadBps:d,averageUploadBps:u,dashboardStarlinkGraphObstructions:T,dashboardStarlinkGraphAvgLatency:O,dashboardStarlinkGraphPacketLoss:I,avgObstruction:S,avgLatency:N,avgPacketLoss:_,hasDashboardIspMetricsByIspIdHistory:p})=>a.createElement(so.A,{width:258,topA:e,leftA:A,topB:l.top,leftB:l.left,chartWidth:t,chartHeight:n,hidden:r,description:a.createElement(Fs,{timestamp:s,interval:c,graphTooltipDateIntlDateTimeFormat:E,starlinkWanGraphState:m,averageDownloadBps:d,averageUploadBps:u,dashboardStarlinkGraphObstructions:T,dashboardStarlinkGraphAvgLatency:O,dashboardStarlinkGraphPacketLoss:I,avgObstruction:S,avgLatency:N,avgPacketLoss:_,hasDashboardIspMetricsByIspIdHistory:p}),innerColor:o,tooltipRenderCondition:i}),Ks=(0,a.memo)(({starlinkGraphChartState:e,starlinkWanGraphState:A,timeSeriesData:t,maxY:n,mouseData:l,getCoordinates:r,yAxisMax:i,yAxisMin:o,y2AxisMax:s,y2AxisMin:c,tooltipRef:E,chartHovered:m,renderTooltip:d})=>{const{themeName:u}=(0,Ft.u)(),T=(0,a.useMemo)(()=>e===go.G.WAN_ACTIVITY?"curved":"linear",[e]),O=(0,a.useMemo)(()=>xo(e,A,u),[e,A,u]),I=(0,a.useCallback)(t=>d(t,e,A),[d,e,A]);return a.createElement(es.A,{data:t,maxY:n,mouseData:l,getCoordinates:r,interpolation:T,allowCustomDots:!0,dashed:[go.G.AVG_LATENCY,go.G.PACKET_LOSS].includes(e),forY2Axis:e===go.G.WAN_ACTIVITY,yAxisMax:i,yAxisMin:o,y2AxisMax:s,y2AxisMin:c,tooltipPortal:E?.current,lineColor:O,showTooltip:m,customGradientId:A,renderTooltip:I})}),qs=[go.O.INTERNET_ACTIVITY,go.O.DOWNLOAD],Js=[go.O.INTERNET_ACTIVITY,go.O.UPLOAD];var Qs=t(570636),$s=t(808028),ec=t(872836);const Ac=(0,C.Mz)(Qs.L,e=>{const A=e.find(({[$s.YQ.ISP]:{[$s.mu.NAME]:e,[$s.mu.ASN]:A}=(0,M.A)()})=>e===Ts.ej||A===Ts.Z);return A?(0,ec.j)(A[$s.YQ.NETWORK_GROUP],A[$s.YQ.ISP][$s.mu.NAME]):""}),tc=(0,a.memo)(({width:e,height:A})=>{const t=(0,a.useRef)(void 0),{formatMessage:l}=(0,T.tz)(),{themeName:r}=(0,Ft.u)(),i=(0,a.useRef)({value:0,left:0,top:0}),o=(0,n.useSelector)(Ac),s=(0,n.useSelector)(Ns),c=(0,n.useSelector)(qA.Sp),E=(0,n.useSelector)((0,a.useMemo)(()=>(0,ys._G)(o),[o])),m=Boolean(E.length),{[Tl.GRAPH_AXIS_INTL_NUMBER_FORMAT]:d,[Tl.GRAPH_TOOLTIP_DATE_INTL_DATE_TIME_FORMAT]:u}=(0,a.useContext)(Il),O=(0,n.useSelector)(qA.MI),I=(0,n.useSelector)(qA.US),S=(0,n.useSelector)(qA.Zp),{[Lr.VF.PRESET]:N}=(0,n.useSelector)(qA.Ej),{[Tl.GRAPH_AXIS_INTL_DATE_TIME_FORMAT]:_}=(0,a.useContext)(Il),p=vi(E),R=vi(s),{encodedDashboardStarlinkGraphDownloadHistory:C,encodedDashboardStarlinkGraphUploadHistory:M,encodedDashboardStarlinkGraphObstructionsHistory:P,encodedDashboardStarlinkGraphPacketLossHistory:D,encodedDashboardStarlinkGraphAvgLatencyHistory:f,interval:b,highestRxTxRateBps:v,highestRxRateBps:L,highestTxRateBps:h,highestYAxisObstructions:y,highestYAxisPacketLoss:z,highestYAxisLatency:g}=(0,a.useMemo)(()=>{const e=Li(R),A=Li(p);let t=0,a=0,n=0,l=0,r=0,i=0;const o=[],s=[],c=[],E=[],m=[];for(let d=0;d<e.length;d+=1){const u=e[d],T=A[d]||{},O=Xs(u,T);o.push({x:Hs(u),y:ws(u),custom:O}),s.push({x:Hs(u),y:Us(u),custom:O}),ws(u)>a&&(a=ws(u)),Us(u)>n&&(n=Us(u));const I=ws(u)+Us(u);I>t&&(t=I),c.push({x:Hs(u),y:Gs(T),custom:O}),Gs(T)>l&&(l=Gs(T)),E.push({x:Hs(u),y:ks(u),custom:O}),ks(u)>r&&(r=ks(u)),m.push({x:Hs(u),y:Vs(T,u),custom:O}),Vs(T,u)>i&&(i=Vs(T,u))}return{encodedDashboardStarlinkGraphDownloadHistory:vi(o),encodedDashboardStarlinkGraphUploadHistory:vi(s),encodedDashboardStarlinkGraphObstructionsHistory:vi(c),encodedDashboardStarlinkGraphPacketLossHistory:vi(E),encodedDashboardStarlinkGraphAvgLatencyHistory:vi(m),interval:(e[1]?.[_o.TIMESTAMP]||0)-(e[0]?.[_o.TIMESTAMP]||0),highestRxTxRateBps:t,highestRxRateBps:a,highestTxRateBps:n,highestYAxisObstructions:l,highestYAxisPacketLoss:r,highestYAxisLatency:i}},[p,R]),x=(0,a.useMemo)(()=>y<90?100:100*Math.ceil((y+1)/100),[y]),W=(0,a.useMemo)(()=>g<140?140:100*Math.ceil((g+1)/100),[g]),H=(0,a.useMemo)(()=>z<90?100:100*Math.ceil((z+1)/100),[z]),{yAxisMap:w,yAxisMax:U}=(0,a.useMemo)(()=>O||S?{yAxisMap:gs(l,d),yAxisMax:Math.max(x,W)}:I?{yAxisMap:xs(d),yAxisMax:H}:{yAxisMap:Ws,yAxisMax:100},[l,H,I,O,S,d,x,W]),k=(0,a.useMemo)(()=>(0,fi.Y)(U,Gi,!0).map(w),[U,w]),G=Bi(N,_,Object.keys(E).length?E:s),{unit:V,power:X,bytes:Z}=(0,a.useMemo)(()=>(0,Mi.cS)({[go.O.INTERNET_ACTIVITY]:Math.max(v,Vi),[go.O.DOWNLOAD]:Math.max(L,Vi),[go.O.UPLOAD]:Math.max(h,Vi)}[c],"bitrate","SI"),[v,L,h,c]),Y=(0,a.useMemo)(()=>{return e=Z>Vi?Math.ceil(Z+.1*Z):Z,(0,fi.Y)((0,Mi.cS)(e,"bitrate","SI",X).value<1e3?e:Z,Gi,!0).map(({value:e,label:A},t)=>{return{value:e,label:0===t?V:A&&(a=(0,Mi.cS)(+e,"bitrate","SI",X).value,(n=a.toFixed(1)).length<=4?n:Math.trunc(a))||null};var a,n});var e},[Z,V,X]),B=(0,a.useCallback)((e,A)=>e===go.G.WAN_ACTIVITY&&(c!==go.O.INTERNET_ACTIVITY||A===go.O.DOWNLOAD),[c]),F=(0,a.useCallback)(({top:t,left:n,x:l,y:o,hidden:s,custom:E={}},d,T)=>(B(d,T)&&(i.current={value:o,left:n,top:t}),a.createElement(js,{starlinkWanGraphState:c,averageDownloadBps:E[_o.AVG_RX_RATE_BPS]||0,averageUploadBps:E[_o.AVG_TX_RATE_BPS]||0,avgObstruction:E[zs.eX.AVG_OBSTRUCTION],avgLatency:E[zs.eX.AVG_POP_PING_LATENCY_MS],avgPacketLoss:E[_o.AVG_PACKET_LOSS_PCT],top:t,left:n,chartWidth:e,chartHeight:A,hidden:s,innerColor:xo(d,T,r),timestamp:l,interval:b,tooltipProps:i.current,tooltipRenderCondition:B(d,T),graphTooltipDateIntlDateTimeFormat:u,dashboardStarlinkGraphObstructions:O,dashboardStarlinkGraphAvgLatency:S,dashboardStarlinkGraphPacketLoss:I,hasDashboardIspMetricsByIspIdHistory:m})),[B,i,A,e,r,b,u,c,O,S,I,m]),j=(0,a.useCallback)(({maxY:e,yAxisMax:A,yAxisMin:n,y2AxisMax:l,y2AxisMin:r,mouseData:i,getCoordinates:o,chartHovered:s})=>a.createElement(a.Fragment,{key:c},qs.includes(c)?a.createElement(Ks,{starlinkGraphChartState:go.G.WAN_ACTIVITY,starlinkWanGraphState:go.O.DOWNLOAD,timeSeriesData:Li(C),maxY:e,yAxisMax:A,yAxisMin:n,y2AxisMax:l,y2AxisMin:r,mouseData:i,tooltipRef:t,getCoordinates:o,chartHovered:s,renderTooltip:F}):null,Js.includes(c)?a.createElement(Ks,{starlinkGraphChartState:go.G.WAN_ACTIVITY,starlinkWanGraphState:go.O.UPLOAD,timeSeriesData:Li(M),maxY:e,yAxisMax:A,yAxisMin:n,y2AxisMax:l,y2AxisMin:r,mouseData:i,tooltipRef:t,getCoordinates:o,chartHovered:s,renderTooltip:F}):null),[c,C,M,t,F]),K=(0,a.useCallback)(({maxY:e,yAxisMax:A,yAxisMin:n,y2AxisMax:l,y2AxisMin:r,mouseData:i,getCoordinates:o,chartHovered:s})=>O?a.createElement(a.Fragment,{key:go.G.OBSTRUCTIONS},a.createElement(Ks,{starlinkGraphChartState:go.G.OBSTRUCTIONS,timeSeriesData:Li(P),maxY:e,yAxisMax:A,yAxisMin:n,y2AxisMax:l,y2AxisMin:r,mouseData:i,tooltipRef:t,getCoordinates:o,chartHovered:s,renderTooltip:F})):null,[P,t,O,F]),q=(0,a.useCallback)(({maxY:e,yAxisMax:A,yAxisMin:n,y2AxisMax:l,y2AxisMin:r,mouseData:i,getCoordinates:o,chartHovered:s})=>S?a.createElement(a.Fragment,{key:go.G.AVG_LATENCY},a.createElement(Ks,{starlinkGraphChartState:go.G.AVG_LATENCY,timeSeriesData:Li(f),maxY:e,yAxisMax:A,yAxisMin:n,y2AxisMax:l,y2AxisMin:r,mouseData:i,tooltipRef:t,getCoordinates:o,chartHovered:s,renderTooltip:F})):null,[f,t,S,F]),J=(0,a.useCallback)(({maxY:e,yAxisMax:A,yAxisMin:n,y2AxisMax:l,y2AxisMin:r,mouseData:i,getCoordinates:o,chartHovered:s})=>I?a.createElement(a.Fragment,{key:go.G.PACKET_LOSS},a.createElement(Ks,{starlinkGraphChartState:go.G.PACKET_LOSS,timeSeriesData:Li(D),maxY:e,yAxisMax:A,yAxisMin:n,y2AxisMax:l,y2AxisMin:r,mouseData:i,tooltipRef:t,getCoordinates:o,chartHovered:s,renderTooltip:F})):null,[D,t,I,F]),Q=(0,a.useCallback)((e,A,t,n,l,r,i,o,s,c)=>a.createElement(a.Fragment,{key:gr.wp.WAN},j({maxY:t,yAxisMax:r,yAxisMin:i,y2AxisMax:o,y2AxisMin:s,mouseData:A,getCoordinates:e,chartHovered:c}),K({maxY:t,yAxisMax:r,yAxisMin:i,y2AxisMax:o,y2AxisMin:s,mouseData:A,getCoordinates:e,chartHovered:c}),q({maxY:t,yAxisMax:r,yAxisMin:i,y2AxisMax:o,y2AxisMin:s,mouseData:A,getCoordinates:e,chartHovered:c}),J({maxY:t,yAxisMax:r,yAxisMin:i,y2AxisMax:o,y2AxisMin:s,mouseData:A,getCoordinates:e,chartHovered:c})),[j,K,J,q]);return a.createElement(Ls,{...wr.A.addDataTestId(wr.A.TestId.DASHBOARD_WAN_GRAPH)},a.createElement(Pi.A,{yAxis:k,xAxis:G,y2Axis:Y,width:e,height:Fi(A)},Q),a.createElement("div",{ref:t}))}),ac=(0,a.memo)(({width:e,height:A})=>{switch((0,n.useSelector)(Rs)){case Is.STARLINK:return a.createElement(tc,{width:e,height:A});case Is.DEFAULT:return a.createElement(hs,{width:e,height:A});default:return null}});var nc,lc,rc;!function(e){e.HISTORY="history",e.SUMMARY="summary",e.NO_STATS_REASON="no_stats_reason"}(nc||(nc={})),function(e){e.TIMESTAMP="timestamp",e.ALLOWED="allowed",e.BLOCKED="blocked"}(lc||(lc={})),function(e){e.ALLOWED="allowed",e.BLOCKED="blocked"}(rc||(rc={}));const ic=(0,C.Mz)(D.e6,e=>e[ce.ZJ.TRAFFIC_FLOW_STATS]||(0,M.A)()),oc=(0,C.Mz)(ic,e=>e[nc.HISTORY]||(0,P.A)()),sc=(0,C.Mz)(ic,e=>e[nc.SUMMARY]||(0,M.A)()),cc=(0,C.Mz)(ic,e=>e[nc.NO_STATS_REASON]);var Ec;!function(e){e.ALLOWED_COUNT="allowedCount",e.BLOCKED_COUNT="blockedCount",e.TRAFFIC_FLOW_STATS_HISTORY="trafficFlowStatsHistory"}(Ec||(Ec={}));const mc=(0,us.WY)()((0,C.Mz)(sc,oc,(e,A)=>({[Ec.ALLOWED_COUNT]:(e[rc.ALLOWED]||(0,P.A)()).reduce((e,A)=>e+A,0),[Ec.BLOCKED_COUNT]:(e[rc.BLOCKED]||(0,P.A)()).reduce((e,A)=>e+A,0),[Ec.TRAFFIC_FLOW_STATS_HISTORY]:A})),e=>e);var dc=t(112142);const uc=(0,h.A)(y.A)`
  width: 100%;
  flex-direction: column;
  gap: ${Te.YC};
`,Tc=(0,h.A)(y.A)`
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
`,Oc=({timestamp:e,interval:A,allowed:t,blocked:n,dashboardFlowsAllowedGraph:l,dashboardFlowsBlockedGraph:r})=>{const i=(0,a.useContext)(Il),o=i[Tl.GRAPH_TOOLTIP_DATE_INTL_DATE_TIME_FORMAT],s=i[Tl.GRAPH_TOOLTIP_INTL_NUMBER_FORMAT];return a.createElement(uc,null,a.createElement(Tc,{gap:Te.Ln},a.createElement(c.A,{size:"small",color:"text-2"},o.format(e)," - ",o.format(e+A))),l?a.createElement(a.Fragment,null,a.createElement(Tc,null,a.createElement(Tc,{gap:Te.YC},a.createElement(jo,{width:8,height:2}),a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_ALLOWED"}))),a.createElement(c.A,{size:"small",color:"text-2"},s.format(t)))):null,r?a.createElement(a.Fragment,null,a.createElement(Tc,null,a.createElement(Tc,{gap:Te.YC},a.createElement(Ko,{width:8,height:2}),a.createElement(c.A,{size:"small",color:"text-1"},a.createElement(T.sA,{id:"COMMON_BLOCKED"}))),a.createElement(c.A,{size:"small",color:"text-2"},s.format(n)))):null)},Ic=({y:e,x:A,left:t,top:n,hidden:l,flowsGraphRenderTooltipStateCustom:r,flowsGraphHistoryInterval:i,dashboardFlowsGraphAllowed:o,dashboardFlowsGraphBlocked:s})=>a.createElement(dc.A,{left:t,top:n,width:258,description:!l&&Boolean(e)?a.createElement(Oc,{timestamp:A,interval:i,dashboardFlowsAllowedGraph:o,dashboardFlowsBlockedGraph:s,allowed:r?.[Po.ALLOWED],blocked:r?.[Po.BLOCKED]}):void 0,hidden:l||!e}),Sc=(0,h.A)(y.A)`
  width: 100%;
  height: 100%;
`,Nc=(0,a.memo)(({width:e,height:A})=>{const{themeName:t}=(0,Ft.u)(),l=(0,n.useSelector)(mc)[Ec.TRAFFIC_FLOW_STATS_HISTORY],r=(0,n.useSelector)(cc),i=(0,n.useSelector)(qA.Ej),o=(0,n.useSelector)(qA._w),s=(0,n.useSelector)(qA.CM),c=o||!o&&!s,E=s||!o&&!s,m=(0,a.useCallback)(e=>{const A=e[lc.ALLOWED].reduce((e,A)=>e+A,0),t=e[lc.BLOCKED].reduce((e,A)=>e+A,0);return{[Po.ALLOWED]:A,[Po.BLOCKED]:t}},[]),d=(0,a.useContext)(Il),u=d[Tl.GRAPH_AXIS_INTL_NUMBER_FORMAT],T=d[Tl.GRAPH_AXIS_INTL_DATE_TIME_FORMAT],O=i[Lr.VF.PRESET],I=vi(l),{highestFlowCount:S,flowsGraphHistoryInterval:N,encodedDashboardFlowsGraphHistory:_}=(0,a.useMemo)(()=>{const e=Li(I),A=[],a=[],n=(e[1]?.[lc.TIMESTAMP]||0)-(e[0]?.[lc.TIMESTAMP]||0),l=e[0]?.[lc.TIMESTAMP]||0,r=((e[e.length-1]?.[lc.TIMESTAMP]||0)-l)/(Zi[O]-1)/Yi[O];let i=0,d=0,u=0;const T=e.length;for(let n=0;n<T;n+=1){const o=e[n],s=o[lc.ALLOWED].reduce((e,A)=>e+A,0);s>i&&(i=s);const c=o[lc.BLOCKED].reduce((e,A)=>e+A,0);c>d&&(d=c),s+c>u&&(u=s+c);const E=m(o),T=ji(O).find(e=>{return A=o[lc.TIMESTAMP],t=l+r*(e+1),A>=l+r*e&&A<=t;var A,t});T>=0&&(A[T]||(A[T]=[]),A[T].push({x:l+r*T,y:1,...E,color:ns[gr.wp.FLOWS][gr.mV.ALLOWED][t]}),a[T]||(a[T]=[]),a[T].push({x:l+r*T,y:1,...E,color:ns[gr.wp.FLOWS][gr.mV.BLOCKED][t]}))}const S=o?e.map(e=>({x:e[lc.TIMESTAMP],y:e[lc.ALLOWED].reduce((e,A)=>e+A),color:ns[gr.wp.FLOWS][gr.mV.ALLOWED][t],...m(e)})).filter(({x:A})=>A+n<=e[e.length-1]?.[lc.TIMESTAMP]):[],N=s?e.map(e=>({x:e[lc.TIMESTAMP],y:e[lc.BLOCKED].reduce((e,A)=>e+A),color:ns[gr.wp.FLOWS][gr.mV.BLOCKED][t],...m(e)})).filter(({x:A})=>A+n<=e[e.length-1]?.[lc.TIMESTAMP]):[],_=[],p=S.length,R=N.length;for(let e=0;e<Math.max(p,R);e+=1){const A=S[e]||{},t=N[e]||{},a=A.y||0,n=t.y||0,l=(o?a:0)+(s?n:0),r=a/l;_.push({...Object.keys(A).length?A:Object.keys(t).length?t:{},x:A.x||t.x,y:l,color:[[A.color,0],[A.color,r],[t.color,r],[t.color,1]]})}return{encodedDashboardFlowsGraphHistory:vi(_),highestFlowCount:c&&E?u:Math.max(c?i:0,E?d:0),flowsGraphHistoryInterval:n}},[I,c,E,O,t,o,s,m]),p=(0,a.useMemo)(()=>S<80?100:100*Math.ceil((S+1)/100),[S]),R=(0,a.useMemo)(()=>(0,fi.Y)(p+.1*p,Gi,!0).map((e=>({value:A,label:t})=>({value:A,label:t&&e.format(+A)||null}))(u)),[p,u]),C=Bi(O,T,l),M=(0,a.useCallback)(({hidden:e,left:A,top:t,x:n,y:l},r)=>a.createElement(Ic,{y:l,x:n,left:A,top:t,hidden:e,flowsGraphRenderTooltipStateCustom:r,flowsGraphHistoryInterval:N,dashboardFlowsGraphAllowed:o,dashboardFlowsGraphBlocked:s}),[o,s,N]),P=(0,a.useCallback)(({getCoordinates:e,size:{width:A,height:t}})=>a.createElement(Di.A,{continuous:!0,data:Li(_),getCoordinates:e,width:A,height:t,variant:"stacked",renderTooltip:M,barFullWidth:!0,hideStroke:!0}),[_,M]),D=(0,a.useCallback)((e,A,t,n,l,r,i,o,s,c)=>a.createElement(a.Fragment,{key:gr.wp.FLOWS},P({getCoordinates:e,size:l})),[P]);return a.createElement(Sc,{...wr.A.addDataTestId(wr.A.TestId.DASHBOARD_FLOWS_GRAPH)},a.createElement(oo,{chartWidth:e,aggregatedDashboardNoStatsReason:r}),a.createElement(Pi.A,{yAxis:R,xAxis:C,width:e,height:Fi(A)},D))}),_c=[wr.A.TestId.DASHBOARD_WAN_GRAPH,wr.A.TestId.DASHBOARD_WIFI_GRAPH,wr.A.TestId.DASHBOARD_FLOWS_GRAPH],pc=e=>`${e.map(e=>`[${he.L}="${e}"]`).join(", ")} { visibility: hidden; }`,Rc=(0,h.A)(y.A,{shouldForwardProp:e=>"dashboardGraphTab"!==e})`
  width: calc(100% - ${Te.kc});
  height: 100%;
  position: relative;
  left: -${Te.S2};
  > div:not(:last-child) {
    position: absolute;
  }
  ${({dashboardGraphTab:e})=>(e=>{switch(e){case gr.wp.WAN:return pc(_c.filter(e=>e!==wr.A.TestId.DASHBOARD_WAN_GRAPH));case gr.wp.WIFI:return pc(_c.filter(e=>e!==wr.A.TestId.DASHBOARD_WIFI_GRAPH));case gr.wp.FLOWS:return pc(_c.filter(e=>e!==wr.A.TestId.DASHBOARD_FLOWS_GRAPH));default:return null}})(e)}
`,Cc=(0,a.memo)(({dashboardGraphTab:e})=>{const{ref:A,width:t=0}=(0,s.A)(),n=(0,a.useContext)(_.A)[N.V.HEIGHT],l=(0,a.useMemo)(()=>Math.round(n/2.75),[n]);return a.createElement(Rc,{dashboardGraphTab:e,ref:A},a.createElement(gt.A,{dashboardWidget:o.Z.WAN_ACTIVITY},a.createElement(ac,{width:t,height:l})),a.createElement(gt.A,{dashboardWidget:o.Z.WIFI_ACTIVITY},a.createElement(ss,{width:t,height:l})),a.createElement(gt.A,{dashboardWidget:o.Z.TRAFFIC_FLOW_STATS},a.createElement(Nc,{width:t,height:l})))});var Mc=t(362412),Pc=t(310067),Dc=t(314714);const fc=(0,a.memo)(()=>{const e=(0,n.useSelector)(mc),A=(0,n.useSelector)(Wt.zi),t=(0,a.useMemo)(()=>new Intl.NumberFormat(A,{notation:"standard"}),[A]);return a.createElement(a.Fragment,{key:Wo.FLOWS_BLOCKED},t.format(e[Ec.BLOCKED_COUNT]))}),bc=(0,a.memo)(()=>{const e=(0,n.useSelector)(mc),A=(0,n.useSelector)(Wt.zi),t=(0,a.useMemo)(()=>new Intl.NumberFormat(A,{notation:"standard"}),[A]);return a.createElement(a.Fragment,{key:Wo.FLOWS_ALLOWED},t.format(e[Ec.ALLOWED_COUNT]))}),vc={[Wo.WAN_AVG_LATENCY]:{[wo.LABEL]:"DASHBOARD_ISP_AVG_LAT",[wo.LEGEND]:a.createElement(Vo,null,a.createElement(ko,null),a.createElement(ko,null)),[wo.DESCRIPTION]:void 0,[wo.TOOLTIP]:void 0,[wo.DISABLED_TOOLTIP]:void 0},[Wo.WAN_PACKET_LOSS]:{[wo.LABEL]:"DASHBOARD_PACKET_LOSS",[wo.LEGEND]:a.createElement(Vo,null,a.createElement(Go,null),a.createElement(Go,null)),[wo.DESCRIPTION]:void 0,[wo.TOOLTIP]:void 0,[wo.DISABLED_TOOLTIP]:void 0},[Wo.WAN_CLIENTS]:{[wo.LABEL]:"DASHBOARD_CONNECTIONS",[wo.LEGEND]:a.createElement(Fo,null),[wo.DESCRIPTION]:void 0,[wo.TOOLTIP]:a.createElement(T.sA,{id:"DASHBOARD_NON_NETWORK_DEVICES_AND_CLIENTS"}),[wo.DISABLED_TOOLTIP]:a.createElement(T.sA,{id:"DASHBOARD_DISABLED_CONNECTIONS_TOOLTIP"})},[Wo.STARLINK_OBSTRUCTIONS]:{[wo.LABEL]:"DASHBOARD_OBSTRUCTIONS",[wo.LEGEND]:a.createElement(Zo,null),[wo.DESCRIPTION]:void 0,[wo.TOOLTIP]:void 0,[wo.DISABLED_TOOLTIP]:void 0},[Wo.STARLINK_PACKET_LOSS]:{[wo.LABEL]:"DASHBOARD_PACKET_LOSS",[wo.LEGEND]:a.createElement(Vo,null,a.createElement(Yo,null),a.createElement(Yo,null)),[wo.DESCRIPTION]:void 0,[wo.TOOLTIP]:void 0,[wo.DISABLED_TOOLTIP]:void 0},[Wo.STARLINK_AVG_LATENCY]:{[wo.LABEL]:"DASHBOARD_ISP_AVG_LAT",[wo.LEGEND]:a.createElement(Vo,null,a.createElement(Bo,null),a.createElement(Bo,null)),[wo.DESCRIPTION]:void 0,[wo.TOOLTIP]:void 0,[wo.DISABLED_TOOLTIP]:void 0},[Wo.WIFI_TX_RETRIES]:{[wo.LABEL]:"COMMON_TX_RETRIES",[wo.LEGEND]:a.createElement(Vo,null,a.createElement(Xo,null),a.createElement(Xo,null)),[wo.DESCRIPTION]:void 0,[wo.TOOLTIP]:void 0,[wo.DISABLED_TOOLTIP]:void 0},[Wo.WIFI_CLIENTS]:{[wo.LABEL]:"COMMON_WIFI_CLIENTS",[wo.LEGEND]:a.createElement(Fo,null),[wo.DESCRIPTION]:void 0,[wo.TOOLTIP]:void 0,[wo.DISABLED_TOOLTIP]:void 0},[Wo.FLOWS_ALLOWED]:{[wo.LABEL]:"COMMON_ALLOWED",[wo.LEGEND]:a.createElement(jo,null),[wo.DESCRIPTION]:a.createElement(bc,null),[wo.TOOLTIP]:void 0,[wo.DISABLED_TOOLTIP]:void 0},[Wo.FLOWS_BLOCKED]:{[wo.LABEL]:"COMMON_BLOCKED",[wo.LEGEND]:a.createElement(Ko,null),[wo.DESCRIPTION]:a.createElement(fc,null),[wo.TOOLTIP]:void 0,[wo.DISABLED_TOOLTIP]:void 0}},Lc=(0,a.memo)(({graphActionToggleId:e,checked:A,onClick:t,disabled:n=!1})=>{const l=(0,a.useMemo)(()=>vc[e],[e]);return a.createElement(Bt.A,{description:n?l[wo.DISABLED_TOOLTIP]:l[wo.TOOLTIP]},a.createElement(Uo,{onClick:n?m.P1:t,disabled:n},a.createElement(Dc.A,{id:e,checked:!n&&A,onChange:m.P1,disabled:n}),l[wo.LEGEND],a.createElement(c.A,{color:"text-1",size:"medium"},a.createElement(T.sA,{id:l[wo.LABEL]})),l[wo.DESCRIPTION]?a.createElement(c.A,{color:"text-3",size:"medium"},l[wo.DESCRIPTION]):null))}),hc=[{id:gr.wp.WAN,label:a.createElement(T.sA,{id:"COMMON_INTERNET"})},{id:gr.wp.WIFI,label:a.createElement(T.sA,{id:"COMMON_WIFI"})},{id:gr.wp.FLOWS,label:a.createElement(T.sA,{id:"COMMON_FLOWS"})}],yc=(0,C.Mz)(Hi,qA.BI,Wi,(e,A,t)=>A===JA.Zv?e:t[A]?.[yi.RX_BYTES]||0),zc=(0,C.Mz)(wi,qA.BI,Wi,(e,A,t)=>A===JA.Zv?e:t[A]?.[yi.TX_BYTES]||0),gc=(0,h.A)(y.A)`
  align-items: center;
  gap: ${Te.kc};
`,xc=(0,a.memo)(()=>{const{formatMessage:e}=(0,T.tz)(),A=(0,n.useDispatch)(),t=(0,n.useSelector)(yc),l=(0,n.useSelector)(zc),r=(0,n.useSelector)(qA.df),i=(0,n.useSelector)(qA.g8),o=(0,n.useSelector)(qA.C4),s=(0,a.useCallback)(({value:e})=>{A((0,QA.lW)(e))},[A]),c=(0,a.useMemo)(()=>[{value:mo.f.INTERNET_ACTIVITY,image:a.createElement(Pc.A,null),label:e({id:"COMMON_INTERNET_ACTIVITY"}),additionalInfo:(0,G.FI)(t+l)},{value:mo.f.DOWNLOAD,image:a.createElement(Eo.A,null),label:e({id:"COMMON_DOWNLOAD"}),additionalInfo:(0,G.FI)(t)},{value:mo.f.UPLOAD,image:a.createElement(co.A,null),label:e({id:"COMMON_UPLOAD"}),additionalInfo:(0,G.FI)(l)}],[e,t,l]),E=(0,a.useCallback)(()=>{A((0,QA.kz)(!i))},[i,A]),m=(0,a.useCallback)(()=>{A((0,QA.kg)(!o))},[o,A]);return a.createElement(gc,null,a.createElement(Mc.A,{width:236,options:c,variant:"secondary",optionsWidth:"contentWidth",value:r,onChange:s,portal:!0}),a.createElement(Lc,{graphActionToggleId:Wo.WIFI_TX_RETRIES,checked:o,onClick:m}),a.createElement(Lc,{graphActionToggleId:Wo.WIFI_CLIENTS,checked:i,onClick:E}))});var Wc=t(789768);const Hc=(0,h.A)(y.A)`
  align-items: center;
  gap: ${Te.kc};
`,wc=((0,h.A)(y.A)`
  flex-direction: column;
  gap: 1px;
`,(0,a.memo)(()=>{const e=(0,n.useDispatch)(),{formatMessage:A}=(0,T.tz)(),t=(0,n.useSelector)(yr.WQ)[cs.X4.WAN_GRAPH_CLIENTS],l=(0,n.useSelector)(qA.Uj),r=(0,n.useSelector)(qA.FX),i=(0,n.useSelector)(qA.q9),o=(0,n.useSelector)(qA.nc),s=(0,n.useSelector)(_s),c=(0,a.useMemo)(()=>[{value:Do.y.INTERNET_ACTIVITY,image:a.createElement(Pc.A,null),label:A({id:"COMMON_INTERNET_ACTIVITY"}),additionalInfo:(0,G.FI)((s[No.RX_BYTES]||0)+(s[No.TX_BYTES]||0))},{value:Do.y.DOWNLOAD,image:a.createElement(Eo.A,null),label:A({id:"COMMON_DOWNLOAD"}),additionalInfo:(0,G.FI)(s[No.RX_BYTES]||0)},{value:Do.y.UPLOAD,image:a.createElement(co.A,null),label:A({id:"COMMON_UPLOAD"}),additionalInfo:(0,G.FI)(s[No.TX_BYTES]||0)}],[A,s]),E=(0,a.useCallback)(({value:A})=>{e((0,QA.wf)(A))},[e]),m=(0,a.useCallback)(()=>{e((0,QA.PV)(!r))},[r,e]),d=(0,a.useCallback)(()=>{e((0,QA.UF)(!i))},[i,e]),u=(0,a.useCallback)(()=>{e((0,Wc.TW)({[cs.X4.WAN_GRAPH_CLIENTS]:!t}))},[t,e]);return a.createElement(Hc,null,a.createElement(Mc.A,{width:236,options:c,variant:"secondary",optionsWidth:"contentWidth",value:l,onChange:E,portal:!0}),a.createElement(Lc,{graphActionToggleId:Wo.WAN_AVG_LATENCY,checked:r,onClick:m}),a.createElement(Lc,{graphActionToggleId:Wo.WAN_PACKET_LOSS,checked:i,onClick:d}),a.createElement(Lc,{graphActionToggleId:Wo.WAN_CLIENTS,checked:t,onClick:u,disabled:o!==JA.Je}))})),Uc=(0,h.A)(y.A)`
  align-items: center;
  gap: ${Te.kc};
`,kc=(0,a.memo)(()=>{const{formatMessage:e}=(0,T.tz)(),A=(0,n.useDispatch)(),t=(0,n.useSelector)(qA.Sp),l=(0,n.useSelector)(_s),r=(0,n.useSelector)(Ac),i=(0,n.useSelector)((0,a.useMemo)(()=>(0,ys.Eq)(r),[r])),o=(0,n.useSelector)(qA.MI),s=(0,n.useSelector)(qA.Zp),c=(0,n.useSelector)(qA.US),E=(0,a.useMemo)(()=>[{value:go.O.INTERNET_ACTIVITY,image:a.createElement(Pc.A,null),label:e({id:"COMMON_INTERNET_ACTIVITY"}),additionalInfo:(0,G.FI)((l[No.RX_BYTES]||0)+(l[No.TX_BYTES]||0))},{value:go.O.DOWNLOAD,image:a.createElement(Eo.A,null),label:e({id:"COMMON_DOWNLOAD"}),additionalInfo:(0,G.FI)(l[No.RX_BYTES]||0)},{value:go.O.UPLOAD,image:a.createElement(co.A,null),label:e({id:"COMMON_UPLOAD"}),additionalInfo:(0,G.FI)(l[No.TX_BYTES]||0)}],[e,l]),m=(0,a.useCallback)(({value:e})=>{A((0,QA.aq)(e))},[A]),d=(0,a.useCallback)(()=>{A((0,QA.eO)(!o))},[o,A]),u=(0,a.useCallback)(()=>{A((0,QA.fx)(!s))},[s,A]),O=(0,a.useCallback)(()=>{A((0,QA.kh)(!c))},[c,A]);return a.createElement(Uc,null,a.createElement(Mc.A,{width:236,options:E,variant:"secondary",optionsWidth:"contentWidth",value:t,onChange:m,portal:!0}),i?a.createElement(Lc,{graphActionToggleId:Wo.STARLINK_OBSTRUCTIONS,checked:o,onClick:d}):null,a.createElement(Lc,{graphActionToggleId:Wo.STARLINK_AVG_LATENCY,checked:s,onClick:u}),a.createElement(Lc,{graphActionToggleId:Wo.STARLINK_PACKET_LOSS,checked:c,onClick:O}))}),Gc=(0,a.memo)(()=>{switch((0,n.useSelector)(Rs)){case Is.STARLINK:return a.createElement(kc,null);case Is.DEFAULT:return a.createElement(wc,null);default:return null}}),Vc=(0,h.A)(y.A)`
  align-items: center;
  gap: ${Te.kc};
`,Xc=(0,a.memo)(()=>{const e=(0,n.useDispatch)(),A=(0,n.useSelector)(qA._w),t=(0,n.useSelector)(qA.CM),l=(0,a.useCallback)(()=>{e((0,QA.xP)(!A))},[e,A]),r=(0,a.useCallback)(()=>{e((0,QA.OV)(!t))},[e,t]);return a.createElement(Vc,null,a.createElement(Lc,{graphActionToggleId:Wo.FLOWS_ALLOWED,checked:A,onClick:l}),a.createElement(Lc,{graphActionToggleId:Wo.FLOWS_BLOCKED,checked:t,onClick:r}))}),Zc={[gr.wp.WAN]:Gc,[gr.wp.WIFI]:xc,[gr.wp.FLOWS]:Xc},Yc=(0,a.memo)(({dashboardGraphTab:e})=>{const A=(0,a.useMemo)(()=>Zc[e],[e]);return a.createElement(A,null)});var Bc=t(842916);const Fc=(0,h.A)(y.A)`
  align-items: center;
  gap: ${Te.kc};
`,jc=(0,a.memo)(()=>{const e=(0,n.useDispatch)(),{formatMessage:A}=(0,T.tz)(),t=(0,n.useSelector)(qA.BI),l=(0,n.useSelector)(Wi),r=(0,a.useMemo)(()=>[{value:JA.Zv,label:A({id:"COMMON_ALL_RADIOS"})},...Object.keys(l).map(e=>({value:e,label:A({id:Bc.U[e]})})).sort((e,A)=>e.label.localeCompare(A.label))],[A,l]),i=(0,a.useCallback)(({value:A})=>{e((0,QA.hr)(A))},[e]);return r.length>1?a.createElement(Fc,null,a.createElement(Mc.A,{options:r,width:160,optionsWidth:"contentWidth",variant:"secondary",value:t,onChange:i,portal:!0})):null});var Kc=t(594827);const qc=e=>e[Ro.ISP_ASN]?.[0],Jc=e=>e[Ro.ISP_NAME]?.[0],Qc=(e,A)=>e[Ro.ISP_NAME]?`${e[Ro.ISP_NAME]} (${(0,Kc.qY)(e[Ro.NAME],A)})`:(0,Kc.qY)(e[Ro.NAME],A),$c=(0,h.A)(y.A)`
  width: 100%;
`,eE=(0,a.memo)(()=>{const e=(0,n.useDispatch)(),{formatMessage:A}=(0,T.tz)(),t=(0,a.useRef)(!1),{[cs.X4.WAN_GRAPH_WAN]:l}=(0,n.useSelector)(yr.WQ),r=(0,n.useSelector)(qA.nc),i=(0,n.useSelector)(ms),o=(0,a.useMemo)(()=>[{value:JA.Je,label:A({id:"COMMON_ALL_WANS"})},...i.map(e=>({value:e[Ro.NAME],label:Qc(e,A),image:a.createElement(Wr.A,{ispAsn:qc(e),ispName:Jc(e)})}))],[A,i]),s=(0,a.useCallback)(({value:A})=>{e((0,QA.TQ)(A)),e((0,Wc.TW)({[cs.X4.WAN_GRAPH_WAN]:A}))},[e]);return(0,a.useEffect)(()=>{!t.current&&l&&r&&l!==r&&i.some(e=>e[Ro.NAME]===l)&&e((0,QA.TQ)(l)),t.current=!0},[l,r,i,e]),a.createElement($c,null,a.createElement(Mc.A,{options:o,width:236,optionsWidth:"contentWidth",variant:"secondary",value:r,onChange:s,portal:!0}))}),AE=()=>null,tE={[gr.wp.WAN]:eE,[gr.wp.WIFI]:jc,[gr.wp.FLOWS]:AE},aE=(0,a.memo)(({dashboardGraphTab:e})=>{const A=(0,a.useMemo)(()=>tE[e],[e]);return a.createElement(A,null)});var nE=t(664967),lE=t(584916);const rE=[{id:lE.l.ONE_HOUR,label:a.createElement(T.sA,{id:"COMMON_DATE_RANGE_SHORT_1H"})},{id:lE.l.ONE_DAY,label:a.createElement(T.sA,{id:"COMMON_DATE_RANGE_SHORT_1D"})},{id:lE.l.ONE_WEEK,label:a.createElement(T.sA,{id:"COMMON_DATE_RANGE_SHORT_1W"})},{id:lE.l.ONE_MONTH,label:a.createElement(T.sA,{id:"COMMON_DATE_RANGE_SHORT_1M"})}],iE=(0,h.A)(y.A)`
  width: auto;
`,oE=(0,a.memo)(()=>{const e=(0,n.useDispatch)(),A=(0,n.useSelector)(qA.Ej),t=(0,a.useCallback)(({id:A})=>{e((0,QA.Q)({...nE.E[A].getRange(new Date),preset:A}))},[e]);return a.createElement(iE,null,a.createElement(pi.A,{tabs:rE,selectedTab:A[Lr.VF.PRESET],onSelectTab:t,variant:"filter"}))}),sE=(0,h.A)(y.A)`
  width: 100%;
  height: initial;
  flex-direction: column;
`,cE=(0,h.A)(y.A)`
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: ${Te.kc};
  overflow: auto;
  @media ${xe.A.DASHBOARD.LAYOUT.MOBILE} {
    flex-wrap: wrap;
  }
`,EE=(0,h.A)(y.A)`
  gap: ${Te.kc};
  align-items: center;
  @media ${xe.A.DASHBOARD.LAYOUT.MOBILE} {
    flex-wrap: wrap;
  }
`,mE=(0,a.memo)(()=>{const e=(0,n.useDispatch)(),A=(0,a.useRef)(!1),t=(0,n.useSelector)(qA.oV),{[Lr.VF.PRESET]:r}=(0,n.useSelector)(qA.Ej),s=(0,n.useSelector)(yr.jc),c=(0,n.useSelector)(yr.BQ),E=(0,n.useSelector)(hr.hq),m=(0,n.useSelector)(Wt.zi),d=(0,n.useSelector)((0,a.useMemo)(()=>(0,i.k2)([o.Z.WAN_ACTIVITY]),[])),u=(0,n.useSelector)((0,a.useMemo)(()=>(0,i.k2)([o.Z.WIFI_ACTIVITY]),[])),T=(0,n.useSelector)((0,a.useMemo)(()=>(0,i.k2)([o.Z.TRAFFIC_FLOW_STATS]),[])),O=(0,a.useMemo)(()=>hc.filter(({id:e})=>{switch(e){case gr.wp.WAN:return d;case gr.wp.WIFI:return u;case gr.wp.FLOWS:return T;default:return!1}}),[d,u,T]),I=(0,a.useMemo)(()=>({[Tl.GRAPH_TOOLTIP_INTL_NUMBER_FORMAT]:new Intl.NumberFormat(m,{notation:"standard"}),[Tl.GRAPH_AXIS_INTL_NUMBER_FORMAT]:new Intl.NumberFormat(m,{notation:"compact"}),[Tl.GRAPH_AXIS_INTL_DATE_TIME_FORMAT]:Si(m,r,s,c,E),[Tl.GRAPH_TOOLTIP_DATE_INTL_DATE_TIME_FORMAT]:Ni(m,c,E),[Tl.GRAPH_TOOLTIP_TIME_INTL_DATE_TIME_FORMAT]:_i(r,m,c,E)}),[r,s,m,c,E]);return(0,a.useEffect)(()=>{!A.current&&O.length&&(e((0,QA.al)(O[0].id)),A.current=!0)},[e,O]),O.length?a.createElement(Il.Provider,{value:I},a.createElement(l.cW,null,a.createElement(sE,null,a.createElement(cE,null,a.createElement(EE,null,a.createElement(Ci,{tabs:O,dashboardGraphTab:t}),a.createElement(aE,{dashboardGraphTab:t})),a.createElement(EE,null,a.createElement(Yc,{dashboardGraphTab:t}),a.createElement(oE,null))),a.createElement(Cc,{dashboardGraphTab:t}),a.createElement(gt.A,{dashboardWidget:o.Z.WAN},a.createElement(Ii,null))))):null}),dE=(0,h.A)(y.A)`
  width: 100%;
  height: fit-content;
  overflow: hidden;
  @media ${xe.A.DASHBOARD.LAYOUT.MOBILE} {
    overflow: visible;
  }
  flex-direction: column;
  gap: ${Te.xO};
`,uE=(0,a.memo)(()=>a.createElement(dE,null,a.createElement(mE,null),a.createElement(vr,null)))},606187:(e,A,t)=>{t.d(A,{fw:()=>i,GB:()=>o,q_:()=>s});var a=t(516693),n=t(691189),l=t(887831);const r="/v2/api/site/{site}/active-leases",i=(e,A={},t={})=>(0,n.Kd)("dhcpLeases",(e=>e?`${r}/${e}`:r)(e),e,A,t),o=(e={},A={})=>(0,n.t9)("vendorIds","/v2/api/site/{site}/vendor-ids",e,{idField:e=>e,...A}),s=e=>(0,n.vB)(a.aC,null,null,l.A.POST,"/v2/api/site/{site}/dhcp-import",{},e)},608935:(e,A,t)=>{t.d(A,{Rm:()=>r,fU:()=>l,uQ:()=>n});var a=t(307330);const n=e=>{const A=(A,t)=>e.indexOf(A)-e.indexOf(t);return{orderRadios:A,orderByRadio:(e,t)=>A(e.radio,t.radio)}},{orderRadios:l,orderByRadio:r}=n(a.I)},610305:(e,A,t)=>{t.d(A,{A:()=>r});var a=t(296540),n=t(568777),l=t(171443);const r=(0,a.memo)(({ispAsn:e,ispName:A})=>a.createElement(n.A,{asn:e,name:A,style:l._z,useFallback:!0}))},613870:(e,A,t)=>{t.d(A,{A:()=>n});var a=t(296540);const n=({strength:e,color:A,inactiveColor:t="currentColor",width:n,height:l})=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 27 26",width:n,height:l},a.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},a.createElement("rect",{fill:e>=1?A:t,x:"0",y:"16",width:"3",height:"10"}),a.createElement("rect",{fill:e>=2?A:t,x:"6",y:"12",width:"3",height:"14"}),a.createElement("rect",{fill:e>=3?A:t,x:"12",y:"8",width:"3",height:"18"}),a.createElement("rect",{fill:e>=4?A:t,x:"18",y:"4",width:"3",height:"22"}),a.createElement("rect",{fill:e>=5?A:t,x:"24",y:"0",width:"3",height:"26"})))},616009:(e,A,t)=>{var a;t.d(A,{h:()=>a}),function(e){e.CURRENT_SITE="current",e.ALL_SITES="all"}(a||(a={}))},619066:(e,A,t)=>{var a,n,l,r,i,o;t.d(A,{CF:()=>l,MZ:()=>i,cb:()=>r,oe:()=>n,y1:()=>a,zt:()=>o}),function(e){e.AP="ap",e.CLIENT="client",e.APP="app"}(a||(a={})),function(e){e.MODEL="model",e.NAME="name",e.TYPE="type"}(n||(n={})),function(e){e.AP_DETAILS="ap_details",e.MAC="mac",e.RECEIVED_BYTES="received_bytes",e.SATISFACTION="satisfaction",e.TOTAL_BYTES="total_bytes",e.TRANSMITTED_BYTES="transmitted_bytes",e.TYPE="type"}(l||(l={})),function(e){e.DISPLAY_NAME="display_name",e.FINGERPRINT="fingerprint",e.MAC="mac",e.RECEIVED_BYTES="received_bytes",e.SATISFACTION="satisfaction",e.TOTAL_BYTES="total_bytes",e.TRANSMITTED_BYTES="transmitted_bytes",e.TYPE="type"}(r||(r={})),function(e){e.APPLICATION="application",e.CATEGORY="category",e.CLIENT_COUNT="client_count",e.RECEIVED_BYTES="received_bytes",e.TOTAL_BYTES="total_bytes",e.TRANSMITTED_BYTES="transmitted_bytes",e.TYPE="type"}(i||(i={})),function(e){e.USAGE_BY="usage_by"}(o||(o={}))},628980:(e,A,t)=>{t.d(A,{D:()=>r});var a=t(592510),n=t(226776),l=t(118835);const r={[l.M.MAIN]:[],[l.M.DHCP]:[],[l.M.HOTSPOT]:[(0,n.y)(void 0,{crudCacheStrategy:{type:a.e.CACHE}})]}},633159:(e,A,t)=>{t.a(e,async(e,a)=>{try{t.d(A,{A:()=>z});var n=t(296540),l=t(340936),r=t(469733),i=t(592510),o=t(834959),s=t(413357),c=t(882390),E=t(624489),m=t(83344),d=t(855996),u=t(457311),T=t(124348),O=t(198494),I=t(415246),S=t(71177),N=t(171073),_=t(984652),p=t(918710),R=t(968906),C=t(864768),M=t(404474),P=t(720506),D=t(732063),f=t(421851),b=t(1959),v=t(88502),L=e([M]),h=L.then?(await L)():L;M=h[0];const y=()=>{(0,v.A)();const{ref:e,height:A=0}=(0,l.A)(),t=(0,r.useDispatch)(),a=(0,r.useSelector)(O.WQ),[L,h]=(0,n.useState)(a[I.X4.MINIMIZED]),y=(0,r.useSelector)(E.V);(0,n.useEffect)(()=>{C.A[C.A.NetworkSentryTransaction.networkDashboardLoad]?.finish?.(),t((0,s.Zi)(o.B.DASHBOARD)),t((0,S.m)(void 0,{crudCacheStrategy:{type:i.e.CACHE}})),t((0,u.Uc)(void 0,{crudCacheStrategy:{type:i.e.CACHE}})),t((0,T.c)(void 0,{crudCacheStrategy:{type:i.e.CACHE}})),t((0,d.o)("SETUP_COMPLETED",void 0,{crudCacheStrategy:{type:i.e.CACHE}}))},[t]);const z=(0,n.useCallback)(()=>{t((0,s.Zi)(o.B.DEVICES)),t((0,N.Uc)(void 0,{crudCacheStrategy:{type:i.e.CACHE}}))},[t]),g=(0,n.useCallback)(()=>{t((0,s.Zi)(o.B.UNIFI_DEVICES)),t((0,m.T)(void 0,{crudCacheStrategy:{type:i.e.CACHE}}))},[t]),x=(0,n.useCallback)(()=>{t((0,s.Zi)(o.B.CLIENTS)),t((0,_.$3)(void 0,{crudCacheStrategy:{type:i.e.CACHE}}))},[t]),W=(0,n.useMemo)(()=>({[D.V.HEIGHT]:A,[D.V.DASHBOARD_MINIMIZED]:L,[D.V.SET_DASHBOARD_MINIMIZED]:h,[D.V.PRELOAD_DEVICES]:z,[D.V.PRELOAD_UNIFI_DEVICES]:g,[D.V.PRELOAD_CLIENTS]:x}),[A,L,z,g,x]),H=(0,r.useSelector)((0,n.useMemo)(()=>(0,p.io)(y),[y]));return(0,c.A)(H,"dashboard"),n.createElement(b.N9,{...R.A.addDataTestId(R.A.TestId.NETWORK_DASHBOARD),dashboardMinimized:L},n.createElement(b.NI,{ref:e,dashboardMinimized:L},n.createElement(f.A.Provider,{value:W},n.createElement(P.A,null),n.createElement(M.A,null))))},z=(0,n.memo)(y);a()}catch(e){a(e)}})},640488:(e,A,t)=>{t.d(A,{A:()=>m});var a=t(956347),n=t(469733),l=t(296540),r=t(15095),i=t(296968),o=t(627440),s=t(449256),c=t(706574),E=t(57867);const m=()=>{const e=(0,n.useDispatch)(),A=(0,a.W6)(),t=(0,r.A)(`${o.VO.SYSLOG}/${i.x.MAIN}`);return(0,l.useCallback)(a=>{(0,n.batch)(()=>{e((0,E.A)()),e((0,c.ov)(!0)),e((0,c.oz)(s.fN)),a?.(e)}),A.push(t)},[e,A,t])}},646189:(e,A,t)=>{t.d(A,{A:()=>d});var a=t(469733),n=t(296540),l=t(71479),r=t(132196),i=t(801081),o=t(189601),s=t(609298);const c=r.i7`
  0% {
    opacity: 0.0;
    transform: scale(0.3);
  }
  // fadein
  20% {
    opacity: 0.8;
  }
  // grow
  70% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  // fadeout
  100% {
    opacity: 0.0;
    transform: scale(1.0);
  }
`,E=2e3,m=(0,l.A)("div",{shouldForwardProp:e=>!["size","animationName","delay"].includes(e)})`
  position: absolute;
  border-radius: 50%;
  ${({size:e,theme:{motifPalette:{uBlue03:A}},delay:t,animationName:a})=>`\n    width: ${e}px;\n    height: ${e}px;\n    background: ${A};\n    animation-delay: ${t}ms;\n    animation-name: ${a};\n  `}
  animation-duration: ${E}ms;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0, 0.3, 0.1, 0);
  z-index: -1;
  opacity: 0;
  transform: scale(0);
`,d=(0,n.memo)(({size:e,mac:A})=>(0,a.useSelector)((0,n.useMemo)(()=>(e=>(0,o.WY)()((0,i.Mz)(({models:A})=>A[s.G.SESSION_METADATA]?.byId?.[e],e=>Boolean(e)),e=>e))(A),[A]))?n.createElement(n.Fragment,null,n.createElement(m,{size:e,animationName:c,delay:-500}),n.createElement(m,{size:e,animationName:c,delay:-1500})):null)},648092:(e,A,t)=>{t.d(A,{a:()=>o,m:()=>s});var a=t(801081),n=t(386234),l=t(276907),r=t(919952),i=t(434008);const o=(0,a.Mz)(e=>e[r.U.SHARED][l.N.WEB_SOCKET],e=>e?.[i.SC.POOL]||{}),s=(0,a.Mz)(o,e=>(0,n.UI)(A=>e[A]))},656883:(e,A,t)=>{t.d(A,{n:()=>l});var a=t(458112),n=t(744742);const l=e=>(0,n.pb)({name:a.T.RADIOS,value:e})},659552:(e,A,t)=>{t.d(A,{_:()=>o});var a=t(801081),n=t(25553),l=t(87485),r=t(784465);const i=(0,n.uh)((0,r.uu)()),o=(0,a.Mz)(i,l.kh)},663740:(e,A,t)=>{t.d(A,{d:()=>n,q:()=>a});const a="DASHBOARD_PAGE_PANEL_CONTAINER_CLASSNAME",n="DASHBOARD_PAGE_PANEL_INNER_CONTAINER_CLASSNAME"},668478:(e,A,t)=>{t.d(A,{_:()=>s});var a=t(801081),n=t(25553),l=t(87485),r=t(226776);const i=(0,n.uh)((0,r.y)()),o=(0,a.Mz)(i,l.i6),s=(0,a.Mz)(o,({show_hotspot_manager:e=!1})=>e)},668995:(e,A,t)=>{t.d(A,{h:()=>a});const a=(e,A)=>(e<<16)+A},670180:(e,A,t)=>{var a;t.d(A,{H:()=>a}),function(e){e.FLOWS="flows",e.ACTIVITY="activity"}(a||(a={}))},684342:(e,A,t)=>{t.d(A,{l:()=>o,t:()=>s});var a=t(249304),n=t(803676),l=t(712232),r=t(863979);const i=(e,[A,{size:t}])=>(e[A]=t,e),o={[a.l.CLIENT]:Object.entries(r.an).reduce(i,{}),[a.l.UNIFI_DEVICE]:Object.entries(l.a).reduce(i,{}),[a.l.PORTS]:Object.entries(n.Oo).reduce(i,{})},s=[a.l.UNIFI_DEVICE_NETWORK,a.l.UNIFI_DEVICE_PROTECT,a.l.UNIFI_DEVICE_TALK,a.l.UNIFI_DEVICE_ACCESS,a.l.UNIFI_DEVICE_CONNECT,a.l.UNIFI_DEVICE_APOLLO,a.l.UNIFI_DEVICE_DRIVE,a.l.UNIFI_DEVICE_UNMANAGED]},692308:(e,A,t)=>{t.d(A,{default:()=>o});var a=t(956347),n=t(296540),l=t(15095),r=t(627440),i=t(771641);const o=()=>{const e=(0,a.W6)(),A=(0,l.A)(r.VO.CLIENTS),t=!0,o=(0,n.useCallback)(()=>{e.push(A)},[e,A]);return(0,n.useMemo)(()=>({[i.q.AVAILABLE]:t,[i.q.REDIRECT]:o}),[t,o])}},697575:(e,A,t)=>{t.d(A,{C:()=>l,GJ:()=>c,OO:()=>n,b$:()=>s,c9:()=>i,ub:()=>r,z$:()=>o});var a=t(888980);const n=[{value:a.w.ONE_TIME,label:"HOTSPOT_VOUCHER_STATUS_VALID_ONE"},{value:a.w.MULTI_USE,label:"HOTSPOT_VOUCHER_STATUS_VALID_MULTI"},{value:a.w.UNLIMITED,label:"COMMON_UNLIMITED"}],l=1,r=60*l,i=24*r,o={[a.h.NAME]:"COMMON_NAME",[a.h.AMOUNT]:"COMMON_AMOUNT",[a.h.EXPIRATION]:"COMMON_EXPIRATION",[a.h.TYPE]:"COMMON_TYPE",[a.h.DATA_LIMIT]:"COMMON_DATA_LIMIT",[a.h.DOWNLOAD_UPLOAD_LIMIT]:"HOTSPOT_VOUCHER_TABLE_RATE_LIMIT"},s={note:"",n:10,usageType:n[0].value,quota:2,expire_number:24,expire_unit:r,down:void 0,up:void 0,bytes:void 0},c=[{value:i,label:"COMMON_UNIT_DAYS"},{value:r,label:"COMMON_UNIT_HOURS"},{value:l,label:"COMMON_UNIT_MINUTES"}]},699228:(e,A,t)=>{t.d(A,{$W:()=>n,MY:()=>a,Pu:()=>l});const a=12,n="250ms",l=320},702675:(e,A,t)=>{t.d(A,{default:()=>d});var a=t(956347),n=t(469733),l=t(296540),r=t(15095),i=t(627440),o=t(498282),s=t(818526),c=t(976592),E=t(64749),m=t(771641);const d=()=>{const e=(0,n.useDispatch)(),A=(0,a.W6)(),t=(0,n.useSelector)(o.A),d=(0,n.useSelector)(c.WK),u=(0,r.A)(`${i.VO.AIRVIEW}/${s.t.ROAMING}`),T=(0,l.useMemo)(()=>t[i.o9.NAVIGATION][i.mx.AVAILABLE]&&d[s.t.ROAMING][i.o9.NAVIGATION][i.mx.AVAILABLE],[t,d]),O=(0,l.useCallback)(()=>{e((0,E.p0)(!0)),A.push(u)},[A,u,e]);return(0,l.useMemo)(()=>({[m.q.AVAILABLE]:T,[m.q.REDIRECT]:O}),[T,O])}},705426:(e,A,t)=>{t.d(A,{A:()=>r});var a=t(296540),n=t(617147),l=t(248543);const r=({children:e=null,hideModal:A,onRequestClose:t,portalSelector:r=l.J,forwardedRef:i=null,...o})=>a.createElement(n.A,{isOpen:!0,shouldCloseOnEsc:!0,onRequestClose:t||A,parentSelector:r,ref:i,...o},e)},712492:(e,A,t)=>{t.d(A,{pV:()=>u,nY:()=>d,uS:()=>T});var a=t(801081),n=t(25553),l=t(87485),r=t(165126),i=t(376618),o=t(546391);const s=e=>({...e,code:e.code.replace(o.fe,"$&-")});var c=t(297465);const E=(0,n.uh)((0,c.P5)()),m=(0,a.Mz)(E,l.kh),d=(0,a.Mz)(m,e=>e.map(s)),u=(0,a.Mz)(m,e=>{return A=(0,i.A)(e,({create_time:e,site_id:A,note:t})=>`${e}_${A}_${t}`),Object.keys(A).map(e=>A[e].reduce((A,t,a)=>(A.ids.push(t._id),A.id=e,A.amount+=t.quota,a?A:{...A,...(0,r.A)(t,"_id","code","used")}),{id:"",amount:0,ids:[]}));var A}),T=(0,a.Mz)(E,l.UV)},713570:(e,A,t)=>{t.d(A,{A:()=>E});var a=t(296540),n=t(822336),l=t(71479),r=t(825032),i=t(360146),o=t(132196);const s=(0,l.A)("svg",{shouldForwardProp:e=>"dimension"!==e})`
  position: absolute;
  border-radius: 8px;
  ${({dimension:e=i.Yk})=>`\n    width: ${e}px;\n    height: ${e}px;\n  `}
`,c=(0,l.A)("rect",{shouldForwardProp:e=>!["offset","totalLength","dimension","strokeDashOffset"].includes(e)})`
  ${({theme:{themeName:e},offset:A,totalLength:t,dimension:a=i.Yk,strokeDashOffset:l=i.P4})=>`\n    stroke: ${n.Ay[`desktop-color-ublue-${e===r.S.DARK?"04":"06"}-${e}`]};\n    stroke-dasharray: 0, ${4*a};\n    ${A&&t?`animation: ${((e,A)=>o.i7` 0% { stroke-dasharray: 0, ${e}; } 100% { stroke-dasharray: ${e*A}, ${e*(1-A)}; }`)(t,A)} 0.75s linear 0.15s forwards;`:""}\n    width: ${a}px;\n    height: ${a}px;\n    stroke-dashoffset: -${l};\n  `};
  fill: none;
  stroke-width: ${i.f$}px;
`,E=(0,a.memo)(({offset:e,dimension:A,strokeDashOffset:t})=>a.createElement(s,{dimension:A},a.createElement(c,{x:"0",y:"0",rx:"8",totalLength:4*i.Yk-14,offset:100*e/100,dimension:A,strokeDashOffset:t})))},720506:(e,A,t)=>{t.d(A,{A:()=>_});var a=t(469733),n=t(296540),l=t(718073),r=t(699784),i=t(415246),o=t(789768),s=t(732063),c=t(421851),E=t(822336),m=t(530281),d=t(71479),u=t(61902),T=t(294303),O=t(572112),I=t(699228);const S=(0,d.A)(T.A,{shouldForwardProp:e=>"dashboardMinimized"!==e})`
  width: 20px;
  height: 34px;
  position: absolute;
  left: 286px;
  top: 42px;
  cursor: pointer;
  background: ${u.L};
  border: 1px solid ${({theme:{themeName:e}})=>E.Ay[`desktop-color-divider-border-${e}`]};
  border-radius: ${E.Ay["desktop-radius-base"]};
  align-items: center;
  justify-content: center;
  display: none;
  @media ${O.A.DASHBOARD.LAYOUT.DESKTOP} {
    display: flex;
  }
  transition:
    left ${I.$W},
    transform ${I.$W},
    padding ${I.$W},
    border-radius ${I.$W};
  ${({dashboardMinimized:e})=>e?"left: -5px; transform: rotate(180deg);\n      ":""};
`,N=(0,d.A)(m.A)`
  position: relative;
  color: ${({theme:{themeName:e}})=>E.Ay[`desktop-color-neutral-07-${e}`]};
`,_=(0,n.memo)(()=>{const e=(0,a.useDispatch)(),A=(0,n.useContext)(c.A),t=A[s.V.DASHBOARD_MINIMIZED],E=A[s.V.SET_DASHBOARD_MINIMIZED],m=(0,n.useCallback)(()=>{E(A=>(e((0,o.TW)({[i.X4.MINIMIZED]:!A})),!A))},[e,E]);return n.createElement(l.A,{description:n.createElement(r.sA,{id:t?"DASHBOARD_SHOW_PANEL":"DASHBOARD_HIDE_PANEL"})},n.createElement(S,{dashboardMinimized:t,onClick:m},n.createElement(N,{size:"small",actionable:!0,omitSvgMargin:!0})))})},721544:(e,A,t)=>{t.d(A,{A:()=>E});var a=t(384349),n=t(650454),l=t(872563),r=t(602021),i=t(768643),o=t(198494),s=t(108916),c=(0,n.default)({});const E=(0,a.nn)({allowRedirectBack:!1,authenticatedSelector:function(e){return!(0,o.GP)(e)},authenticatingSelector:function(e){return(0,s.qM)(e).isInProgress},redirectPath:function(e,A){var t=c.getRedirectQueryParam(A),a="/".concat((0,r.LF)(e)||i.I,"/dashboard"),n=(0,l.xU)(["redirect"]);return"".concat(t||a).concat(n)},wrapperDisplayName:"UserIsNotAuthenticated"})},722194:(e,A,t)=>{t.d(A,{A:()=>o});var a=t(296540),n=t(325898),l=t(217439),r=t(903216),i=t(863489);const o=({wired_rate_mbps:e})=>a.createElement(l.A,{style:{color:(0,i.xe)(e,(0,n.A)().motif,!e)},size:"medium"},(0,r.ir)(e))},722673:(e,A,t)=>{var a,n;t.d(A,{O:()=>a,r:()=>n}),function(e){e.AFC_SERVER_NOT_AVAILABLE="AFC_SERVER_NOT_AVAILABLE",e.CLIENT_IP_CONFLICT="CLIENT_IP_CONFLICT",e.CLIENT_IP_CONFLICT_BULK="CLIENT_IP_CONFLICT_BULK",e.DEVICES_POWERED_BY_USW_MC="DEVICES_POWERED_BY_USW_MC",e.DEVICES_POWERED_BY_USW_MC_V2="DEVICES_POWERED_BY_USW_MC_V2",e.DEVICE_COMMIT_ERROR="DEVICE_COMMIT_ERROR",e.DEVICE_FAN_HIGH_LEVEL_SPEED="DEVICE_FAN_HIGH_LEVEL_SPEED",e.DEVICE_FAN_NOT_OPERATING="DEVICE_FAN_NOT_OPERATING",e.DEVICE_FAN_OFFLINE="DEVICE_FAN_OFFLINE",e.DEVICE_POWERED_BY_USP_RPS="DEVICE_POWERED_BY_USP_RPS",e.DEVICE_POWER_SUPPLY_OFFLINE="DEVICE_POWER_SUPPLY_OFFLINE",e.DEVICE_UNREACHABLE="DEVICE_UNREACHABLE",e.DEVICE_UNREACHABLE_WITH_DOWNLINKS="DEVICE_UNREACHABLE_WITH_DOWNLINKS",e.DEVICE_UNREACHABLE_WITH_DOWNLINKS_V2="DEVICE_UNREACHABLE_WITH_DOWNLINKS_V2",e.DHCP_POOL_EXHAUSTED="DHCP_POOL_EXHAUSTED",e.ISP_PACKET_LOSS="ISP_PACKET_LOSS",e.LAG_PORT_NEGOTIATION_FAILED="LAG_PORT_NEGOTIATION_FAILED",e.MBB_DATA_LIMIT_REACHED="MBB_DATA_LIMIT_REACHED",e.MBB_WARNING_LIMIT_EXCEEDED="MBB_WARNING_LIMIT_EXCEEDED",e.MCLAG_MULTI_CHASSIS_LINK_PORT_NEGOTIATION_FAILED="MCLAG_MULTI_CHASSIS_LINK_PORT_NEGOTIATION_FAILED",e.MCLAG_TARGET_DEVICE_PORT_NEGOTIATION_FAILED="MCLAG_TARGET_DEVICE_PORT_NEGOTIATION_FAILED",e.MULTIPLE_DEVICES_UNREACHABLE="MULTIPLE_DEVICES_UNREACHABLE",e.NETWORK_FAILED_OVER_TO_BACKUP_LTE="NETWORK_FAILED_OVER_TO_BACKUP_LTE",e.NETWORK_FAILED_OVER_TO_BACKUP_LTE_2="NETWORK_FAILED_OVER_TO_BACKUP_LTE_2",e.NETWORK_FAILED_OVER_TO_BACKUP_WAN="NETWORK_FAILED_OVER_TO_BACKUP_WAN",e.NETWORK_FAILED_OVER_TO_BACKUP_WAN_2="NETWORK_FAILED_OVER_TO_BACKUP_WAN_2",e.NETWORK_LOOP_DETECTED_BY_KEEPALIVE="NETWORK_LOOP_DETECTED_BY_KEEPALIVE",e.NETWORK_LOOP_DETECTED_BY_STP="NETWORK_LOOP_DETECTED_BY_STP",e.NETWORK_WAN_FAILED="NETWORK_WAN_FAILED",e.NETWORK_WAN_FAILED_2="NETWORK_WAN_FAILED_2",e.NETWORK_WAN_FAILED_MULTIPLE_TIMES="NETWORK_WAN_FAILED_MULTIPLE_TIMES",e.NETWORK_WAN_FAILED_MULTIPLE_TIMES_2="NETWORK_WAN_FAILED_MULTIPLE_TIMES_2",e.POE_BUDGET_EXCEEDED="POE_BUDGET_EXCEEDED",e.POE_PORT_BUDGET_EXCEEDED="POE_PORT_BUDGET_EXCEEDED",e.POE_PORT_BUDGET_EXCEEDED_V2="POE_PORT_BUDGET_EXCEEDED_V2",e.POE_PORT_BUDGET_EXCEEDED_V3="POE_PORT_BUDGET_EXCEEDED_V3",e.PORT_DROPPED_TRAFFIC="PORT_DROPPED_TRAFFIC",e.PORT_TRANSMISSION_ERRORS="PORT_TRANSMISSION_ERRORS",e.RADIUS_SERVER_ISSUE="RADIUS_SERVER_ISSUE",e.RADIUS_SERVER_ISSUE_V2="RADIUS_SERVER_ISSUE_V2",e.SSL_CERTIFICATE_EXPIRY="SSL_CERTIFICATE_EXPIRY",e.SSL_CERTIFICATE_EXPIRY_V2="SSL_CERTIFICATE_EXPIRY_V2",e.ULTE_DATA_LIMIT_REACHED="ULTE_DATA_LIMIT_REACHED",e.ULTE_WARNING_LIMIT_EXCEEDED="ULTE_WARNING_LIMIT_EXCEEDED",e.VPN_SITE_TO_SITE_DISCONNECTED="VPN_SITE_TO_SITE_DISCONNECTED",e.WAN_MAGIC_DATA_LIMIT_REACHED="WAN_MAGIC_DATA_LIMIT_REACHED",e.BPDU_GUARD_TRIGGERED="BPDU_GUARD_TRIGGERED"}(a||(a={})),function(e){e.SHOW="show",e.ICON="icon",e.TEXT_PROPS="textProps",e.FORMATTED_MESSAGE_PROPS="formattedMessageProps",e.BACKGROUND="background",e.REDIRECTOR="redirector"}(n||(n={}))},723329:(e,A,t)=>{t.d(A,{A:()=>u,t:()=>m});var a=t(296540),n=t(217439),l=t(499015),r=t(566723),i=t(486006),o=t(294303),s=t(699784),c=t(951106),E=t(691294);const m=({channel:e,radio:A,channel_width:t,channelColor:r,color:i,size:c})=>{const E=(0,l.i)((0,s.tz)().formatMessage,A,t);return a.createElement(o.A,null,a.createElement(n.A,{color:r||i,size:c},e)," ",a.createElement(n.A,{color:i,size:c},E||a.createElement(s.sA,{id:"COMMON_FALLBACK"})))},d=({mlo_details:e,...A})=>{if(!e)return a.createElement(n.A,{...A},a.createElement(s.sA,{id:"COMMON_FALLBACK"}));const{radio:t,channel:l,channel_width:E}=(0,c.Wc)(e);return a.createElement(o.A,{flexDirection:"row",gap:r.YC},a.createElement(m,{radio:t,channel:l,channel_width:+E,...A}),e?a.createElement(i.Ay,{report:i.ZF.CHANNEL_AND_WIDTH,mlo_details:e}):null)},u=(0,a.memo)(({type:e,status:A,is_mlo:t,mlo_details:l,size:r="medium",color:i="inherit",channelColor:o,...c})=>e===E.sK.WIRELESS&&A===E.S2.ONLINE&&c.channel?t?a.createElement(d,{mlo_details:l,size:r,color:i,channelColor:o}):a.createElement(m,{size:r,color:i,channelColor:o,...c}):a.createElement(n.A,{size:r,color:i},a.createElement(s.sA,{id:"COMMON_FALLBACK"})))},725242:(e,A,t)=>{t.d(A,{T:()=>l,k:()=>r});var a=t(275357),n=t(722673);const l={[n.O.AFC_SERVER_NOT_AVAILABLE]:{id:"DASHBOARD_ALERT_AFC_SERVER_NOT_AVAILABLE"},[n.O.CLIENT_IP_CONFLICT]:{id:"DASHBOARD_ALERT_CLIENT_IP_CONFLICT"},[n.O.CLIENT_IP_CONFLICT_BULK]:{id:"DASHBOARD_ALERT_CLIENT_IP_CONFLICT_BULK"},[n.O.DEVICES_POWERED_BY_USW_MC]:{id:"DASHBOARD_ALERT_DEVICES_POWERED_BY_USW_MC"},[n.O.DEVICES_POWERED_BY_USW_MC_V2]:{id:"DASHBOARD_ALERT_DEVICES_POWERED_BY_USW_MC_V2"},[n.O.DEVICE_COMMIT_ERROR]:{id:"DASHBOARD_ALERT_DEVICE_COMMIT_ERROR"},[n.O.DEVICE_FAN_HIGH_LEVEL_SPEED]:{id:"DASHBOARD_ALERT_DEVICE_FAN_HIGH_LEVEL_SPEED"},[n.O.DEVICE_FAN_NOT_OPERATING]:{id:"DASHBOARD_ALERT_DEVICE_FAN_NOT_OPERATING"},[n.O.DEVICE_FAN_OFFLINE]:{id:"DASHBOARD_ALERT_DEVICE_FAN_OFFLINE"},[n.O.DEVICE_POWERED_BY_USP_RPS]:{id:"DASHBOARD_ALERT_DEVICE_POWERED_BY_USP_RPS"},[n.O.DEVICE_POWER_SUPPLY_OFFLINE]:{id:"DASHBOARD_ALERT_DEVICE_POWER_SUPPLY_OFFLINE"},[n.O.DEVICE_UNREACHABLE]:{id:"DASHBOARD_ALERT_DEVICE_UNREACHABLE"},[n.O.DEVICE_UNREACHABLE_WITH_DOWNLINKS]:{id:"DASHBOARD_ALERT_DEVICE_UNREACHABLE_WITH_DOWNLINKS"},[n.O.DEVICE_UNREACHABLE_WITH_DOWNLINKS_V2]:{id:"DASHBOARD_ALERT_DEVICE_UNREACHABLE_WITH_DOWNLINKS_V2"},[n.O.DHCP_POOL_EXHAUSTED]:{id:"DASHBOARD_ALERT_DHCP_POOL_EXHAUSTED"},[n.O.ISP_PACKET_LOSS]:{id:"DASHBOARD_ALERT_ISP_PACKET_LOSS"},[n.O.LAG_PORT_NEGOTIATION_FAILED]:{id:"DASHBOARD_ALERT_LAG_PORT_NEGOTIATION_FAILED"},[n.O.MBB_DATA_LIMIT_REACHED]:{id:"DASHBOARD_ALERT_MBB_DATA_LIMIT_REACHED"},[n.O.MBB_WARNING_LIMIT_EXCEEDED]:{id:"DASHBOARD_ALERT_MBB_WARNING_LIMIT_EXCEEDED"},[n.O.MCLAG_MULTI_CHASSIS_LINK_PORT_NEGOTIATION_FAILED]:{id:"DASHBOARD_ALERT_MCLAG_MULTI_CHASSIS_LINK_PORT_NEGOTIATION_FAILED"},[n.O.MCLAG_TARGET_DEVICE_PORT_NEGOTIATION_FAILED]:{id:"DASHBOARD_ALERT_MCLAG_TARGET_DEVICE_PORT_NEGOTIATION_FAILED"},[n.O.MULTIPLE_DEVICES_UNREACHABLE]:{id:"DASHBOARD_ALERT_MULTIPLE_DEVICES_UNREACHABLE"},[n.O.NETWORK_FAILED_OVER_TO_BACKUP_LTE]:{id:"DASHBOARD_ALERT_NETWORK_FAILED_OVER_TO_BACKUP_LTE"},[n.O.NETWORK_FAILED_OVER_TO_BACKUP_LTE_2]:{id:"DASHBOARD_ALERT_NETWORK_FAILED_OVER_TO_BACKUP_LTE_2"},[n.O.NETWORK_FAILED_OVER_TO_BACKUP_WAN]:{id:"DASHBOARD_ALERT_NETWORK_FAILED_OVER_TO_BACKUP_WAN"},[n.O.NETWORK_FAILED_OVER_TO_BACKUP_WAN_2]:{id:"DASHBOARD_ALERT_NETWORK_FAILED_OVER_TO_BACKUP_WAN_2"},[n.O.NETWORK_LOOP_DETECTED_BY_KEEPALIVE]:{id:"DASHBOARD_ALERT_NETWORK_LOOP_DETECTED_BY_KEEPALIVE"},[n.O.NETWORK_LOOP_DETECTED_BY_STP]:{id:"DASHBOARD_ALERT_NETWORK_LOOP_DETECTED_BY_STP"},[n.O.NETWORK_WAN_FAILED]:{id:"DASHBOARD_ALERT_NETWORK_WAN_FAILED"},[n.O.NETWORK_WAN_FAILED_2]:{id:"DASHBOARD_ALERT_NETWORK_WAN_FAILED_2",values:e=>({wanId:e[a.cr.WAN_ID]?.id})},[n.O.NETWORK_WAN_FAILED_MULTIPLE_TIMES]:{id:"DASHBOARD_ALERT_NETWORK_WAN_FAILED_MULTIPLE_TIMES"},[n.O.NETWORK_WAN_FAILED_MULTIPLE_TIMES_2]:{id:"DASHBOARD_ALERT_NETWORK_WAN_FAILED_MULTIPLE_TIMES_2"},[n.O.POE_BUDGET_EXCEEDED]:{id:"DASHBOARD_ALERT_POE_BUDGET_EXCEEDED"},[n.O.POE_PORT_BUDGET_EXCEEDED]:{id:"DASHBOARD_ALERT_POE_PORT_BUDGET_EXCEEDED"},[n.O.POE_PORT_BUDGET_EXCEEDED_V2]:{id:"DASHBOARD_ALERT_POE_PORT_BUDGET_EXCEEDED_V2"},[n.O.POE_PORT_BUDGET_EXCEEDED_V3]:{id:"DASHBOARD_ALERT_POE_PORT_BUDGET_EXCEEDED_V3"},[n.O.PORT_DROPPED_TRAFFIC]:{id:"DASHBOARD_ALERT_PORT_DROPPED_TRAFFIC"},[n.O.PORT_TRANSMISSION_ERRORS]:{id:"DASHBOARD_ALERT_PORT_TRANSMISSION_ERRORS"},[n.O.RADIUS_SERVER_ISSUE]:{id:"DASHBOARD_ALERT_RADIUS_SERVER_ISSUE"},[n.O.RADIUS_SERVER_ISSUE_V2]:{id:"DASHBOARD_ALERT_RADIUS_SERVER_ISSUE_V2"},[n.O.SSL_CERTIFICATE_EXPIRY]:{id:"DASHBOARD_ALERT_SSL_CERTIFICATE_EXPIRY"},[n.O.SSL_CERTIFICATE_EXPIRY_V2]:{id:"DASHBOARD_ALERT_SSL_CERTIFICATE_EXPIRY_V2"},[n.O.ULTE_DATA_LIMIT_REACHED]:{id:"DASHBOARD_ALERT_ULTE_DATA_LIMIT_REACHED"},[n.O.ULTE_WARNING_LIMIT_EXCEEDED]:{id:"DASHBOARD_ALERT_ULTE_WARNING_LIMIT_EXCEEDED"},[n.O.VPN_SITE_TO_SITE_DISCONNECTED]:{id:"DASHBOARD_ALERT_VPN_SITE_TO_SITE_DISCONNECTED"},[n.O.WAN_MAGIC_DATA_LIMIT_REACHED]:{id:"DASHBOARD_ALERT_WAN_MAGIC_DATA_LIMIT_REACHED"},[n.O.BPDU_GUARD_TRIGGERED]:{id:"DASHBOARD_ALERT_BPDU_GUARD_TRIGGERED"}},r="DASHBOARD_PANEL_ALERTS_STATUS_ICON_CLASSNAME"},732063:(e,A,t)=>{var a;t.d(A,{V:()=>a}),function(e){e.HEIGHT="height",e.DASHBOARD_MINIMIZED="dashboardMinimized",e.SET_DASHBOARD_MINIMIZED="setDashboardMinimized",e.PRELOAD_DEVICES="preloadDevices",e.PRELOAD_UNIFI_DEVICES="preloadUnifiDevices",e.PRELOAD_CLIENTS="preloadClients"}(a||(a={}))},733712:(e,A,t)=>{t.d(A,{A:()=>s});var a=t(296540),n=t(217439),l=t(71479),r=t(566723),i=t(294303);const o=(0,l.A)(i.A)`
  flex-direction: column;
  gap: ${r.YC};
  padding: ${({padding:e})=>e||`${r.S2} ${r.S2} ${r.S2} ${r.kc}`};
  width: ${({width:e})=>e||"400px"};
`,s=({title:e,description:A,flexProps:t})=>a.createElement(o,{...t},a.createElement(n.A,{size:"medium",color:"text-1",weight:"bold"},e),A?a.createElement(n.A,{size:"medium"},A):null)},736201:(e,A,t)=>{t.d(A,{P:()=>n,S:()=>l});var a=t(132196);const n=20,l=a.AH`
  animation: ${a.i7`
    from {
      opacity: 1;
    }
    to {
      opacity: 0.4;
    }
`} 0.5s forwards;
`},736439:(e,A,t)=>{t.d(A,{W:()=>l,Y:()=>r});var a=t(165126),n=t(868166);const l=e=>(0,a.A)(n.I,e),r=()=>!0},744759:(e,A,t)=>{t.d(A,{A:()=>r});var a=t(469733),n=t(296540),l=t(87582);const r=(0,n.memo)(({children:e,dashboardWidget:A})=>{const t=(0,n.useMemo)(()=>[...Array.isArray(A)?[...A]:[A]],[A]);return(0,a.useSelector)((0,n.useMemo)(()=>(0,l.k2)(t),[t]))?n.createElement(n.Fragment,{key:t.join()},e):null})},749177:(e,A,t)=>{t.d(A,{A:()=>r});var a=t(469733),n=t(296540),l=t(479503);const r=e=>(0,a.useSelector)((0,n.useMemo)(()=>(0,l.Ul)(e),[e]))},751862:(e,A,t)=>{t.d(A,{U:()=>r,x:()=>i});var a=t(71479),n=t(566723),l=t(294303);const r=(0,a.A)(l.A)`
  width: 100%;
  height: 100%;
  gap: ${n.Ln};
  flex-direction: column;
  overflow: auto;
`,i=(0,a.A)(l.A)`
  width: 100%;
  height: 100%;
  padding: ${n.xO} ${n.Ln} ${n.Ln} ${n.Ln};
  flex-direction: column;
  gap: ${n.Ln};
`},758170:(e,A,t)=>{t.a(e,async(e,a)=>{try{t.d(A,{A:()=>m});var n=t(801081),l=t(189601),r=t(469548),i=t(921946),o=t(627440),s=t(221649),c=e([i]),E=c.then?(await c)():c;i=E[0];const m=(0,l.WY)()((0,n.Mz)(()=>({[o.o9.ROUTE_COMPONENT]:i.A,[o.o9.SIDE_NAVIGATION]:r.A,[o.o9.ROUTE]:{[o.Fm.AVAILABLE]:!0},[o.o9.NAVIGATION]:{[o.mx.AVAILABLE]:!0},[o.o9.DEPENDENCIES]:s.I[o.VO.DASHBOARD]})),e=>e);a()}catch(e){a(e)}})},760919:(e,A,t)=>{var a,n,l;t.d(A,{S:()=>a,dD:()=>l,fP:()=>n}),function(e){e.CREATOR_MODE="creatorMode",e.CREATOR_MODE_DEPENDENCIES="creatorModeDependencies",e.CREATOR_MODE_AVAILABILITY_SELECTOR="creatorModeAvailabilitySelector",e.CREATOR_MODE_CAN_CREATE_SELECTOR="creatorModeCanCreateSelector",e.CREATOR_MODE_CAN_DELETE_SELECTOR="creatorModeCanDeleteSelector",e.CREATOR_MODE_CAN_EDIT_SELECTOR="creatorModeCanEditSelector",e.CREATOR_MODE_CAN_ASSIGN_SELECTOR="creatorModeCanAssignSelector",e.CREATOR_MODE_FILTER="creatorModeFilter",e.CREATOR_MODE_TAG_META_CALLBACK="creatorModeTagMetaCallback",e.CREATOR_MODE_HEADER_NEW_ID="creatorModeHeaderNewId",e.CREATOR_MODE_HEADER_EDIT_ID="creatorModeHeaderEditId",e.CREATOR_MODE_NOTICE_ID="creatorModeNoticeId",e.CREATOR_MODE_CREATE_ID="creatorModeCreateId",e.CREATOR_MODE_REMOVE_ID="creatorModeRemoveId",e.CREATOR_MODE_CREATE_CALLBACK="creatorModeCreateCallback",e.CREATOR_MODE_UPDATE_CALLBACK="creatorModeUpdateCallback",e.CREATOR_MODE_DELETE_CALLBACK="creatorModeDeleteCallback",e.CREATOR_MODE_CANCEL_CALLBACK="creatorModeCancelCallback"}(a||(a={})),function(e){e.CREATOR_MODE="creatorMode",e.CREATOR_MODE_DEPENDENCIES="creatorModeDependencies",e.CREATOR_MODE_AVAILABLE="creatorModeAvailable",e.CREATOR_MODE_CAN_CREATE="creatorModeCanCreate",e.CREATOR_MODE_CAN_DELETE="creatorModeCanDelete",e.CREATOR_MODE_CAN_EDIT="creatorModeCanEdit",e.CREATOR_MODE_CAN_ASSIGN="creatorModeCanAssign",e.CREATOR_MODE_FILTER="creatorModeFilter",e.CREATOR_MODE_TAG_META_CALLBACK="creatorModeTagMetaCallback",e.CREATOR_MODE_HEADER_NEW_ID="creatorModeHeaderNewId",e.CREATOR_MODE_HEADER_EDIT_ID="creatorModeHeaderEditId",e.CREATOR_MODE_NOTICE_ID="creatorModeNoticeId",e.CREATOR_MODE_CREATE_ID="creatorModeCreateId",e.CREATOR_MODE_REMOVE_ID="creatorModeRemoveId",e.CREATOR_MODE_CREATE_CALLBACK="creatorModeCreateCallback",e.CREATOR_MODE_UPDATE_CALLBACK="creatorModeUpdateCallback",e.CREATOR_MODE_DELETE_CALLBACK="creatorModeDeleteCallback",e.CREATOR_MODE_CANCEL_CALLBACK="creatorModeCancelCallback"}(n||(n={})),function(e){e.TAG_ID="tagId",e.NAME="name",e.TAGS="tags"}(l||(l={}))},761541:(e,A,t)=>{var a;t.d(A,{$:()=>a}),function(e){e._ID="_id",e.ADMIN_NAME="admin_name",e.CODE="code",e.CREATE_TIME="create_time",e.DURATION="duration",e.NOTE="note",e.QUOTA="quota",e.SITE_ID="site_id",e.STATUS="status",e.STATUS_EXPIRES="status_expires",e.USED="used",e.QOS_OVERWRITE="qos_overwrite",e.QOS_RATE_MAX_DOWN="qos_rate_max_down",e.QOS_RATE_MAX_UP="qos_rate_max_up",e.QOS_USAGE_QUOTA="qos_usage_quota"}(a||(a={}))},764892:(e,A,t)=>{t.d(A,{A:()=>Hr});var a,n,l=t(469733),r=t(296540),i=t(513180),o=t(523275),s=t(840279),c=t(622217),E=t(168703),m=t(598937),d=t(663740),u=t(570636),T=t(808028),O=t(801081),I=t(918710),S=t(897254);!function(e){e.IP="ip",e.IPV6="ipv6",e.WAN_GROUP="wan_group"}(a||(a={})),function(e){e.GATEWAY_IP="gateway_ip",e.SYSTEM_UPTIME="system_uptime",e.WAN_GROUPS="wan_groups"}(n||(n={}));const N=(0,O.Mz)(I.e6,e=>e[S.ZJ.SYSTEM_STATUS]||(0,o.A)()),_=(0,O.Mz)(N,e=>e[n.SYSTEM_UPTIME]),p=(0,O.Mz)(N,e=>e[n.GATEWAY_IP]);var R,C,M;!function(e){e.DOWNLOAD_KILOBITS_PER_SECOND="download_kilobits_per_second",e.UPLOAD_KILOBITS_PER_SECOND="upload_kilobits_per_second"}(R||(R={})),function(e){e.DATA="data",e.IS_SUPPORTED="is_supported"}(C||(C={})),function(e){e.DOWNLOAD_MBPS="download_mbps",e.ID="id",e.INTERFACE_NAME="interface_name",e.LATENCY_MS="latency_ms",e.NETWORK_CONF_ID="network_conf_id",e.TIME="time",e.UPLOAD_MBPS="upload_mbps",e.WAN_NETWORKGROUP="wan_networkgroup",e.WAN_PROVIDER_CAPABILITIES="wan_provider_capabilities"}(M||(M={}));const P=(0,O.Mz)(I.e6,e=>e[S.ZJ.SPEED_TEST]||(0,o.A)()),D=(0,O.Mz)(P,e=>e[C.DATA]||(0,s.A)()),f=(0,O.Mz)(P,e=>e[C.IS_SUPPORTED]);var b=t(155918);const v={[M.DOWNLOAD_MBPS]:0,[M.ID]:void 0,[M.INTERFACE_NAME]:void 0,[M.LATENCY_MS]:0,[M.NETWORK_CONF_ID]:void 0,[M.TIME]:0,[M.UPLOAD_MBPS]:0,[M.WAN_NETWORKGROUP]:void 0,[M.WAN_PROVIDER_CAPABILITIES]:{[R.DOWNLOAD_KILOBITS_PER_SECOND]:0,[R.UPLOAD_KILOBITS_PER_SECOND]:0}};var L=t(1959),h=t(340936),y=t(960407),z=t(398300),g=t(845030),x=t(702236),W=t(396483),H=t(979106),w=t(118818),U=t(705145);const k="DASHBOARD_PANEL_WAN_SWITCHER_TAB_CLASSNAME",G="DASHBOARD_PANEL_WAN_SWITCHER_TABS_CLASSNAME";var V=t(71479),X=t(566723),Z=t(294303);const Y=(0,V.A)(Z.A)`
  align-items: center;
  gap: ${X.kc};
`,B=(e,A)=>{if(A)switch(e){case T.MY.UP:return"success";case T.MY.DOWN:return"danger";default:return"neutral"}return"neutral"},F=(0,r.memo)(({dashboardWanTab:e,dashboardNetworkGroupDetails:A,updateWanNetworkGroup:t})=>{const a=(0,r.useMemo)(()=>A.map(e=>({id:e[W.w.ID],label:r.createElement(Y,null,r.createElement(w.A,{size:"small",variant:B(e[W.w.STATE],e[W.w.UP])}),r.createElement(U.A,{isTruncated:!0,size:"inherit",color:"inherit"},e[W.w.LABEL]))})),[A]),n=(0,r.useCallback)(({id:e})=>{t(e)},[t]);return r.createElement(H.A,{tabs:a,tabClassName:k,tabsClassName:G,selectedTab:e,onSelectTab:n,variant:"filter"})});var j=t(362412),K=t(594827),q=t(699784);const J=(0,V.A)(Z.A)`
  align-items: center;
  min-height: 20px;
  gap: ${X.kc};
`,Q=(0,r.memo)(({dashboardWanTab:e,dashboardNetworkGroupDetails:A,updateWanNetworkGroup:t})=>{const{formatMessage:a}=(0,q.tz)(),n=(0,r.useMemo)(()=>A.map(e=>({value:e[W.w.ID],label:e[W.w.LABEL],additionalInfo:r.createElement(J,null,r.createElement(w.A,{size:"small",variant:B(e[W.w.STATE],e[W.w.UP])}),(0,K.qY)(e[W.w.ID],a))})),[a,A]),l=(0,r.useCallback)(({value:e})=>{t(e)},[t]);return r.createElement(j.A,{options:n,width:"100%",variant:"secondary",value:e,onChange:l})});var $=t(231755);const ee=(0,V.A)(Z.A,{shouldForwardProp:e=>"width"!==e})`
  margin: ${X.kc} 0;
  .${k} {
    width: 100%;
    > span {
      max-width: ${({width:e})=>e/3}px;
    }
  }
  .${G} {
    width: 100%;
    margin: unset;
  }
`,Ae=(0,V.A)($.A)`
  margin: ${X.kc} 0;
`,te=(0,r.memo)(()=>{const{ref:e,width:A}=(0,h.A)(),t=(0,r.useRef)(!1),a=(0,l.useDispatch)(),n=(0,l.useSelector)(y.WS),i=(0,l.useSelector)(y.LK),o=(0,l.useSelector)(c.CN),{[E.x.HAS_MULTIPLE_WANS]:s,[E.x.NETWORK_GROUP_DETAILS]:d,[E.x.INITIAL_WAN_TAB]:u}=(0,r.useContext)(m.A),{unavailableDashboardWanTab:T,firstAvailableWanNetworkGroup:O}=(0,r.useMemo)(()=>({unavailableDashboardWanTab:!d.some(e=>e[W.w.ID]===o),firstAvailableWanNetworkGroup:d[0]?.[W.w.ID]}),[d,o]),I=(0,r.useMemo)(()=>d.length<=2?F:Q,[d.length]),S=(0,r.useCallback)(e=>{a((0,x.wh)(e)),n&&i===z.H.ISP_DETAILS&&a((0,g.XP)({type:i,id:e}))},[a,n,i]);return(0,r.useEffect)(()=>{t.current&&s?t.current&&T&&O&&a((0,x.wh)(O)):(u&&o&&o!==u&&a((0,x.wh)(u)),t.current=!0)},[o,u,a,s,O,T]),s?r.createElement(ee,{ref:e,width:A},r.createElement(I,{dashboardWanTab:o,dashboardNetworkGroupDetails:d,updateWanNetworkGroup:S})):r.createElement(Ae,null)});var ae,ne,le=t(718073),re=t(74750),ie=t(866661),oe=t(822336),se=t(998837),ce=t(254292),Ee=t(255292),me=t(282933),de=t(769385);!function(e){e.STATE="state",e.MODEL="model",e.MAC="mac",e.SIGNAL="signal",e.USED_BYTES="usedBytes",e.HARD_LIMIT_BYTES="hardLimitBytes",e.HARD_LIMIT_ENABLED="hardLimitEnabled",e.SOFT_LIMIT_BYTES="softLBytes",e.SOFT_LIMIT_ENABLED="softLimitEnabled"}(ae||(ae={})),function(e){e.LTE="lte",e.MONTHLY_USAGE="monthlyUsage",e.ACTIVITY_RX_BYTES_R="activityRxBytesR",e.ACTIVITY_TX_BYTES_R="activityTxBytesR",e.ACTIVITY_MAX_RX_BYTES_R="activityMaxRxBytesR",e.ACTIVITY_MAX_TX_BYTES_R="activityMaxTxBytesR",e.ISP_CAPABILITY_DOWNLOAD_KILOBITS_PER_SECOND="ispCapabilityDownloadKilobitsPerSecond",e.ISP_CAPABILITY_UPLOAD_KILOBITS_PER_SECOND="ispCapabilityUploadKilobitsPerSecond",e.SERVICE_LATENCIES="serviceLatencies",e.WAN_IPV4="wanIpv4",e.WAN_IPV6="wanIpv6",e.CURRENT_THROUGHPUT_STATE="currentThroughputState",e.SPEED_TEST="speedTest",e.SPEED_TEST_INTERFACE_NAME="speedTestInterfaceName"}(ne||(ne={}));const ue={[ne.MONTHLY_USAGE]:void 0,[ne.SPEED_TEST]:(0,o.A)(),[ne.SPEED_TEST_INTERFACE_NAME]:void 0,[ne.LTE]:(0,o.A)(),[ne.ACTIVITY_RX_BYTES_R]:void 0,[ne.ACTIVITY_TX_BYTES_R]:void 0,[ne.ACTIVITY_MAX_RX_BYTES_R]:void 0,[ne.ACTIVITY_MAX_TX_BYTES_R]:void 0,[ne.ISP_CAPABILITY_DOWNLOAD_KILOBITS_PER_SECOND]:void 0,[ne.ISP_CAPABILITY_UPLOAD_KILOBITS_PER_SECOND]:void 0,[ne.SERVICE_LATENCIES]:(0,s.A)(),[ne.WAN_IPV4]:void 0,[ne.WAN_IPV6]:(0,s.A)(),[ne.CURRENT_THROUGHPUT_STATE]:void 0},Te=(0,r.createContext)(ue);var Oe;!function(e){e.IS_DISABLED="isDisabled",e.DESCRIPTION="description",e.LABEL_ID="labelId",e.ICON="icon"}(Oe||(Oe={}));var Ie=t(217439),Se=t(137298),Ne=t(282556),_e=t(438369),pe=t(670),Re=t(602021),Ce=t(198494);const Me=(0,V.A)(Z.A)`
  flex-direction: column;
  gap: ${X.YC};
`,Pe=(0,V.A)(Z.A)`
  justify-content: space-between;
  gap: ${X.Ln};
  align-items: center;
`,De=(0,V.A)(Z.A)`
  align-items: center;
`,fe=({dashboardSpeedTest:e})=>{const A=(0,l.useSelector)(Ne.zi),t=(0,l.useSelector)(Ce.BQ),a=(0,l.useSelector)(Re.hq);return r.createElement(Me,null,r.createElement(Pe,null,r.createElement(De,null,r.createElement(Ie.A,{size:"medium",color:"text-1-oncolor-alpha",weight:"bold"},r.createElement(q.sA,{id:"COMMON_LAST_SPEED_TEST"}))),r.createElement(De,null,r.createElement(Ie.A,{color:"text-2-oncolor-alpha",size:"small"},new Intl.DateTimeFormat(A,{timeZone:a,year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hourCycle:t}).format(e[M.TIME])))),r.createElement(Pe,null,r.createElement(De,null,r.createElement(Ie.A,{size:"small",color:"text-1-oncolor-alpha"},r.createElement(q.sA,{id:"COMMON_DOWNLOAD"}))),r.createElement(De,null,r.createElement(pe.A.Icon,null),r.createElement(Ie.A,{color:"traffic-down",size:"small"},(0,Se.ap)(e[M.DOWNLOAD_MBPS])))),r.createElement(Pe,null,r.createElement(De,null,r.createElement(Ie.A,{size:"small",color:"text-1-oncolor-alpha"},r.createElement(q.sA,{id:"COMMON_UPLOAD"}))),r.createElement(De,null,r.createElement(_e.A.Icon,null),r.createElement(Ie.A,{color:"traffic-up",size:"small"},(0,Se.ap)(e[M.UPLOAD_MBPS])))),r.createElement(Pe,null,r.createElement(De,null,r.createElement(Ie.A,{size:"small",color:"text-1-oncolor-alpha"},r.createElement(q.sA,{id:"COMMON_LATENCY"}))),r.createElement(De,null,r.createElement(Ie.A,{color:"text-2-oncolor-alpha",size:"small"},e[M.LATENCY_MS]," ",r.createElement(q.sA,{id:"COMMON_UNIT_MS"})))))},be=(0,V.A)(Z.A)`
  align-items: center;
  gap: ${X.YC};
`,ve=(0,r.memo)(()=>{const e=(0,l.useDispatch)(),{themeName:A}=(0,se.u)(),t=(0,l.useSelector)(ce.xc),a=(0,r.useContext)(m.A),n=(0,r.useContext)(Te),i=(0,l.useSelector)(f),o=(0,l.useSelector)(c.CN),s=(0,l.useSelector)(c.b8),d=a[E.x.IS_WAN_CONNECTED],u=n[ne.CURRENT_THROUGHPUT_STATE],T=n[ne.SPEED_TEST_INTERFACE_NAME],O=n[ne.SPEED_TEST],I=(0,r.useCallback)(()=>{switch(u[me.Hd.THROUGHPUT_STATE]){case me.KJ.LIVE_THROUGHPUT:e((0,x.D9)({...Object.entries(s).reduce((e,[A,t])=>(e[A]={...t,[me.Hd.THROUGHPUT_STATE]:me.KJ.LIVE_THROUGHPUT},e),{}),[o]:{...u,[me.Hd.THROUGHPUT_STATE]:me.KJ.SPEED_TEST}})),e((0,Ee.KH)(T));break;case me.KJ.SPEED_TEST:e((0,x.D9)({...s,[o]:{...u,[me.Hd.THROUGHPUT_STATE]:me.KJ.LIVE_THROUGHPUT}}))}},[e,T,u,s,o]),S=(0,r.useMemo)(()=>{switch(u[me.Hd.THROUGHPUT_STATE]){case me.KJ.LIVE_THROUGHPUT:return{[Oe.IS_DISABLED]:t===de.H$.IN_PROGRESS,[Oe.DESCRIPTION]:O[M.ID]?r.createElement(fe,{dashboardSpeedTest:O}):void 0,[Oe.LABEL_ID]:"DASHBOARD_ISP_SPEED_TEST",[Oe.ICON]:r.createElement(ie.A,{color:oe.Ay[`desktop-color-ublue-06-${A}`]})};case me.KJ.SPEED_TEST:return{[Oe.IS_DISABLED]:!T||t===de.H$.IN_PROGRESS,[Oe.DESCRIPTION]:void 0,[Oe.LABEL_ID]:"COMMON_ACTION_CLOSE",[Oe.ICON]:void 0};default:return{[Oe.IS_DISABLED]:!1,[Oe.DESCRIPTION]:void 0,[Oe.LABEL_ID]:void 0,[Oe.ICON]:void 0}}},[T,t,u,O,A]);return d&&i?r.createElement(le.A,{description:S[Oe.DESCRIPTION],closeDelay:0,delay:0},r.createElement(re.A,{type:"button",size:"medium",variant:"secondary-emphasis",width:"full",onPress:I,isDisabled:S[Oe.IS_DISABLED]},r.createElement(be,null,S[Oe.ICON],r.createElement(q.sA,{id:S[Oe.LABEL_ID]})))):null});var Le=t(546343);const he=(0,V.A)(Z.A)`
  width: 100%;
  justify-content: space-between;
`,ye=(0,r.memo)(()=>{const{[E.x.MBB_STATUS]:{[T.TR.ESIM]:e,[T.TR.SIM_SLOT]:A}}=(0,r.useContext)(m.A),{[ne.WAN_IPV4]:t}=(0,r.useContext)(Te);return t?r.createElement(he,null,r.createElement(Ie.A,{size:"medium",color:"text-2"},r.createElement(q.sA,{id:"COMMON_WAN_IP_ADDRESS"})," (",r.createElement(Le.Ay,{esim:e,slot:A}),")"),r.createElement(Ie.A,{size:"medium",color:"text-3"},t)):null});var ze=t(282811),ge=t(592563);const xe=(0,r.memo)(({ispName:e,isWanConnected:A})=>{const t=(0,l.useDispatch)(),a=(0,l.useSelector)(c.CN),n=(0,r.useCallback)(()=>{t((0,g.XP)({type:z.H.ISP_DETAILS,id:a}))},[t,a]);return e?r.createElement(ge.A,{style:{maxWidth:"85%"},type:"button",fontSize:"medium",onPress:n},r.createElement(U.A,{style:{whiteSpace:"nowrap"},isTruncated:!0,color:A?"inherit":"red-06"},e)):null});var We=t(610305);const He=(0,V.A)(Z.A)`
  width: 100%;
  justify-content: space-between;
  gap: ${X.YC};
`,we=(0,V.A)(Z.A)`
  gap: ${X.kc};
  align-items: center;
  flex: 0 0 auto;
`,Ue=(0,V.A)(Z.A)`
  gap: ${X.YC};
  width: 0;
  white-space: nowrap;
  flex: 1;
`,ke=(0,r.memo)(()=>{const{[E.x.MBB_STATUS]:e}=(0,r.useContext)(m.A),{[T.UX.SIGNAL_PERCENT]:A,[T.UX.DBM]:t}=e[T.TR.STATS]||(0,o.A)(),{[E.x.ISP_NAME]:a,[E.x.ISP_ASN]:n,[E.x.IS_WAN_CONNECTED]:l}=(0,r.useContext)(m.A);return r.createElement(He,null,r.createElement(Ue,null,r.createElement(We.A,{ispName:a,ispAsn:n}),r.createElement(xe,{ispName:a,isWanConnected:l})),r.createElement(we,null,r.createElement(ze.A3,{signal_percent:A,dBm:t})))});var Ge=t(130851),Ve=t(455155),Xe=t(546391),Ze=t(601242),Ye=t(411502);const Be={[T.P0.MICROSOFT]:(0,Ze.j9)(Ye.nr),[T.P0.GOOGLE]:(0,Ze.j9)(Ye.Cj),[T.P0.CLOUDFLARE]:void 0};var Fe=t(939703);const je=(0,V.A)(Z.A)`
  width: 100%;
  justify-content: space-between;
  gap: ${X.kc};
`,Ke=(0,V.A)(Z.A)`
  padding: ${X.YC} 0;
  background: ${({theme:{themeName:e}})=>(0,Fe.b_)(oe.Ay[`desktop-color-neutral-01-${e}`],.6)};
  width: 100%;
  border-radius: ${oe.Ay["desktop-radius-base"]};
  gap: ${X.YC};
  white-space: nowrap;
  justify-content: center;
  align-items: center;
`,qe=(0,V.A)("img")`
  width: 22px;
  height: auto;
`,Je=(0,r.memo)(()=>{const{formatMessage:e}=(0,q.tz)(),A=(0,l.useSelector)(Ge.p),{[E.x.IS_WAN_CONNECTED]:t}=(0,r.useContext)(m.A),{[ne.SERVICE_LATENCIES]:a}=(0,r.useContext)(Te);return t&&a.length?r.createElement(je,null,a.map(({service_name:t,latency:a})=>r.createElement(Ke,{key:t},t!==T.P0.CLOUDFLARE?r.createElement(Ve.A,{iconFileName:Be[t]}):r.createElement(qe,{src:`${A}/appLogos/cloudflare.svg`,alt:t}),r.createElement(Ie.A,{size:"medium",color:"text-3"},Number.isFinite(a)?e({id:"COMMON_UNIT_MILLISECONDS_SHORT"},{value:a>0?a:"<1"}).replace(Xe.LS,""):r.createElement(q.sA,{id:"COMMON_FALLBACK"}))))):null});var Qe=t(746289),$e=t(999589),eA=t(709690),AA=t(518689),tA=t(889750),aA=t(597766),nA=t(813378);const lA=(0,V.A)(Z.A)`
  width: 100%;
  justify-content: space-between;
  white-space: nowrap;
  gap: ${X.Ln};
`,rA=(0,V.A)(Z.A)`
  justify-content: center;
  align-items: center;
  gap: ${X.YC};
`,iA=(0,r.memo)(()=>{const{[E.x.CURRENT_ISP_ID]:e}=(0,r.useContext)(m.A),{[aA.AW.OBSTRUCTION]:A,[aA.AW.POP_PING_LATENCY_MS]:t,[aA.AW.SOFTWARE_VERSION]:a,[aA.AW.SOFTWARE_UPDATE_STATE]:n}=(0,l.useSelector)((0,r.useMemo)(()=>(0,tA.sG)(e),[e])),i=(0,r.useMemo)(()=>(0,$e.coerce)(a)?.version,[a]),o=(0,r.useMemo)(()=>{if(n)switch(n){case aA.G.REBOOT_REQUIRED:return"COMMON_UPDATE_AVAILABLE";case aA.G.IDLE:case aA.G.FETCHING:case aA.G.PRE_CHECK:case aA.G.WRITING:case aA.G.POST_CHECK:case aA.G.FAULTED:case aA.G.DISABLED:default:return"COMMON_UP_TO_DATE"}},[n]);return r.createElement(r.Fragment,null,Number.isFinite(A)?r.createElement(lA,null,r.createElement(rA,null,r.createElement(Ie.A,{size:"medium",color:"text-2"},r.createElement(q.sA,{id:"DASHBOARD_OBSTRUCTIONS"})),r.createElement(le.A,{style:{maxWidth:"285px"},description:r.createElement(q.sA,{id:"DASHBOARD_OBSTRUCTIONS_TOOLTIP"})},r.createElement("span",null,r.createElement(eA.A,{isActive:!0,size:"original"})))),r.createElement(Ie.A,{size:"medium",color:(0,nA.V)(A)},(0,AA.i)(A,3),"%")):null,Number.isFinite(t)?r.createElement(lA,null,r.createElement(rA,null,r.createElement(Ie.A,{size:"medium",color:"text-2"},r.createElement(q.sA,{id:"DASHBOARD_DISH_LATENCY"})),r.createElement(le.A,{style:{maxWidth:"280px"},description:r.createElement(q.sA,{id:"DASHBOARD_DISH_LATENCY_TOOLTIP"})},r.createElement("span",null,r.createElement(eA.A,{isActive:!0,size:"original"})))),r.createElement(Ie.A,{size:"medium",color:"text-3"},t>0?(0,AA.i)(t,1):"<1",r.createElement(q.sA,{id:"COMMON_UNIT_MS"}))):null,o?r.createElement(lA,null,r.createElement(Ie.A,{size:"medium",color:"text-2"},r.createElement(q.sA,{id:"DASHBOARD_STARLINK_FIRMWARE"})),r.createElement(Ie.A,{size:"medium",color:"text-3"},r.createElement(le.A,{description:i?r.createElement(q.sA,{id:"DASHBOARD_CURRENT_VERSION",values:{version:i}}):null},r.createElement("span",null,r.createElement(q.sA,{id:o}))))):null)});var oA;!function(e){e.STARLINK="starlink"}(oA||(oA={}));const sA=(0,r.memo)(()=>{const{[E.x.ISP_ASN]:e,[E.x.ISP_NAME]:A}=(0,r.useContext)(m.A);return(0,r.useMemo)(()=>{if(e===Qe.Z||A?.toLowerCase()===Qe.ej.toLowerCase())return oA.STARLINK},[e,A])===oA.STARLINK?r.createElement(iA,null):null});var cA=t(903216);const EA=(0,V.A)(Z.A)`
  width: 100%;
  justify-content: space-between;
`,mA=(0,r.memo)(()=>{const e=(0,r.useContext)(Te),A=(0,l.useSelector)(Ne.zi),t=(0,l.useSelector)(Ce.BQ),a=(0,r.useMemo)(()=>{const e=new Intl.DateTimeFormat(A,{month:"short",day:"numeric",year:"numeric",hourCycle:t});return`${e.format(new Date((new Date).getFullYear(),(new Date).getMonth(),1).getTime())} - ${e.format(Date.now())}`},[A,t]);return r.createElement(EA,null,r.createElement(Ie.A,{size:"medium",color:"text-2"},r.createElement(q.sA,{id:"COMMON_MONTHLY_DATA_USAGE"})),r.createElement(le.A,{description:a},r.createElement(Ie.A,{size:"medium",color:"text-3"},(0,cA.FI)(e[ne.MONTHLY_USAGE]))))}),dA=(e,A)=>{const t=Math.round(e/A*100);return t>=95?"red-06":t>=25?"orange-06":"green-06"},uA=(0,V.A)(Z.A)`
  width: 100%;
  justify-content: space-between;
`,TA=(0,V.A)(Z.A)`
  align-items: center;
`,OA=(0,r.memo)(()=>{const{[E.x.MBB_STATUS]:e,[E.x.CURRENT_WAN_DETAILS]:A}=(0,r.useContext)(m.A),t=(e=>e[T.TR.STATS]?.[T.UX.BYTES])(e)||(e=>e[T.YQ.STATS]?.[T.lE.BYTES])(A)||void 0,a=(e=>e[T.TR.LIMITS]?.[T.j3.HARD_LIMIT_ENABLED]?e[T.TR.LIMITS]?.[T.j3.HARD_LIMIT_BYTES]:e[T.TR.LIMITS]?.[T.j3.SOFT_LIMIT_BYTES])(e)||(e=>e[T.YQ.LIMITS]?.[T.Wx.HARD_LIMIT_ENABLED]?e[T.YQ.LIMITS]?.[T.Wx.HARD_LIMIT_BYTES]:e[T.YQ.LIMITS]?.[T.Wx.SOFT_LIMIT_BYTES])(A)||void 0;return t&&a?r.createElement(uA,null,r.createElement(Ie.A,{size:"medium",color:"text-2"},r.createElement(q.sA,{id:"COMMON_DATA_USAGE"})),r.createElement(TA,null,r.createElement(Ie.A,{size:"medium",color:dA(t,a)},(0,cA.FI)(t))," / ",r.createElement(Ie.A,{size:"medium",color:"text-3"},(0,cA.FI)(a)))):r.createElement(mA,null)});var IA,SA=t(300477),NA=t(271856),_A=t(758649),pA=t(543678),RA=t(53509),CA=t(121942),MA=t(968906),PA=t(199582);!function(e){e.TX="tx",e.RX="rx"}(IA||(IA={}));var DA=t(707889),fA=t(489391);const bA=(0,V.A)(Z.A)`
  flex-direction: column;
`,vA=(0,V.A)(Z.A)`
  margin-bottom: ${X.kc};
`,LA=(0,V.A)(Z.A)`
  flex-direction: column;
  gap: ${X.YC};
`,hA=(0,V.A)(Z.A)`
  justify-content: space-between;
`,yA=(0,V.A)(Z.A)`
  align-items: center;
`,zA=({type:e})=>{const A=(0,r.useContext)(Te),{value:t,unit:a,bytes:n}=new fA.Un(1e3*A[e===IA.TX?ne.ISP_CAPABILITY_UPLOAD_KILOBITS_PER_SECOND:ne.ISP_CAPABILITY_DOWNLOAD_KILOBITS_PER_SECOND]/8,"bitrate"),l=A[e===IA.TX?ne.ACTIVITY_MAX_TX_BYTES_R:ne.ACTIVITY_MAX_RX_BYTES_R];return r.createElement(bA,null,r.createElement(vA,null,r.createElement(Ie.A,{size:"medium",color:"text-1",weight:"bold"},r.createElement(q.sA,{id:e===IA.TX?"COMMON_UPLOAD":"COMMON_DOWNLOAD"}))),r.createElement(LA,null,r.createElement(hA,null,r.createElement(Ie.A,{size:"small",color:"text-1"},r.createElement(q.sA,{id:"COMMON_ISP_CAPACITY"})),r.createElement(Ie.A,{size:"small",color:"text-2"},`${t} ${a}`)),r.createElement(hA,null,r.createElement(Ie.A,{size:"small",color:"text-1"},r.createElement(q.sA,{id:"DASHBOARD_MODULE_INTERNET_REAL_TIME"})),r.createElement(Ie.A,{size:"small",color:"text-2"},(0,DA.A)(Math.min(1,new fA.Un(A[e===IA.TX?ne.ACTIVITY_TX_BYTES_R:ne.ACTIVITY_RX_BYTES_R],"bitrate").bytes/n)))),r.createElement(hA,null,r.createElement(Ie.A,{size:"small",color:"text-1"},r.createElement(q.sA,{id:"DASHBOARD_MODULE_INTERNET_PEAK_HOURS",values:{hours:24}})),r.createElement(yA,null,e===IA.TX?l&&r.createElement(_e.A.Icon,null)||r.createElement(pA.A,null):l&&r.createElement(pe.A.Icon,null)||r.createElement(RA.A,null),r.createElement(Ie.A,{size:"small",color:e===IA.TX?l?"traffic-up":"text-3":l?"traffic-down":"text-3"},(0,Se.zX)(l))," ",r.createElement(Ie.A,{size:"small",color:"text-2"},"(",Math.round(Math.min(100,l/n*100))||0,"%)")))))};var gA=t(994374),xA=t(825032);const WA="DOWNLOAD_COLOR",HA="UPLOAD_COLOR",wA="START_GRADIENT_OPACITY",UA="START_GRADIENT_OFFSET",kA="END_GRADIENT_OFFSET",GA="END_GRADIENT_OPACITY",VA="LINE_ALPHA",XA="LINE_WIDTH",ZA="LINE_OPACITY",YA="LINE_IS_VISIBLE",BA={[WA]:{[xA.S.DARK]:oe.Ay[`desktop-color-aqua-06-${xA.S.DARK}`],[xA.S.LIGHT]:oe.Ay[`desktop-color-aqua-06-${xA.S.LIGHT}`]},[HA]:{[xA.S.DARK]:oe.Ay[`desktop-color-purple-06-${xA.S.DARK}`],[xA.S.LIGHT]:oe.Ay[`desktop-color-purple-06-${xA.S.LIGHT}`]},[wA]:{[xA.S.LIGHT]:.4,[xA.S.DARK]:.7},[GA]:{[xA.S.LIGHT]:.1,[xA.S.DARK]:.1},[UA]:{[xA.S.LIGHT]:0,[xA.S.DARK]:0},[kA]:{[xA.S.LIGHT]:1,[xA.S.DARK]:1},[VA]:{[xA.S.LIGHT]:.9,[xA.S.DARK]:.9},[XA]:{[xA.S.LIGHT]:1,[xA.S.DARK]:1},[ZA]:{[xA.S.LIGHT]:1,[xA.S.DARK]:1},[YA]:{[xA.S.LIGHT]:!0,[xA.S.DARK]:!0}},FA=e=>({download:[{color:{[xA.S.DARK]:(0,Fe.b_)(String(BA[WA][xA.S.DARK]),Number(BA[wA][e])),[xA.S.LIGHT]:(0,Fe.b_)(String(BA[WA][xA.S.LIGHT]),Number(BA[wA][e]))},offset:Number(BA[UA][e])},{color:{[xA.S.DARK]:(0,Fe.b_)(String(BA[WA][xA.S.DARK]),Number(BA[GA][e])),[xA.S.LIGHT]:(0,Fe.b_)(String(BA[WA][xA.S.LIGHT]),Number(BA[GA][e]))},offset:Number(BA[kA][e])}],upload:[{color:{[xA.S.DARK]:(0,Fe.b_)(String(BA[HA][xA.S.DARK]),Number(BA[wA][e])),[xA.S.LIGHT]:(0,Fe.b_)(String(BA[HA][xA.S.LIGHT]),Number(BA[wA][e]))},offset:Number(BA[UA][e])},{color:{[xA.S.DARK]:(0,Fe.b_)(String(BA[HA][xA.S.DARK]),Number(BA[GA][e])),[xA.S.LIGHT]:(0,Fe.b_)(String(BA[HA][xA.S.LIGHT]),Number(BA[GA][e]))},offset:Number(BA[kA][e])}]}),jA=e=>({download:{alpha:Number(BA[VA][e]),color:{[xA.S.DARK]:(0,Fe.b_)(String(BA[WA][xA.S.DARK]),Number(BA[ZA][e])),[xA.S.LIGHT]:(0,Fe.b_)(String(BA[WA][xA.S.LIGHT]),Number(BA[ZA][e]))},isVisible:Boolean(BA[YA][e]),width:Number(BA[XA][e])},upload:{alpha:Number(BA[VA][e]),color:{[xA.S.DARK]:(0,Fe.b_)(String(BA[HA][xA.S.DARK]),Number(BA[ZA][e])),[xA.S.LIGHT]:(0,Fe.b_)(String(BA[HA][xA.S.LIGHT]),Number(BA[ZA][e]))},isVisible:Boolean(BA[YA][e]),width:Number(BA[XA][e])}}),KA=e=>1.25*e,qA=(e,A,t)=>{const a=(0,r.useRef)(KA(Math.max(e,A))),n=(0,r.useRef)([]),l=(0,r.useRef)(t?Date.now():void 0);return(0,r.useEffect)(()=>{const r=Date.now(),i=KA(Math.max(e,A));i>a.current?(a.current=i,t&&(l.current=r)):t&&n.current.push(i),t&&r>l.current+12e3&&(a.current=n.current.reduce((e,A)=>e+A,0)/n.current.length,l.current=r,n.current=[])},[e,A,t]),a.current},JA=(0,V.A)("div")`
  position: relative;
  width: 100%;
  height: ${48}px;
`,QA=({activityRxBytesR:e,activityTxBytesR:A,dashboardThroughputState:t,speedTestState:a})=>{const[n,l]=(0,r.useState)(!1),{ref:i,width:o=0}=(0,h.A)(),{themeName:s}=(0,se.u)(),{gradientColor:c,lineStyle:E}=(0,r.useMemo)(()=>({gradientColor:FA(s),lineStyle:jA(s)}),[s]);(0,r.useEffect)(()=>{setTimeout(()=>{l(!0)},750)},[]);const m=t[me.Hd.THROUGHPUT_STATE]===me.KJ.LIVE_THROUGHPUT;return r.createElement(JA,{ref:i},r.createElement(gA.A,{speedTestData:{download:n?e:null,upload:n?A:null},xDuration:m?8e3:a===de.H$.IN_PROGRESS?5e3:1,animationBuffer:1,height:48,yScale:(d=qA(e,A,m),{type:"linear",domain:[0,d],clamp:!0}),width:o,gradientColor:c,lineStyle:E}));var d},$A={portal:!0,width:270},et=(0,V.A)(Z.A)`
  flex-direction: column;
  gap: ${X.YC};
  width: 100%;
  overflow: hidden;
`,At=(0,V.A)(Z.A)`
  width: 100%;
  justify-content: space-between;
`,tt=(0,V.A)(Z.A)`
  gap: ${X.kc};
`,at=(0,V.A)(Z.A)`
  gap: ${X.YC};
  width: 100%;
  align-items: center;
  white-space: nowrap;
`,nt=(0,V.A)(Z.A)`
  flex-direction: column;
  position: relative;
`,lt=(0,V.A)(Z.A)`
    height: 1px;
    width: 100%;
    position: absolute;
    top: -${X.YC};
    background-color: ${({theme:{themeName:e}})=>oe.Ay[`desktop-color-aqua-06-${e}`]};
    animation: Loading 5s ease-in-out infinite;
    @keyframes Loading {
    0%   { transform: translateX(-100%); }
    45%  { transform: translateX(0);     }
    55%  { transform: translateX(0);     }
    90%  { transform: translateX(100%);  }
    100% { transform: translateX(100%);  }
`,rt=({activityRxBytesR:e,activityTxBytesR:A,speedTestState:t,customRxBytesR:a,customTxBytesR:n,[PA.L]:l,children:i})=>{const o=(0,r.useContext)(Te)[ne.CURRENT_THROUGHPUT_STATE],s=o[me.Hd.THROUGHPUT_STATE]===me.KJ.SPEED_TEST;return r.createElement(et,{...MA.A.addDataTestId(l)},r.createElement(At,null,r.createElement(Ie.A,{size:"medium",color:"text-2"},r.createElement(q.sA,{id:s?"COMMON_SPEED_TEST":"COMMON_THROUGHPUT"})),r.createElement(tt,null,r.createElement(NA.A,{...$A,description:s?void 0:r.createElement(zA,{type:IA.RX})},r.createElement(at,null,a||e||s?r.createElement(pe.A.Icon,null):r.createElement(RA.A,null),r.createElement(Ie.A,{size:"medium",color:a||e||s?"traffic-down":"text-3"},a||(0,Se.zX)(e||0)))),r.createElement(NA.A,{...$A,description:s?void 0:r.createElement(zA,{type:IA.TX})},r.createElement(at,null,n||A||s?r.createElement(_e.A.Icon,null):r.createElement(pA.A,null),r.createElement(Ie.A,{size:"medium",color:n||A||s?"traffic-up":"text-3"},n||(0,Se.zX)(A||0)))))),(0,r.useContext)(m.A)[E.x.IS_WAN_CONNECTED]?r.createElement(QA,{activityRxBytesR:e,activityTxBytesR:A,dashboardThroughputState:o,speedTestState:t}):null,i)},it=()=>{const e=(0,r.useContext)(Te);return r.createElement(rt,{...MA.A.addDataTestId(MA.A.TestId.DASHBOARD_PANEL_LIVE_ACTIVITY),activityRxBytesR:(0,CA.A)(e[ne.ACTIVITY_RX_BYTES_R]),activityTxBytesR:(0,CA.A)(e[ne.ACTIVITY_TX_BYTES_R])})},ot=()=>{const[e,A]=(0,r.useState)((0,SA.A)()),t=(0,r.useRef)(null),{formatMessage:a}=(0,q.tz)(),n=(0,l.useDispatch)(),i=(0,l.useSelector)(ce.xc),{download:o,upload:s,server:E,xput_download:m,xput_upload:d}=(0,l.useSelector)(ce.mi),u=(0,l.useSelector)(c.CN),T=(0,l.useSelector)(c.b8),O=(0,r.useContext)(Te),I=O[ne.SPEED_TEST_INTERFACE_NAME],S=O[ne.CURRENT_THROUGHPUT_STATE],N=i===de.H$.IN_PROGRESS,_=s.length>0,p=_,R=o.length>0,C=R&&!p,M=(0,CA.A)(o[o.length-1]||null),P=(0,CA.A)(s[s.length-1]||null),D=(0,r.useCallback)(()=>{n((0,Ee.KH)(I)),A((0,SA.A)())},[n,I]);(0,r.useEffect)(()=>{t.current&&clearTimeout(t.current),i===de.H$.FINISHED&&(t.current=setTimeout(()=>{n((0,x.D9)({...T,[u]:{...S,[me.Hd.THROUGHPUT_STATE]:me.KJ.LIVE_THROUGHPUT}}))},15e3))},[i,T,S,u,n]);const f=N&&C?M:R?(0,Se.N8)(m):null,b=N&&p?P:_?(0,Se.N8)(d):null;return r.createElement(rt,{...MA.A.addDataTestId(MA.A.TestId.DASHBOARD_PANEL_SPEED_TEST_ACTIVITY),key:e,activityRxBytesR:f,activityTxBytesR:b,customRxBytesR:f?void 0:a({id:"COMMON_FALLBACK"}),customTxBytesR:b?void 0:a({id:"COMMON_FALLBACK"}),speedTestState:i},N?r.createElement(nt,null,E?null:r.createElement(lt,null),r.createElement(U.A,{size:"small",color:"text-2",isCentered:!0},E?.provider&&E?.country?r.createElement(q.sA,{id:"COMMON_SPEED_TEST_PROVIDER",values:{provider:E.provider,location:E.country}}):r.createElement("span",null,r.createElement(q.sA,{id:"COMMON_CONNECTING"}),"..."))):i===de.H$.FINISHED?r.createElement(_A.A,{type:"button",size:"small",variant:"inline",onClick:D},r.createElement(q.sA,{id:"SPEED_TEST_TEST_AGAIN"})):null)},st=(0,r.memo)(()=>(0,r.useContext)(Te)[ne.CURRENT_THROUGHPUT_STATE][me.Hd.THROUGHPUT_STATE]===me.KJ.LIVE_THROUGHPUT?r.createElement(it,null):r.createElement(ot,null)),ct=(0,V.A)(Z.A)`
  width: 100%;
  flex-direction: column;
  gap: ${X.kc};
`;var Et=t(742920),mt=t(675359);const dt=(0,V.A)(Z.A)`
  width: 100%;
  gap: ${X.kc};
  flex-direction: column;
  max-height: 20px;
`,ut=(0,V.A)(Z.A)`
  width: 100%;
  justify-content: space-between;
  white-space: nowrap;
  gap: ${X.Ln};
`,Tt=(0,r.memo)(()=>{const e=(0,l.useDispatch)(),A=(0,r.useContext)(Te)[ne.WAN_IPV6],t=(0,r.useCallback)(()=>navigator.clipboard.writeText(A.join(", ")).then(()=>e((0,mt.ox)({icon:Et.C.success,message:"COMMON_COPIED_TO_CLIPBOARD",duration:1e3}))),[e,A]);return A.length?r.createElement(dt,null,r.createElement(ut,null,r.createElement(Ie.A,{size:"medium",color:"text-2"},r.createElement(q.sA,{id:"COMMON_WAN_IP_V6"})),r.createElement(le.A,{description:A.length?r.createElement(Z.A,{flexDirection:"column"},A.map(e=>r.createElement("span",{key:e},e))):null},r.createElement(U.A,{size:"medium",color:"text-3",isTruncated:!0,onClick:t},1===A.length?A[0]:r.createElement(eA.A,{isActive:!0,size:"original"}))))):null}),Ot=(0,V.A)(Z.A)`
  width: 100%;
  justify-content: space-between;
  white-space: nowrap;
  gap: ${X.Ln};
`,It=(0,r.memo)(()=>{const e=(0,r.useContext)(Te)[ne.WAN_IPV4];return e?r.createElement(Ot,null,r.createElement(Ie.A,{size:"medium",color:"text-2"},r.createElement(q.sA,{id:"COMMON_WAN_IP_ADDRESS"})),r.createElement(Ie.A,{size:"medium",color:"text-3"},e)):null});var St=t(744759),Nt=t(845312);const _t=(0,V.A)(Z.A)`
  align-items: center;
  gap: ${X.YC};
`,pt=(0,r.memo)(()=>{const e=(0,l.useDispatch)(),A=(0,r.useCallback)(()=>{e((0,g.XP)({type:z.H.DASHBOARD_WIFI_DOCTOR,id:"any"}))},[e]);return r.createElement(re.A,{type:"button",size:"medium",variant:"secondary-emphasis",width:"full",onPress:A},r.createElement(_t,null,r.createElement(Nt.A,{size:"original",color:oe.Ay[`desktop-color-ublue-06-${(0,se.u)().themeName}`]}),r.createElement(q.sA,{id:"DASHBOARD_WIFI_DOCTOR"})))}),Rt=(0,r.memo)(()=>r.createElement(ct,null,r.createElement(St.A,{dashboardWidget:b.Z.ISP_METRICS},r.createElement(sA,null)),(0,r.useContext)(m.A)[E.x.MBB_STATUS][T.TR.MBB_STATE]?r.createElement(r.Fragment,null,r.createElement(ke,null),r.createElement(ye,null)):r.createElement(r.Fragment,null,r.createElement(St.A,{dashboardWidget:b.Z.WAN},r.createElement(It,null),r.createElement(Tt,null))),r.createElement(OA,null),r.createElement(st,null),r.createElement(Je,null),r.createElement(St.A,{dashboardWidget:b.Z.SPEED_TEST},r.createElement(ve,null)),r.createElement(St.A,{dashboardWidget:b.Z.WIFI_DOCTOR},r.createElement(pt,null))));var Ct=t(54317);const Mt=(0,r.memo)(()=>{const{[E.x.CURRENT_WAN_UPTIME]:e}=(0,r.useContext)(m.A);return r.createElement(r.Fragment,null,r.createElement(le.A,{description:r.createElement(q.sA,{id:"COMMON_UPTIME"})},r.createElement(Ie.A,{...MA.A.addDataTestId(MA.A.TestId.ISP_UPTIME),size:"medium",color:(0,Ct.A)(e)},e,"%")))}),Pt=(0,V.A)(Z.A)`
  width: 100%;
  justify-content: space-between;
  margin-bottom: ${X.kc};
`,Dt=(0,V.A)(Z.A)`
  gap: ${X.YC};
  width: 100%;
  white-space: nowrap;
  max-width: 80%;
`,ft=(0,r.memo)(()=>{const{[E.x.IS_WAN_CONNECTED]:e,[E.x.ISP_NAME]:A,[E.x.ISP_ASN]:t}=(0,r.useContext)(m.A);return t||A?r.createElement(Pt,null,r.createElement(Dt,null,r.createElement(We.A,{ispName:A,ispAsn:t}),r.createElement(xe,{ispName:A,isWanConnected:e})),r.createElement(St.A,{dashboardWidget:b.Z.WAN},r.createElement(Mt,null))):null});var bt=t(46119),vt=t(187483),Lt=t(215454),ht=t(115603),yt=t(980059),zt=t(765562),gt=t(868456);const xt=(0,V.A)(Z.A)`
  width: 100%;
  justify-content: space-between;
  padding-top: ${X.YC};
`,Wt=(0,V.A)(Z.A)`
  gap: ${X.YC};
  align-items: center;
  max-width: 50%;
`,Ht=(0,V.A)(gt.A)`
  border-radius: 50%;
  padding: 1px;
  border: ${({theme:{themeName:e}})=>oe.Ay[`desktop-border-divider-${e}`]};
  color: ${({theme:{themeName:e}})=>oe.Ay[`desktop-color-neutral-08-${e}`]};
`,wt=(0,r.memo)(()=>{const e=(0,l.useSelector)(Lt.Eh),A=(0,l.useSelector)(Lt.K8),t=(0,l.useSelector)(Lt.Wg),a=(0,l.useSelector)(Lt.sL),n=(0,l.useSelector)(ht.t)[yt.U.MODEL],i=(0,l.useSelector)(vt.qf),o=(0,r.useMemo)(()=>t&&A?A.toLowerCase():n?n.toLowerCase():void 0,[n,t,A]),s=(0,r.useMemo)(()=>Boolean(o)&&Boolean(a),[o,a]),c=(0,r.useMemo)(()=>Boolean(e),[e]),E=(0,r.useCallback)(()=>{i?i(o,a):bt.A.open(`${zt.A.communityUiReleasesNetwork}/${o}/${a}`)},[i,o,a]),m=(0,r.useCallback)(()=>{i?i("network",e):bt.A.open(`${zt.A.communityUiReleasesNetwork}/${e}`)},[i,e]);return a||e?r.createElement(xt,null,a?r.createElement(Wt,{...MA.A.addDataTestId(MA.A.TestId.DASHBOARD_UNIFI_OS_VERSION)},r.createElement(U.A,{size:"small",color:"text-3",isTruncated:!0},r.createElement(q.sA,{id:"COMMON_UNIFI_OS"})," ",a),s?r.createElement(le.A,{description:r.createElement(q.sA,{id:"DASHBOARD_UNIFI_OS_RELEASE_NOTES"})},r.createElement("span",null,r.createElement(Ht,{size:"large",actionable:!0,onClick:E}))):null):null,e?r.createElement(Wt,{...MA.A.addDataTestId(MA.A.TestId.DASHBOARD_NETWORK_VERSION)},r.createElement(U.A,{size:"small",color:"text-3",isTruncated:!0},r.createElement(q.sA,{id:"COMMON_NETWORK"})," ",e),c?r.createElement(le.A,{description:r.createElement(q.sA,{id:"DASHBOARD_NETWORK_RELEASE_NOTES"})},r.createElement("span",null,r.createElement(Ht,{size:"large",actionable:!0,onClick:m}))):null):null):null});var Ut=t(75354);const kt=(0,V.A)(Z.A)`
  width: 100%;
  align-items: center;
  justify-content: space-between;
`,Gt=(0,r.memo)(()=>{const e=(0,l.useSelector)(_);return e?r.createElement(kt,{...MA.A.addDataTestId(MA.A.TestId.SYSTEM_UPTIME)},r.createElement(U.A,{size:"medium",color:"text-2",isTruncated:!0},r.createElement(q.sA,{id:"DASHBOARD_SYSTEM_UPTIME"})),r.createElement(U.A,{size:"medium",color:"text-3",isTruncated:!0,style:{whiteSpace:"nowrap"}},r.createElement(Ut.A,{uptime:e}))):null}),Vt=(0,O.Mz)(I.e6,e=>e[S.ZJ.SERVER_IP]),Xt=(0,V.A)(Z.A)`
  width: 100%;
  justify-content: space-between;
`,Zt=(0,r.memo)(()=>{const e=(0,l.useSelector)(Vt);return e?r.createElement(Xt,null,r.createElement(Ie.A,{size:"medium",color:"text-2"},r.createElement(q.sA,{id:"COMMON_SERVER_IP"})),r.createElement(U.A,{size:"medium",color:"text-3",isTruncated:!0},e)):null}),Yt=(0,V.A)(Z.A)`
  width: 100%;
  justify-content: space-between;
`,Bt=(0,r.memo)(()=>{const e=(0,l.useSelector)(p);return e?r.createElement(Yt,null,r.createElement(Ie.A,{size:"medium",color:"text-2"},r.createElement(q.sA,{id:"COMMON_GATEWAY_IP"})),r.createElement(U.A,{size:"medium",color:"text-3",isTruncated:!0},e)):null});var Ft=t(732063),jt=t(421851),Kt=t(895795),qt=t(727270);const Jt=(0,O.Mz)(Lt.C7,Lt.sA,(e,A)=>e||A),Qt=(0,O.Mz)(Lt.C7,Lt.sA,Lt.OX,Lt.tV,Vt,(e,A,t,a,n)=>e?`${qt.ud}${a}:${t}/inform`:A?`${qt.ud}${n}:${t}/inform`:null),$t=(0,V.A)(Z.A)`
  width: 100%;
  justify-content: space-between;
  > div {
    &:first-child,
    &:last-child {
      overflow: hidden;
    }
  }
`,ea=(0,V.A)(Z.A)`
  height: 100%;
  border-left: ${({theme:{themeName:e}})=>oe.Ay[`desktop-border-divider-${e}`]};
  margin: 0 ${X.kc};
`,Aa=(0,r.memo)(()=>{const e=(0,l.useDispatch)(),A=(0,l.useSelector)(Qt),t=(0,l.useSelector)(Jt),a=(0,r.useCallback)(()=>bt.A.open(zt.A.adoptionInstructions),[]),n=(0,r.useCallback)(()=>navigator.clipboard.writeText(A).then(()=>{e((0,mt.ox)({icon:Et.C.success,message:"COMMON_COPIED_TO_CLIPBOARD",duration:1e3}))}),[e,A]);return t?r.createElement($t,null,r.createElement(_A.A,{type:"button",size:"medium",variant:"inline",onClick:a},r.createElement(U.A,{size:"medium",color:"inherit",isTruncated:!0},r.createElement(q.sA,{id:"DASHBOARD_ADOPTION_INSTRUCTIONS"}))),r.createElement(ea,null),r.createElement(_A.A,{type:"button",size:"medium",variant:"inline",onClick:n},r.createElement(U.A,{size:"medium",color:"inherit",isTruncated:!0},r.createElement(q.sA,{id:"DASHBOARD_INFORM_URL"})),r.createElement(Kt.A,{style:{marginLeft:X.YC}}))):null});var ta,aa,na,la,ra,ia,oa,sa=t(956347),ca=t(221724),Ea=t(769851),ma=t(857456),da=t(273852),ua=t(442284),Ta=t(451860),Oa=t(15095),Ia=t(269672),Sa=t(627440),Na=t(674638),_a=t(760980),pa=t(913094);!function(e){e.COUNT="count",e.STATUS="status"}(ta||(ta={})),function(e){e.COUNT="count",e.PRODUCT_LINE="product_line"}(aa||(aa={})),function(e){e.ACCESS="ACCESS",e.CONNECT="CONNECT",e.LED="LED",e.NETWORK="NETWORK",e.PROTECT="PROTECT",e.APOLLO="APOLLO",e.TALK="TALK",e.DRIVE="DRIVE"}(na||(na={})),function(e){e.PROBLEM_DETAILS="problem_details",e.APPLICATION_DETAILS="application_details",e.TOTAL_COUNT="total_count",e.TYPE="type",e.SEARCH_TAG="search_tag"}(la||(la={})),function(e){e.CONNECTION_TYPES="connection_types"}(ra||(ra={})),function(e){e.DISCONNECTED="disconnected",e.ISOLATED="isolated",e.INTERRUPTED="interrupted"}(ia||(ia={})),function(e){e.GATEWAY="gateway",e.WIRED="wired",e.WIRELESS="wireless",e.UNIFI_CLIENT_DEVICE="unifi_client_device",e.CLIENT="client"}(oa||(oa={}));const Ra=(0,O.Mz)(I.e6,e=>e[S.ZJ.CONNECTIVITY_STATUS]||(0,o.A)()),Ca=(0,O.Mz)(Ra,e=>e[ra.CONNECTION_TYPES]||(0,s.A)());var Ma,Pa,Da;!function(e){e.ICON="Icon",e.LABEL="label",e.REDIRECT="redirect",e.BEFORE_REDIRECT="beforeRedirect",e.ON_MOUSE_ENTER="onMouseEnter"}(Ma||(Ma={})),function(e){e.ID="id",e.ICON="icon"}(Pa||(Pa={})),function(e){e.CONFIG="config",e.PROBLEM_DETAILS="problemDetails",e.APPLICATION_DETAILS="applicationDetails",e.SEARCH_TAG="searchTag"}(Da||(Da={}));var fa=t(276491),ba=t(920219),va=t(104490),La=t(880951),ha=t(622608),ya=t(355559),za=t(990467),ga=t(297266),xa=t(205697),Wa=t(851681);const Ha="DASHBOARD_PANEL_DEVICE_TOPOLOGY_CLASSNAME",wa="DASHBOARD_PANEL_DEVICE_TOPOLOGY_WARNING_CLASSNAME",Ua={[Wa.A3.UCKV1]:Ea.A,[Wa.A3.UCKV2]:Ea.A,[Wa.A3.UCKV3]:Ea.A,[Wa.A3.UCKG2]:Ea.A,[Wa.A3.UCKENT]:Ea.A,[Wa.A3.UCKP]:Ea.A,[Wa.A3.UDMB]:ya.A,[Wa.A3.UDMENT]:ca.A,[Wa.A3.UDMEA4B]:ca.A,[Wa.A3.UDMPRO]:ca.A,[Wa.A3.UDMPROSE]:ca.A,[Wa.A3.UDMPROMAX]:ca.A,[Wa.A3.UDMPROXG]:ca.A,[Wa.A3.UDW]:ca.A,[Wa.A3.UDWPRO]:ca.A,[Wa.A3.CLOUD]:Ea.A,[Wa.A3.UX]:ca.A,[Wa.A3.UDMA69B]:ca.A,[Wa.A3.UDMA6B4]:ca.A,[Wa.A3.UDR]:ya.A,[Wa.A3.UDMA67A]:ya.A,[Wa.A3.UDMA6B9]:ya.A,[Wa.A3.UDRULT]:ca.A,[Wa.A3.UCGMAX]:ca.A,[Wa.A3.UDMA6A8]:ca.A,[Wa.A3.UDMEA4C]:ca.A,[Wa.A3.UDMA6AD]:ca.A,[Wa.A3.UOSSERVER]:Ea.A},ka={[ia.DISCONNECTED]:"COMMON_OFFLINE",[ia.ISOLATED]:"COMMON_ISOLATED",[ia.INTERRUPTED]:"COMMON_INTERRUPTED"},Ga={[na.ACCESS]:{[Pa.ID]:"COMMON_ACCESS",[Pa.ICON]:xa.A},[na.CONNECT]:{[Pa.ID]:"COMMON_CONNECT",[Pa.ICON]:ga.A},[na.NETWORK]:{[Pa.ID]:"COMMON_OTHER",[Pa.ICON]:va.A},[na.PROTECT]:{[Pa.ID]:"COMMON_PROTECT",[Pa.ICON]:fa.A},[na.APOLLO]:{[Pa.ID]:"COMMON_PLAY",[Pa.ICON]:ba.A},[na.LED]:{[Pa.ID]:"COMMON_LED",[Pa.ICON]:La.A},[na.TALK]:{[Pa.ID]:"COMMON_TALK",[Pa.ICON]:za.A},[na.DRIVE]:{[Pa.ID]:"COMMON_DRIVE",[Pa.ICON]:ha.A}},Va=[na.PROTECT,na.TALK,na.ACCESS,na.CONNECT,na.APOLLO,na.LED,na.DRIVE,na.NETWORK];var Xa=t(61902);const Za=(0,V.A)(Z.A)`
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  ${e=>`\n      > div {\n        &.${Ha}_${oa.GATEWAY} { \n          box-shadow: 4px 0 0 0 ${(0,Xa.L)(e)};\n        }\n        &.${Ha}_${oa.WIRED}, &.${Ha}_${oa.WIRELESS}, &.${Ha}_${oa.UNIFI_CLIENT_DEVICE} { \n          box-shadow: 0 0 0 4px ${(0,Xa.L)(e)};\n        }\n        &.${Ha}_${oa.CLIENT} { \n          box-shadow: -4px 0 0 0 ${(0,Xa.L)(e)}; \n        }\n        &[class^='${Ha}'] {\n          z-index: 4;\n          background: ${(0,Xa.L)(e)};\n          > div {\n            display: flex;\n            align-items: center;\n            gap: ${X.kc};\n          }\n        }\n      }\n  `}
`,Ya=(0,V.A)(Z.A)`
  align-items: center;
`,Ba=(0,V.A)(Z.A,{shouldForwardProp:e=>"nodeCount"!==e})`
  height: 1px;
  position: absolute;
  border-bottom: 1px solid ${({theme:{themeName:e}})=>oe.Ay[`desktop-color-ublue-04-${e}`]};
  width: ${({nodeCount:e})=>Math.round(100/(e-1))}%;
  z-index: ${3};
`,Fa=(0,V.A)(Z.A)`
  height: 1px;
  width: 100%;
  z-index: ${2};
  position: absolute;
  background-image: linear-gradient(
    to right,
    ${({theme:{themeName:e}})=>oe.Ay[`desktop-color-ublue-04-${e}`]} 33%,
    rgba(255, 255, 255, 0) 0%
  );
  background-position: bottom;
  background-size: 4px 1px;
  background-repeat: repeat-x;
`,ja=(0,V.A)(Z.A)`
  flex-direction: column;
  gap: ${X.YC};
  margin-bottom: ${X.YC};
`,Ka=(0,V.A)(Z.A)`
  position: relative;
  &.${wa} {
    &:after {
      content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: ${({theme:{themeName:e}})=>oe.Ay[`desktop-color-red-06-${e}`]};
      position: absolute;
      top: 0;
      right: 0;
      z-index: ${4};
    }
  }
`,qa=(0,V.A)(Z.A)`
  gap: ${X.YC};
  cursor: pointer;
  align-items: center;
`,Ja=(0,V.A)(Z.A)`
  flex-direction: column;
  gap: ${X.YC};
`,Qa=(0,V.A)(Z.A)`
  align-items: center;
  gap: ${X.YC};
`,$a=e=>r.createElement(Ie.A,{key:`${e[ta.COUNT]}__${e[ta.STATUS]}`,size:"small",color:"text-1"},r.createElement(q.sA,{id:ka[e[ta.STATUS]]}),` (${e[ta.COUNT]})`),en=e=>{return A=Ga[e[aa.PRODUCT_LINE]]||(0,o.A)(),r.createElement(Qa,{key:`${e[aa.COUNT]}__${e[aa.PRODUCT_LINE]}`},(0,r.createElement)(A[Pa.ICON]||ma.A,{size:"medium"}),r.createElement(Ie.A,{size:"small",color:"text-1"},e[aa.COUNT]," ",r.createElement(q.sA,{id:A[Pa.ID]||"COMMON_UNKNOWN"})));var A},An=(e,A)=>Va.indexOf(e[aa.PRODUCT_LINE])-Va.indexOf(A[aa.PRODUCT_LINE]),tn=(0,r.memo)(({systemUnifiConsoleType:e})=>{const A=(0,l.useDispatch)(),t=(0,sa.W6)(),{formatMessage:a}=(0,q.tz)(),n=(0,Oa.A)(Sa.VO.DEVICES),i=(0,Oa.A)(Sa.VO.CLIENTS),o=(0,l.useSelector)(Ca),c=(0,l.useSelector)(Ne.zi),E=(0,r.useContext)(jt.A)[Ft.V.PRELOAD_UNIFI_DEVICES],m=(0,r.useContext)(jt.A)[Ft.V.PRELOAD_CLIENTS],d=(0,r.useCallback)(()=>{A((0,_a.D6)(Na.R))},[A]),u=(0,r.useCallback)(()=>{A((0,pa.J)())},[A]),T=(0,r.useMemo)(()=>({[oa.GATEWAY]:{[Ma.ICON]:Ua[e]||ca.A,[Ma.LABEL]:"COMMON_GATEWAYS",[Ma.REDIRECT]:n,[Ma.BEFORE_REDIRECT]:d,[Ma.ON_MOUSE_ENTER]:E},[oa.WIRED]:{[Ma.ICON]:Ea.A,[Ma.LABEL]:"COMMON_WIRED",[Ma.REDIRECT]:n,[Ma.BEFORE_REDIRECT]:d,[Ma.ON_MOUSE_ENTER]:E},[oa.WIRELESS]:{[Ma.ICON]:ua.A,[Ma.LABEL]:"COMMON_ACCESS_POINTS",[Ma.REDIRECT]:n,[Ma.BEFORE_REDIRECT]:d,[Ma.ON_MOUSE_ENTER]:E},[oa.UNIFI_CLIENT_DEVICE]:{[Ma.ICON]:ma.A,[Ma.LABEL]:"COMMON_NON_NETWORK_DEVICES",[Ma.REDIRECT]:n,[Ma.BEFORE_REDIRECT]:d,[Ma.ON_MOUSE_ENTER]:E},[oa.CLIENT]:{[Ma.ICON]:da.A,[Ma.LABEL]:"COMMON_CLIENTS",[Ma.REDIRECT]:i,[Ma.BEFORE_REDIRECT]:u,[Ma.ON_MOUSE_ENTER]:m}}),[e,n,i,E,m,d,u]),O=(0,r.useMemo)(()=>new Intl.NumberFormat(c,{notation:"compact"}),[c]),I=(0,r.useMemo)(()=>o.filter(e=>e[la.TYPE]!==oa.GATEWAY&&e[la.TYPE]!==oa.UNIFI_CLIENT_DEVICE||e[la.TOTAL_COUNT]>0),[o]),S=(0,r.useCallback)(e=>()=>{e[Ma.BEFORE_REDIRECT](),t.push(e[Ma.REDIRECT],{[Ia.Gd.SEARCH_INITIAL_TAGS]:e[Ia.Gd.SEARCH_INITIAL_TAGS].map(e=>a({id:Ta.D[e]||e,defaultMessage:void 0}))})},[t,a]),N=(0,r.useCallback)(e=>{return A={[Da.CONFIG]:T[e[la.TYPE]],[Da.PROBLEM_DETAILS]:e[la.PROBLEM_DETAILS]||(0,s.A)(),[Da.APPLICATION_DETAILS]:e[la.APPLICATION_DETAILS]||(0,s.A)(),[Da.SEARCH_TAG]:e[la.SEARCH_TAG]||void 0},r.createElement(r.Fragment,{key:e[la.TYPE]},e[la.TYPE]===oa.GATEWAY?r.createElement(Ba,{nodeCount:I.length}):null,r.createElement(Ya,{onMouseEnter:A[Da.CONFIG][Ma.ON_MOUSE_ENTER],className:`${Ha}_${e[la.TYPE]}`},r.createElement(NA.A,{width:"100%",maxWidth:"max-content",description:r.createElement(ja,null,r.createElement(Ie.A,{size:"small",weight:"bold",color:"text-1"},r.createElement(q.sA,{id:A[Da.CONFIG][Ma.LABEL]})," (",e[la.TOTAL_COUNT],")"),A[Da.PROBLEM_DETAILS].length?r.createElement(Ja,null,A[Da.PROBLEM_DETAILS].map($a)):null,A[Da.APPLICATION_DETAILS].length?r.createElement(Ja,null,A[Da.APPLICATION_DETAILS].sort(An).map(en)):null),cursorType:"pointer",portal:!0},r.createElement(qa,{onClick:S({[Ma.REDIRECT]:A[Da.CONFIG][Ma.REDIRECT],[Ma.BEFORE_REDIRECT]:A[Da.CONFIG][Ma.BEFORE_REDIRECT],[Ia.Gd.SEARCH_INITIAL_TAGS]:[A[Da.SEARCH_TAG]]})},r.createElement(Ka,{className:A[Da.PROBLEM_DETAILS].length?wa:null},(0,r.createElement)(A[Da.CONFIG][Ma.ICON],{size:"original",isActive:!0})),r.createElement(Ie.A,{size:"medium",color:"text-2"},e[la.TOTAL_COUNT]>999?`${O.format(999)}+`:e[la.TOTAL_COUNT])))));var A},[T,O,I.length,S]);return I.length?r.createElement(Za,null,I.map(N),r.createElement(Fa,null)):null});var an=t(771641),nn=t(802493);const ln=(0,V.A)(nn.A)`
  border-radius: 50%;
  padding: 1px;
  border: ${({theme:{themeName:e}})=>oe.Ay[`desktop-border-divider-${e}`]};
  color: ${({theme:{themeName:e}})=>oe.Ay[`desktop-color-neutral-08-${e}`]};
`,rn=(0,r.memo)(()=>{const e=(0,l.useSelector)(vt.W1),A=(0,r.useContext)(m.A)[E.x.REDIRECTOR][an.d.CONTROL_PLANE][an.q.REDIRECT];return e?null:r.createElement(le.A,{description:r.createElement(q.sA,{id:"COMMON_CONTROL_PLANE"})},r.createElement("span",null,r.createElement(ln,{size:"large",actionable:!0,onClick:A})))}),on=(0,V.A)(Z.A,{shouldForwardProp:e=>"hasMac"!==e})`
  width: 100%;
  justify-content: space-between;
  overflow: hidden;
  cursor: ${({hasMac:e})=>e?"pointer":"default"};
  align-items: center;
  gap: 2px;
`,sn=(0,r.memo)(({mac:e,onClick:A})=>{const t=(0,l.useSelector)(Lt.bk);return r.createElement(on,{hasMac:Boolean(e)},r.createElement(le.A,{description:t},r.createElement(U.A,{size:"medium",color:"text-1",isTruncated:!0,onClick:A},t)),r.createElement(rn,null))});var cn,En,mn=t(876250),dn=t(6176),un=t(998428);!function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(cn||(cn={})),function(e){e.ORIENTATION="orientation",e.WIDTH="width"}(En||(En={}));const Tn=(0,V.A)(_A.A,{shouldForwardProp:e=>"hasMac"!==e})`
  cursor: ${({hasMac:e})=>e?"pointer":"default"};
`,On=(0,r.memo)(({dashboardDeviceImageConfig:e,mac:A,onClick:t})=>{const[a,n]=(0,r.useState)(void 0),i=(0,l.useSelector)(Lt.xF),o=(0,r.useMemo)(()=>a?40:e[En.WIDTH],[a,e]),s=(0,r.useCallback)(()=>{n(!0)},[]),c=(0,r.useMemo)(()=>({[i[Wa.YA.MODEL_NAME]]:(0,un.yS)(i)}),[i]);return r.createElement(Tn,{type:"button",variant:"inline",onClick:t,hasMac:Boolean(A)},r.createElement(dn.C,{model:i[Wa.YA.MODEL_NAME],width:o,variant:mn.Hx.NOPADDING,size:mn.Xh.MEDIUM,onErrorCallback:s,deviceModelMap:c}))}),In="NETWORK_SERVER",Sn={[Wa.A3.UCKV1]:{[En.ORIENTATION]:cn.HORIZONTAL,[En.WIDTH]:60},[Wa.A3.UCKV2]:{[En.ORIENTATION]:cn.HORIZONTAL,[En.WIDTH]:60},[Wa.A3.UCKV3]:{[En.ORIENTATION]:cn.HORIZONTAL,[En.WIDTH]:60},[Wa.A3.UCKG2]:{[En.ORIENTATION]:cn.HORIZONTAL,[En.WIDTH]:60},[Wa.A3.UCKENT]:{[En.ORIENTATION]:cn.HORIZONTAL,[En.WIDTH]:80},[Wa.A3.UCKP]:{[En.ORIENTATION]:cn.HORIZONTAL,[En.WIDTH]:60},[Wa.A3.UDMB]:{[En.ORIENTATION]:cn.VERTICAL,[En.WIDTH]:20},[Wa.A3.UDMENT]:{[En.ORIENTATION]:cn.HORIZONTAL,[En.WIDTH]:80},[Wa.A3.UDMEA4B]:{[En.ORIENTATION]:cn.HORIZONTAL,[En.WIDTH]:80},[Wa.A3.UDMPRO]:{[En.ORIENTATION]:cn.HORIZONTAL,[En.WIDTH]:80},[Wa.A3.UDMPROSE]:{[En.ORIENTATION]:cn.HORIZONTAL,[En.WIDTH]:80},[Wa.A3.UDMPROMAX]:{[En.ORIENTATION]:cn.HORIZONTAL,[En.WIDTH]:80},[Wa.A3.UDMPROXG]:{[En.ORIENTATION]:cn.HORIZONTAL,[En.WIDTH]:80},[Wa.A3.UDW]:{[En.ORIENTATION]:cn.VERTICAL,[En.WIDTH]:20},[Wa.A3.UDWPRO]:{[En.ORIENTATION]:cn.VERTICAL,[En.WIDTH]:20},[Wa.A3.CLOUD]:{[En.ORIENTATION]:cn.HORIZONTAL,[En.WIDTH]:40},[Wa.A3.UX]:{[En.ORIENTATION]:cn.HORIZONTAL,[En.WIDTH]:80},[Wa.A3.UDMA69B]:{[En.ORIENTATION]:cn.HORIZONTAL,[En.WIDTH]:60},[Wa.A3.UDMA6B4]:{[En.ORIENTATION]:cn.HORIZONTAL,[En.WIDTH]:60},[Wa.A3.UDR]:{[En.ORIENTATION]:cn.VERTICAL,[En.WIDTH]:20},[Wa.A3.UDMA67A]:{[En.ORIENTATION]:cn.VERTICAL,[En.WIDTH]:20},[Wa.A3.UDMA6B9]:{[En.ORIENTATION]:cn.VERTICAL,[En.WIDTH]:20},[Wa.A3.UDRULT]:{[En.ORIENTATION]:cn.HORIZONTAL,[En.WIDTH]:80},[Wa.A3.UCGMAX]:{[En.ORIENTATION]:cn.HORIZONTAL,[En.WIDTH]:60},[Wa.A3.UDMA6A8]:{[En.ORIENTATION]:cn.HORIZONTAL,[En.WIDTH]:60},[Wa.A3.UDMEA4C]:{[En.ORIENTATION]:cn.HORIZONTAL,[En.WIDTH]:80},[Wa.A3.UDMA6AD]:{[En.ORIENTATION]:cn.HORIZONTAL,[En.WIDTH]:80},[Wa.A3.UOSSERVER]:{[En.ORIENTATION]:cn.VERTICAL,[En.WIDTH]:60},[In]:{[En.ORIENTATION]:cn.VERTICAL,[En.WIDTH]:60}},Nn=(0,V.A)(Z.A)`
  width: 100%;
  flex-direction: column;
  gap: ${X.kc};
  overflow: hidden;
`,_n=(0,V.A)(Z.A)`
  width: 100%;
  flex-direction: column;
  gap: ${X.kc};
  overflow: hidden;
`,pn=(0,V.A)(Z.A)`
  width: 100%;
  gap: ${X.kc};
  align-items: center;
  overflow: hidden;
`,Rn=(0,V.A)(Z.A)`
  width: 100%;
  gap: ${X.xO};
  align-items: center;
  overflow: hidden;
`,Cn=(0,V.A)(Z.A)`
  width: 100%;
  gap: ${X.kc};
  flex-direction: column;
  overflow: hidden;
`,Mn=(0,r.memo)(()=>{const e=(0,l.useDispatch)(),A=(0,l.useSelector)(Lt.K8),t=(0,l.useSelector)(vt.W1),a=(0,l.useSelector)(ht.t)[yt.U.MAC],n=(0,r.useContext)(jt.A)[Ft.V.PRELOAD_DEVICES],i=(0,r.useMemo)(()=>Sn[t?In:A]||(0,o.A)(),[A,t]),s=(0,r.useCallback)(()=>{a&&e((0,g.XP)({type:z.H.DEVICE,id:a}))},[a,e]);return r.createElement(Nn,{onMouseEnter:n},i[En.ORIENTATION]===cn.HORIZONTAL?r.createElement(_n,null,r.createElement(pn,null,r.createElement(On,{dashboardDeviceImageConfig:i,mac:a,onClick:s}),r.createElement(sn,{mac:a,onClick:s})),r.createElement(St.A,{dashboardWidget:b.Z.CONNECTIVITY_STATUS},r.createElement(tn,{systemUnifiConsoleType:A}))):r.createElement(Rn,null,r.createElement(On,{dashboardDeviceImageConfig:i,mac:a,onClick:s}),r.createElement(Cn,null,r.createElement(sn,{mac:a,onClick:s}),r.createElement(St.A,{dashboardWidget:b.Z.CONNECTIVITY_STATUS},r.createElement(tn,{systemUnifiConsoleType:A})))),r.createElement(Aa,null))}),Pn=(0,V.A)(Z.A)`
  flex-direction: column;
  gap: ${X.kc};
`,Dn=(0,r.memo)(()=>r.createElement(Pn,null,r.createElement(Mn,null),r.createElement(St.A,{dashboardWidget:b.Z.SERVER_IP},r.createElement(Zt,null)),r.createElement(St.A,{dashboardWidget:b.Z.SYSTEM_STATUS},r.createElement(Bt,null)),r.createElement(St.A,{dashboardWidget:b.Z.SYSTEM_STATUS},r.createElement(Gt,null)))),fn=(0,r.memo)(()=>r.createElement(L.cW,null,r.createElement(Dn,null),r.createElement(wt,null),r.createElement(St.A,{dashboardWidget:b.Z.WAN},r.createElement(te,null),(0,r.useContext)(m.A)[E.x.MBB_STATUS][T.TR.MBB_STATE]?null:r.createElement(ft,null),r.createElement(Rt,null))));var bn,vn=t(613870),Ln=t(404868);!function(e){e.LABEL_ID="labelId",e.ICON="icon",e.COLOR="color"}(bn||(bn={}));var hn=t(167915),yn=t(819663);const zn=(0,V.A)(Z.A)`
  width: 100%;
  justify-content: space-between;
`,gn=(0,V.A)(Z.A)`
  gap: ${X.Ln};
  align-items: center;
`,xn=(0,V.A)(Z.A)`
  flex-direction: column;
`,Wn=(0,V.A)(Z.A)`
  align-items: center;
  white-space: nowrap;
  > svg {
    margin-right: ${X.kc};
  }
`,Hn=(0,V.A)(Z.A,{shouldForwardProp:e=>"color"!==e})`
  background: ${({color:e})=>(0,yn.A)(e).alpha(.2).css()};
  border: 1px solid ${({color:e})=>e};
  border-radius: 100%;
  position: relative;
  height: 42px;
  width: 42px;
`,wn=e=>(0,V.A)(e,{shouldForwardProp:e=>"color"!==e})`
  width: 14px;
  height: 14px;
  position: absolute;
  bottom: 0;
  right: -2px;
  color: ${({color:e})=>e};
`,Un=(0,r.memo)(()=>{const e=(0,l.useDispatch)(),{themeName:A}=(0,se.u)(),t=(0,r.useContext)(Te)[ne.LTE],a=t[ae.STATE],n=t[ae.USED_BYTES],i=t[ae.SOFT_LIMIT_BYTES],s=t[ae.MAC],c=(0,r.useMemo)(()=>(e=>({[T.$D.READY]:{labelId:"DASHBOARD_MODULE_LTE_STATE_READY",icon:(0,r.createElement)(wn(hn.A),{color:oe.Ay[`desktop-color-green-05-${e}`],type:"positive",variant:"fill"}),color:oe.Ay[`desktop-color-green-05-${e}`]},[T.$D.ACTIVE]:{labelId:"COMMON_ACTIVE",icon:(0,r.createElement)(wn(hn.A),{color:oe.Ay[`desktop-color-green-05-${e}`],type:"positive",variant:"fill"}),color:oe.Ay[`desktop-color-green-05-${e}`]},[T.$D.DISCONNECTED]:{labelId:"COMMON_DISCONNECTED",icon:(0,r.createElement)(wn(hn.A),{color:oe.Ay[`desktop-color-neutral-06-${e}`],type:"destructive",variant:"fill"}),color:oe.Ay[`desktop-color-neutral-06-${e}`]},[T.$D.WARNING]:{labelId:"DASHBOARD_MODULE_LTE_STATE_WARNING",icon:(0,r.createElement)(wn(hn.A),{color:oe.Ay[`desktop-color-orange-06-${e}`],type:"destructive",variant:"fill"}),color:oe.Ay[`desktop-color-orange-06-${e}`]}}))(A)[a]||(0,o.A)(),[A,a]),E=(0,r.useMemo)(()=>(0,cA.FI)(n),[n]),m=(0,r.useMemo)(()=>(0,cA.FI)(i),[i]),d=(0,r.useCallback)(()=>{e((0,g.XP)({type:z.H.DEVICE,id:s}))},[e,s]);return a?r.createElement(L.cW,null,r.createElement(zn,null,r.createElement(gn,null,r.createElement(Hn,{flex:"none",justifyContent:"center",alignItems:"center",color:c[bn.COLOR]},r.createElement(dn.A,{model:t[ae.MODEL]}),c[bn.ICON]),r.createElement(xn,null,r.createElement(Ie.A,{color:"text-1",size:"medium",weight:"bold"},r.createElement(q.sA,{id:"DASHBOARD_MODULE_LTE_INTERNET_LABEL"})," ",r.createElement(q.sA,{id:c[bn.LABEL_ID]})),t[ae.STATE]===T.$D.READY||t[ae.STATE]===T.$D.ACTIVE?r.createElement(Wn,null,r.createElement(vn.A,{inactiveColor:oe.Ay[`desktop-color-neutral-05-${A}`],width:25,height:20,color:oe.Ay[`desktop-color-green-05-${A}`],strength:t[ae.SIGNAL]}),r.createElement(Ie.A,{size:"medium",style:{color:c[bn.COLOR]}},E),t[ae.SOFT_LIMIT_BYTES]>0?r.createElement(Ie.A,{size:"medium",color:"text-3"}," / ",m):null):r.createElement(Ie.A,{size:"medium",color:"text-3"},r.createElement(q.sA,{id:"DASHBOARD_NO_DATA_AVAILABLE"})))),r.createElement(Ln.A,{redirector:{[an.q.AVAILABLE]:!0,[an.q.REDIRECT]:d}}))):null});var kn=t(773412),Gn=t(823858);const Vn=(0,O.Mz)(I.e6,e=>e[S.ZJ.DEVICE_CAPACITY]||(0,o.A)());var Xn;!function(e){e.DEVICE_COUNT="device_count",e.DEVICE_LIMIT="device_limit"}(Xn||(Xn={}));const Zn="DASHBOARD_PANEL_DEVICE_CAPACITY_BUTTON_CLASSNAME",Yn=(0,V.A)(Z.A)`
  flex-direction: column;
  gap: ${X.kc};
`,Bn=(0,V.A)(Z.A)`
  width: 100%;
  justify-content: space-between;
`,Fn=(0,V.A)(Z.A)`
  align-items: center;
  gap: ${X.YC};
`,jn=(0,V.A)(Z.A)`
  width: 100%;
  flex-direction: column;
  gap: ${X.YC};
  .${Zn} {
    width: max-content;
  }
`,Kn=(0,r.memo)(()=>{const{themeName:e}=(0,se.u)(),{[Xn.DEVICE_COUNT]:A,[Xn.DEVICE_LIMIT]:t}=(0,l.useSelector)(Vn),a=(0,r.useMemo)(()=>A/t*100,[A,t]),n=(0,r.useMemo)(()=>a>=75,[a]),i=(0,r.useMemo)(()=>[{value:a,color:n?oe.Ay[`desktop-color-orange-06-${e}`]:oe.Ay[`desktop-color-ublue-04-${e}`]}],[a,n,e]),{[E.x.REDIRECTOR]:{[an.d.CONTROL_PLANE]:{[an.q.REDIRECT]:o}}}=(0,r.useContext)(m.A);return[t,A].every(Number.isInteger)?r.createElement(L.cW,null,r.createElement(Yn,null,r.createElement(Bn,null,r.createElement(Ie.A,{size:"medium",color:"text-1",weight:"bold"},r.createElement(q.sA,{id:"DASH_CC_DEV_CAP"})),r.createElement(Fn,null,n?r.createElement(Gn.A,{size:"original",variant:"fill",color:oe.Ay[`desktop-color-orange-06-${e}`]}):null,r.createElement(Ie.A,{size:"medium",color:"text-3"},A,"/",t))),r.createElement(jn,null,r.createElement(kn.A,{rounded:!0,items:i}),r.createElement(_A.A,{wrapClassName:Zn,type:"button",size:"medium",variant:"inline",onClick:o},r.createElement(q.sA,{id:"DASH_CC_MANAGE_CLOUD_SUB"}))))):null});var qn=t(564985);const Jn=(0,O.Mz)(I.e6,e=>e[S.ZJ.WIFI_CHANNEL_PRESET_CONFIGURATION]||(0,o.A)());var Qn,$n,el,Al,tl;!function(e){e.CHANNEL_PRESET_TYPE="channel_preset_type",e.RADIOS_CONFIGURATION="radios_configuration"}(Qn||(Qn={})),function(e){e.CHANNEL_WIDTH="channel_width",e.RADIO="radio",e.DFS_ENABLED="dfs_enabled"}($n||($n={})),function(e){e.CONSERVATIVE="conservative",e.MAXIMUM_SPEED="maximum_speed",e.CUSTOM="custom"}(el||(el={})),function(e){e[e._20=20]="_20",e[e._40=40]="_40",e[e._80=80]="_80",e[e._160=160]="_160",e[e._320=320]="_320"}(Al||(Al={})),function(e){e.ACTIVE="active",e.COLOR="color",e.DFS="dfs",e.PLACEHOLDER="placeholder"}(tl||(tl={}));var al=t(572112);const nl=(0,V.A)(Z.A)`
  width: 100%;
  flex-direction: column;
  gap: ${X.YC};
  white-space: nowrap;
`,ll=(0,V.A)(Z.A)`
  width: 100%;
  justify-content: space-between;
`,rl=(0,V.A)(Z.A)`
  align-items: center;
  gap: 2px;
  max-width: 60%;
`,il=(0,V.A)(Z.A)`
  align-items: center;
  cursor: pointer;
`,ol=(0,V.A)(Z.A)`
  width: 100%;
  gap: ${X.YC};
  flex-direction: column;
  @media ${al.A.DASHBOARD.LAYOUT.MOBILE} {
    flex-direction: row;
    gap: ${X.Er};
  }
`,sl=(0,V.A)(Z.A)`
  width: 100%;
  gap: ${X.YC};
  > {
    &:first-child {
      padding: 0 ${X.YC} 0 0;
    }
  }
`,cl=(0,V.A)(Z.A,{shouldForwardProp:e=>!["active","placeholder"].includes(e)})`
  width: 100%;
  justify-content: center;
  border-radius: ${oe.Ay["desktop-radius-base"]};
  background-color: ${({active:e=!1,placeholder:A,theme:{themeName:t}})=>A?"transparent":oe.Ay[`desktop-color-${e?"ublue-01":"neutral-01"}-${t}`]};
  > span {
    visibility: ${({placeholder:e})=>e?"hidden":"visible"};
  }
`,El=(e,A=!1)=>({[tl.ACTIVE]:!A&&e,[tl.COLOR]:A?"traffic-up":e?"ublue-06":"text-3",[tl.DFS]:A,[tl.PLACEHOLDER]:!1}),ml=([e,A])=>r.createElement(cl,{key:[e,A[tl.ACTIVE]].join(),placeholder:A[tl.PLACEHOLDER],active:A[tl.ACTIVE]},r.createElement(Ie.A,{size:"small",color:A[tl.COLOR]},A[tl.DFS]?r.createElement(q.sA,{id:"COMMON_DEVICE_RADIO_CHANNEL_DFS"}):e)),dl={[el.CONSERVATIVE]:"DASHBOARD_CONSERVATIVE",[el.MAXIMUM_SPEED]:"DASHBOARD_MAX_SPEED",[el.CUSTOM]:"COMMON_CUSTOM"},ul=(0,r.memo)(()=>{const e=(0,r.useContext)(m.A)[E.x.REDIRECTOR][an.d.WIFI_SETTINGS],A=(0,l.useSelector)(Jn),t=A[Qn.CHANNEL_PRESET_TYPE],a=(0,r.useMemo)(()=>dl[t],[t]),n=(0,r.useMemo)(()=>{let e=null,t=!1,a=null;const n=A[Qn.RADIOS_CONFIGURATION]||[];for(let A=0;A<n.length;A+=1){const l=n[A],r=+l[$n.CHANNEL_WIDTH];switch(l[$n.RADIO]){case qn.sx.RADIO_NA:e=r,t=l[$n.DFS_ENABLED];break;case qn.sx.RADIO_6E:a=r}}return{[qn.sx.RADIO_NA]:Object.entries({[Al._20]:El(e===Al._20),[Al._40]:El(e===Al._40),[Al._80]:El(e===Al._80),[Al._160]:El(e===Al._160),[Al._320]:t?El(!1,!0):{[tl.ACTIVE]:!1,[tl.COLOR]:void 0,[tl.DFS]:!1,[tl.PLACEHOLDER]:!0}}),[qn.sx.RADIO_6E]:Object.entries({[Al._20]:El(a===Al._20),[Al._40]:El(a===Al._40),[Al._80]:El(a===Al._80),[Al._160]:El(a===Al._160),[Al._320]:El(a===Al._320)})}},[A]);return r.createElement(L.cW,null,r.createElement(nl,null,r.createElement(ll,null,r.createElement(rl,null,r.createElement(U.A,{size:"medium",color:"text-2",isTruncated:!0},r.createElement(q.sA,{id:"DASHBOARD_DEFAULT_WIFI_SPEEDS"}))),e[an.q.AVAILABLE]?r.createElement(il,null,a?r.createElement(U.A,{isTruncated:!0,size:"medium",color:"text-3",onClick:e[an.q.REDIRECT]},r.createElement(q.sA,{id:a})):null,r.createElement(Ln.A,{redirector:e})):null),r.createElement(Ie.A,{size:"small",color:"text-3"},r.createElement(q.sA,{id:"DASHBOARD_CHANNEL_WIDTHS_MHZ"})),r.createElement(ol,null,r.createElement(sl,null,r.createElement(Ie.A,{size:"small",color:"text-3"},r.createElement(q.sA,{id:"COMMON_RADIO_BAND_NA"})),n[qn.sx.RADIO_NA].map(ml)),r.createElement(sl,null,r.createElement(Ie.A,{size:"small",color:"text-3"},r.createElement(q.sA,{id:"COMMON_RADIO_BAND_6E"})),n[qn.sx.RADIO_6E].map(ml)))))}),Tl=(0,r.memo)(()=>{const e=(0,l.useSelector)(Re.EL),A=(0,l.useDispatch)(),t=(0,l.useSelector)(Re.df),a=(0,l.useSelector)(y.LK),n=(0,r.useCallback)(()=>{A((0,g.XP)({id:t,type:z.H.DASHBOARD_CUSTOMIZATION}))},[A,t]);return e?null:r.createElement(ge.A,{style:{width:"fit-content",marginLeft:"13px"},type:"button",fontSize:"medium",onPress:n,isDisabled:a===z.H.DASHBOARD_CUSTOMIZATION},r.createElement(q.sA,{id:"DASHBOARD_WIDGETS"}))}),Ol=(0,O.Mz)(I.e6,e=>e[S.ZJ.CRITICAL_TRAFFIC_PRIORITIZATION]||(0,o.A)());var Il;!function(e){e.PREDEFINED_CRITICAL_APPLICATIONS="predefined_critical_applications",e.ENABLED_CRITICAL_APPLICATIONS="enabled_critical_applications"}(Il||(Il={}));const Sl=(0,V.A)(Z.A)`
  width: 100%;
  flex-direction: column;
  gap: ${X.kc};
`,Nl=(0,V.A)(Z.A)`
  width: 100%;
  gap: ${X.YC};
  align-items: center;
  justify-content: space-between;
`,_l=(0,V.A)(Z.A)`
  align-items: center;
  cursor: pointer;
`,pl=(0,V.A)(Z.A,{shouldForwardProp:e=>"enabledAppIds"!==e})`
  width: 100%;
  justify-content: space-between;
  gap: ${X.kc};
  > div > img {
    filter: grayscale(100);
  }
  > div {
    ${({enabledAppIds:e=[]})=>e.map(e=>`&[data-appid="${e}"]`).join(", ")} {
      > img {
        filter: grayscale(0);
      }
    }
  }
`,Rl=(0,V.A)(Z.A)`
  padding: ${X.YC};
  background: ${({theme:{themeName:e}})=>(0,Fe.b_)(oe.Ay[`desktop-color-neutral-01-${e}`],.6)};
  width: 100%;
  border-radius: ${oe.Ay["desktop-radius-base"]};
  justify-content: center;
  align-items: center;
`,Cl=(0,V.A)(Z.A)`
  flex-direction: column;
  gap: ${X.YC};
`,Ml=e=>Boolean((0,Ze.ez)(e)),Pl=(e,A,t)=>r.createElement(Ie.A,{key:e,size:"inherit",color:"inherit"},A>=10?r.createElement(q.sA,{id:"COMMON_X_MORE",values:{count:t.length-10}}):(0,Ze.ez)(e)),Dl=(0,r.memo)(()=>{const e=(0,r.useContext)(m.A)[E.x.REDIRECTOR][an.d.QOS],A=(0,l.useSelector)(Ol),{filteredEnabledCriticalApplications:t,filteredPredefinedCriticalApplications:a}=(0,r.useMemo)(()=>({filteredEnabledCriticalApplications:(A[Il.ENABLED_CRITICAL_APPLICATIONS]||[]).filter(Ml),filteredPredefinedCriticalApplications:(A[Il.PREDEFINED_CRITICAL_APPLICATIONS]||[]).filter(Ml)}),[A]),n=(0,r.useMemo)(()=>[...new Set([...t,...a])],[t,a]);return r.createElement(L.cW,null,r.createElement(Sl,null,r.createElement(Nl,null,r.createElement(U.A,{isTruncated:!0,size:"medium",color:"text-2"},r.createElement(q.sA,{id:"DASHBOARD_CRITICAL_TRAFFIC_PRIORITIZATION"})),t.length?r.createElement(_l,null,r.createElement(U.A,{isTruncated:!0,size:"medium",color:"text-3",onClick:e[an.q.REDIRECT]},r.createElement(q.sA,{id:"COMMON_ACTIVE"})),r.createElement(Ln.A,{redirector:e})):r.createElement(_A.A,{type:"button",variant:"inline",size:"medium",onClick:e[an.q.REDIRECT]},r.createElement(q.sA,{id:"COMMON_CONFIGURE"}))),n.length?r.createElement(pl,{enabledAppIds:t},n.map((i=t,(e,A,t)=>{const{iconFileName:a,name:n}=(0,Ze.HH)(e),l=A+1===6&&i.length>6;return r.createElement(NA.A,{key:e,description:l?r.createElement(Cl,null,i.slice(5,i.length).map(Pl).slice(0,11)):i.includes(e)?n:null,delay:0,noWrap:!0,width:"100%",maxWidth:"max-content"},r.createElement(Rl,{"data-appid":e,key:a},l?r.createElement(Ie.A,{size:"medium",color:"text-2"},t.filter(e=>i.includes(e)).length-5,"+"):r.createElement(Ve.A,{iconFileName:a})))})).slice(0,6)):null));var i}),fl=(0,O.Mz)(I.e6,e=>e[S.ZJ.NEXT_AI]||(0,o.A)());var bl;!function(e){e.NEXT_AI_LOGS="next_ai_logs"}(bl||(bl={}));const vl=(0,O.Mz)(fl,e=>e[bl.NEXT_AI_LOGS]||(0,s.A)()),Ll=(0,O.Mz)(I.e6,e=>e[S.ZJ.UPGRADABLE_DEVICE_COUNT]||(0,o.A)());var hl;!function(e){e.DEVICE_COUNT="device_count"}(hl||(hl={}));var yl=t(722673),zl=t(725242);const gl=(0,V.A)(Z.A)`
  width: 100%;
  min-height: 32px;
  align-items: center;
  cursor: pointer;
  padding: ${X.YC} ${X.kc} ${X.YC} ${X.kc};
  border-radius: 8px;
  > svg {
    &.${zl.k} {
      margin-right: ${X.YC};
    }
  }
`;var xl=t(673582),Wl=t(701548),Hl=t(243700),wl=t(6521),Ul=t(292170);const kl=({dashboardNextAiLogs:e,deviceUpdateCount:A})=>{const t=(0,l.useDispatch)(),{themeName:a}=(0,se.u)(),{[E.x.REDIRECTOR]:{[an.d.LOGS]:n,[an.d.DEVICES]:i}}=(0,r.useContext)(m.A);return e.length?(({themeName:e,dashboardNextAiLogs:A,logsRedirector:t})=>{return 1===A.length?(a=A[0],(({color:e,background:A})=>({[yl.r.SHOW]:!0,[yl.r.ICON]:r.createElement(Wl.A,{...(0,Ul.eS)(),color:e}),[yl.r.TEXT_PROPS]:(0,Ul.Rf)(e),[yl.r.BACKGROUND]:A,[yl.r.FORMATTED_MESSAGE_PROPS]:{id:(0,Ul.IL)(a[wl.p.ALERT_KEY]),values:(0,Ul.pZ)(a[wl.p.ALERT_KEY],{})},[yl.r.REDIRECTOR]:t}))((0,Ul.Ih)(a[wl.p.SEVERITY],e))):(({color:e,background:A})=>({[yl.r.SHOW]:!0,[yl.r.ICON]:r.createElement(Wl.A,{...(0,Ul.eS)(),color:e}),[yl.r.TEXT_PROPS]:(0,Ul.Rf)(e),[yl.r.BACKGROUND]:A,[yl.r.FORMATTED_MESSAGE_PROPS]:{id:"DASHBOARD_ISSUES_DETECTED"},[yl.r.REDIRECTOR]:t}))((0,Ul.Ih)(A.some(e=>e[wl.p.SEVERITY]===wl.v.HIGH)?wl.v.HIGH:wl.v.MEDIUM,e));var a})({themeName:a,dashboardNextAiLogs:e,logsRedirector:n}):A?(({themeName:e,deviceUpdateCount:A,devicesRedirector:{[an.q.AVAILABLE]:t,[an.q.REDIRECT]:a},dispatch:n})=>({[yl.r.SHOW]:!0,[yl.r.ICON]:r.createElement(xl.A,{...(0,Ul.eS)(),size:"original",isActive:!0}),[yl.r.TEXT_PROPS]:(0,Ul.Rf)(oe.Ay[`desktop-color-ublue-06-${e}`]),[yl.r.BACKGROUND]:"transparent",[yl.r.FORMATTED_MESSAGE_PROPS]:{id:"DASHBOARD_DEVICES_HAVE_UPDATES",values:{count:A}},[yl.r.REDIRECTOR]:{[an.q.AVAILABLE]:t,[an.q.REDIRECT]:()=>{a(()=>{n((0,_a.D6)(Na.R)),n((0,_a.ym)([Hl.d.UPDATE_AVAILABLE]))})}}}))({themeName:a,deviceUpdateCount:A,devicesRedirector:i,dispatch:t}):{[yl.r.SHOW]:!1,[yl.r.ICON]:null,[yl.r.TEXT_PROPS]:(0,o.A)(),[yl.r.BACKGROUND]:void 0,[yl.r.FORMATTED_MESSAGE_PROPS]:(0,o.A)(),[yl.r.REDIRECTOR]:(0,o.A)()}},Gl=(0,r.memo)(()=>{const e=(0,l.useSelector)(vl),{[hl.DEVICE_COUNT]:A}=(0,l.useSelector)(Ll),{[yl.r.SHOW]:t,[yl.r.BACKGROUND]:a,[yl.r.ICON]:n,[yl.r.TEXT_PROPS]:i,[yl.r.FORMATTED_MESSAGE_PROPS]:o,[yl.r.REDIRECTOR]:s}=kl({dashboardNextAiLogs:e,deviceUpdateCount:A});return t?r.createElement(gl,{background:a,onClick:s[an.q.REDIRECT]},n,r.createElement(U.A,{...i,size:"medium",isTruncated:!0},r.createElement(q.sA,{...o})),r.createElement(Ln.A,{redirector:s})):null});var Vl,Xl,Zl,Yl=t(834959),Bl=t(413357),Fl=t(582724),jl=t(109277),Kl=t(151033),ql=t(556722);!function(e){e._ID="_id",e.AVATAR_ID="avatar_id",e.NAME="name",e.IP="ip"}(Vl||(Vl={})),function(e){e.ADMIN="admin",e.ID="id",e.IP="ip",e.KEY="key",e.MESSAGE="message",e.PLATFORM="platform",e.TIMESTAMP="timestamp"}(Xl||(Xl={})),function(e){e.ADMIN_SYSTEM_LOGS="admin_system_logs"}(Zl||(Zl={}));const Jl=(0,O.Mz)(I.e6,e=>e[S.ZJ.ADMIN_ACTIVITY]||(0,o.A)()),Ql=(0,O.Mz)(Jl,e=>e[Zl.ADMIN_SYSTEM_LOGS]||(0,s.A)()),$l=(0,V.A)(Z.A)`
  align-items: flex-start;
  flex-direction: column;
  gap: ${X.kc};
`,er=(0,V.A)(Z.A)`
  width: 100%;
  flex-direction: column;
  gap: ${X.kc};
  > div:not(:last-child) {
    padding-bottom: ${X.kc};
    border-bottom: ${({theme:{themeName:e}})=>oe.Ay[`desktop-border-divider-${e}`]};
  }
`,Ar=(0,V.A)(Z.A)`
  width: 100%;
  flex-direction: column;
  div {
    max-width: 100%;
  }
`,tr=(0,V.A)(Z.A)`
  width: 100%;
  padding-top: ${X.kc};
  border-top: ${({theme:{themeName:e}})=>oe.Ay[`desktop-border-divider-${e}`]};
`,ar=(0,r.memo)(()=>{const{formatMessage:e}=(0,q.tz)(),A=(0,l.useSelector)(Ql).slice(0,3),t=(0,r.useContext)(m.A),a=t[E.x.DATE_TIME_FORMAT],n=(0,r.useMemo)(()=>e({id:"COMMON_AT"}).toLowerCase(),[e]),i=(0,r.useCallback)(e=>a.format(e).replace(",",` ${n}`),[a,n]),o=(0,r.useCallback)(e=>r.createElement(Ar,{key:e[Xl.ID]},r.createElement(Ie.A,{color:"text-2",size:"medium"},r.createElement(q.sA,{id:`${Kl.yQ.LOG_MESSAGE}_${e[Xl.KEY]}`,values:{ADMIN:r.createElement(jl.A,{name:e[Xl.ADMIN]?.name}),PLATFORM:ql.m[e[Xl.PLATFORM]]||e[Xl.PLATFORM],IP:e[Xl.ADMIN]?.ip,hasIp:Boolean(e[Xl.ADMIN]?.ip)}})),r.createElement(Ie.A,{size:"medium",color:"text-3"},i(e[Xl.TIMESTAMP]))),[i]),s=t[E.x.REDIRECTOR][an.d.ADMIN_ACTIVITY];return(0,Fl.A)([(0,Bl.Zi)(Yl.B.LOG_MESSAGES)],A.length?r.createElement(L.cW,null,r.createElement($l,null,r.createElement(Ie.A,{size:"medium",color:"text-1"},r.createElement(q.sA,{id:"COMMON_ADMIN_ACTIVITY"})),r.createElement(er,null,A.map(o)),3===A.length&&s[an.q.AVAILABLE]?r.createElement(tr,null,r.createElement(_A.A,{type:"button",variant:"inline",onClick:s[an.q.REDIRECT]},r.createElement(Ie.A,{size:"medium",color:"inherit"},r.createElement(q.sA,{id:"COMMON_SEE_ALL"})))):null)):null)});var nr=t(415246);const lr=(0,O.Mz)(I.e6,e=>e[S.ZJ.CYBERSECURE]||(0,o.A)());var rr;!function(e){e.IPS_ENABLED="ips_enabled",e.HAS_SUBSCRIPTION="has_subscription",e.IS_ACTIVATING="is_activating",e.ENTERPRISE="enterprise",e.SIGNATURES="signatures",e.THREATS="threats",e.SCANNED_BYTES="scanned_bytes",e.UPDATED_TIMESTAMP="updated_timestamp",e.SIGNATURE_CAPACITY="signature_capacity"}(rr||(rr={}));var ir=t(503793);const or={portal:!0,isInteractive:!0,delay:{open:0,close:200}};var sr=t(256856);const cr=(0,V.A)(Z.A)`
  align-items: center;
  gap: ${X.YC};
  width: 100%;
  > div,
  > svg {
    &:last-child {
      margin-left: auto;
    }
  }
`,Er=(0,V.A)(Z.A)`
  flex-direction: column;
  > div:last-child {
    width: fit-content;
  }
`,mr=(0,V.A)(sr.A,{shouldForwardProp:e=>!["isActivating","hasSubscription"].includes(e)})`
  color: ${({hasSubscription:e,isActivating:A,theme:{themeName:t}})=>e&&A?oe.Ay[`desktop-color-orange-06-${t}`]:oe.Ay[`desktop-color-ublue-05-${t}`]};
  margin-right: 2px;
`,dr=(0,r.memo)(({hasSubscription:e,dashboardCyberSecure:A})=>{const t=(0,r.useContext)(m.A)[E.x.REDIRECTOR],a=t[an.d.CYBERSECURE],n=t[an.d.ACCOUNT_SUBSCRIPTIONS],i=t[an.d.FLOWS],o=(0,l.useSelector)(ht.t)[yt.U.HARDWARE_UUID],{isAvailable:s,unavailabilityReason:c,redirect:d}=(0,ir.g)({hardwareUuid:o,enterprise:A[rr.ENTERPRISE]});return r.createElement(cr,null,r.createElement(NA.A,{...or,description:e?A[rr.IPS_ENABLED]?r.createElement(Er,null,r.createElement(q.sA,{id:"DASHBOARD_CYBERSECURE_TOOLTIP",values:{enterprise:A[rr.ENTERPRISE],status:r.createElement(q.sA,{id:A[rr.IS_ACTIVATING]?"COMMON_ACTIVATING":"COMMON_ACTIVE"})}}),n[an.q.AVAILABLE]?r.createElement(_A.A,{type:"button",variant:"inline",onClick:n[an.q.REDIRECT]},r.createElement(q.sA,{id:"COMMON_MANAGE_SUBSCRIPTION"})):null):r.createElement(q.sA,{id:"DASHBOARD_CYBERSECURE_DISABLED_TOOLTIP",values:{enterprise:A[rr.ENTERPRISE],link:a[an.q.AVAILABLE]?r.createElement(_A.A,{type:"button",variant:"inline",onClick:a[an.q.REDIRECT]},r.createElement(q.sA,{id:"DASHBOARD_PROTECTION_LINK"})):null}}):null},r.createElement("div",null,r.createElement(mr,{size:"medium",hasSubscription:e,isActivating:A[rr.IS_ACTIVATING],omitSvgMargin:!0}))),r.createElement(U.A,{isTruncated:!0,color:"text-2",size:"medium"},r.createElement(q.sA,{id:e?A[rr.ENTERPRISE]?"COMMON_CYBERSECURE_ENTERPRISE":"COMMON_CYBERSECURE":"COMMON_CYBERSECURE_ENHANCED"})),e?i[an.q.AVAILABLE]?r.createElement(Ln.A,{redirector:i}):null:r.createElement(le.A,{description:s?void 0:c},r.createElement("div",null,r.createElement(_A.A,{type:"button",variant:"inline",size:"medium",onClick:d,disabled:!s},r.createElement(q.sA,{id:"COMMON_ACTIVATE"})))))});var ur=t(789768);const Tr="DASHBOARD_PANEL_CYBERSECURE_HIDE_BUTTON_WRAPPER_CLASSNAME",Or=(0,V.A)(Z.A)`
  position: relative;
  justify-content: space-between;
  flex-direction: column;
  gap: ${X.YC};
  .${Tr} {
    position: absolute;
    right: 0;
    background: ${Xa.L};
    padding-left: ${X.kc};
  }
`,Ir=(0,V.A)("ul")`
  margin-block-start: 0;
  margin-block-end: 0;
  padding-inline-start: 18px;
  > li {
    line-height: 0;
    > span {
      position: relative;
      left: -${X.YC};
    }
  }
`,Sr=(0,V.A)(Z.A)`
  align-items: center;
  align-self: flex-start;
`,Nr=(0,r.memo)(({dashboardCyberSecure:e,setDisplayCyberSecureWidget:A,displayHideButton:t})=>{const a=(0,l.useDispatch)(),n=(0,l.useSelector)(Ge.p),i=(0,r.useCallback)(()=>{A(!1),a((0,ur.TW)({[nr.X4.SHOW_CYBERSECURE]:!1}))},[a,A]),o=(0,l.useSelector)(Ne.zi);return r.createElement(Or,null,r.createElement(Ir,null,e[rr.SIGNATURE_CAPACITY]?r.createElement("li",null,r.createElement(Ie.A,{size:"small",color:"text-3"},r.createElement(q.sA,{id:"DASHBOARD_CYBERSECURE_BY_PROOFPOINT_BULLET_POINT_1",values:{amount:new Intl.NumberFormat(o,{notation:"compact",compactDisplay:"short"}).format(e[rr.SIGNATURE_CAPACITY])}}))):null,r.createElement("li",null,r.createElement(Ie.A,{size:"small",color:"text-3"},r.createElement(q.sA,{id:"DASHBOARD_CYBERSECURE_BY_PROOFPOINT_BULLET_POINT_2",values:{amount:100}})))),r.createElement(Sr,null,r.createElement(Ie.A,{size:"small",color:"text-3"},r.createElement(q.sA,{id:"DASHBOARD_POWERED_BY"}))," ",r.createElement("img",{src:`${n}/proofpointCloudflare.svg`,alt:"Proofpoint by Cloudflare"})),t?r.createElement(_A.A,{type:"button",variant:"inline",size:"medium",onClick:i,wrapClassName:Tr},r.createElement(q.sA,{id:"COMMON_HIDE"})):null)}),_r=(0,V.A)(Z.A)`
  flex-direction: column;
  gap: ${X.YC};
`,pr=(0,V.A)(Z.A)`
  width: 100%;
  gap: ${X.YC};
`,Rr=(0,V.A)(Z.A)`
  width: 100%;
  justify-content: space-between;
  align-items: center;
`;var Cr=t(580351),Mr=t.n(Cr),Pr=t(258407),Dr=t.n(Pr),fr=t(324837),br=t.n(fr);const vr=e=>e>999999,Lr=(e,A,t)=>(vr(e)?t:A)(e),hr=(0,V.A)(Z.A)`
  flex-direction: column;
  gap: ${X.YC};
  > div:first-child {
    margin-top: ${X.YC};
  }
`,yr=(0,r.memo)(({dashboardCyberSecure:e})=>{const{formatMessage:A}=(0,q.tz)(),t=(0,l.useSelector)(Ne.zi),a=(0,l.useSelector)(Ce.BQ),n=(0,l.useSelector)(Re.hq),i=(0,r.useContext)(m.A)[E.x.TOOLTIP_TIME_RANGE],{standardIntlNumberFormat:o,compactIntlNumberFormat:s,dateTimeFormat:c}=(0,r.useMemo)(()=>({standardIntlNumberFormat:new Intl.NumberFormat(t,{notation:"standard"}),compactIntlNumberFormat:new Intl.NumberFormat(t,{notation:"compact",compactDisplay:"short"}),dateTimeFormat:new Intl.DateTimeFormat(t,{hourCycle:a,timeZone:n,day:"numeric",month:"short",hour:"numeric",minute:"numeric"})}),[t,a,n]);return e[rr.IPS_ENABLED]?r.createElement(hr,null,e[rr.SCANNED_BYTES]?r.createElement(Rr,null,r.createElement(U.A,{isTruncated:!0,size:"medium",color:"text-2"},r.createElement(q.sA,{id:"COMMON_SCANNED_TRAFFIC"})),r.createElement(le.A,{description:i},r.createElement(Ie.A,{size:"small",color:"text-3"},(0,cA.FI)(e[rr.SCANNED_BYTES])))):null,r.createElement(Rr,null,r.createElement(U.A,{isTruncated:!0,size:"medium",color:"text-2"},r.createElement(q.sA,{id:"COMMON_TOTAL_SIGNATURES"})),r.createElement(le.A,{description:vr(e[rr.SIGNATURES])?o.format(e[rr.SIGNATURES]):void 0},r.createElement(Ie.A,{size:"small",color:"text-3"},Lr(e[rr.SIGNATURES],o.format,s.format)))),e[rr.THREATS]?r.createElement(Rr,null,r.createElement(U.A,{isTruncated:!0,size:"medium",color:"text-2"},r.createElement(q.sA,{id:"DASHBOARD_POTENTIAL_THREATS_FOUND"})),r.createElement(le.A,{description:vr(e[rr.THREATS])?o.format(e[rr.THREATS]):void 0},r.createElement(Ie.A,{size:"small",color:"text-3"},Lr(e[rr.THREATS],o.format,s.format)))):null,e[rr.UPDATED_TIMESTAMP]?r.createElement(Rr,null,r.createElement(U.A,{isTruncated:!0,size:"medium",color:"text-2"},r.createElement(q.sA,{id:"COMMON_LAST_UPDATED"})),r.createElement(Ie.A,{size:"small",color:"text-3"},((e,A,t,a,n)=>{const l=Mr()(A,t);if(l<60)return n({id:"COMMON_SECONDS_AGO"},{seconds:l});const r=Dr()(A,t);if(r<60)return n({id:"COMMON_MINUTES_AGO"},{minutes:r});const i=br()(A,t);return i<24?n({id:"COMMON_HOURS_AGO"},{hours:i}):a.format(e)})(e[rr.UPDATED_TIMESTAMP],(new Date).toLocaleString(t,{timeZone:n}),new Date(e[rr.UPDATED_TIMESTAMP]).toLocaleString(t,{timeZone:n}),c,A))):null):null}),zr=(0,r.memo)(()=>{const e=(0,l.useSelector)(Ce.WQ)[nr.X4.SHOW_CYBERSECURE],A=(0,l.useSelector)(lr),[t,a]=(0,r.useState)(!!A[rr.HAS_SUBSCRIPTION]||e),[n,i]=(0,r.useState)(!1),o=(0,r.useCallback)(()=>{i(!0)},[]),s=(0,r.useCallback)(()=>{i(!1)},[]);return t?r.createElement(L.cW,{onMouseEnter:o,onMouseLeave:s},r.createElement(_r,null,r.createElement(pr,null,r.createElement(Rr,null,r.createElement(dr,{hasSubscription:A[rr.HAS_SUBSCRIPTION],dashboardCyberSecure:A}))),A[rr.HAS_SUBSCRIPTION]?r.createElement(yr,{dashboardCyberSecure:A}):r.createElement(Nr,{dashboardCyberSecure:A,setDisplayCyberSecureWidget:a,displayHideButton:n}))):null}),gr=(0,V.A)(Z.A)`
  width: ${280}px;
  @media ${al.A.DASHBOARD.LAYOUT.MOBILE} {
    width: 100%;
  }
`,xr=(0,V.A)(Z.A)`
  flex-direction: column;
  gap: ${X.kc};
  width: 100%;
  min-width: ${280}px;
`,Wr=(0,V.A)(Z.A)`
  flex-direction: column;
  gap: ${X.kc};
  > div:last-child {
    margin-bottom: ${X.Ln};
  }
`,Hr=(0,r.memo)(()=>{const e=(0,l.useSelector)(c.CN),A=(0,l.useSelector)(c.b8),t=(0,l.useSelector)(u.L),O=(0,l.useSelector)(N),I=(0,l.useSelector)(D),S=(0,r.useMemo)(()=>I.find(A=>A[M.WAN_NETWORKGROUP]===e)||v,[I,e]),_=(0,r.useContext)(m.A)[E.x.CURRENT_WAN_DETAILS],p=(0,r.useMemo)(()=>t.find(e=>e[T.YQ.NETWORK_GROUP]===i.C.WAN_LTE_FAILOVER)||(0,o.A)(),[t]),R=(0,r.useMemo)(()=>(O[n.WAN_GROUPS]||[]).find(e=>e[a.WAN_GROUP]===_[T.YQ.NETWORK_GROUP]),[O,_]),C=(0,r.useMemo)(()=>A[e],[A,e]),P=(0,r.useMemo)(()=>({[ne.LTE]:{[ae.STATE]:p[T.YQ.DEVICE]?.[T.Kk.LTE_STATE]||void 0,[ae.MODEL]:p[T.YQ.DEVICE]?.[T.Kk.MODEL]||void 0,[ae.MAC]:p[T.YQ.DEVICE]?.[T.Kk.MAC]||void 0,[ae.SIGNAL]:p[T.YQ.STATS]?.[T.lE.SIGNAL]||void 0,[ae.USED_BYTES]:p[T.YQ.STATS]?.[T.lE.BYTES]||0,[ae.HARD_LIMIT_BYTES]:p[T.YQ.LIMITS]?.[T.Wx.HARD_LIMIT_BYTES]||0,[ae.HARD_LIMIT_ENABLED]:p[T.YQ.LIMITS]?.[T.Wx.HARD_LIMIT_ENABLED]||void 0,[ae.SOFT_LIMIT_BYTES]:p[T.YQ.LIMITS]?.[T.Wx.SOFT_LIMIT_BYTES]||0,[ae.SOFT_LIMIT_ENABLED]:p[T.YQ.LIMITS]?.[T.Wx.SOFT_LIMIT_ENABLED]||void 0},[ne.SPEED_TEST]:S,[ne.SPEED_TEST_INTERFACE_NAME]:_[T.YQ.STATUS]?.[T.qg.INTERFACE_NAME]||void 0,[ne.MONTHLY_USAGE]:_[T.YQ.STATS]?.[T.lE.MONTHLY_BYTES]||0,[ne.ACTIVITY_RX_BYTES_R]:_[T.YQ.STATS]?.[T.lE.ACTIVITY][T.s6.RX_BYTES_R]||0,[ne.ACTIVITY_TX_BYTES_R]:_[T.YQ.STATS]?.[T.lE.ACTIVITY][T.s6.TX_BYTES_R]||0,[ne.ACTIVITY_MAX_RX_BYTES_R]:_[T.YQ.STATS]?.[T.lE.ACTIVITY][T.s6.MAX_RX_BYTES_R]||0,[ne.ACTIVITY_MAX_TX_BYTES_R]:_[T.YQ.STATS]?.[T.lE.ACTIVITY][T.s6.MAX_TX_BYTES_R]||0,[ne.ISP_CAPABILITY_DOWNLOAD_KILOBITS_PER_SECOND]:_[T.YQ.ISP]?.[T.mu.CAPABILITIES]?.[T.ip.DOWNLOAD_KILOBITS_PER_SECOND]||0,[ne.ISP_CAPABILITY_UPLOAD_KILOBITS_PER_SECOND]:_[T.YQ.ISP]?.[T.mu.CAPABILITIES]?.[T.ip.UPLOAD_KILOBITS_PER_SECOND]||0,[ne.SERVICE_LATENCIES]:_[T.YQ.STATS]?.[T.lE.SERVICE_LATENCIES]||(0,s.A)(),[ne.WAN_IPV4]:R?.[a.IP]||void 0,[ne.WAN_IPV6]:R?.[a.IPV6]||(0,s.A)(),[ne.CURRENT_THROUGHPUT_STATE]:C}),[p,_,R,S,C]);return r.createElement(gr,{className:d.q},r.createElement(xr,{className:d.d},r.createElement(St.A,{dashboardWidget:b.Z.NEXT_AI},r.createElement(Gl,null)),r.createElement(Te.Provider,{value:P},r.createElement(Wr,null,r.createElement(fn,null),r.createElement(St.A,{dashboardWidget:b.Z.WAN},r.createElement(Un,null)),r.createElement(St.A,{dashboardWidget:b.Z.DEVICE_CAPACITY},r.createElement(Kn,null)),r.createElement(St.A,{dashboardWidget:b.Z.ADMIN_ACTIVITY},r.createElement(ar,null)),r.createElement(St.A,{dashboardWidget:b.Z.WIFI_CHANNEL_PRESET_CONFIGURATION},r.createElement(ul,null)),r.createElement(St.A,{dashboardWidget:b.Z.CRITICAL_TRAFFIC_PRIORITIZATION},r.createElement(Dl,null)),r.createElement(St.A,{dashboardWidget:b.Z.CYBERSECURE},r.createElement(zr,null)),r.createElement(Tl,null)))))})},771641:(e,A,t)=>{var a,n;t.d(A,{d:()=>a,q:()=>n}),function(e){e.LOGS="logs",e.ADMIN_ACTIVITY="adminActivity",e.ACTIVITY_APPS="activityApps",e.ACTIVITY_APP="activityApp",e.CLIENTS="clients",e.DEVICES="devices",e.RADIOS="radios",e.CONTROL_PLANE="controlPlane",e.CYBERSECURE="cyberSecure",e.ACCOUNT_SUBSCRIPTIONS="accountSubscriptions",e.FLOWS="flows",e.QOS="qos",e.WIFI_SETTINGS="wifiSettings",e.ROAMING="roaming"}(a||(a={})),function(e){e.AVAILABLE="available",e.REDIRECT="redirect"}(n||(n={}))},772774:(e,A,t)=>{t.d(A,{A:()=>d});var a=t(801081),n=t(189601),l=t(296540),r=t(472797),i=t(627440),o=t(789149);const s=({currentPage:e,preloadTranslation:A,getRouteHref:t})=>l.createElement(r.A,{...(0,o.E)({currentPage:e,preloadTranslation:A,getRouteHref:t})[i.VO.CLIENTS]}),c=(0,l.lazy)(()=>Promise.all([t.e(70893),t.e(1758),t.e(46880),t.e(83770),t.e(74925),t.e(13015),t.e(10916),t.e(69029),t.e(61592),t.e(50277)]).then(t.bind(t,36047))),E=e=>l.createElement(l.Suspense,{fallback:null},l.createElement(c,{...e}));var m=t(221649);const d=(0,n.WY)()((0,a.Mz)(()=>({[i.o9.ROUTE_COMPONENT]:E,[i.o9.SIDE_NAVIGATION]:s,[i.o9.ROUTE]:{[i.Fm.AVAILABLE]:!0},[i.o9.NAVIGATION]:{[i.mx.AVAILABLE]:!0},[i.o9.DEPENDENCIES]:m.I[i.VO.CLIENTS]})),e=>e)},779005:(e,A,t)=>{var a;t.d(A,{L:()=>a}),function(e){e.XS="XS",e.S="S",e.SM="SM",e.M="M",e.ML="ML",e.L="L",e.XL="XL",e.XXL="XXL"}(a||(a={}))},784465:(e,A,t)=>{t.d(A,{$5:()=>c,gT:()=>d,kW:()=>E,uK:()=>m,uu:()=>s});var a=t(165126),n=t(516693),l=t(691189),r=t(887831),i=t(33453),o=t(801156);const s=(e={},A={})=>(0,l.t9)(i.A2,i.lT,e,{...A,idField:i.RR}),c=e=>(0,l.vB)(n.aC,null,null,r.A.POST,i.FC,{},e,{fetchConfig:{getAllPostData:!0}}),E=e=>(0,l.vB)(n.aC,null,null,r.A.PUT,i.AU.replace(i.w4,e[o.d5.ID]),{},(0,a.A)(e,[o.d5.ID]),{fetchConfig:{getAllPostData:!0}}),m=e=>(0,l.vB)(n.aC,null,null,r.A.DELETE,i._U.replace(i.w4,e[o.Xs.ID]),{},(0,a.A)(e,[o.Xs.ID]),{}),d=e=>(0,l.vB)(n.aC,null,null,r.A.POST,i.Qw.replace(i.w4,e[o.nr.MAC]),{},(0,a.A)(e,[o.nr.MAC]),{})},785929:(e,A,t)=>{t.d(A,{Cz:()=>a,M3:()=>l,Ow:()=>r,PT:()=>o,RG:()=>I,Tk:()=>n,Ux:()=>i,__:()=>s,j9:()=>c,kH:()=>m,ks:()=>u,mK:()=>O,r0:()=>d,tm:()=>E,ts:()=>T});const a=12,n=3,l=3,r="apDensityBackgroundId",i=.2,o="#FF002E",s="#FF9500",c="#08EF1F",E=0,m=.25,d=.6,u=.85,T=.98,O=1,I=[[o,E],[s,m],[c,d],[c,u],[c,T],[c,O]]},786256:(e,A,t)=>{t.d(A,{b:()=>a});const a="MAIN_PANEL_CLASSNAME"},789149:(e,A,t)=>{t.d(A,{E:()=>b});var a,n,l=t(296540),r=t(131862),i=t(453895),o=t(262159),s=t(85215),c=t(377262),E=t(291976),m=t(825319),d=t(951388),u=t(273852),T=t(442284),O=t(834959),I=t(296968),S=t(818526),N=t(627440),_=t(670180),p=t(118835),R=t(616009),C=t(699784),M=t(854552),P=t(968906);!function(e){e.CURRENT_PAGE="currentPage",e.PRELOAD_TRANSLATION="preloadTranslation",e.GET_ROUTE_HREF="getRouteHref"}(a||(a={})),function(e){e.ID="id",e.HREF="href",e.LABEL="label",e.ICON="icon",e.ACTIVE="active",e.ON_MOUSE_ENTER="onMouseEnter"}(n||(n={}));const D=e=>(0,l.createElement)(e,{size:"large",variant:"twoTone"}),f=e=>`navigation-${e}`,b=e=>({[N.VO.DASHBOARD]:{[n.ID]:N.VO.DASHBOARD,[n.HREF]:e[a.GET_ROUTE_HREF](N.VO.DASHBOARD),[n.LABEL]:l.createElement(C.sA,{id:"COMMON_SIDE_NAV_DASHBOARD"}),[n.ICON]:D(d.A),[n.ACTIVE]:e[a.CURRENT_PAGE]===N.VO.DASHBOARD,[n.ON_MOUSE_ENTER]:()=>{e[a.PRELOAD_TRANSLATION]([O.B.DASHBOARD])},...P.A.addDataTestId(f(N.VO.DASHBOARD))},[N.VO.TOPOLOGY]:{[n.ID]:N.VO.TOPOLOGY,[n.HREF]:e[a.GET_ROUTE_HREF](N.VO.TOPOLOGY),[n.LABEL]:l.createElement(C.sA,{id:"COMMON_SIDE_NAV_TOPOLOGY"}),[n.ICON]:D(i.A),[n.ACTIVE]:e[a.CURRENT_PAGE]===N.VO.TOPOLOGY,[n.ON_MOUSE_ENTER]:()=>{e[a.PRELOAD_TRANSLATION]([O.B.TOPOLOGY,O.B.DEVICES,O.B.CLIENTS])},...P.A.addDataTestId(f(N.VO.TOPOLOGY))},[N.VO.DEVICES]:{[n.ID]:N.VO.DEVICES,[n.HREF]:e[a.GET_ROUTE_HREF](N.VO.DEVICES),[n.LABEL]:l.createElement(C.sA,{id:"COMMON_UNIFI_DEVICES"}),[n.ICON]:D(T.A),[n.ACTIVE]:e[a.CURRENT_PAGE]===N.VO.DEVICES,[n.ON_MOUSE_ENTER]:()=>{e[a.PRELOAD_TRANSLATION]([O.B.UNIFI_DEVICES,O.B.DEVICES])},...P.A.addDataTestId(f(N.VO.DEVICES))},[N.VO.CLIENTS]:{[n.ID]:N.VO.CLIENTS,[n.HREF]:e[a.GET_ROUTE_HREF](`${N.VO.CLIENTS}/${p.M.MAIN}`),[n.LABEL]:l.createElement(C.sA,{id:"COMMON_CLIENT_DEVICES"}),[n.ICON]:D(u.A),[n.ACTIVE]:e[a.CURRENT_PAGE]===N.VO.CLIENTS,[n.ON_MOUSE_ENTER]:()=>{e[a.PRELOAD_TRANSLATION]([O.B.CLIENTS])},...P.A.addDataTestId(f(N.VO.CLIENTS))},[N.VO.PORTS]:{[n.ID]:N.VO.PORTS,[n.HREF]:e[a.GET_ROUTE_HREF](N.VO.PORTS),[n.LABEL]:l.createElement(C.sA,{id:"COMMON_PORTS"}),[n.ICON]:D(E.A),[n.ACTIVE]:e[a.CURRENT_PAGE]===N.VO.PORTS,[n.ON_MOUSE_ENTER]:()=>{e[a.PRELOAD_TRANSLATION]([O.B.UNIFI_DEVICES,O.B.DEVICES,O.B.CLIENTS,O.B.PORTS])},...P.A.addDataTestId(f(N.VO.PORTS))},[N.VO.AIRVIEW]:{[n.ID]:N.VO.AIRVIEW,[n.HREF]:e[a.GET_ROUTE_HREF](`${N.VO.AIRVIEW}/${S.t.RADIOS}`),[n.LABEL]:l.createElement(C.sA,{id:"COMMON_AIRVIEW"}),[n.ICON]:D(c.A),[n.ACTIVE]:e[a.CURRENT_PAGE]===N.VO.AIRVIEW,[n.ON_MOUSE_ENTER]:()=>{e[a.PRELOAD_TRANSLATION]([O.B.DEVICES,O.B.RADIOS,O.B.WIFI_PERFORMANCE,O.B.WIFI_CONNECTIVITY,O.B.WIFI_SCANNER])},...P.A.addDataTestId(f(N.VO.AIRVIEW))},[N.VO.INSIGHTS]:{[n.ID]:N.VO.INSIGHTS,[n.HREF]:e[a.GET_ROUTE_HREF](`${N.VO.INSIGHTS}/${_.H.FLOWS}`),[n.LABEL]:l.createElement(C.sA,{id:"COMMON_INSIGHTS"}),[n.ICON]:D(m.A),[n.ACTIVE]:e[a.CURRENT_PAGE]===N.VO.INSIGHTS,[n.ON_MOUSE_ENTER]:()=>{e[a.PRELOAD_TRANSLATION]([O.B.FLOWS,O.B.ACTIVITY,O.B.ANALYZER,O.B.HOTSPOT])},...P.A.addDataTestId(f(N.VO.INSIGHTS))},[N.VO.ADMINS]:{[n.ID]:N.VO.ADMINS,[n.HREF]:e[a.GET_ROUTE_HREF](`${N.VO.ADMINS}/${R.h.CURRENT_SITE}`),[n.LABEL]:l.createElement(C.sA,{id:"COMMON_ADMINS"}),[n.ICON]:D(r.A),[n.ACTIVE]:e[a.CURRENT_PAGE]===N.VO.ADMINS,[n.ON_MOUSE_ENTER]:()=>{e[a.PRELOAD_TRANSLATION]([O.B.ADMINS])},...P.A.addDataTestId(f(N.VO.ADMINS))},[N.VO.SETTINGS]:{[n.ID]:N.VO.SETTINGS,[n.HREF]:e[a.GET_ROUTE_HREF](M.g),[n.LABEL]:l.createElement(C.sA,{id:"COMMON_SETTINGS"}),[n.ICON]:D(s.A),[n.ACTIVE]:e[a.CURRENT_PAGE]===N.VO.SETTINGS,[n.ON_MOUSE_ENTER]:()=>{e[a.PRELOAD_TRANSLATION]([O.B.SETTINGS])},...P.A.addDataTestId(f(N.VO.SETTINGS))},[N.VO.SYSLOG]:{[n.ID]:N.VO.SYSLOG,[n.HREF]:e[a.GET_ROUTE_HREF](`${N.VO.SYSLOG}/${I.x.MAIN}`),[n.LABEL]:l.createElement(C.sA,{id:"COMMON_SIDE_NAV_LOGS"}),[n.ICON]:D(o.A),[n.ACTIVE]:e[a.CURRENT_PAGE]===N.VO.SYSLOG,[n.ON_MOUSE_ENTER]:()=>{e[a.PRELOAD_TRANSLATION]([O.B.LOGS,O.B.LOG_EVENTS,O.B.LOG_MESSAGES])},...P.A.addDataTestId(f(N.VO.SYSLOG))}})},789367:(e,A,t)=>{var a;t.d(A,{K:()=>a}),function(e){e.ALL="all",e.ACL_RULES="acl-rules",e.DNS_RECORDS="dns-records",e.FIREWALL="firewall",e.NAT_RULES="nat-rules",e.POLICY_BASED_ROUTES="policy-based-routes",e.PORT_FORWARDING="port-forwarding",e.QOS_RULES="qos-rules",e.STATIC_ROUTES="static-routes"}(a||(a={}))},795097:(e,A,t)=>{t.d(A,{A:()=>l});var a=t(71479),n=t(566723);const l=(0,a.A)("ul")`
  padding-left: ${n.Er};
  margin-bottom: 0;
  margin-top: 0;
`},801156:(e,A,t)=>{var a,n,l,r,i;t.d(A,{Ko:()=>a,Xs:()=>r,d5:()=>l,iV:()=>n,nr:()=>i}),function(e){e._ID="_id",e.NAME="name",e.MEMBER_DEVICE_MACS="member_device_macs"}(a||(a={})),function(e){e.NAME="name",e.MEMBER_DEVICE_MACS="member_device_macs"}(n||(n={})),function(e){e.ID="id",e.NAME="name",e.DEVICE_MAC_ADDITIONS="device_mac_additions",e.DEVICE_MAC_REMOVALS="device_mac_removals"}(l||(l={})),function(e){e.ID="id"}(r||(r={})),function(e){e.MAC="mac",e.DEVICE_TAG_ADDITIONS="device_tag_additions",e.DEVICE_TAG_REMOVALS="device_tag_removals"}(i||(i={}))},801287:(e,A,t)=>{t.d(A,{A:()=>E});var a=t(956347),n=t(469733),l=t(296540),r=t(699784),i=t(187483),o=t(602021),s=t(864768),c=t(655335);const E=({path:e="/"})=>{const A=(0,a.W6)(),{pathname:t}=(0,a.zy)(),E=(0,n.useSelector)(o.LF),m=(0,n.useSelector)(i.ub);return(0,l.useEffect)(()=>{s.A.captureMessage(s.A.NetworkSentryMessage.fourOhFour,s.A.NetworkSentryLogSeverity.error,{tags:{path:e,pathname:t}})},[]),l.createElement(c.A,{titleMessage:["COMMON_404_TITLE"],descriptionMessage:["COMMON_404_DESCRIPTION"],buttonMessage:["COMMON_404_BUTTON",{destinationName:l.createElement(r.sA,{id:"COMMON_404_DESTINATION_NAME_HOME"})}],onClick:()=>{A.push(`${m?"":`/${E}`}/${e.replace(/(^\/|\/$)+/,"")}`)}})}},802123:(e,A,t)=>{t.d(A,{A:()=>m});var a=t(296540),n=t(758649),l=t(566723),r=t(203157),i=t(294303),o=t(699784),s=t(115829),c=t(424135),E=t(819127);const m=({enabled:e,label:A,tooltipItems:t,neverShowListMarkers:m,limit:d=20,seeMoreCallback:u,isInteractive:T,title:O,showMatchOppositeIcon:I,listGap:S})=>a.createElement(i.A,{flex:1,overflow:"hidden",gap:l.YC},I?a.createElement(r.A,{enabled:e}):null,a.createElement(c.A,{tooltip:a.createElement(E.A,{title:O,position:"top",isInteractive:Boolean(u)||T,items:t,showListMarkers:!m,maxItemCount:d,getItemKey:(e,A)=>A,renderItem:e=>e,listGap:S,renderShowMore:u?()=>a.createElement(n.A,{variant:"inline",onClick:u},a.createElement(o.sA,{id:"COMMON_SEE_MORE"})):void 0})},A?a.createElement(s.A,{color:e?"inherit":"disabled"},A):null))},808028:(e,A,t)=>{var a,n,l,r,i,o,s,c,E,m,d,u,T,O,I,S,N;t.d(A,{$D:()=>n,Kk:()=>l,MY:()=>r,P0:()=>o,TR:()=>T,UX:()=>u,Wx:()=>a,YQ:()=>N,ip:()=>I,j3:()=>d,lE:()=>O,mu:()=>S,qg:()=>i,s6:()=>c}),function(e){e.HARD_LIMIT_BYTES="hard_limit_bytes",e.HARD_LIMIT_ENABLED="hard_limit_enabled",e.SOFT_LIMIT_BYTES="soft_limit_bytes",e.SOFT_LIMIT_ENABLED="soft_limit_enabled"}(a||(a={})),function(e){e.ACTIVE="ACTIVE",e.READY="READY",e.DISCONNECTED="DISCONNECTED",e.WARNING="WARNING"}(n||(n={})),function(e){e.LTE_STATE="lte_state",e.MODEL="model",e.MAC="mac",e.STATE="state"}(l||(l={})),function(e){e.UP="up",e.DOWN="down"}(r||(r={})),function(e){e.DOWNTIME="downtime",e.STATE="state",e.UPTIME="uptime",e.UP="up",e.IS_ACTIVE="is_active",e.INTERFACE_NAME="interface_name",e.MBB_STATUS="mbb_status"}(i||(i={})),function(e){e.MICROSOFT="microsoft",e.GOOGLE="google",e.CLOUDFLARE="cloudflare"}(o||(o={})),function(e){e.LATENCY="latency",e.SERVICE_NAME="service_name"}(s||(s={})),function(e){e.MAX_RX_BYTES_R="max_rx_bytes-r",e.MAX_TX_BYTES_R="max_tx_bytes-r",e.RX_BYTES_R="rx_bytes-r",e.TX_BYTES_R="tx_bytes-r"}(c||(c={})),function(e){e.MODEM_INIT="modem_init",e.UPDATING="updating",e.SIM_ACTIVATION="sim_activation",e.SEARCHING="searching",e.CONNECTING="connecting",e.READY="ready",e.DATA_LIMIT="data_limit"}(E||(E={})),function(e){e[e.NO_SIGNAL=0]="NO_SIGNAL",e[e.POOR=1]="POOR",e[e.WEAK=2]="WEAK",e[e.FAIR=3]="FAIR",e[e.GOOD=4]="GOOD",e[e.EXCELLENT=5]="EXCELLENT"}(m||(m={})),function(e){e.HARD_LIMIT_BYTES="hard_limit_bytes",e.HARD_LIMIT_ENABLED="hard_limit_enabled",e.SOFT_LIMIT_BYTES="soft_limit_bytes",e.SOFT_LIMIT_ENABLED="soft_limit_enabled"}(d||(d={})),function(e){e.BYTES="bytes",e.SIGNAL="signal",e.SIGNAL_PERCENT="signal_percent",e.DBM="dbm"}(u||(u={})),function(e){e.LIMITS="limits",e.MBB_STATE="mbb_state",e.SIM_SLOT="sim_slot",e.STATS="stats",e.ESIM="esim"}(T||(T={})),function(e){e.ACTIVITY="activity",e.MONTHLY_BYTES="monthly_bytes",e.SERVICE_LATENCIES="service_latencies",e.SIGNAL="signal",e.BYTES="bytes"}(O||(O={})),function(e){e.DOWNLOAD_KILOBITS_PER_SECOND="download_kilobits_per_second",e.UPLOAD_KILOBITS_PER_SECOND="upload_kilobits_per_second"}(I||(I={})),function(e){e.ASN="asn",e.NAME="name",e.CAPABILITIES="capabilities"}(S||(S={})),function(e){e.ISP="isp",e.STATS="stats",e.STATUS="status",e.NETWORK_GROUP="network_group",e.NETWORK_NAME="network_name",e.DEVICE="device",e.LIMITS="limits"}(N||(N={}))},808294:(e,A,t)=>{t.d(A,{nZ:()=>N,hy:()=>_,U7:()=>S});var a=t(801081),n=t(189601),l=t(627440),r=t(221649),i=t(994791),o=t(296540);const s=(0,o.lazy)(()=>Promise.all([t.e(46880),t.e(51032)]).then(t.bind(t,273967))),c=e=>o.createElement(o.Suspense,{fallback:null},o.createElement(s,{...e})),E=(0,o.lazy)(()=>Promise.all([t.e(1758),t.e(46880),t.e(13015),t.e(49005)]).then(t.bind(t,177500))),m=e=>o.createElement(o.Suspense,{fallback:null},o.createElement(E,{...e}));var d=t(792072),u=t(532419),T=t(24699),O=t(592510);const I=[(0,t(71177).m)(void 0,{crudCacheStrategy:{type:O.e.CACHE}})],S=(0,n.WY)()((0,a.Mz)(u.$8,i.VH,(e,A)=>!e||A),e=>e),N=(0,a.Mz)(d.j_,e=>e),_=(0,n.WY)()((0,a.Mz)(S,N,(e,A)=>({[T.o.PORTS]:{[l.o9.ROUTE_COMPONENT]:m,[l.o9.SIDE_NAVIGATION]:void 0,[l.o9.ROUTE]:{[l.Fm.AVAILABLE]:e},[l.o9.NAVIGATION]:{[l.mx.AVAILABLE]:e},[l.o9.DEPENDENCIES]:r.I[l.VO.PORTS]},[T.o.AV_MANAGER]:{[l.o9.ROUTE_COMPONENT]:c,[l.o9.SIDE_NAVIGATION]:void 0,[l.o9.ROUTE]:{[l.Fm.AVAILABLE]:A},[l.o9.NAVIGATION]:{[l.mx.AVAILABLE]:A},[l.o9.DEPENDENCIES]:I}})),e=>e)},813378:(e,A,t)=>{t.d(A,{V:()=>a});const a=e=>e<=1?"green-06":e<=5?"orange-06":"red-06"},816271:(e,A,t)=>{t.d(A,{A:()=>i});var a=t(469733),n=t(960407),l=t(840279),r=t(849513);const i=e=>{const A=(0,a.useSelector)(n.rw);return e.includes(A[r.QK.TYPE])?[A[r.QK.ID]]:(0,l.A)()}},818526:(e,A,t)=>{var a;t.d(A,{t:()=>a}),function(e){e.RADIOS="radios",e.ROAMING="roaming",e.WIFI_SCANNER="wifiScanner"}(a||(a={}))},819127:(e,A,t)=>{t.d(A,{A:()=>r});var a=t(296540),n=t(766624),l=t(530813);const r=function({items:e,getItemKey:A,renderItem:t,maxItemCount:r,renderShowMore:i,showListMarkers:o,title:s,position:c,isInteractive:E,cursorType:m,listGap:d}){return a.createElement(n.A,{title:s,position:c,isInteractive:E,cursorType:m,description:a.createElement(l.A,{items:e,getItemKey:A,renderItem:t,maxItemCount:r,listGap:d,renderShowMore:i,showListMarkers:o})})}},821400:(e,A,t)=>{t.a(e,async(e,a)=>{try{t.d(A,{A:()=>I});var n=t(801081),l=t(627440),r=t(957991),i=t(473990),o=t(498282),s=t(336576),c=t(597372),E=t(189268),m=t(932357),d=t(758170),u=t(772774),T=t(52817),O=e([d]);d=(O.then?(await O)():O)[0];const I=(0,n.Mz)(d.A,r.A,m.A,u.A,s.A,o.A,E.A,T.A,c.A,i.A,(e,A,t,a,n,r,i,o,s,c)=>({[l.VO.DASHBOARD]:e,[l.VO.TOPOLOGY]:A,[l.VO.DEVICES]:t,[l.VO.CLIENTS]:a,[l.VO.PORTS]:n,[l.VO.AIRVIEW]:r,[l.VO.INSIGHTS]:i,[l.VO.ADMINS]:o,[l.VO.SYSLOG]:s,[l.VO.SETTINGS]:c}));a()}catch(e){a(e)}})},826094:(e,A,t)=>{var a,n,l,r,i;t.d(A,{F7:()=>a,Gq:()=>r,nn:()=>n,w5:()=>i}),function(e){e.ID="id",e.DOWNTIME_IN_SECONDS="downtime_in_seconds",e.TIMESTAMP="timestamp"}(a||(a={})),function(e){e.APPLICATION_INSTALLING="application_installing",e.APPLICATION_UPDATING="application_updating",e.CONSOLE_POWERINGOFF="console_poweringoff",e.CONSOLE_REBOOTING="console_rebooting",e.CONSOLE_UPGRADING="console_upgrading"}(n||(n={})),function(e){e.REASON="reason",e.TIMESTAMP="timestamp"}(l||(l={})),function(e){e.WAN_DOWNTIME="wan_downtime",e.HIGH_LATENCY="high_latency",e.NOT_REPORTED="not_reported",e.OFFLINE_REASON="offline_reason",e.FAILOVER_WAN_ACTIVE="failover_wan_active",e.PACKET_LOSS="packet_loss",e.TIMESTAMP="timestamp",e.LATENCY_AVG_MS="latency_avg_ms",e.LATENCY_MAX_MS="latency_max_ms",e.SLA_VERIFICATION_SERVER="sla_verification_server"}(r||(r={})),function(e){e.DOWNTIME_HISTORY="downtime_history",e.HEALTH_HISTORY="health_history",e.NETWORK_GROUP="network_group",e.UPTIME="uptime",e.ISP_NAME="isp_name",e.ISP_ASN="isp_asn"}(i||(i={}))},842630:(e,A,t)=>{t.d(A,{A:()=>r});var a=t(469733),n=t(296540),l=t(602021);const r=({children:e=null})=>(0,a.useSelector)(l.EL)?null:n.createElement(n.Fragment,null,e)},851226:(e,A,t)=>{t.a(e,async(e,a)=>{try{t.d(A,{A:()=>h});var n=t(296540),l=t(956347),r=t(136048),i=t(872563),o=t(305434),s=t(334779),c=t(98160),E=t(801287),m=t(437523),d=t(627440),u=t(596731),T=t(546391),O=t(260183),I=e([m]),S=I.then?(await I)():I;m=S[0];const N=(0,n.lazy)(()=>Promise.all([t.e(91912),t.e(40124),t.e(73740),t.e(89195),t.e(59470)]).then(t.bind(t,589195))),_=(0,n.lazy)(()=>t.e(48787).then(t.bind(t,156548))),p=(0,n.lazy)(()=>Promise.all([t.e(68350),t.e(16026)]).then(t.bind(t,344209))),R=(0,n.lazy)(()=>Promise.all([t.e(43020),t.e(11673)]).then(t.bind(t,17724))),C=(0,n.lazy)(()=>t.e(54599).then(t.bind(t,480455))),M=(0,n.lazy)(()=>t.e(68952).then(t.bind(t,829826))),P=(0,n.lazy)(()=>t.e(4424).then(t.bind(t,179688))),D=(0,n.lazy)(()=>t.e(59806).then(t.bind(t,946118))),f=(0,n.lazy)(()=>t.e(87423).then(t.bind(t,412101))),b=(0,n.lazy)(()=>t.e(72343).then(t.bind(t,872435))),v=(0,n.lazy)(()=>t.e(31274).then(t.bind(t,904627))),L=(0,n.lazy)(()=>t.e(71819).then(t.bind(t,870198))),h=({location:e,location:{key:A,pathname:t},match:a,match:{path:I,params:S,url:h},showNetworkServerHeader:y})=>{(0,n.useEffect)(()=>{const[e]=performance.getEntriesByName("ufsdn.app-loaded:start");e&&performance.measure("ufsdn.app-loaded",e.name)},[]);const z=(0,o.A)(s.Z.MAIN);return n.createElement(n.Suspense,{fallback:null},y?n.createElement(R,null):null,n.createElement(c.A,null,n.createElement(O.N,null,n.createElement(p,{site:S.site,url:h,pathname:t}),n.createElement(D,null),n.createElement(l.dO,null,n.createElement(r.F,{path:u.Si[d.VO.DASHBOARD],render:e=>n.createElement(m.A,{id:d.VO.DASHBOARD,...e})}),n.createElement(r.F,{path:u.Si[d.VO.TOPOLOGY],render:e=>n.createElement(m.A,{id:d.VO.TOPOLOGY,...e})}),n.createElement(r.F,{path:u.Si[d.VO.DEVICES],render:e=>n.createElement(m.A,{id:d.VO.DEVICES,...e})}),n.createElement(r.F,{path:u.Si[d.VO.CLIENTS],render:e=>n.createElement(m.A,{id:d.VO.CLIENTS,...e})}),n.createElement(r.F,{path:u.Si[d.VO.PORTS],render:e=>n.createElement(m.A,{id:d.VO.PORTS,...e})}),n.createElement(r.F,{path:u.Si[d.VO.AIRVIEW],render:e=>n.createElement(m.A,{id:d.VO.AIRVIEW,...e})}),n.createElement(r.F,{path:u.Si[d.VO.INSIGHTS],render:e=>n.createElement(m.A,{id:d.VO.INSIGHTS,...e})}),n.createElement(r.F,{path:u.Si[d.VO.SYSLOG],render:e=>n.createElement(m.A,{id:d.VO.SYSLOG,...e})}),n.createElement(r.F,{path:u.Si[d.VO.SETTINGS],render:e=>n.createElement(m.A,{id:d.VO.SETTINGS,...e})}),n.createElement(l.rd,{from:`${I}/redirect/device-upgrade/:id`,to:`${u.Si[d.VO.DEVICES]}/device-upgrade/:id`}),n.createElement(r.F,{path:`${I}/`,exact:!0},n.createElement(l.rd,{to:(0,i.TY)(`${h.replace(T.z9,"")}/${d.VO.DASHBOARD}`)})),z,n.createElement(r.F,{path:u.Si[d.VO.ADMINS],render:e=>n.createElement(m.A,{id:d.VO.ADMINS,...e})}),n.createElement(r.F,{component:E.A})),n.createElement(_,{key:A}),n.createElement(N,null))),n.createElement(C,{location:e,match:a}),n.createElement(M,null),n.createElement(f,null),n.createElement(b,null),n.createElement(v,null),n.createElement(L,null),n.createElement(P,null))};a()}catch(e){a(e)}})},854246:(e,A,t)=>{t.d(A,{A:()=>o});var a=t(296540),n=t(71479),l=t(132196),r=t(699784);const i=(0,n.A)("div",{shouldForwardProp:e=>"align"!==e})`
  ${({align:e})=>e&&`text-align: ${e}`};
  color: ${({theme:{motifPalette:{red06:e}}})=>e};
  font-size: ${({theme:{fontSizes:e}})=>e[0]}px;
  line-height: 20px;
`,o=({align:e="left",children:A=null,className:t=null,translation:n=null,visible:o=!1})=>o?a.createElement(i,{align:e,className:(0,l.cx)(t)},n&&a.createElement(r.sA,{id:n}),A):null},854552:(e,A,t)=>{t.d(A,{g:()=>l,v:()=>r});var a=t(627440),n=t(959341);const l=`${a.VO.SETTINGS}/${n.E5}`,r=""},855996:(e,A,t)=>{t.d(A,{o:()=>r});var a=t(806778),n=t(648549),l=t(691189);const r=(e,A={},t={})=>(0,l.Kd)("systemEvent",(0,n.P)("/v2/api/system/event/{eventType}/first",{eventType:e}),(0,a.A)(e),A,t)},856929:(e,A,t)=>{t.d(A,{AT:()=>ja,qt:()=>Ka,Eo:()=>Fa,Ro:()=>$a});var a=t(801081),n=t(189601),l=t(627440),r=t(194381),i=t(296540),o=t(469733),s=t(592510),c=t(582724),E=t(566723),m=t(329991),d=t(413477),u=t(634229),T=t(920470),O=t(606187),I=t(242454),S=t(171073),N=t(984652),_=t(427007),p=t(83604),R=t(249304),C=t(318787),M=t(816271),P=t(398300),D=t(905410),f=t(860765),b=t(855019),v=t(845030),L=t(863979),h=t(200826),y=t(415246),z=t(305988),g=t(620637),x=t(396660),W=t(149133),H=t(964310),w=t(699784),U=t(878781);const k=({header:{id:e}})=>i.createElement(w.sA,{id:U.z[e]}),G=e=>e;var V=t(115829);const X=({dhcpClient:{isOnline:e}})=>i.createElement(V.A,{cursorType:"pointer",enabled:e},e?i.createElement(w.sA,{id:"COMMON_ONLINE"}):i.createElement(w.sA,{id:"COMMON_OFFLINE"}));var Z=t(559478),Y=t(319551),B=t(837612),F=t(602197);const j=({dhcpClient:{clientLease:e,deviceLease:A}})=>e?i.createElement(Y.A,{status:(0,Y.I)(e.client_type,e.status,e.blocked)}):i.createElement(Z.A,{status:(0,B.IJ)(A?.state||F.g.UNKNOWN),marginLeft:"5px"});var K=t(6510),q=t(6176),J=t(703447),Q=t(173943),$=t(71479),ee=t(294303);const Ae=(0,$.A)(ee.A)`
  width: 100%;
  align-items: center;
  white-space: nowrap;
  gap: ${E.YC};
`,te=(0,$.A)(ee.A,{shouldForwardProp:e=>"isOnline"!==e})`
  width: ${Q.s};
  justify-content: center;
  align-items: center;
  opacity: ${({isOnline:e})=>e?void 0:E.xN};
`;var ae=t(217439),ne=t(951106);const le=({lease:e})=>e.name?i.createElement(i.Fragment,null,(0,ne.tn)(e)):e.display_name&&e.mac&&` ${e.mac.slice(e.mac.length-Q.I)}`===e.display_name.slice(e.display_name.length-Q.I-1)?i.createElement(ae.A,{variant:"inherit"},e.display_name.substring(0,e.display_name.length-Q.I),i.createElement(ae.A,{size:"inherit",color:"text-4"},e.display_name.substring(e.display_name.length-Q.I))):i.createElement(i.Fragment,null,e.display_name||e.mac),re=({dhcpClient:{isOnline:e,deviceLease:A,clientLease:t,name:a}})=>i.createElement(Ae,null,i.createElement(te,{isOnline:e},A?i.createElement(q.A,{width:Q.s,height:Q.s,model:A.model}):i.createElement(J.A,{width:Q.s,height:Q.s,client:t})),i.createElement(V.A,{enabled:e},(A?(0,K.Q)(A)||A.mac:t?i.createElement(le,{lease:t}):a)||i.createElement(w.sA,{id:"COMMON_FALLBACK"}))),ie=({dhcpClient:{isOnline:e,mac:A}})=>i.createElement(V.A,{cursorType:"pointer",enabled:e},A||i.createElement(w.sA,{id:"COMMON_FALLBACK"})),oe=({dhcpClient:{isOnline:e,local_dns_record:A}})=>i.createElement(V.A,{cursorType:"pointer",enabled:e},A||i.createElement(w.sA,{id:"COMMON_FALLBACK"})),se=({dhcpClient:{isOnline:e,isFixed:A}})=>i.createElement(V.A,{cursorType:"pointer",enabled:e},i.createElement(w.sA,{id:A?"COMMON_FIXED":"COMMON_DYNAMIC"}));var ce=t(945132),Ee=t(575971);const me=({dhcpClient:{isOnline:e,leaseExpirationTime:A}})=>i.createElement(V.A,{cursorType:"pointer",enabled:e},A?i.createElement(Ee.A,{date:A*ce.vl}):i.createElement(w.sA,{id:"COMMON_FALLBACK"})),de=({dhcpClient:{isOnline:e,ip:A}})=>i.createElement(V.A,{cursorType:"pointer",enabled:e},A||i.createElement(w.sA,{id:"COMMON_FALLBACK"})),ue=({dhcpClient:{isOnline:e,hostname:A}})=>i.createElement(V.A,{cursorType:"pointer",enabled:e},A||i.createElement(w.sA,{id:"COMMON_FALLBACK"})),Te=[{id:H.j.STATUS_BALL,header:null,enableResizing:!1,enableSorting:!1,accessorFn:G,cell:({row:{original:e}})=>i.createElement(j,{dhcpClient:e}),...U.O[H.j.STATUS_BALL]},{id:H.j.NAME,header:k,enableResizing:!1,accessorFn:G,compare:(0,x.l0)(({name:e})=>e),cell:({row:{original:e}})=>i.createElement(re,{dhcpClient:e}),...U.O[H.j.NAME]},{id:H.j.HOSTNAME,header:k,enableResizing:!1,accessorFn:G,cell:({row:{original:e}})=>i.createElement(ue,{dhcpClient:e}),compare:(0,x.l0)(({hostname:e})=>e),...U.O[H.j.HOSTNAME]},{id:H.j.LOCAL_DNS_RECORD,header:k,enableResizing:!1,accessorFn:G,cell:({row:{original:e}})=>i.createElement(oe,{dhcpClient:e}),compare:(0,x.l0)(({local_dns_record:e})=>e),...U.O[H.j.LOCAL_DNS_RECORD]},{id:H.j.STATUS,header:k,enableResizing:!1,accessorFn:G,cell:({row:{original:e}})=>i.createElement(X,{dhcpClient:e}),compare:(0,x.l0)(({isOnline:e})=>e),...U.O[H.j.STATUS]},{id:H.j.IP,header:k,enableResizing:!1,accessorFn:G,cell:({row:{original:e}})=>i.createElement(de,{dhcpClient:e}),compare:(0,x.l0)(({ip:e})=>(0,g.isValidIpv4)(e)?(0,W.GQ)(e):-1),...U.O[H.j.IP]},{id:H.j.MAC,header:k,enableResizing:!1,accessorFn:G,cell:({row:{original:e}})=>i.createElement(ie,{dhcpClient:e}),compare:(0,x.l0)(({mac:e})=>e),...U.O[H.j.MAC]},{id:H.j.LEASE_TYPE,header:k,enableResizing:!1,accessorFn:G,cell:({row:{original:e}})=>i.createElement(se,{dhcpClient:e}),compare:(0,x.l0)(({isFixed:e})=>e),...U.O[H.j.LEASE_TYPE]},{id:H.j.LEASE_EXPIRATION_TIME,header:k,enableResizing:!1,accessorFn:G,cell:({row:{original:e}})=>i.createElement(me,{dhcpClient:e}),compare:(0,x.l0)(({leaseExpirationTime:e})=>e),...U.O[H.j.LEASE_EXPIRATION_TIME]}];var Oe=t(325982),Ie=t(758649),Se=t(733712),Ne=t(776309),_e=t(126457),pe=t(789768),Re=t(319808),Ce=t(87526);const Me=(0,$.A)(ee.A)`
  width: 100%;
  flex-direction: column;
`,Pe=({formattedDhcpClientsCount:e})=>{const A=(0,o.useDispatch)(),t=(0,o.useSelector)(_.c0),a=(0,i.useCallback)(()=>{A((0,Ce.Lh)(Re.qF)),A((0,pe.yT)(R.l.DHCP_CLIENT,{initialColumns:Object.values(H.j)}))},[A]),n=(0,i.useCallback)(()=>{A((0,_e.to)({modalType:Ne.A.ADD_CLIENT,modalProps:{enforcedFixedIp:!0}}))},[A]),l=(0,i.useMemo)(()=>t?i.createElement(Se.A,{title:i.createElement(w.sA,{id:"COMMON_NO_MATCH"}),description:i.createElement(w.sA,{id:"CLIENTS_EMPTY_SEARCH_NO_CLIENTS_DETAILS",values:{button:i.createElement(Ie.A,{type:"button",variant:"inline",onClick:a},i.createElement(w.sA,{id:"COMMON_REMOVE_FILTERS_BUTTON_TEXT"}))}})}):e?i.createElement(Se.A,{title:i.createElement(w.sA,{id:"COMMON_NO_MATCH"}),description:i.createElement(w.sA,{id:"CLIENTS_EMPTY_FILTER_NO_CLIENTS_DETAILS",values:{button:i.createElement(Ie.A,{type:"button",variant:"inline",onClick:a},i.createElement(w.sA,{id:"COMMON_RESET_THEM_BUTTON_TEXT"}))}})}):i.createElement(Se.A,{title:i.createElement(w.sA,{id:"CLIENTS_TABLE_EMPTY_HEADER"}),description:i.createElement(w.sA,{id:"CLIENTS_TABLE_EMPTY_NO_CLIENTS_DETAILS",values:{button:i.createElement(Ie.A,{type:"button",variant:"inline",onClick:n},i.createElement(w.sA,{id:"CLIENTS_TABLE_EMPTY_NO_CLIENTS_BUTTON"}))}})}),[a,n,t,e]);return i.createElement(Me,null,l)},De=(0,$.A)(ee.A)`
  width: 100%;
  height: 100%;
  overflow-y: scroll;
`,fe=(0,$.A)(ee.A)`
  height: 100%;
  width: 100%;
  padding: ${E.Ln} ${E.Ln} ${E.S2};
  overflow: auto;
  flex-direction: column;
`,be=()=>{const e=(0,o.useDispatch)(),[A,t]=(0,i.useState)(f.B),a=(0,o.useSelector)(_.rZ),{initialColumns:n}=(0,h.A)(R.l.DHCP_CLIENT),l=(0,o.useSelector)((0,i.useMemo)(()=>(0,Oe.GH)(a),[a])),r=(0,i.useCallback)(({mac:A,clientLease:t,deviceLease:a})=>{e((0,v.XP)({type:t?P.H.CLIENT:a?P.H.DEVICE:void 0,id:A,tab:b.BC.SETTINGS}))},[e]),s=(0,i.useMemo)(()=>z.W2[y.xz.TABLES][R.l.DHCP_CLIENT].columns.reduce((e,A)=>(e[A]=n.includes(A),e),{}),[n]),[c,m]=(0,C.A)(R.l.DHCP_CLIENT),d=(0,M.A)([P.H.CLIENT,P.H.DEVICE]),u=(0,i.useCallback)(e=>{t(e)},[]),T=(0,i.useCallback)(({rowsPerPage:e,pageNumber:A})=>i.createElement(p.A,{data:l,pageIndex:A,pageSize:e,columnVisibility:s,rowStyle:E.gc,className:L.Fl,columns:Te,onRowClick:r,onSort:m,sorting:c,activeRows:d}),[l,r,m,c,s,d]);return l.length&&Object.values(s).some(Boolean)?i.createElement(De,null,i.createElement(D.A,{itemCount:l.length,tableType:R.l.DHCP_CLIENT,onPageChanged:u,pageNumber:A,onRenderTable:T})):i.createElement(fe,null,i.createElement(p.A,{className:L.Fl,data:[],columns:Te}),i.createElement(Pe,{formattedDhcpClientsCount:l.length}))},ve=()=>{const e=(0,o.useSelector)(_.rZ);return(0,c.A)([(0,O.fw)(e),(0,I.c)(e)],i.createElement(be,{key:e}),{renderKey:e,placeholder:i.createElement(m.A,{marginTop:E.fS})})},Le=()=>(0,c.A)([(0,N.$3)(void 0,{crudCacheStrategy:{type:s.e.CACHE}}),(0,S.Uc)(void 0,{crudCacheStrategy:{type:s.e.CACHE}}),(0,u.Sk)(void 0,{crudCacheStrategy:{type:s.e.CACHE}}),(0,T.QR)(void 0,{crudCacheStrategy:{type:s.e.CACHE}}),(0,d.W1)(void 0,{crudCacheStrategy:{type:s.e.CACHE}}),(0,d.cA)(void 0,{crudCacheStrategy:{type:s.e.CACHE}}),(0,O.GB)(void 0,{crudCacheStrategy:{type:s.e.CACHE}})],i.createElement(ve,null));var he=t(457311),ye=t(198494),ze=t(71177);const ge=()=>{const e=(0,o.useDispatch)(),A=(0,o.useSelector)(ye.lW);return(0,i.useEffect)(()=>{e((0,N.$3)()),e((0,N.bk)(void 0,{crudCacheStrategy:{type:s.e.CACHE}})),e((0,N.QG)({queryParams:{withinHours:A}},{crudCacheStrategy:{type:s.e.CACHE}})),e((0,N.Ic)(void 0,{crudCacheStrategy:{type:s.e.CACHE}})),e((0,S.Uc)(void 0,{crudCacheStrategy:{type:s.e.CACHE}})),e((0,he.Uc)(void 0,{crudCacheStrategy:{type:s.e.CACHE}})),e((0,ze.m)(void 0,{crudCacheStrategy:{type:s.e.CACHE}}))},[e]),null};var xe=t(337263),We=t(840279),He=t(29896),we=t(387098),Ue=t(59308),ke=t(269672),Ge=t(601021),Ve=t(691294),Xe=t(661282),Ze=t(259120),Ye=t(108666),Be=t(458973),Fe=t(684342),je=t(913094),Ke=t(239417);const qe=(0,i.memo)(({tableClients:e})=>{const A=(0,o.useSelector)(Ke.ks),t=(0,o.useSelector)((0,i.useMemo)(()=>(0,Ue.f)(ke.U4.CLIENTS),[])),a=(0,o.useDispatch)(),n=(0,i.useCallback)(()=>{a((0,_e.to)({modalType:Ne.A.ADD_CLIENT}))},[a]),l=(0,i.useCallback)(()=>{a((0,je.J)()),a((0,pe.yT)(R.l.CLIENT,{initialColumns:Xe.bJ,columnSize:Fe.l[R.l.CLIENT]}))},[a]),r=(0,i.useCallback)(()=>{const e=document.querySelector("input[role=combobox]");e&&e.focus(),a((0,Be.sV)(ke.U4.CLIENTS))},[a]),s=(0,i.useMemo)(()=>A&&t.length?i.createElement(Se.A,{title:i.createElement(w.sA,{id:"COMMON_NO_MATCH"}),description:i.createElement(w.sA,{id:"CLIENTS_EMPTY_SEARCH_NO_CLIENTS_DETAILS",values:{button:i.createElement(Ie.A,{type:"button",variant:"inline",onClick:r},i.createElement(w.sA,{id:"COMMON_REMOVE_FILTERS_BUTTON_TEXT"}))}})}):e.length?i.createElement(Se.A,{title:i.createElement(w.sA,{id:"COMMON_NO_MATCH"}),description:i.createElement(w.sA,{id:"CLIENTS_EMPTY_FILTER_NO_CLIENTS_DETAILS",values:{button:i.createElement(Ie.A,{type:"button",variant:"inline",onClick:l},i.createElement(w.sA,{id:"COMMON_RESET_THEM_BUTTON_TEXT"}))}})}):i.createElement(Se.A,{title:i.createElement(w.sA,{id:"CLIENTS_TABLE_EMPTY_HEADER"}),description:i.createElement(w.sA,{id:"CLIENTS_TABLE_EMPTY_NO_CLIENTS_DETAILS",values:{button:i.createElement(Ie.A,{type:"button",variant:"inline",onClick:n},i.createElement(w.sA,{id:"CLIENTS_TABLE_EMPTY_NO_CLIENTS_BUTTON"}))}})}),[n,l,r,t.length,e.length,A]);return i.createElement(ee.A,{width:"100%",flexDirection:"column"},s)});const Je=t(132196).AH`
  height: auto;
  max-height: 100%;
  flex: 1 1 0;
`,Qe=(0,$.A)("div")`
  height: 100%;
  width: 100%;
  padding: ${E.Ln} ${E.Ln} ${E.S2};
  overflow: auto;
`,$e=(0,$.A)(ee.A)`
  justify-content: center;
  align-items: center;
`,eA=(0,$.A)(ee.A)`
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  flex-direction: column;
  gap: ${E.kc};
  margin-left: ${E.Ln};
`;var AA=t(383653),tA=t(895795),aA=t(742920),nA=t(675359);const lA=({ipv6:e})=>{const A=(0,o.useDispatch)(),t=(0,i.useCallback)(e=>{navigator.clipboard.writeText(e).then(()=>{A((0,nA.ox)({icon:aA.C.success,message:"COMMON_COPIED_TO_CLIPBOARD"}))})},[A]);return e?.length?i.createElement(i.Fragment,null,i.createElement(ee.A,{width:"fit-content",minWidth:0,maxWidth:"100%"},i.createElement(V.A,null,e[0])),i.createElement(tA.A,{size:"original",actionable:!0,onClick:A=>{A.stopPropagation(),A.preventDefault(),t(e[0])}})):i.createElement(w.sA,{id:"COMMON_FALLBACK"})};var rA=t(399818),iA=t(723329),oA=t(349424),sA=t(785330),cA=t(276395),EA=t(903216),mA=t(38937),dA=t(573531),uA=t(934645);const TA=e=>(A,t,a,n,l)=>(0,sA.j5)(e(a,A,l),e(n,t,l)),OA=TA(({display_name:e,name:A})=>(0,ne.tn)({display_name:e,name:A})),IA=TA(e=>e.type===Ve.sK.VPN||e.type===Ve.sK.TELEPORT?"":e.mac),SA=TA((e,A,t)=>{let a=(0,uA.k)(t);return"oui"in e&&e.oui&&(a=e.oui),e.vendor&&(a=e.vendor),a}),NA=TA((e,A,t)=>{const a=e.status===Ve.S2.ONLINE&&e.uplink?.name;let n=(0,uA.k)(t);return e.type===Ve.sK.WIRELESS&&a&&(n=`${uA.Ig}-${e.uplink?.name}`),e.type===Ve.sK.WIRED&&a&&"sw_port"in e&&e.sw_port&&(n=`${uA.Bd}-${e.uplink?.name}-${e.sw_port}`),e.type!==Ve.sK.VPN&&e.type!==Ve.sK.TELEPORT||(n=uA.IR),n}),_A=TA(e=>e.type!==Ve.sK.TELEPORT&&e.network_name||dA.L),pA=TA((e,A,t)=>e.type===Ve.sK.WIRELESS&&e.essid?e.essid:(0,uA.k)(t)),RA=TA((e,A,t)=>{const a="is_wired"in e?e.is_wired:void 0,{satisfaction:n,known:l}=(0,ne.FX)(void 0,e.type,"wifi_experience_score"in e?e.wifi_experience_score:void 0),r=!a&&n>0&&l;let i;switch(e.status===Ve.S2.ONLINE&&(i=r?(0,mA.gd)(n):(0,mA.gd)(Xe.MO)),i){case"COMMON_EXPERIENCE_EXCELLENT":return uA.Ig;case"COMMON_GOOD":return uA.Bd;case"COMMON_POOR":return uA.IR;default:return(0,uA.k)(t)}}),CA=TA((e,A,t)=>e.type!==Ve.sK.WIRELESS?t?1e3:-1e3:e.is_mlo?((0,ne.Wc)(e.mlo_details)||{}).signal:e.signal),MA=TA((e,A,t)=>{if(e.type===Ve.sK.WIRELESS)if(e.is_mlo){const A=(0,ne.Wc)(e.mlo_details)?.mimo;if(A)return(0,ne.iP)(A)}else if(e.mimo)return(0,ne.iP)(e.mimo);return e.type===Ve.sK.WIRED?(0,EA.ir)(e.wired_rate_mbps):(0,uA.k)(t)}),PA=TA((e,A,t)=>{if(e.type===Ve.sK.WIRELESS&&e.status===Ve.S2.ONLINE){const A=e.is_mlo?(0,ne.Wc)(e.mlo_details)?.channel:e.channel;if(A)return(0,cA.m1)(e.radio,A)}return(0,uA.IW)(t)}),DA=TA((e,A,t)=>(0,W.GQ)((0,ne.T1)(e))||(0,uA._G)(t)),fA=TA((e,A,t)=>e.type!==Ve.sK.VPN&&e["1x_identity"]||(0,uA.k)(t)),bA=TA((e,A,t)=>e.type!==Ve.sK.VPN&&e.type!==Ve.sK.TELEPORT&&e.vlan||(0,uA.IW)(t)),vA=TA(e=>(e["tx_bytes-r"]||0)+(e["rx_bytes-r"]||0)),LA=TA(e=>e["tx_bytes-r"]||0),hA=TA(e=>e["rx_bytes-r"]||0),yA=TA(({usage_bytes:e},A,t)=>e||(0,uA.IW)(t)),zA=TA((e,A,t)=>e.status===Ve.S2.ONLINE&&e.assoc_time?e.assoc_time:e.type!==Ve.sK.VPN&&e.type!==Ve.sK.TELEPORT&&e.last_seen?e.last_seen:(0,uA.IW)(t)),gA=TA((e,A,t)=>e.type!==Ve.sK.VPN&&e.type!==Ve.sK.TELEPORT?e.first_seen:(0,uA.IW)(t)),xA=TA((e,A,t)=>e.type!==Ve.sK.VPN&&e.type!==Ve.sK.TELEPORT?e.last_seen:(0,uA.IW)(t)),WA=TA((e,A,t)=>e.type!==Ve.sK.VPN&&e.type!==Ve.sK.TELEPORT&&e.local_dns_record_enabled?e.local_dns_record:(0,uA.k)(t)),HA=TA((e,A,t)=>{if(e.type===Ve.sK.WIRELESS||e.type===Ve.sK.WIRED){const A=(e.ipv6_address||[]).filter(e=>!(0,AA.jN)(e));if(A.length)return new oA.Address6(A[0]).canonicalForm()}return t?"x":""}),wA=TA((e,A,t)=>{if(e.type===Ve.sK.WIRELESS||e.type===Ve.sK.WIRED){const A=(e.ipv6_address||[]).find(AA.jN);if(A)return new oA.Address6(A).canonicalForm()}return t?"x":""}),UA=({clientStatus:e,children:A,ignoreOpacity:t=!1})=>i.createElement(ee.A,{width:"100%",opacity:t||e===Ve.S2.ONLINE?1:.5},A);var kA=t(927099);const GA=(0,i.memo)(({type:e,essid:A})=>i.createElement(kA.A,{size:"body",color:"inherit",truncate:!0},e===Ve.sK.WIRELESS&&A||i.createElement(w.sA,{id:"COMMON_FALLBACK"}))),VA=(0,i.memo)(({fingerprint:e,oui:A})=>{const{fingerprint_device_vendor:t}=(0,o.useSelector)((0,i.useMemo)(()=>(0,Ke.OF)(e),[e]));return i.createElement(kA.A,{color:"inherit",size:"body",truncate:!0},t||A||i.createElement(w.sA,{id:"COMMON_FALLBACK"}))});var XA=t(90757),ZA=t(424095),YA=t(413146);const BA=(0,i.memo)(({assoc_time:e,type:A,status:t,last_seen:a})=>t===Ve.S2.ONLINE?e>0?i.createElement(kA.A,{size:"body",color:"inherit"},i.createElement(ZA.A,{startTimestamp:e})):i.createElement(kA.A,{size:"body",color:"inherit"},i.createElement(w.sA,{id:"COMMON_FALLBACK"})):A!==Ve.sK.VPN&&A!==Ve.sK.TELEPORT?i.createElement(YA.A,{date:(0,XA.gH)(a)}):i.createElement(kA.A,{size:"body",color:"inherit"},i.createElement(w.sA,{id:"COMMON_FALLBACK"})));var FA=t(11001),jA=t(104154);const KA=(0,i.memo)(({id:e,type:A,status:t,blocked:a})=>i.createElement(jA.A,{client:{id:e,type:A,status:t,blocked:a},props:["rx_bytes-r"]},({"rx_bytes-r":e=0})=>i.createElement(FA.A,{bytesPerSecond:e,direction:"up",size:"medium",iconStyle:{width:"10px",height:"16px",margin:"0 16px 2px 0"}})));var qA=t(722194),JA=t(486006);const QA=({mimo:e,radio_proto:A,is_mlo:t})=>{const{formatMessage:a}=(0,w.tz)();return i.createElement(ae.A,{size:"medium"},[A?(0,ne.z0)(A):"",e?(0,ne.iP)(e):"",t?a({id:"COMMON_MLO"}):""].filter(Boolean).join(", ")||i.createElement(w.sA,{id:"COMMON_FALLBACK"}))},$A=({mlo_details:e})=>{if(!e)return i.createElement(ae.A,{size:"medium",color:"inherit"},i.createElement(w.sA,{id:"COMMON_FALLBACK"}));const{mimo:A,radio_proto:t}=(0,ne.Wc)(e);return i.createElement(ee.A,{flexDirection:"row",gap:E.YC},i.createElement(QA,{mimo:A,radio_proto:t,is_mlo:!0}),e?i.createElement(JA.Ay,{report:JA.ZF.MIMO_AND_STANDARD,mlo_details:e}):null)},et=(0,i.memo)(({is_wired:e,wired_rate_mbps:A,mimo:t,radio_proto:a,is_mlo:n,mlo_details:l})=>e?A>0?i.createElement(qA.A,{wired_rate_mbps:A}):i.createElement(ae.A,{size:"medium",color:"inherit"},i.createElement(w.sA,{id:"COMMON_FALLBACK"})):n?i.createElement($A,{mlo_details:l}):i.createElement(QA,{mimo:t,radio_proto:a}));var At=t(137298);const tt=({transferRate:e,rate:A})=>e>0?i.createElement(FA.A,{hideIcon:!0,bytesPerSecond:(0,At.Zz)(e),direction:"rx_rate"===A?"down":"up",size:"medium"}):i.createElement(kA.A,{size:"body",color:"inherit"},i.createElement(w.sA,{id:"COMMON_FALLBACK"})),at=({rate:e,mlo_details:A})=>i.createElement(tt,{rate:e,transferRate:(0,ne.Wc)(A)[e]}),nt=(0,i.memo)(({id:e,type:A,status:t,blocked:a,is_mlo:n,mlo_details:l,rate:r})=>n?i.createElement(at,{rate:r,mlo_details:l}):i.createElement(jA.A,{client:{id:e,status:t,type:A,blocked:a},props:[r]},e=>i.createElement(tt,{rate:r,transferRate:e[r]})));var lt=t(888170);const rt=(0,$.A)(kA.A,{shouldForwardProp:e=>"direction"!==e})`
  color: ${({direction:e})=>"up"===e?lt.Ay["purple-1"]:lt.Ay["blue-3"]} !important;
`,it=(0,i.memo)(({id:e,type:A,status:t,blocked:a,packets:n})=>i.createElement(jA.A,{client:{id:e,type:A,status:t,blocked:a},props:[n]},e=>e[n]>0?i.createElement(rt,{size:"body",direction:"down"},e[n]):i.createElement(kA.A,{size:"body",color:"inherit"},i.createElement(w.sA,{id:"COMMON_FALLBACK"}))));var ot=t(705145),st=t(646189),ct=t(703909);const Et=({id:e,display_name:A="",name:t=""})=>i.createElement(ae.A,{size:"inherit",color:"inherit"},t?(0,ne.tn)({display_name:A,name:t}):e===A?A:i.createElement(i.Fragment,null,A.substring(0,A.length-5),i.createElement(ae.A,{size:"inherit",color:"text-4"},A.substring(A.length-5))));var mt=t(879275);const dt=({client:e})=>{const A=e.type===Ve.sK.WIRED||e.type===Ve.sK.WIRELESS;return i.createElement(ee.A,{width:"100%",alignItems:"center",whiteSpace:"nowrap",gap:E.YC},i.createElement(ee.A,{height:25,minWidth:25,maxWidth:25,justifyContent:"center",alignItems:"center",position:"relative"},i.createElement(mt.A,{client:e}),A?i.createElement(st.A,{size:25,mac:e.mac}):null),i.createElement(ot.A,{style:{maxWidth:"90%"},size:"medium",color:"inherit",isTruncated:!0},i.createElement(Et,{id:e.id,name:e.name,display_name:e.display_name})),A?i.createElement(ct.A,{upsDevice:e.ups_device}):null)},ut=(0,i.memo)(({type:e,seen:A})=>i.createElement(kA.A,{size:"body",color:"inherit"},e!==Ve.sK.VPN&&e!==Ve.sK.TELEPORT?i.createElement(YA.A,{date:(0,XA.gH)(A)}):i.createElement(w.sA,{id:"COMMON_FALLBACK"})));var Tt=t(325898),Ot=t(628291);const It=({is_wired:e,type:A,wifi_experience_score:t})=>{const{motif:a}=(0,Tt.A)(),{satisfaction:n,known:l}=(0,ne.FX)(void 0,A,t),r=!e&&n>0&&l;return i.createElement(ee.A,{alignItems:"center",whiteSpace:"nowrap"},i.createElement(kA.A,{style:{color:r?(0,Ot.L)(n,a):(0,Ot.L)(Xe.MO,a)},size:"body"},i.createElement(w.sA,{id:r?(0,mA.gd)(n):(0,mA.gd)(Xe.MO)})))},St=(0,i.memo)(({id:e,status:A,blocked:t,is_wired:a,type:n})=>A===Ve.S2.ONLINE?i.createElement(jA.A,{client:{id:e,type:n,status:A,blocked:t},props:["wifi_experience_score"]},({wifi_experience_score:e})=>i.createElement(It,{is_wired:a,type:n,wifi_experience_score:e})):i.createElement(w.sA,{id:"COMMON_FALLBACK"})),Nt=(0,i.memo)(({id:e,type:A,status:t,blocked:a})=>i.createElement(jA.A,{client:{id:e,type:A,status:t,blocked:a},props:["tx_bytes-r"]},({"tx_bytes-r":e=0})=>i.createElement(FA.A,{bytesPerSecond:e,direction:"down",size:"medium",iconStyle:{width:"10px",height:"16px",margin:"0 16px 2px 0"}})));var _t=t(777916);const pt=(0,i.memo)(({id:e,type:A,status:t,blocked:a})=>i.createElement(jA.A,{client:{id:e,type:A,status:t,blocked:a},props:["usage_bytes"]},({usage_bytes:e=null})=>e?i.createElement(kA.A,{color:"inherit",size:"body"},i.createElement(_t.A,{color:"inherit",size:"body",type:"bytes",input:e})):i.createElement(w.sA,{id:"COMMON_FALLBACK"})));var Rt=t(271856),Ct=t(955161);const Mt=e=>i.createElement(Rt.A,{noWrap:!0,description:e,portal:!0,maxWidth:"auto"},e),Pt=(0,i.memo)(({type:e,status:A,uplink:t,sw_port:a})=>{const{formatMessage:n}=(0,w.tz)(),{connection:l,withTooltipWrapper:r}=(0,i.useMemo)(()=>{let l=i.createElement(w.sA,{id:"COMMON_FALLBACK"}),r=!1;switch(e){case Ve.sK.WIRED:A===Ve.S2.ONLINE&&t?.name&&a&&(r=!0,l=`${t.name} ${n({id:"COMMON_PORT"})} ${a}`);break;case Ve.sK.WIRELESS:A===Ve.S2.ONLINE&&t?.name&&(r=!0,l=`${t.name}`);break;case Ve.sK.VPN:case Ve.sK.TELEPORT:l=i.createElement(w.sA,{id:"COMMON_VPN"})}return{connection:l,withTooltipWrapper:r}},[n,A,a,e,t?.name]);return i.createElement(Ct.A,{condition:r,wrapper:Mt},i.createElement(ot.A,{color:"inherit",size:"medium",isTruncated:!0},l))}),Dt=(0,i.memo)(({id:e,type:A,status:t,blocked:a})=>i.createElement(jA.A,{client:{id:e,type:A,status:t,blocked:a},props:["tx_bytes-r","rx_bytes-r"]},({"tx_bytes-r":e=0,"rx_bytes-r":A=0})=>(0,At.zX)(e+A))),ft=[{id:Xe.uk.STATUS,header:null,...L.an[Xe.uk.STATUS],enableResizing:!1,enableSorting:!1,cell:({row:{original:e}})=>i.createElement(Y.A,{status:(0,Y.I)(e.type,e.status,"blocked"in e?e.blocked:void 0)})},{id:Xe.uk.NAME,accessorFn:x.Fo,...L.an[Xe.uk.NAME],header:()=>i.createElement(w.sA,{id:Xe.nI[Xe.uk.NAME]}),cell:({row:{original:e}})=>i.createElement(UA,{clientStatus:e.status},i.createElement(dt,{client:e})),compare:OA},{id:Xe.uk.MAC,accessorFn:x.Fo,...L.an[Xe.uk.MAC],header:()=>i.createElement(w.sA,{id:Xe.nI[Xe.uk.MAC]}),cell:({row:{original:e}})=>i.createElement(UA,{clientStatus:e.status},i.createElement(ae.A,{size:"medium",color:"inherit"},e.type!==Ve.sK.VPN&&e.type!==Ve.sK.TELEPORT&&e.mac||i.createElement(w.sA,{id:"COMMON_FALLBACK"}))),compare:IA},{id:Xe.uk.VENDOR,accessorFn:x.Fo,...L.an[Xe.uk.VENDOR],header:()=>i.createElement(w.sA,{id:Xe.nI[Xe.uk.VENDOR]}),cell:({row:{original:e}})=>i.createElement(UA,{clientStatus:e.status},e.type===Ve.sK.VPN||e.type===Ve.sK.TELEPORT?i.createElement(ae.A,{style:{marginLeft:E.YC,maxWidth:"90%"},color:"inherit",size:"medium"},i.createElement(w.sA,{id:"COMMON_FALLBACK"})):i.createElement(VA,{fingerprint:e.fingerprint,oui:e.oui})),compare:SA},{id:Xe.uk.CONNECTION,accessorFn:x.Fo,...L.an[Xe.uk.CONNECTION],header:()=>i.createElement(w.sA,{id:Xe.nI[Xe.uk.CONNECTION]}),cell:({row:{original:e}})=>i.createElement(UA,{clientStatus:e.status},i.createElement(Pt,{status:e.status,type:e.type,uplink:e.uplink,sw_port:"sw_port"in e?e.sw_port:void 0})),compare:NA},{id:Xe.uk.NETWORK,accessorFn:x.Fo,...L.an[Xe.uk.NETWORK],header:()=>i.createElement(w.sA,{id:Xe.nI[Xe.uk.NETWORK]}),cell:({row:{original:e}})=>i.createElement(UA,{clientStatus:e.status},i.createElement(ae.A,{size:"medium",color:"inherit"},e.type!==Ve.sK.TELEPORT&&e.network_name||i.createElement(w.sA,{id:"COMMON_FALLBACK"}))),compare:_A},{id:Xe.uk.WIFI,accessorFn:x.Fo,...L.an[Xe.uk.WIFI],header:()=>i.createElement(w.sA,{id:Xe.nI[Xe.uk.WIFI]}),cell:({row:{original:e}})=>i.createElement(UA,{clientStatus:e.status},i.createElement(GA,{type:e.type,essid:"essid"in e?e.essid:void 0})),compare:pA},{id:Xe.uk.EXPERIENCE,accessorFn:x.Fo,...L.an[Xe.uk.EXPERIENCE],header:()=>i.createElement(w.sA,{id:Xe.nI[Xe.uk.EXPERIENCE]}),cell:({row:{original:e}})=>i.createElement(UA,{clientStatus:e.status},i.createElement(St,{id:e.id,is_wired:"is_wired"in e?e.is_wired:void 0,type:e.type,status:e.status,blocked:"blocked"in e?e.blocked:void 0})),compare:RA},{id:Xe.uk.SIGNAL,accessorFn:x.Fo,...L.an[Xe.uk.SIGNAL],header:()=>i.createElement(w.sA,{id:Xe.nI[Xe.uk.SIGNAL]}),cell:({row:{original:e}})=>i.createElement(UA,{clientStatus:e.status},i.createElement(rA.A,{signal:"signal"in e?e.signal:void 0,is_mlo:"is_mlo"in e?e.is_mlo:void 0,mlo_details:"mlo_details"in e?e.mlo_details:void 0})),compare:CA},{id:Xe.uk.TECHNOLOGY,accessorFn:x.Fo,...L.an[Xe.uk.TECHNOLOGY],header:()=>i.createElement(w.sA,{id:Xe.nI[Xe.uk.TECHNOLOGY]}),cell:({row:{original:e}})=>i.createElement(UA,{clientStatus:e.status},i.createElement(et,{is_wired:"is_wired"in e?e.is_wired:void 0,mimo:"mimo"in e?e.mimo:void 0,radio_proto:"radio_proto"in e?e.radio_proto:void 0,wired_rate_mbps:"wired_rate_mbps"in e?e.wired_rate_mbps:void 0,is_mlo:"is_mlo"in e?e.is_mlo:void 0,mlo_details:"mlo_details"in e?e.mlo_details:void 0})),compare:MA},{id:Xe.uk.CHANNEL,accessorFn:x.Fo,...L.an[Xe.uk.CHANNEL],header:()=>i.createElement(w.sA,{id:Xe.nI[Xe.uk.CHANNEL]}),cell:({row:{original:e}})=>i.createElement(UA,{clientStatus:e.status},i.createElement(iA.A,{type:e.type,status:e.status,channel:"channel"in e?e.channel:void 0,radio:"radio"in e?e.radio:void 0,channel_width:"channel_width"in e?e.channel_width:void 0,is_mlo:"is_mlo"in e?e.is_mlo:void 0,mlo_details:"mlo_details"in e?e.mlo_details:void 0})),compare:PA},{id:Xe.uk.IP,accessorFn:x.Fo,...L.an[Xe.uk.IP],header:()=>i.createElement(w.sA,{id:Xe.nI[Xe.uk.IP]}),cell:({row:{original:e}})=>i.createElement(UA,{clientStatus:e.status},i.createElement(ae.A,{size:"medium",color:"inherit"},(0,ne.T1)(e)||i.createElement(w.sA,{id:"COMMON_FALLBACK"}))),compare:DA},{id:Xe.uk.IPV6,accessorFn:x.Fo,...L.an[Xe.uk.IPV6],header:()=>i.createElement(w.sA,{id:Xe.nI[Xe.uk.IPV6]}),cell:({row:{original:e}})=>i.createElement(UA,{clientStatus:e.status},i.createElement(lA,{ipv6:((e.type===Ve.sK.WIRELESS||e.type===Ve.sK.WIRED)&&e.ipv6_address||[]||[]).filter(e=>!(0,AA.jN)(e))})),compare:HA},{id:Xe.uk.LINK_LOCAL,accessorFn:x.Fo,...L.an[Xe.uk.LINK_LOCAL],header:()=>i.createElement(w.sA,{id:Xe.nI[Xe.uk.LINK_LOCAL]}),cell:({row:{original:e}})=>i.createElement(UA,{clientStatus:e.status},i.createElement(V.A,{size:"medium",color:"inherit"},((e.type===Ve.sK.WIRELESS||e.type===Ve.sK.WIRED)&&e.ipv6_address||[]||[]).find(AA.jN)||i.createElement(w.sA,{id:"COMMON_FALLBACK"}))),compare:wA},{id:Xe.uk.IDENTITY,accessorFn:x.Fo,...L.an[Xe.uk.IDENTITY],header:()=>i.createElement(w.sA,{id:Xe.nI[Xe.uk.IDENTITY]}),cell:({row:{original:e}})=>i.createElement(UA,{clientStatus:e.status},i.createElement(ae.A,{color:"inherit",size:"medium"},e.type!==Ve.sK.VPN&&e["1x_identity"]||i.createElement(w.sA,{id:"COMMON_FALLBACK"}))),compare:fA},{id:Xe.uk.VLAN,accessorFn:x.Fo,...L.an[Xe.uk.VLAN],header:()=>i.createElement(w.sA,{id:Xe.nI[Xe.uk.VLAN]}),cell:({row:{original:e}})=>i.createElement(ae.A,{color:"inherit",size:"medium"},e.type!==Ve.sK.VPN&&e.type!==Ve.sK.TELEPORT&&e.vlan>0&&e.vlan||i.createElement(w.sA,{id:"COMMON_FALLBACK"})),compare:bA},{id:Xe.uk.ACTIVITY,accessorFn:x.Fo,...L.an[Xe.uk.ACTIVITY],header:()=>i.createElement(w.sA,{id:Xe.nI[Xe.uk.ACTIVITY]}),cell:({row:{original:e}})=>i.createElement(UA,{clientStatus:e.status},i.createElement(Dt,{id:e.id,type:e.type,status:e.status,blocked:"blocked"in e?e.blocked:void 0})),compare:vA},{id:Xe.uk.DOWNLINK,accessorFn:x.Fo,...L.an[Xe.uk.DOWNLINK],header:()=>i.createElement(w.sA,{id:Xe.nI[Xe.uk.DOWNLINK]}),cell:({row:{original:e}})=>i.createElement(UA,{clientStatus:e.status},i.createElement(Nt,{id:e.id,type:e.type,status:e.status,blocked:"blocked"in e?e.blocked:void 0})),compare:LA},{id:Xe.uk.UPLINK,accessorFn:x.Fo,...L.an[Xe.uk.UPLINK],header:()=>i.createElement(w.sA,{id:Xe.nI[Xe.uk.UPLINK]}),cell:({row:{original:e}})=>i.createElement(UA,{clientStatus:e.status},i.createElement(KA,{id:e.id,type:e.type,status:e.status,blocked:"blocked"in e?e.blocked:void 0})),compare:hA},{id:Xe.uk.DAILY_USAGE,accessorFn:x.Fo,...L.an[Xe.uk.DAILY_USAGE],header:()=>i.createElement(w.sA,{id:Xe.nI[Xe.uk.DAILY_USAGE]}),cell:({row:{original:e}})=>i.createElement(UA,{clientStatus:e.status},i.createElement(pt,{id:e.id,type:e.type,status:e.status,blocked:"blocked"in e?e.blocked:void 0})),compare:yA},{id:Xe.uk.UPTIME,accessorFn:x.Fo,...L.an[Xe.uk.UPTIME],header:()=>i.createElement(w.sA,{id:Xe.nI[Xe.uk.UPTIME]}),cell:({row:{original:e}})=>i.createElement(UA,{clientStatus:e.status},i.createElement(BA,{assoc_time:e.assoc_time,type:e.type,status:e.status,last_seen:"last_seen"in e?e.last_seen:void 0})),compare:zA},{id:Xe.uk.RX_RATE,accessorFn:x.Fo,...L.an[Xe.uk.RX_RATE],enableSorting:!1,header:()=>i.createElement(w.sA,{id:Xe.nI[Xe.uk.RX_RATE]}),cell:({row:{original:e}})=>i.createElement(UA,{clientStatus:e.status},i.createElement(nt,{id:e.id,type:e.type,status:e.status,blocked:"blocked"in e?e.blocked:void 0,is_mlo:"is_mlo"in e?e.is_mlo:void 0,mlo_details:"mlo_details"in e?e.mlo_details:void 0,rate:"tx_rate"}))},{id:Xe.uk.TX_RATE,accessorFn:x.Fo,...L.an[Xe.uk.TX_RATE],enableSorting:!1,header:()=>i.createElement(w.sA,{id:Xe.nI[Xe.uk.TX_RATE]}),cell:({row:{original:e}})=>i.createElement(UA,{clientStatus:e.status},i.createElement(nt,{id:e.id,type:e.type,status:"status"in e?e.status:void 0,blocked:"blocked"in e?e.blocked:void 0,is_mlo:"is_mlo"in e?e.is_mlo:void 0,mlo_details:"mlo_details"in e?e.mlo_details:void 0,rate:"rx_rate"}))},{id:Xe.uk.FIRST_SEEN,accessorFn:x.Fo,...L.an[Xe.uk.FIRST_SEEN],header:()=>i.createElement(w.sA,{id:Xe.nI[Xe.uk.FIRST_SEEN]}),cell:({row:{original:e}})=>i.createElement(UA,{clientStatus:e.status},i.createElement(ut,{type:e.type,seen:"first_seen"in e?e.first_seen:void 0})),compare:gA},{id:Xe.uk.LAST_SEEN,accessorFn:x.Fo,...L.an[Xe.uk.LAST_SEEN],header:()=>i.createElement(w.sA,{id:Xe.nI[Xe.uk.LAST_SEEN]}),cell:({row:{original:e}})=>i.createElement(UA,{clientStatus:e.status},i.createElement(ut,{type:e.type,seen:"last_seen"in e?e.last_seen:void 0})),compare:xA},{id:Xe.uk.DOWN_PKTS,accessorFn:x.Fo,...L.an[Xe.uk.DOWN_PKTS],enableSorting:!1,header:()=>i.createElement(w.sA,{id:Xe.nI[Xe.uk.DOWN_PKTS]}),cell:({row:{original:e}})=>i.createElement(UA,{clientStatus:e.status},i.createElement(it,{id:e.id,type:e.type,status:e.status,blocked:"blocked"in e?e.blocked:void 0,packets:"tx_packets"}))},{id:Xe.uk.UP_PKTS,accessorFn:x.Fo,...L.an[Xe.uk.UP_PKTS],enableSorting:!1,header:()=>i.createElement(w.sA,{id:Xe.nI[Xe.uk.UP_PKTS]}),cell:({row:{original:e}})=>i.createElement(UA,{clientStatus:e.status},i.createElement(it,{id:e.id,type:e.type,status:e.status,blocked:"blocked"in e?e.blocked:void 0,packets:"rx_packets"}))},{id:Xe.uk.LOCAL_DNS_RECORD,accessorFn:x.Fo,...L.an[Xe.uk.LOCAL_DNS_RECORD],header:()=>i.createElement(w.sA,{id:Xe.nI[Xe.uk.LOCAL_DNS_RECORD]}),cell:({row:{original:e}})=>i.createElement(UA,{clientStatus:e.status},e.type!==Ve.sK.VPN&&e.type!==Ve.sK.TELEPORT&&e.local_dns_record_enabled&&e.local_dns_record?i.createElement(ae.A,{size:"medium",color:"inherit"},e.local_dns_record):i.createElement(ae.A,{size:"medium",color:"inherit"},i.createElement(w.sA,{id:"COMMON_FALLBACK"}))),compare:WA}];var bt=t(385273);const vt=({uniqueId:e},A)=>!A||A.has(e);var Lt=t(868166),ht=t(557162);const yt=(e,A,t)=>{const a=[],n=e.length;for(let l=0;l<n;l+=1){const n=e[l];(0,Lt.M)(n,A)&&vt(n,t)&&a.push(n)}return a},zt=(0,a.Mz)(bt.Wm,ht.kH,(0,Ue.U)(ke.U4.CLIENTS),yt),gt=(0,a.Mz)(bt.Eg,ht.kH,(0,Ue.U)(ke.U4.CLIENTS),yt),xt=(0,a.Mz)(bt.Bp,ht.kH,(0,Ue.U)(ke.U4.CLIENTS),yt),Wt=(0,n.WY)()((0,a.Mz)(zt,gt,xt,(e,A,t)=>[...e,...A,...t]),e=>e),Ht=(0,i.memo)(()=>{const e=(0,o.useDispatch)(),A=(0,i.useRef)(null),t=(0,o.useSelector)((0,i.useMemo)(()=>(0,Ue.f)(ke.U4.CLIENTS),[])),a=(0,o.useSelector)(Wt),{initialColumns:n,columnOrder:l}=(0,h.A)(R.l.CLIENT),[r,s]=(0,i.useState)(f.B),[c,m]=(0,C.A)(R.l.CLIENT),[d,u]=(0,He.A)(R.l.CLIENT),T=(0,i.useCallback)(({id:A,type:t})=>{t!==Ve.sK.VPN&&(e((0,Ge.p)(!1)),e((0,v.XP)({type:P.H.CLIENT,id:A})))},[e]),O=(0,i.useMemo)(()=>[...new Set(t.map(({id:e})=>e.split("::").shift()))],[t]),I=(0,i.useMemo)(()=>(e=>e.length?[...new Set(e)]:n)(O.flatMap(e=>Xe.ox[e]).filter(Boolean)),[O,n]),S=(0,i.useMemo)(()=>z.W2[y.xz.TABLES][R.l.CLIENT].columns.reduce((e,A)=>(e[A]=I.includes(A),e),{}),[I]),N=(0,i.useMemo)(()=>ft.sort(({id:e},{id:A})=>l.findIndex(A=>A===e)-l.findIndex(e=>e===A)),[l]),_=(0,i.useCallback)(A=>{e((0,pe.yT)(R.l.CLIENT,{columnOrder:(0,we.F)(ft,A,l)}))},[e,l]),b=(0,M.A)([P.H.CLIENT]),g=(0,Ze.A)({tagId:Ye.a.CLIENTS,data:a}),x=(0,i.useCallback)(e=>{s(e)},[]);return a.length&&I.length?i.createElement(eA,{ref:A},i.createElement(D.A,{section:"COMMON_CLIENT_DEVICES",itemCount:a.length,tableType:R.l.CLIENT,onRenderTable:({rowsPerPage:e,pageNumber:t})=>i.createElement(p.A,{className:L.Fl,data:a,columns:N,columnVisibility:S,columnPinningLeftState:L.l7,onRowClick:T,onColumnSizingChange:u,initialColumnSize:d,onSort:m,sorting:c,activeRows:b,parentRef:A,rowStyle:E.gc,pageIndex:t,pageSize:e,columnDnD:!0,virtualizeColumn:!1,staticDnD:L.l7,onColumnDrop:_,...g}),onPageChanged:x,rowOptions:L.Uo,pageNumber:r,wrapperFlexProps:L.Nl,paginationTableContainerClassName:Je})):i.createElement(Qe,null,i.createElement(p.A,{className:L.Fl,data:(0,We.A)(),columns:N,...I.length&&{columnVisibility:S}}),i.createElement($e,null,i.createElement(qe,{tableClients:a})))});var wt=t(340936),Ut=t(489391),kt=t(822336),Gt=t(218134),Vt=t(936344),Xt=t(592563),Zt=t(22585),Yt=t(499015),Bt=t(340813),Ft=t(897547);const jt=(0,$.A)(Ft.A)`
  color: ${({theme:{motifPalette:{neutral08:e}}})=>e};
`,Kt=({onClick:e,image:A,name:t,description:a})=>i.createElement(ee.A,{onClick:e,alignItems:"center",cursor:"pointer"},i.createElement(ee.A,{height:30,width:30,justifyContent:"center",alignItems:"center",flexShrink:0,flexGrow:0},A),i.createElement(ee.A,{flexDirection:"column",marginLeft:12,flexGrow:1,maxWidth:166},i.createElement(kA.A,{color:"primary",weight:"bold",truncate:!0},t),a?i.createElement(kA.A,{size:"label",color:"secondary"},a):null),e?i.createElement(ee.A,{alignItems:"center",flexShrink:0,flexGrow:0},i.createElement(jt,{size:"original"})):null);var qt=t(23961),Jt=t(939703);const Qt=-70,$t=e=>[{label:e({id:"COMMON_UNIT_DBM"}),value:-90},{label:"-85",value:-85},{label:"-80",value:-80},{label:"-75",value:-75},{label:null,value:Qt},{label:"-65",value:-65},{label:"-60",value:-60},{label:"-55",value:-55},{label:"-50",value:-50},{label:"-45",value:-45},{label:"-40",value:-40},{label:"-35",value:-35},{label:String(-30),value:-30}],ea={h:99,s:100,l:40,a:.5},Aa={h:37,s:96,l:55,a:.5},ta={h:5,s:100,l:73,a:.5},aa=e=>{if(e<35){const A=(0,qt.Zy)(0,52.5,e);return(0,Jt.qi)((0,Jt.YR)(ea,Aa,A))}if(e<45){const A=(0,qt.Zy)(35,45,e);return(0,Jt.qi)((0,Jt.YR)(Aa,ta,A))}return(0,Jt.qi)(ta)};var na;!function(e){e.ALL="all"}(na||(na={}));var la=t(565937),ra=t(664967),ia=t(584916),oa=t(819663),sa=t(195462),ca=t(969741);const Ea=(e,A=100)=>Math.max(4,e/A*12),ma=(e,A,t,a)=>{const{length:n}=e,l=[],r=(e=>{const{length:A}=e;let t=0;for(let a=0;a<A;a+=1){const A=Math.max(e[a].phy_rate_most_common,e[a].phy_rate_max||0);A>t&&(t=A)}return 0===t&&(t=ca.T7),t})(e);for(let A=0;A<n;A+=1){const{signal_avg:n,tx_retries_percentage:r,total_traffic_percentage:i}=e[A],o=aa(r);l.push({id:t(e[A]),y:a(e[A]),x:Math.max(Math.min(n,-30),-90),r:Ea(i),data:e[A],color:n>Qt?o:(0,oa.A)(o).alpha(.7).desaturate(2).css("hsl")})}A&&A.item.data.phy_rate_max&&l.push({id:`${A.item.id}`,y:A.item.data.phy_rate_max,x:A.item.x,r:Ea(A.item.data.total_traffic_percentage),data:{...A.item.data,hovered:!0},color:A.item.data.signal_avg>Qt?(0,oa.A)(aa(A.item.data.tx_retries_percentage)).desaturate(3).css("hsl"):(0,oa.A)(aa(A.item.data.tx_retries_percentage)).alpha(.7).desaturate(3).css("hsl")});return{data:l,yAxis:(0,sa.Y)(Math.ceil(r+.1*r),6)}};var da=t(823858),ua=t(825032);const Ta=({hoveredDot:e,maxY:A})=>{const{x:t,y:a,item:n}=e,{phy_rate_most_common:l,phy_rate_max:r,tx_retries_percentage:o,hovered:s}=n.data,c=(A-a)*r/l,E=(0,oa.A)(aa(o)).desaturate(3).css("hsl");return!r||s?null:i.createElement("line",{x1:t,y1:a,x2:t,y2:A-c,strokeWidth:1,strokeDasharray:4,stroke:E})},Oa=(0,$.A)(da.A)`
  margin-right: 4px;
  color: ${({theme:{motifPalette:{warning:e}}})=>e};
`,Ia=(0,$.A)(ee.A)`
  position: fixed; // safari thing
  font-size: 10px;
  cursor: pointer;
  fill: ${({theme:{motifPalette:{text03:e}}})=>e};
  white-space: nowrap;
  margin-left: -9px;
`,Sa=(0,$.A)("rect",{shouldForwardProp:e=>"isDarkTheme"!==e&&"isVisible"!==e})`
  fill: ${({theme:{motifPalette:{warning:e}}})=>e};
  opacity: ${({isVisible:e})=>e?.05:0};
  transition: opacity 0.2s ease-in-out;
`,Na=(0,$.A)("line",{shouldForwardProp:e=>"isVisible"!==e})`
  stroke: ${({theme:{motifPalette:{orange06:e}}})=>e};
  opacity: ${({isVisible:e})=>e?1:0};
  transition: opacity 0.2s ease-in-out;
`,_a=(0,$.A)("foreignObject")`
  transform: translate(-17px, 8px);
  cursor: pointer;
  overflow: visible;
  display: block;
`,pa=(0,$.A)("g")`
  pointer-events: none;
`,Ra=({getCoordinates:e,maxPhyBytes:A,isVisible:t})=>{const{x:a,y:n}=e(Qt,A),{x:l,y:r}=e(Qt,0);return i.createElement(Na,{x1:a,y1:n,x2:l,y2:r,strokeWidth:1,isVisible:t})},Ca=({getCoordinates:e,maxPhyBytes:A,isVisible:t})=>{const{motif:a}=(0,Tt.A)(),{x:n,y:l}=e(-90,A),{x:r,y:o}=e(Qt,0);return i.createElement(pa,null,i.createElement(Sa,{x:n,y:l,width:r-n,height:o-l,isDarkTheme:a===ua.S.DARK,isVisible:t}),i.createElement(Ra,{getCoordinates:e,maxPhyBytes:A,isVisible:t}))},Ma=({getCoordinates:e,setShowWarning:A})=>{const{x:t,y:a}=e(Qt,0);return i.createElement("g",{transform:`translate(${t},${a})`},i.createElement(_a,null,i.createElement(Rt.A,{portal:!0,position:"top",description:i.createElement(w.sA,{id:"CLIENTS_LOW_SIGNAL_WARN"}),width:230},i.createElement(Ia,{onMouseEnter:()=>A(!0),onMouseLeave:()=>A(!1),alignItems:"center"},i.createElement(Oa,null),Qt))))};var Pa=t(962315),Da=t(444232),fa=t(87485),ba=t(25553);let va=null;const La=(e,A,t)=>(0,a.Mz)(((e,A,t)=>(0,n.WY)((e,A)=>e.model.lastFetchTime===A.model.lastFetchTime&&e.queryParams.start===A.queryParams.start&&e.queryParams.end===A.queryParams.end&&e.queryParams.apMac===A.queryParams.apMac)((0,a.Mz)(a=>{return{model:(n=(0,ba.JC)(ca.A2,a.models,{queryParams:{start:e,end:A,apMac:t}},{idField:ca.RR}),!n.isLoading&&n.lastFetchTime?(va={start:e,end:A,apMac:t},n):(0,ba.JC)(ca.A2,a.models,{queryParams:va},{idField:ca.RR})),queryParams:{start:e,end:A,apMac:t}};var n},e=>e),e=>e))(e,A,t),Wt,Da.Ib,({model:e},A,t)=>(0,fa.kh)(e).filter(e=>!A.length||A.some(A=>A.id===e.client.mac)).map(e=>({...e,id:e.client.mac,apConnected:t.get(e.last_ap_mac),tx_retries_percentage:Math.min(e.tx_retries_percentage,100),phy_rate_most_common:(0,At.Zz)(e.phy_rate_most_common||0),phy_rate_max:(0,At.Zz)(e.phy_rate_max||0),...e.is_mlo&&e.mlo_details?(0,Pa.A)((0,ne.Wc)(e.mlo_details),["signal_avg","phy_rate_most_common","channel","channel_width","mimo","band"]):{}}))),ha=ra.E[ia.l.ONE_DAY].getRange(new Date),ya=na.ALL,za=[0,24,24,0],ga=(0,$.A)(ee.A)`
  border-top: ${({theme:{themeName:e}})=>kt.Ay[`desktop-border-divider-${e}`]};
`,xa=(0,$.A)(ae.A)`
  white-space: nowrap;
`,Wa=({onClick:e})=>{const A=(0,o.useDispatch)(),t=(0,i.useCallback)(()=>{e(),A((0,_e.to)({modalType:Ne.A.WIFI_PERFORMANCE_TIPS}))},[A,e]);return i.createElement(ga,{marginTop:E.kc,paddingTop:E.kc},i.createElement(Xt.A,{type:"button",onPress:t},i.createElement(ee.A,{alignItems:"center",gap:E.kc},i.createElement(Zt.A,{size:"original",isActive:!0}),i.createElement(w.sA,{id:"COMMON_WIFI_TIPS_TITLE"}))))},Ha=({ap:e,dispatch:A,id:t})=>{const a=(0,i.useCallback)(()=>{A((0,v.XP)({type:P.H.DEVICE,id:t}))},[A,t]);return i.createElement(ee.A,{alignItems:"center",justifyContent:"space-between"},i.createElement(xa,{color:"text-1",size:"small"},i.createElement(w.sA,{id:"COMMON_CONNECTED_TO"})),i.createElement(Bt.A,{size:"small",maxWidth:145,isFullWidth:!1,onClick:a},(0,K.Q)(e)))},wa=({item:{id:e,data:{client:A,total_traffic_percentage:t,phy_rate_max:a,last_ap_mac:n,apConnected:l,tx_retries_percentage:r,standard:s,signal_avg:c,channel:m,band:d,channel_width:u}},onModalOpen:T})=>{const{formatMessage:O}=(0,w.tz)(),I=(0,o.useDispatch)(),S=(0,i.useCallback)(()=>{I((0,v.XP)({type:A.unifi_device_info?P.H.UNIFI_DEVICE_CLIENT:P.H.CLIENT,id:String(e)}))},[I,e,A.unifi_device_info]);return i.createElement(ee.A,{flexDirection:"column",width:"100%"},i.createElement(Kt,{onClick:S,image:i.createElement(J.A,{client:A}),name:A?.name||i.createElement(w.sA,{id:"COMMON_FALLBACK"}),description:A?.oui}),i.createElement(ee.A,{flexDirection:"column",justifyContent:"start",gap:E.kc},t>0?i.createElement(ee.A,{alignItems:"center",justifyContent:"space-between"},i.createElement(ae.A,{color:"text-1",size:"small"},i.createElement(w.sA,{id:"COMMON_PERCENTAGE_OF_ALL_TRAFFIC"})),i.createElement(ae.A,{size:"small",color:"text-2"},t," %")):null,a>0?i.createElement(ee.A,{alignItems:"center",justifyContent:"space-between"},i.createElement(ae.A,{color:"text-1",size:"small"},i.createElement(w.sA,{id:"COMMON_MAX_PHY_RATE"})),i.createElement(ae.A,{size:"small",color:"text-2"},(0,At.zX)(a))):null,n&&l?i.createElement(Ha,{ap:l,id:n,dispatch:I}):null,i.createElement(ee.A,{alignItems:"center",justifyContent:"space-between"},i.createElement(ae.A,{color:"text-1",size:"small"},i.createElement(w.sA,{id:"COMMON_SIGNAL"})),i.createElement(ee.A,{alignItems:"center"},i.createElement(ae.A,{size:"small",color:(0,mA.a5)(c)},c," ",i.createElement(w.sA,{id:"COMMON_UNIT_DBM"})))),void 0!==r?i.createElement(ee.A,{alignItems:"center",justifyContent:"space-between"},i.createElement(ae.A,{color:"text-1",size:"small"},i.createElement(w.sA,{id:"COMMON_TX_RETRIES"})),i.createElement(ae.A,{size:"small",color:"text-2"},(e=>{switch(!0){case void 0===e:return dA.L;case e<.01:return"<0.01%";default:return`${e}%`}})(r))):null,s?i.createElement(ee.A,{alignItems:"center",justifyContent:"space-between"},i.createElement(ae.A,{color:"text-1",size:"small"},i.createElement(w.sA,{id:"COMMON_STANDARD"})),i.createElement(ae.A,{size:"small",color:"text-2"},`${O({id:"COMMON_WIFI"})} ${s?.split("_")[1]}`)):null,i.createElement(ee.A,{alignItems:"center",justifyContent:"space-between"},i.createElement(ae.A,{color:"text-1",size:"small"},i.createElement(w.sA,{id:"COMMON_CHANNEL"})),i.createElement(ae.A,{size:"small",color:"text-2"},(0,Yt.I)(m,O,d,u))),c<Qt?i.createElement(Wa,{onClick:T}):null))},Ua=({apMac:e=ya,dateRange:{startDate:A,endDate:t}=ha})=>{const{formatMessage:n}=(0,w.tz)(),l=(0,i.useMemo)(()=>A.getTime(),[A]),r=(0,i.useMemo)(()=>t.getTime(),[t]),s=(0,o.useSelector)((0,i.useMemo)(()=>La(l,r,e),[l,r,e])),c=(0,o.useSelector)((0,i.useMemo)(()=>((e,A,t)=>(0,a.Mz)(La(e,A,t),e=>(0,Ut.cS)(Math.max(...e.map(({phy_rate_max:e=0,phy_rate_most_common:A=0})=>[e,A]).flat(),ca.T7),"bitrate","SI")))(l,r,e),[l,r,e])),[E,m]=(0,i.useState)(null),{yAxis:d,data:u}=(0,i.useMemo)(()=>ma(s,E,({client:{mac:e}})=>e,({phy_rate_most_common:e})=>e),[s,E]),[T,O]=(0,i.useState)(!1),{ref:I,width:S=0,height:N=0}=(0,wt.A)(),_=E?.x>S/2?"left":"right",[p,R]=(0,i.useState)(!1),C=(0,i.useCallback)(e=>{m(e)},[]),M=(0,i.useCallback)(()=>{m(null)},[]),P=(0,i.useCallback)(()=>{O(!0)},[]),D=(0,i.useCallback)(()=>{O(!1)},[]),f=(0,i.useCallback)(e=>i.createElement(wa,{item:e.item,onModalOpen:()=>{O(!1)}}),[O]),b=(0,i.useCallback)((e,A,t)=>i.createElement(i.Fragment,null,E?i.createElement(Ta,{hoveredDot:E,maxY:t}):null,i.createElement(Gt.i,{onDotMouseEnter:C,onDotMouseLeave:M,data:u,getCoordinates:e,width:S,height:N,renderTooltipContents:f,tooltipWidth:260,onClick:P,lockTooltip:T,unlockTooltip:D,tooltipOffset:20,tooltipPosition:_,tooltipInteractive:!0,portaledTooltip:!0}),i.createElement(Ca,{getCoordinates:e,maxPhyBytes:d[0].value,isVisible:p}),i.createElement(Ma,{getCoordinates:e,setShowWarning:R})),[N,S,u,T,E,p,_,d,C,M,P,D,f]),v=(0,i.useCallback)(({value:e})=>(0,Ut.cS)(parseFloat(e),"bitrate","SI",c.power).value.toFixed(c.power>2?2:0),[c.power]),L=(0,i.useCallback)(({value:e,label:A})=>String(e===Qt?null:A),[]);return i.createElement(ee.A,{width:"100%",position:"relative",height:"100%",ref:I},i.createElement(Vt.A,{xAxis:$t(n),yAxis:d,yLabelsOnRight:!0,width:S,height:N,renderYLabel:v,renderXLabel:L,margin:za},b))},ka=()=>{const e=(0,o.useDispatch)(),A=(0,o.useSelector)(ht.Z6);return(0,i.useEffect)(()=>{e((0,la._)({start:ha.startDate.getTime(),end:ha.endDate.getTime(),apMac:ya}))},[e]),A?i.createElement(ee.A,{height:270,margin:`0 ${E.Ln}`},i.createElement(Ua,{dateRange:ha,apMac:ya})):null},Ga=()=>i.createElement(ee.A,{flexDirection:"column",gap:E.kc,marginTop:E.xO,flex:1,width:"0"},i.createElement(ka,null),i.createElement(Ht,null)),Va=(0,i.memo)(()=>{const e=(0,o.useDispatch)(),[A,t]=(0,i.useState)(!1),a=(0,o.useSelector)(ye.AQ);return(0,i.useEffect)(()=>{A||(e((0,xe.hP)(a)),t(!0))},[e,a,A]),A?i.createElement(Ga,null):null}),Xa=()=>(ge(),(0,c.A)([(0,N.$3)(void 0,{crudCacheStrategy:{type:s.e.CACHE}})],i.createElement(Va,null)));var Za=t(668478),Ya=t(118835),Ba=t(628980);const Fa=(0,a.Mz)(()=>!0),ja=(0,a.Mz)(()=>!0),Ka=(0,a.Mz)(Za._,e=>e),qa=(0,n.WY)()((0,a.Mz)(Fa,e=>({[l.o9.ROUTE_COMPONENT]:Xa,[l.o9.SIDE_NAVIGATION]:void 0,[l.o9.ROUTE]:{[l.Fm.AVAILABLE]:e},[l.o9.NAVIGATION]:{[l.mx.AVAILABLE]:e},[l.o9.DEPENDENCIES]:Ba.D[Ya.M.MAIN]})),e=>e),Ja=(0,n.WY)()((0,a.Mz)(ja,e=>({[l.o9.ROUTE_COMPONENT]:Le,[l.o9.SIDE_NAVIGATION]:void 0,[l.o9.ROUTE]:{[l.Fm.AVAILABLE]:e},[l.o9.NAVIGATION]:{[l.mx.AVAILABLE]:e},[l.o9.DEPENDENCIES]:Ba.D[Ya.M.DHCP]})),e=>e),Qa=(0,n.WY)()((0,a.Mz)(Ka,e=>({[l.o9.ROUTE_COMPONENT]:r.A,[l.o9.SIDE_NAVIGATION]:void 0,[l.o9.ROUTE]:{[l.Fm.AVAILABLE]:!0},[l.o9.NAVIGATION]:{[l.mx.AVAILABLE]:e},[l.o9.DEPENDENCIES]:Ba.D[Ya.M.HOTSPOT]})),e=>e),$a=(0,n.WY)()((0,a.Mz)(qa,Ja,Qa,(e,A,t)=>({[Ya.M.MAIN]:e,[Ya.M.DHCP]:A,[Ya.M.HOTSPOT]:t})),e=>e)},860923:(e,A,t)=>{t.d(A,{A:()=>o});var a=t(296540),n=t(71479),l=t(480016),r=t(98160);const i=(0,n.A)(l.A)`
  height: 100%;
  width: 100%;
`,o=({children:e,mainPanelClassName:A,mainPanelProps:t,renderFooter:n=()=>null,vertical:l=!0,...o})=>a.createElement(i,{vertical:l,...o},a.createElement(r.A,{className:A,...t},e),n())},863979:(e,A,t)=>{t.d(A,{Fl:()=>i,Nl:()=>o,Uo:()=>r,an:()=>c,l7:()=>s});var a=t(132196),n=t(984297),l=t(661282);const r=[{value:25},{value:50},{value:100,default:!0}],i=a.AH`
  ${n.E};
  ${n.M};
`,o={paddingTop:0,paddingRight:0,paddingLeft:0},s=[l.uk.STATUS,l.uk.NAME],c={[l.uk.STATUS]:{size:20,minSize:20,maxSize:20},[l.uk.NAME]:{size:142,minSize:142},[l.uk.MAC]:{size:132,minSize:100},[l.uk.VENDOR]:{size:82,minSize:82},[l.uk.CONNECTION]:{size:118,minSize:100},[l.uk.NETWORK]:{size:88,minSize:88},[l.uk.WIFI]:{size:88,minSize:88},[l.uk.EXPERIENCE]:{size:104,minSize:104},[l.uk.SIGNAL]:{size:82,minSize:82},[l.uk.TECHNOLOGY]:{size:102,minSize:100},[l.uk.CHANNEL]:{size:130,minSize:100},[l.uk.IP]:{size:98,minSize:98},[l.uk.IPV6]:{size:118,minSize:118},[l.uk.LINK_LOCAL]:{size:118,minSize:118},[l.uk.IDENTITY]:{size:128,minSize:100},[l.uk.VLAN]:{size:118,minSize:100},[l.uk.ACTIVITY]:{size:98,minSize:98},[l.uk.DOWNLINK]:{size:98,minSize:98},[l.uk.UPLINK]:{size:98,minSize:98},[l.uk.DAILY_USAGE]:{size:114,minSize:100},[l.uk.UPTIME]:{size:104,minSize:100},[l.uk.TX_RATE]:{size:94,minSize:94},[l.uk.RX_RATE]:{size:94,minSize:94},[l.uk.FIRST_SEEN]:{size:144,minSize:100},[l.uk.LAST_SEEN]:{size:144,minSize:100},[l.uk.DOWN_PKTS]:{size:98,minSize:98},[l.uk.UP_PKTS]:{size:98,minSize:98},[l.uk.LOCAL_DNS_RECORD]:{size:148,minSize:100}}},868166:(e,A,t)=>{t.d(A,{I:()=>_,M:()=>R});var a=t(616498),n=t(691294);const l=e=>e.status===n.S2.ONLINE,r=e=>e.status===n.S2.OFFLINE&&!("blocked"in e&&e.blocked),i=e=>"blocked"in e&&e.blocked;var o=t(951106);var s=t(481413),c=t(800081);var E=t(954328);var m=t(903216);var d=t(809872);var u=t(432776);const T=({type:e})=>e===n.sK.WIRELESS,O=({type:e})=>e===n.sK.WIRED,I=({type:e})=>e===n.sK.VPN,S=({type:e})=>e===n.sK.TELEPORT;var N=t(736439);const _={[a.tJ.STATUS]:(e,A)=>!A[a.tJ.STATUS].length||Object.values({[a.Z4.ONLINE]:A[a.tJ.STATUS].includes(a.Z4.ONLINE)&&l(e),[a.Z4.OFFLINE]:A[a.tJ.STATUS].includes(a.Z4.OFFLINE)&&r(e),[a.Z4.BLOCKED]:A[a.tJ.STATUS].includes(a.Z4.BLOCKED)&&i(e)}).some(e=>e),[a.tJ.CONNECTION]:(e,A)=>!A[a.tJ.CONNECTION].length||Object.values({[a.VD.WIRELESS]:A[a.tJ.CONNECTION].includes(a.VD.WIRELESS)&&T(e),[a.VD.WIRED]:A[a.tJ.CONNECTION].includes(a.VD.WIRED)&&O(e),[a.VD.VPN]:A[a.tJ.CONNECTION].includes(a.VD.VPN)&&I(e),[a.VD.TELEPORT]:A[a.tJ.CONNECTION].includes(a.VD.TELEPORT)&&S(e)}).some(e=>e),[a.tJ.GROUPS]:(e,A)=>!A[a.tJ.GROUPS].length||(e.type===n.sK.WIRELESS||e.type===n.sK.WIRED)&&A[a.tJ.GROUPS].some(A=>e.network_members_group_ids.includes(A)),[a.tJ.ACCESS_POINTS]:(e,A)=>!A[a.tJ.ACCESS_POINTS].length||e.type===n.sK.WIRELESS&&A[a.tJ.ACCESS_POINTS].includes(e.uplink_mac),[a.tJ.BROADCASTS]:(e,A)=>!A[a.tJ.BROADCASTS].length||e.type===n.sK.WIRELESS&&A[a.tJ.BROADCASTS].includes(e.essid),[a.tJ.VLANS]:(e,A)=>!A[a.tJ.VLANS].length||(e.type===n.sK.WIRED||e.type===n.sK.WIRELESS)&&A[a.tJ.VLANS].includes(e.network_id),[a.tJ.VENDORS]:(e,A)=>!A[a.tJ.VENDORS].length||A[a.tJ.VENDORS].includes(e.vendor),[a.tJ.FINGERPRINT_DEVICE_NAMES]:({fingerprint_device_name:e},A)=>!A[a.tJ.FINGERPRINT_DEVICE_NAMES].length||A[a.tJ.FINGERPRINT_DEVICE_NAMES].includes(e),[a.tJ.RADIOS]:(e,A)=>!A[a.tJ.RADIOS].length||(e=>{const A=[];if(e.type===n.sK.WIRELESS)switch(e.status){case n.S2.ONLINE:A.push(e.radio);break;case n.S2.OFFLINE:A.push(e.last_radio)}return A.concat(e.type===n.sK.WIRELESS&&e.is_mlo?E.a:[])})(e).some(e=>A[a.tJ.RADIOS].includes(e)),[a.tJ.WIFI_GENERATIONS]:(e,A)=>!A[a.tJ.WIFI_GENERATIONS].length||e.type===n.sK.WIRELESS&&A[a.tJ.WIFI_GENERATIONS].includes((0,o.z0)(e.radio_proto)),[a.tJ.SIGNAL]:(e,A)=>{return e.status!==n.S2.ONLINE||e.type!==n.sK.WIRELESS||(0,s.O)("is_mlo"in e&&e.is_mlo?(0,o.Wc)(e.mlo_details)?.signal??0:"signal"in e&&"number"==typeof e.signal?e.signal:c.KM,(l=c.Kj[A[a.tJ.SIGNAL][0]])===c.KM?-1/0:l,(t=c.Kj[A[a.tJ.SIGNAL][1]])===c.Uc?1/0:t);var t,l},[a.tJ.LINK_SPEEDS]:(e,A)=>!A[a.tJ.LINK_SPEEDS].length||e.type===n.sK.WIRED&&A[a.tJ.LINK_SPEEDS].includes((0,m.ir)(e.wired_rate_mbps)),[a.tJ.DAILY_USAGE]:(e,A)=>e.status!==n.S2.ONLINE||e.type!==n.sK.WIRED&&e.type!==n.sK.WIRELESS||(0,s.O)(e.usage_bytes,d.aU[A[a.tJ.DAILY_USAGE][0]],d.aU[A[a.tJ.DAILY_USAGE][1]]),[a.tJ.CONFIGURATIONS]:u.jY,[a.tJ.WIFI_USAGE_DIAGRAM_VISIBILITY]:N.Y},p=Object.values(_),R=(e,A)=>p.every(t=>t(e,A))},872836:(e,A,t)=>{t.d(A,{j:()=>l});var a=t(28536),n=t(594827);const l=(e,A)=>`${a.DP.toUpperCase()}${(0,n.si)(e)}_${A?.toLowerCase()}`},873501:(e,A,t)=>{t.d(A,{I:()=>r});var a=t(592510),n=t(171073),l=t(670180);const r={[l.H.FLOWS]:[],[l.H.ACTIVITY]:[(0,n.Uc)(void 0,{crudCacheStrategy:{type:a.e.CACHE}})]}},874098:(e,A,t)=>{t.d(A,{B8:()=>o,Gq:()=>s,MQ:()=>i,bn:()=>c});var a=t(801081),n=t(919952),l=t(108666);const r=e=>e[n.U.TAGS],i=(0,a.Mz)(r,e=>e[l.I.ID]),o=(0,a.Mz)(r,e=>e[l.I.VALUES]),s=(0,a.Mz)(r,e=>e[l.I.NAME]),c=(0,a.Mz)(r,e=>e[l.I.VALUE_ID])},878237:(e,A,t)=>{t.d(A,{A:()=>m});var a,n=t(296540),l=t(758649),r=t(71479),i=t(825032);!function(e){e.DEFAULT="default",e.HOVER="hover",e.DISABLED="disabled",e.ACTIVE="active"}(a||(a={}));const o={[a.DEFAULT]:{[i.S.LIGHT]:"#d6d9e2",[i.S.DARK]:"#3f3f3f"},[a.HOVER]:{[i.S.LIGHT]:"#7e8190",[i.S.DARK]:"#9d9d9d"},[a.DISABLED]:{[i.S.LIGHT]:"#eeeff3",[i.S.DARK]:"#1e1e1e"},[a.ACTIVE]:{[i.S.LIGHT]:"#a4a7b5",[i.S.DARK]:"#2f2f2f"}},s=(e,A)=>o[A][e],c=(e,A)=>`1px 0px 0px 0px ${s(e,A)}`,E=(0,r.A)(l.A,{shouldForwardProp:e=>"rotate"!==e})`
  margin: 0;
  padding: 0;
  width: 26px;
  height: 24px;
  color: inherit;
  background-color: transparent;
  box-sizing: border-box;
  border-radius: 4px 0 0 4px;
  border-right: 0;
  border-color: transparent;
  border-color: ${({theme:{themeName:e}})=>`${s(e,a.DEFAULT)}`};
  box-shadow: ${({theme:{themeName:e}})=>`${c(e,a.DEFAULT)}`};
  ${({rotate:e=!1})=>e?"\n    transform: rotate(-180deg);\n  ":"\n  position: relative; \n  left: -1px;\n  margin-left: 1px;\n    "}
  > span {
    display: flex;
    align-items: center;
    justify-content: center;
    > div {
      display: flex;
    }
  }
  &:disabled {
    z-index: 0;
    box-shadow: ${({theme:{themeName:e}})=>`${c(e,a.DISABLED)} !important`};
    border-color: ${({theme:{themeName:e}})=>`${s(e,a.DISABLED)} !important`};
  }
  &:hover {
    z-index: 1;
    box-shadow: ${({theme:{themeName:e}})=>`${c(e,a.HOVER)} !important`};
    border-color: ${({theme:{themeName:e}})=>`${s(e,a.HOVER)} !important`};
    border-right: 0;
    background-color: transparent !important;
  }
  &:active {
    box-shadow: ${({theme:{themeName:e}})=>`${c(e,a.ACTIVE)} !important`};
    border-color: ${({theme:{themeName:e}})=>`${s(e,a.ACTIVE)} !important`};
  }
`,m=({disabled:e,onClick:A,rotate:t})=>n.createElement(E,{variant:"secondary",rotate:t,disabled:e,onClick:A,type:"button"},n.createElement("svg",{width:"4",height:"8",viewBox:"0 0 4 8",fill:"none"},n.createElement("path",{d:"M3.75026 0.999386C3.75026 1.11739 3.70826 1.23639 3.62426 1.33138L1.25026 3.99939L1.27026 4.02039L3.62326 6.66739C3.80726 6.87339 3.78826 7.18939 3.58226 7.37339C3.37626 7.55739 3.06026 7.53839 2.87626 7.33239L0.530256 4.69439C0.156256 4.30739 0.156256 3.69139 0.530256 3.30439L2.87526 0.667385C3.05826 0.461386 3.37526 0.442385 3.58126 0.626385C3.69326 0.724385 3.75026 0.861386 3.75026 0.999386Z",fill:"#A4A7B5"})))},878781:(e,A,t)=>{t.d(A,{O:()=>l,z:()=>n});var a=t(964310);const n={[a.j.STATUS_BALL]:"COMMON_STATUS",[a.j.NAME]:"COMMON_NAME",[a.j.HOSTNAME]:"COMMON_HOSTNAME",[a.j.LOCAL_DNS_RECORD]:"COMMON_LOCAL_DNS_RECORD",[a.j.STATUS]:"COMMON_STATUS",[a.j.IP]:"COMMON_IP_ADDRESS",[a.j.MAC]:"COMMON_MAC_ADDRESS",[a.j.LEASE_TYPE]:"COMMON_LEASE_TYPE",[a.j.LEASE_EXPIRATION_TIME]:"COMMON_EXPIRATION_TIME"},l={[a.j.STATUS_BALL]:{size:20,minSize:20,maxSize:20},[a.j.NAME]:{size:142,minSize:142},[a.j.HOSTNAME]:{size:102,minSize:102},[a.j.LOCAL_DNS_RECORD]:{size:150,minSize:150},[a.j.STATUS]:{size:82,minSize:82},[a.j.IP]:{size:112,minSize:112},[a.j.MAC]:{size:132,minSize:132},[a.j.LEASE_TYPE]:{size:112,minSize:112},[a.j.LEASE_EXPIRATION_TIME]:{size:130,minSize:130}}},879002:(e,A,t)=>{t.d(A,{A:()=>n});var a=t(296540);const n=(e,A,t=[])=>{const n=(0,a.useCallback)(({target:t})=>{e?.current&&t!==e.current&&!e.current.contains(t)&&A()},[A,e?.current]);(0,a.useEffect)(()=>(document.addEventListener("click",n),()=>{document.removeEventListener("click",n)}),[...t,n])}},879275:(e,A,t)=>{t.d(A,{A:()=>i});var a=t(296540),n=t(395812),l=t(703447),r=t(691294);const i=({client:e})=>{switch(e.type){case r.sK.VPN:return a.createElement(n.A,{type:"vpn"});case r.sK.TELEPORT:return a.createElement(n.A,{type:"teleport"});case r.sK.WIRED:case r.sK.WIRELESS:default:return a.createElement(l.A,{client:e,alt:e.name})}}},881295:(e,A,t)=>{t.d(A,{_i:()=>u,_v:()=>d});var a=t(822336),n=t(998837),l=t(825032),r=t(996734),i=t(371207);const o={[r.OP.NO_SIGNAL]:"desktop-color-neutral-06",[r.OP.POOR]:"desktop-color-red-06",[r.OP.WEAK]:"desktop-color-red-06",[r.OP.FAIR]:"desktop-color-orange-06",[r.OP.GOOD]:"desktop-color-green-06",[r.OP.EXCELLENT]:"desktop-color-green-06"},s="desktop-color-red-06",c="desktop-color-orange-06",E="desktop-color-green-06",m={0:s,1:s,2:s,3:c,4:c,5:c,6:c,7:E,8:E,9:E,10:E},d=(e=r.OP.NO_SIGNAL)=>((e=r.OP.NO_SIGNAL,A=l.S.LIGHT)=>a.Ay[`${o[e]}-${A}`])(e,(0,n.u)().themeName),u=(e,A=l.S.LIGHT)=>a.Ay[`${(e=>m[(0,i.O)(e)]||"desktop-color-neutral-06")(e)}-${A}`]},887447:(e,A,t)=>{t.d(A,{default:()=>m});var a=t(469733),n=t(296540),l=t(640488),r=t(510337),i=t(627440),o=t(706574),s=t(151033),c=t(267291),E=t(771641);const m=()=>{const e=(0,a.useDispatch)(),A=(0,a.useSelector)(r.I),t=(0,a.useSelector)(c.e),m=(0,n.useMemo)(()=>A[i.o9.NAVIGATION][i.mx.AVAILABLE],[A]),d=(0,n.useMemo)(()=>[...new Set(t.map(e=>e[s.k1.CATEGORY]))],[t]),u=(0,l.A)(),T=(0,n.useCallback)(()=>{u(()=>{1===d.length&&e((0,o.A$)(d))})},[e,u,d]);return(0,n.useMemo)(()=>({[E.q.AVAILABLE]:m,[E.q.REDIRECT]:T}),[m,T])}},888980:(e,A,t)=>{var a,n;t.d(A,{h:()=>a,w:()=>n}),function(e){e.NAME="note",e.AMOUNT="amount",e.EXPIRATION="duration",e.TYPE="quota",e.DATA_LIMIT="qos_usage_quota",e.DOWNLOAD_UPLOAD_LIMIT="qos_rate_max_down"}(a||(a={})),function(e){e.ONE_TIME="oneTime",e.MULTI_USE="multiUse",e.UNLIMITED="unlimited"}(n||(n={}))},889750:(e,A,t)=>{t.d(A,{Eq:()=>d,_G:()=>m,sG:()=>u});var a=t(801081),n=t(523275),l=t(840279),r=t(918710),i=t(897254),o=t(597766);const s=(0,a.Mz)(r.e6,e=>e[i.ZJ.ISP_METRICS]||(0,n.A)()),c=(0,a.Mz)(s,e=>e[o.hC.METRICS_BY_ISP_ID]||(0,n.A)()),E=e=>(0,a.Mz)(c,A=>A[e]||(0,n.A)()),m=e=>(0,a.Mz)(E(e),e=>e[o.GA.HISTORY]||(0,l.A)()),d=e=>(0,a.Mz)(m(e),e=>Boolean(e.length)),u=e=>(0,a.Mz)(E(e),e=>e[o.GA.LIVE]||(0,n.A)())},891528:(e,A,t)=>{var a,n;t.d(A,{v:()=>a,x:()=>n}),function(e){e.GREEN="green",e.YELLOW="yellow",e.ORANGE="orange",e.RED="red",e.GREY="grey",e.BLUE="blue"}(a||(a={})),function(e){e.MOST_ACTIVE="mostActive",e.MOST_COMMON_CLIENT_FINGERPRINTS="mostCommonClientFingerprints",e.ACTIVE_CHANNELS="activeChannels",e.BAND_SELECTOR="bandSelector",e.CHARTS="charts"}(n||(n={}))},893562:(e,A,t)=>{t.d(A,{Fl:()=>u,O1:()=>r,RH:()=>d,UV:()=>s,fB:()=>E,fR:()=>m,gH:()=>c,lL:()=>o,vM:()=>i,wc:()=>l});var a=t(307331),n=t(564985);const l="airview",r={},i={DIVISIONS:39,MAX:-32,MIN:-110,MIN_VISIBLE:-110,RESOLUTION:2,STEP:8},o={[n.sx.RADIO_NG]:{MIN:2401,MAX:2495},[n.sx.RADIO_NA]:{MIN:5150,MAX:5895},[n.sx.RADIO_6E]:{MIN:5925,MAX:7125}},s=3,c=250,E="#ffffff00",m=[E,"#39CC64","#AED222","#FFDC1B","#F5A623","#F03A3E","#9C2628"].flatMap((e,A,t)=>{if(!A)return e;return new Array(3).fill(1).map((n,l)=>(0,a.A)(t[A-1],e)(l/3))}),d=["#AED222","#FFDC1B","#F5A623","#F03A3E","#9C2628"],u=Array(m.length).fill(0).map((e,A,t)=>Math.floor(106*A/t.length))},893757:(e,A,t)=>{t.d(A,{wJ:()=>Ee,KI:()=>se,fI:()=>ce,$r:()=>ie,Fd:()=>re,Wz:()=>oe});var a=t(296540),n=t(699784);const l=e=>a.createElement(n.sA,{id:re[e]}),r=e=>a.createElement(n.sA,{id:re[e]}),i=e=>a.createElement(n.sA,{id:re[e]}),o=()=>null,s=e=>a.createElement(n.sA,{id:re[e]}),c=e=>a.createElement(n.sA,{id:re[e]}),E=e=>a.createElement(n.sA,{id:re[e]}),m=e=>a.createElement(n.sA,{id:re[e]}),d=e=>a.createElement(n.sA,{id:re[e]}),u=e=>a.createElement(n.sA,{id:re[e]}),T=e=>a.createElement(n.sA,{id:re[e]});var O=t(300696),I=t(785330),S=t(718556);const N=(e,A,t,a)=>(0,I.j5)(t[S.b.END],a[S.b.END]),_=(e,A,t,a)=>(0,I.j5)((t[S.b.TX_BYTES]||0)+(t[S.b.RX_BYTES]||0),(a[S.b.TX_BYTES]||0)+(a[S.b.RX_BYTES]||0)),p=(e,A,t,a)=>(0,I.j5)(t[S.b.TX_BYTES]||0,a[S.b.TX_BYTES]||0),R=(e,A,t,a,n)=>0,C=(e,A,t,a)=>(0,I.j5)(t[S.b.START],a[S.b.START]);var M=t(716066);const P=(e,A,t,a)=>(0,I.j5)(t[S.b.HOTSPOT_CLIENT][M.G.NOTE],a[S.b.HOTSPOT_CLIENT][M.G.NOTE]),D=(e,A,t,a)=>(0,I.j5)(t[S.b.HOTSPOT_CLIENT][M.G.DISPLAY_NAME]||t[S.b.HOTSPOT_CLIENT][M.G.MAC],a[S.b.HOTSPOT_CLIENT][M.G.DISPLAY_NAME]||a[S.b.HOTSPOT_CLIENT][M.G.MAC]),f=(e,A,t,a)=>(0,I.j5)(t[S.b.IP]||t[S.b.HOTSPOT_CLIENT][M.G.IP],a[S.b.IP]||a[S.b.HOTSPOT_CLIENT][M.G.IP]),b=(e,A,t,a)=>(0,I.j5)(t[S.b.IS_RETURNING]?1:0,a[S.b.IS_RETURNING]?1:0),v=(e,A,t,a)=>(0,I.j5)(t[S.b.RX_BYTES]||0,a[S.b.RX_BYTES]||0),L=(e,A,t,a)=>(0,I.j5)(t[S.b.AUTHORIZED_BY],a[S.b.AUTHORIZED_BY]);var h=t(705145),y=t(90757),z=t(413146);const g=e=>a.createElement(h.A,{isTruncated:!0,size:"medium",color:"text-2"},a.createElement(z.A,{date:(0,y.gH)(e[S.b.END])}));var x=t(489391),W=t(903216);const H=e=>a.createElement(h.A,{isTruncated:!0,size:"medium",color:"text-2"},(0,W.FI)((e[S.b.TX_BYTES]||0)+(e[S.b.RX_BYTES]||0))," / ",e[S.b.QOS_USAGE_QUOTA]>-1?a.createElement(a.Fragment,null,(0,x.Ay)(1e6*(e[S.b.QOS_USAGE_QUOTA]||1e3),"bytes","SI")," "):a.createElement(n.sA,{id:"COMMON_UNLIMITED"}));var w=t(438369),U=t(71479),k=t(566723),G=t(294303);const V=(0,U.A)(G.A)`
  align-items: center;
  gap: ${k.kc};
`,X=e=>a.createElement(V,null,a.createElement(w.A.Icon,null),a.createElement(w.A.Bytes,{size:"medium"},(0,W.FI)(e[S.b.TX_BYTES]||0)));var Z=t(319551);const Y=e=>a.createElement(Z.A,{status:e[S.b.HOTSPOT_CLIENT][M.G.IS_GUEST]?(0,Z.I)(e[S.b.HOTSPOT_CLIENT][M.G.TYPE],e[S.b.HOTSPOT_CLIENT][M.G.STATUS],e[S.b.HOTSPOT_CLIENT][M.G.BLOCKED]):"neutral"}),B=e=>a.createElement(h.A,{isTruncated:!0,size:"medium",color:"text-2"},a.createElement(z.A,{date:(0,y.gH)(e[S.b.START])})),F=e=>a.createElement(h.A,{isTruncated:!0,size:"medium",color:"text-2"},e[S.b.HOTSPOT_CLIENT][M.G.NOTE]||a.createElement(n.sA,{id:"COMMON_FALLBACK"}));var j=t(703447);const K=(0,U.A)(G.A)`
  align-items: center;
  gap: ${k.kc};
`,q=({[S.b.HOTSPOT_CLIENT]:e})=>a.createElement(K,null,a.createElement(j.A,{width:25,height:25,client:e}),a.createElement(h.A,{isTruncated:!0,size:"medium",color:"text-2"},e[M.G.DISPLAY_NAME]||e[M.G.MAC]||a.createElement(n.sA,{id:"COMMON_FALLBACK"}))),J=e=>a.createElement(h.A,{isTruncated:!0,size:"medium",color:"text-2"},e[S.b.IP]||e[S.b.HOTSPOT_CLIENT][M.G.IP]||a.createElement(n.sA,{id:"COMMON_FALLBACK"})),Q=e=>a.createElement(h.A,{isTruncated:!0,size:"medium",color:"text-2"},a.createElement(n.sA,{id:e[S.b.IS_RETURNING]?"COMMON_RETURNING":"COMMON_NEW"}));var $=t(670);const ee=(0,U.A)(G.A)`
  width: 100%;
  align-items: center;
  white-space: nowrap;
  gap: ${k.YC};
`,Ae=e=>a.createElement(ee,null,a.createElement($.A.Icon,null),a.createElement($.A.Bytes,{size:"medium"},(0,W.FI)(e[S.b.RX_BYTES]||0)));var te=t(273299),ae=t(147824),ne=t(546391);const le=e=>a.createElement(h.A,{isTruncated:!0,size:"medium",color:"text-2"},(0,te.Z)(e[S.b.AUTHORIZED_BY]),(e=>{let A=null;switch(e[S.b.AUTHORIZED_BY]){case ae.u.VOUCHER:A=e[S.b.VOUCHER_CODE]?.replace(ne.fe,"$&-");break;case ae.u.FACEBOOK:A=e[S.b.EMAIL]}return A?` [${A}]`:""})(e)),re={[O.t.STATUS]:"COMMON_STATUS",[O.t.NAME]:"COMMON_NAME",[O.t.AUTHENTICATION_METHOD]:"COMMON_AUTHENTICATION_METHOD",[O.t.IP_ADDRESS]:"COMMON_IP_ADDRESS",[O.t.USED_DATA]:"CLIENTS_USED_DATA",[O.t.DOWNLOAD]:"COMMON_DOWNLOAD",[O.t.UPLOAD]:"COMMON_UPLOAD",[O.t.GUEST_TYPE]:"CLIENTS_GUEST_TYPE",[O.t.START_TIME]:"COMMON_START_TIME",[O.t.VALID_UNTIL]:"CLIENTS_VALID_UNTIL",[O.t.NOTE]:"COMMON_NOTE"},ie={[O.t.STATUS]:o,[O.t.NAME]:E,[O.t.AUTHENTICATION_METHOD]:T,[O.t.IP_ADDRESS]:m,[O.t.USED_DATA]:r,[O.t.DOWNLOAD]:u,[O.t.UPLOAD]:i,[O.t.GUEST_TYPE]:d,[O.t.START_TIME]:s,[O.t.VALID_UNTIL]:l,[O.t.NOTE]:c},oe={[O.t.STATUS]:{size:16,minSize:16,maxSize:1/0},[O.t.NAME]:{size:80,minSize:90,maxSize:1/0},[O.t.AUTHENTICATION_METHOD]:{size:140,minSize:140,maxSize:1/0},[O.t.IP_ADDRESS]:{size:110,minSize:90,maxSize:1/0},[O.t.USED_DATA]:{size:110,minSize:90,maxSize:1/0},[O.t.DOWNLOAD]:{size:110,minSize:90,maxSize:1/0},[O.t.UPLOAD]:{size:110,minSize:90,maxSize:1/0},[O.t.GUEST_TYPE]:{size:110,minSize:90,maxSize:1/0},[O.t.START_TIME]:{size:110,minSize:90,maxSize:1/0},[O.t.VALID_UNTIL]:{size:110,minSize:90,maxSize:1/0},[O.t.NOTE]:{size:110,minSize:90,maxSize:1/0}},se={[O.t.STATUS]:Y,[O.t.NAME]:q,[O.t.AUTHENTICATION_METHOD]:le,[O.t.IP_ADDRESS]:J,[O.t.USED_DATA]:H,[O.t.DOWNLOAD]:Ae,[O.t.UPLOAD]:X,[O.t.GUEST_TYPE]:Q,[O.t.START_TIME]:B,[O.t.VALID_UNTIL]:g,[O.t.NOTE]:F},ce={[O.t.STATUS]:R,[O.t.NAME]:D,[O.t.AUTHENTICATION_METHOD]:L,[O.t.IP_ADDRESS]:f,[O.t.USED_DATA]:_,[O.t.DOWNLOAD]:v,[O.t.UPLOAD]:p,[O.t.GUEST_TYPE]:b,[O.t.START_TIME]:C,[O.t.VALID_UNTIL]:N,[O.t.NOTE]:P},Ee=Object.values(O.t)},898676:(e,A,t)=>{t.d(A,{A:()=>O});var a=t(469733),n=t(296540),l=t(193409),r=t(874807),i=t(860631),o=t(972023),s=t(564985),c=t(532419),E=t(222404),m=t(602338),d=t(580872),u=t(446260);const T=(0,n.createContext)({radio:s.sx.RADIO_NG,selectRadio:r.P1,radioBands:[],subsection:d.Yz.INTERFERENCE,selectSubsection:r.P1,isSpectrumAnalyzerSupported:!1}),O=({children:e})=>{const A=(0,u.A)(),t=[...(0,a.useSelector)(c.n4)].sort((e,A)=>(0,i.eh)(e.scan_radio_table)?-1:(e.radio_table?.length||0)-(A.radio_table?.length||0)).find(l.A),r=(0,a.useSelector)(c.vp),O=A||t||{},I=A!==O,S=(0,m.F)(),N=(0,i.mT)(O,E.A.RF_SCAN_6G),_=(0,n.useMemo)(()=>(0,o.h)(O?.radio_table,r&&N)||[],[O?.radio_table,r,N]),[p,R]=(0,n.useState)((0,i.eh)(A?.scan_radio_table)?d.Yz.SPECTRUM:d.Yz.INTERFERENCE),C=(0,n.useCallback)(e=>{(e===d.Yz.SPECTRUM||e===d.Yz.RF_SCAN)&&I&&O?.mac&&S(O?.mac),R(e)},[O?.mac,I,S]),[M,P]=(0,n.useState)(s.sx.RADIO_NA);(0,n.useEffect)(()=>{A&&(p===d.Yz.SPECTRUM&&!(0,i.eh)(A?.scan_radio_table)||p===d.Yz.RF_SCAN&&!(0,l.A)(A))&&C(d.Yz.INTERFERENCE)},[p,C,A?.scan_radio_table,A]),(0,n.useEffect)(()=>{_.includes(M)||P(_[0]||s.sx.RADIO_NG)},[M,_,P]);const D=(0,n.useMemo)(()=>({subsection:p,selectSubsection:C,isSpectrumAnalyzerSupported:(0,i.eh)(O?.scan_radio_table),radio:M,selectRadio:P,radioBands:_}),[p,C,O?.scan_radio_table,M,_]);return n.createElement(T.Provider,{value:D},e)}},902529:(e,A,t)=>{t.d(A,{L:()=>s});var a=t(670464),n=t(437135),l=t(894478),r=t(151033),i=t(845030),o=t(398300);const s=({log:e,adminActivityIdOverride:A,flowIdOverride:t})=>s=>{const c=(0,l._9)(e);if(c&&(0,l.N_)(e))return void s((0,n.h)({queryParams:{id:c}})).finally(()=>{s((0,i.XP)({type:o.H.LOG_ADMIN_ACTIVITY,id:A||e[r.k1.ID]}))});const E=(0,l.uX)(e);E&&(0,l.VM)(e)?s((0,a.Y)({queryParams:{id:E}})).finally(()=>{s((0,i.XP)({type:o.H.LOG_FLOW,id:t||e[r.k1.ID]}))}):s((0,i.XP)({type:o.H.LOG,id:e[r.k1.ID]}))}},902657:(e,A,t)=>{t.d(A,{In:()=>u,Mt:()=>d,Mx:()=>E,aO:()=>I,dM:()=>c,hF:()=>O,i$:()=>m,oM:()=>T,qx:()=>s});var a=t(801081),n=t(429252),l=t.n(n),r=t(919952),i=t(334925),o=t(252734);const s=e=>e[r.U.HOTSPOT_GUESTS],c=(0,a.Mz)(s,e=>e[i.L.AUTHENTICATION_METHODS]),E=(0,a.Mz)(s,e=>e[i.L.USED_DATA]),m=(0,a.Mz)(s,e=>e[i.L.VOUCHERS]),d=(0,a.Mz)(s,e=>e[i.L.ACCESS_POINTS]),u=(0,a.Mz)(s,e=>e[i.L.GUEST_TYPES]),T=(0,a.Mz)(s,e=>e[i.L.START_TIME]),O=(0,a.Mz)(s,e=>e[i.L.VALID_UNTIL]),I=(0,a.Mz)(s,e=>l()(e,o.V))},905410:(e,A,t)=>{t.d(A,{A:()=>O});var a=t(469733),n=t(296540),l=t(217439),r=t(362412),i=t(566723),o=t(294303),s=t(699784),c=t(200826),E=t(789768),m=t(878237),d=t(860765);const u=(0,t(71479).A)("div")`
  overflow: auto;
  width: 100%;
  height: 100%;
`,T=({onRenderTable:e,itemCount:A,section:t="COMMON_RECORDS",rowOptions:T,onRowsChanged:O,onPageChanged:I,onOffsetChanged:S,tableType:N,pageNumber:_,paginationFlexProps:p={},paginationDropdownProps:R={},unknownCount:C=!1,paginationTableContainerClassName:M})=>{const P=(0,a.useDispatch)(),D=(0,n.useMemo)(()=>T||d.o,[T]),f=(0,n.useMemo)(()=>D.map(({value:e})=>({label:String(e),value:e})),[D]),b=(0,c.A)(N),v=(0,n.useMemo)(()=>Number(b?.rowsPerPage&&f.some(({value:e})=>Number(e)===b.rowsPerPage)?b.rowsPerPage:D.find(e=>e?.default)?.value||D?.[0]?.value),[b,f,D]),L=(0,n.useMemo)(()=>Math.max(d.B,_||d.B),[_]),h=(0,n.useCallback)(e=>{I?.(e)},[I]),y=(0,n.useCallback)(()=>{h(L-1)},[L,h]),z=(0,n.useCallback)(()=>{h(L+1)},[L,h]),g=(0,n.useCallback)(({value:e})=>{const A=Number(e);P((0,E.yT)(N,{rowsPerPage:A})),O?.(A)},[P,O,N]),x=(0,n.useMemo)(()=>{let e=L*v;return e>A&&(e=A-v,h(Math.ceil(Math.ceil(e)/v))),e},[h,L,v,A]),W=(0,n.useMemo)(()=>{let e=x+v;return e>=A&&(e=A),e},[x,v,A]),H=(0,n.useMemo)(()=>{const e={pageNumber:_,from:x,rowsPerPage:v};return S?.(e),e},[_,x,v,S]),w=(0,n.useMemo)(()=>L===d.B,[L]),U=(0,n.useMemo)(()=>W>=A,[W,A]);return n.createElement(n.Fragment,null,n.createElement(u,{className:M},e(H)),n.createElement(o.A,{justifyContent:"space-between",...p},void 0!==x&&void 0!==W&&void 0!==A?n.createElement(o.A,{alignItems:"center"},n.createElement(o.A,null,n.createElement(m.A,{disabled:w,onClick:y}),n.createElement(m.A,{disabled:U,rotate:!0,onClick:z})),n.createElement(o.A,{marginLeft:i.kc,marginRight:i.S2},n.createElement(l.A,{size:"small",color:"text-2"},n.createElement(s.sA,{id:"PAGINATION_FROM_TO",values:{from:x+1,to:W,total:`${A}${C?"+":""}`,section:n.createElement(s.sA,{id:t})}}))),f.length>1?n.createElement(o.A,{alignItems:"center"},n.createElement(o.A,{marginRight:i.kc},n.createElement(l.A,{size:"small",color:"text-2"},n.createElement(s.sA,{id:"PAGINATION_ROWS_PER_PAGE"}))),n.createElement("div",{style:{width:"75px"}},n.createElement(r.A.Sorted,{value:v,options:f,onChange:g,variant:"secondary",direction:"top",width:"100%",portal:!0,...R}))):null):null))},O=({itemCount:e,rowOptions:A,onRenderTable:t,wrapperFlexProps:a,paginationTableContainerClassName:l,keepPaginationWhileLoading:r=!1,...s})=>{const c=(0,n.useMemo)(()=>e>Math.min(...(A||d.o).map(({value:e})=>e)),[e,A]);return n.createElement(o.A,{padding:i.Ln,gap:i.Ln,width:"100%",height:"100%",flexDirection:"column",overflow:"hidden",...a},r||c?n.createElement(T,{itemCount:e,rowOptions:A,onRenderTable:t,wrapperFlexProps:a,paginationTableContainerClassName:l,...s}):n.createElement(u,{className:l},t({pageNumber:0,from:0,rowsPerPage:e})))}},913094:(e,A,t)=>{t.d(A,{J:()=>i});var a=t(415246),n=t(789768),l=t(843005),r=t(337263);const i=()=>e=>{e((0,r.kS)(l.C)),e((0,n.Ug)({[a.iy.CLIENTS_STATUS]:[]}))}},913844:(e,A,t)=>{t.d(A,{default:()=>o});var a=t(956347),n=t(296540),l=t(928085),r=t(959341),i=t(771641);const o=()=>{const e=(0,a.W6)(),A=!0,t=(0,l.A)(`${r.bB}/${r.Uy.CYBERSECURE}`),o=(0,n.useCallback)(()=>{e.push(t)},[e,t]);return(0,n.useMemo)(()=>({[i.q.AVAILABLE]:A,[i.q.REDIRECT]:o}),[o,A])}},921946:(e,A,t)=>{t.a(e,async(e,a)=>{try{t.d(A,{A:()=>R});var n=t(296540),l=t(469733),r=t(592510),i=t(582724),o=t(515941),s=t(159599),c=t(627440),E=t(918710),m=t(980859),d=t(968906),u=t(624489),T=t(702236),O=t(43652),I=t(567299),S=t(633159),N=e([S]),_=N.then?(await N)():N;S=_[0];const p=()=>{const e=(0,l.useDispatch)(),A=(0,l.useSelector)(E.X7),t=(0,n.useRef)({[I.i.AGGREGATED_DASHBOARD]:Boolean(A)}).current,a=(0,n.useMemo)(()=>[(0,T.qI)(),...t[I.i.AGGREGATED_DASHBOARD]?[]:[(e,A)=>{return t=(0,u.V)(A()),e((0,m.C)(t,void 0,{crudCacheStrategy:{type:r.e.CACHE},onBeforeCall:O.F,onSuccess:O.L}));var t}]],[t]);(0,n.useEffect)(()=>{[...t[I.i.AGGREGATED_DASHBOARD]?[(e,A)=>{return t=(0,u.V)(A()),e((0,m.C)(t,void 0));var t}]:[]].forEach(e)},[e,t]);const N=(0,n.useCallback)(()=>{e((0,s.a)())},[e]),_=(0,n.useMemo)(()=>({trackingName:c.VO.DASHBOARD,onRenderComponent:N,placeholder:n.createElement(o.A,{...d.A.addDataTestId(d.A.TestId.DASHBOARD_LOADER)})}),[N]);return(0,i.A)(a,n.createElement(S.A,null),_)},R=(0,n.memo)(p);a()}catch(e){a(e)}})},932357:(e,A,t)=>{t.d(A,{A:()=>d});var a=t(801081),n=t(189601),l=t(296540),r=t(472797),i=t(627440),o=t(789149);const s=({currentPage:e,preloadTranslation:A,getRouteHref:t})=>l.createElement(r.A,{...(0,o.E)({currentPage:e,preloadTranslation:A,getRouteHref:t})[i.VO.DEVICES]}),c=(0,l.lazy)(()=>Promise.all([t.e(70893),t.e(1758),t.e(46880),t.e(83770),t.e(86191),t.e(13015),t.e(10916),t.e(69029),t.e(23920)]).then(t.bind(t,496739))),E=({match:{path:e}})=>l.createElement(l.Suspense,{fallback:null},l.createElement(c,{path:e}));var m=t(221649);const d=(0,n.WY)()((0,a.Mz)(()=>({[i.o9.ROUTE_COMPONENT]:E,[i.o9.SIDE_NAVIGATION]:s,[i.o9.ROUTE]:{[i.Fm.AVAILABLE]:!0},[i.o9.NAVIGATION]:{[i.mx.AVAILABLE]:!0},[i.o9.DEPENDENCIES]:m.I[i.VO.DEVICES]})),e=>e)},937834:(e,A,t)=>{t.d(A,{OX:()=>k,OB:()=>w,b5:()=>U,Pk:()=>W,Hb:()=>x,Ax:()=>H});var a=t(296540),n=t(699784);const l=e=>a.createElement(n.sA,{id:x[e]}),r=e=>a.createElement(n.sA,{id:x[e]}),i=e=>a.createElement(n.sA,{id:x[e]}),o=e=>a.createElement(n.sA,{id:x[e]}),s=e=>a.createElement(n.sA,{id:x[e]}),c=e=>a.createElement(n.sA,{id:x[e]}),E=e=>a.createElement(n.sA,{id:x[e]});var m=t(461854),d=t(785330),u=t(997918);const T=(e,A,t,a)=>(0,d.j5)(t[u.P.GATEWAY],a[u.P.GATEWAY]);var O;!function(e){e.PAID="paid"}(O||(O={}));const I=(e,A,t,a)=>(0,d.j5)(t[u.P.STATUS]===O.PAID?1:0,a[u.P.STATUS]===O.PAID?1:0),S=(e,A,t,a)=>(0,d.j5)(t[u.P.INFO],a[u.P.INFO]),N=(e,A,t,a)=>(0,d.j5)(t[u.P.PACKAGE],a[u.P.PACKAGE]),_=(e,A,t,a)=>(0,d.j5)(t[u.P.NAME],a[u.P.NAME]),p=(e,A,t,a)=>(0,d.j5)(t[u.P.TIME],a[u.P.TIME]);var R=t(79583);const C=(e,A,t,a)=>(0,d.j5)(t[u.P.HOTSPOT_PACKAGE][R.T.AMOUNT],a[u.P.HOTSPOT_PACKAGE][R.T.AMOUNT]);var M=t(705145),P=t(823881);const D=e=>{switch(e){case P.Zg.STRIPE:return"CLIENTS_HOTSPOT_PAYMENTS_GATEWAY_STRIPE";case P.Zg.PAYPAL:return"CLIENTS_HOTSPOT_PAYMENTS_GATEWAY_PAYPAL";case P.Zg.IPPAY:return"CLIENTS_HOTSPOT_PAYMENTS_GATEWAY_IPPAY";case P.Zg.MERCHANTWARRIOR:return"CLIENTS_HOTSPOT_PAYMENTS_GATEWAY_MERCHANT_WARRIOR";case P.Zg.QUICKPAY:return"CLIENTS_HOTSPOT_PAYMENTS_GATEWAY_QUICKPAY";case P.Zg.AUTHORIZE:return"CLIENTS_HOTSPOT_PAYMENTS_GATEWAY_AUTHORIZE";default:return"COMMON_FALLBACK"}},f=e=>a.createElement(M.A,{isTruncated:!0,size:"medium",color:"text-2"},a.createElement(n.sA,{id:D(e[u.P.GATEWAY])})),b=e=>a.createElement(M.A,{isTruncated:!0,size:"medium",color:"text-2"},a.createElement(n.sA,{id:e[u.P.STATUS]===O.PAID?"HOTSPOT_PAID":"COMMON_FALLBACK"})),v=e=>a.createElement(M.A,{isTruncated:!0,size:"medium",color:"text-2"},e[u.P.INFO]||a.createElement(n.sA,{id:"COMMON_FALLBACK"})),L=e=>a.createElement(M.A,{isTruncated:!0,size:"medium",color:"text-2"},e[u.P.PACKAGE]||a.createElement(n.sA,{id:"COMMON_FALLBACK"})),h=e=>a.createElement(M.A,{isTruncated:!0,size:"medium",color:"text-2"},e[u.P.NAME]||a.createElement(n.sA,{id:"COMMON_FALLBACK"}));var y=t(362156);const z=e=>a.createElement(M.A,{isTruncated:!0,size:"medium",color:"text-2"},a.createElement(y.A,{timestamp:e[u.P.TIME],showSeconds:!0})),g=e=>a.createElement(M.A,{isTruncated:!0,size:"medium",color:"text-2"},e[u.P.HOTSPOT_PACKAGE][R.T.AMOUNT]&&e[u.P.HOTSPOT_PACKAGE][R.T.CURRENCY]?`${e[u.P.HOTSPOT_PACKAGE][R.T.AMOUNT]} ${e[u.P.HOTSPOT_PACKAGE][R.T.CURRENCY]}`:a.createElement(n.sA,{id:"COMMON_FALLBACK"})),x={[m.H.NAME]:"COMMON_NAME",[m.H.DATE]:"COMMON_DATE_TIME",[m.H.AMOUNT]:"COMMON_AMOUNT",[m.H.STATUS]:"COMMON_STATUS",[m.H.PAYMENT]:"COMMON_PAYMENT",[m.H.PACKAGE]:"CLIENTS_PACKAGE",[m.H.TYPE]:"COMMON_TYPE"},W={[m.H.NAME]:s,[m.H.DATE]:c,[m.H.AMOUNT]:E,[m.H.STATUS]:r,[m.H.PAYMENT]:i,[m.H.PACKAGE]:o,[m.H.TYPE]:l},H={[m.H.NAME]:{size:110,minSize:90,maxSize:1/0},[m.H.DATE]:{size:110,minSize:90,maxSize:1/0},[m.H.AMOUNT]:{size:110,minSize:90,maxSize:1/0},[m.H.STATUS]:{size:110,minSize:90,maxSize:1/0},[m.H.PAYMENT]:{size:110,minSize:90,maxSize:1/0},[m.H.PACKAGE]:{size:110,minSize:90,maxSize:1/0},[m.H.TYPE]:{size:110,minSize:90,maxSize:1/0}},w={[m.H.NAME]:h,[m.H.DATE]:z,[m.H.AMOUNT]:g,[m.H.STATUS]:b,[m.H.PAYMENT]:v,[m.H.PACKAGE]:L,[m.H.TYPE]:f},U={[m.H.NAME]:_,[m.H.DATE]:p,[m.H.AMOUNT]:C,[m.H.STATUS]:I,[m.H.PAYMENT]:S,[m.H.PACKAGE]:N,[m.H.TYPE]:T},k=Object.values(m.H)},938097:(e,A,t)=>{t.d(A,{T:()=>i});var a=t(801081),n=t(25553),l=t(87485),r=t(235937);const i=e=>(0,a.Mz)((e=>(0,n.uh)((0,r.p)(e)))(e),l.i6)},939575:(e,A,t)=>{var a,n;t.d(A,{E:()=>n,N:()=>a}),function(e){e.ID="id",e.NAME="name",e.COUNT="count"}(a||(a={})),function(e){e.RETURNING="RETURNING",e.NEW="NEW"}(n||(n={}))},954328:(e,A,t)=>{t.d(A,{a:()=>a});const a="MLO"},955615:(e,A,t)=>{t.d(A,{T:()=>i,o:()=>o});var a=t(801081),n=t(25553),l=t(87485),r=t(606187);const i=e=>(0,a.Mz)((0,n.uh)((0,r.fw)(e)),l.i6),o=(0,a.Mz)((0,n.uh)((0,r.GB)()),l.kh)},957991:(e,A,t)=>{t.d(A,{A:()=>d});var a=t(801081),n=t(189601),l=t(296540),r=t(472797),i=t(627440),o=t(789149);const s=({currentPage:e,preloadTranslation:A,getRouteHref:t})=>l.createElement(r.A,{...(0,o.E)({currentPage:e,preloadTranslation:A,getRouteHref:t})[i.VO.TOPOLOGY]}),c=(0,l.lazy)(()=>Promise.all([t.e(91912),t.e(46880),t.e(83770),t.e(40124),t.e(23223),t.e(48446),t.e(14236)]).then(t.bind(t,182463))),E=()=>l.createElement(l.Suspense,{fallback:null},l.createElement(c,null));var m=t(221649);const d=(0,n.WY)()((0,a.Mz)(()=>({[i.o9.ROUTE_COMPONENT]:E,[i.o9.SIDE_NAVIGATION]:s,[i.o9.ROUTE]:{[i.Fm.AVAILABLE]:!0},[i.o9.NAVIGATION]:{[i.mx.AVAILABLE]:!0},[i.o9.DEPENDENCIES]:m.I[i.VO.TOPOLOGY]})),e=>e)},972023:(e,A,t)=>{t.d(A,{h:()=>l});var a=t(608935),n=t(564985);const l=(e,A=!1)=>e?[...new Set(e.map(({radio:e})=>e!==n.sx.RADIO_6E||A?e:null).filter(Boolean).sort(a.fU))]:[]},976592:(e,A,t)=>{t.d(A,{WK:()=>ta,NR:()=>aa,yc:()=>$t,y8:()=>Aa,EI:()=>ea});var a=t(801081),n=t(296540);const l=(0,n.lazy)(()=>t.e(98322).then(t.bind(t,51351))),r=()=>n.createElement(n.Suspense,{fallback:null},n.createElement(l,null));var i=t(189601),o=t(627440),s=t(132196),c=t(592510),E=t(834959),m=t(413357),d=t(582724),u=t(566723),T=t(860923),O=t(294303),I=t(632169),S=t(479369),N=t(898676),_=t(469733),p=t(371715),R=t(818526),C=t(576814),M=t(354123),P=t(217439),D=t(592563),f=t(162420),b=t(71479),v=t(998837),L=t(249304),h=t(860631),y=t(398300),z=t(905410),g=t(855019),x=t(231755),W=t(265766),H=t(157215),w=t(699784);const U=(0,b.A)(O.A)`
  position: relative;
  width: 100%;
`,k=(0,b.A)(x.A)`
  width: 100%;
`,G=(0,b.A)(O.A)`
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%);
  border-radius: 0 0 4px 4px;
  border: 1px solid
    ${({theme:{motifPalette:{neutral03:e}}})=>e};
  border-top: none;
  cursor: pointer;
`,V=({expanded:e,onClick:A,...t})=>n.createElement(U,{flexDirection:"row",marginBottom:u.Er,...t},n.createElement(k,null),n.createElement(G,{alignItems:"center",justifyContent:"center",gap:u.YC,padding:`${u.YC} ${u.kc}`,onClick:A},n.createElement(P.A,{size:"small",color:"text-3"},n.createElement(w.sA,{id:e?"COMMON_COLLAPSE":"COMMON_EXPAND"})),e?n.createElement(W.A,null):n.createElement(H.A,null)));var X=t(845030),Z=t(267509),Y=t(600446),B=t(814803),F=t(340936),j=t(170121),K=t(193409),q=t(972023),J=t(311785);const Q=["#88E0A2","#C4E34F","#F9CA7B","#F7AA83","#C8856E"],$=(0,b.A)("div",(0,J.A)("color"))`
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: ${({color:e})=>e};
`,ee=()=>n.createElement(O.A,{gap:u.YC},n.createElement(P.A,{size:"small",color:"text-3"},n.createElement(w.sA,{id:"COMMON_UTILIZATION"}),":"),n.createElement(P.A,{size:"small",color:"text-3"},"0%"),n.createElement(O.A,{gap:2,alignItems:"center"},Q.map(e=>n.createElement($,{color:e,key:e}))),n.createElement(P.A,{size:"small",color:"text-3"},"100%"));var Ae=t(6510),te=t(439173);const ae=(e,A,t)=>{const a=te.R[e]?.[t]||{},n=Object.keys(a).find(e=>a[e]?.subChannels?.includes(A));return n?+n:null};var ne=t(212178),le=t(542616),re=t(276420),ie=t(564985),oe=t(938097),se=t(235937),ce=t(971492),Ee=t(103595),me=t(455643);const de=()=>n.createElement(le.Y,{width:159,gap:u.kc,flexDirection:"column",alignItems:"center"},n.createElement(me.A,{size:"large",duration:120,maxValue:95}),n.createElement(P.A,{color:"text-1",size:"medium"},n.createElement(w.sA,{id:"COMMON_DEVICE_STATE_RFSCANNING"}),"...")),ue=e=>{const A=e.length;if(!A)return{};const t=e.reduce((e,A={})=>(void 0!==A.interference&&(e.interference=e.interference?A.interference+e.interference:A.interference),void 0!==A.utilization&&(e.utilization=e.utilization?A.utilization+e.utilization:A.utilization),e),{});return{interference:void 0!==t.interference?Math.round(t.interference/A):void 0,utilization:void 0!==t.utilization?Math.round(t.utilization/A):void 0}};var Te=t(762720),Oe=t(252959),Ie=t(271856),Se=t(53765),Ne=t(280062),_e=t(383225);const pe=(0,b.A)(Ie.A)`
  width: 100%;

  div[class*='tooltip-container'] {
    width: 100%;
  }
`,Re=({channel:e})=>n.createElement(n.Fragment,null,n.createElement(w.sA,{id:"COMMON_CHANNEL"})," ",e),Ce=({band:e,channelWidth:A,interference:t,utilization:a,from:l,to:r})=>n.createElement(O.A,{flexDirection:"column",gap:u.kc},n.createElement(P.A,{size:"small",color:"text-3"},n.createElement(Ne.A,{radio:e}),", ",A," ",n.createElement(w.sA,{id:"COMMON_UNIT_MHZ"})),n.createElement(x.A,{variant:"solid"}),n.createElement(Se.m,null,void 0!==a?n.createElement(Se.Y,{id:"COMMON_UTILIZATION"},a,"  %"):null,void 0!==t?n.createElement(Se.Y,{id:"COMMON_INTERFERENCE"},t," ",n.createElement(w.sA,{id:"COMMON_UNIT_DBM"})):null,l&&r?n.createElement(Se.Y,{id:"WIFI_SCANNER_FREQUENCY_RANGE",noWrap:!0},n.createElement(w.sA,{id:"COMMON_MHZ_INTERVAL",values:{min:l,max:r}})):null)),Me=({channel:e,notAvailable:A,children:t,...a})=>n.createElement(pe,{title:n.createElement(Re,{channel:e}),description:A?n.createElement(_e.A,null):n.createElement(Ce,{...a}),portal:!0,width:217},t);var Pe=t(822336),De=t(532114);const fe=(0,b.A)("button",(0,J.A)("utilization","selected"))`
  position: relative;
  user-select: none;
  background: ${({utilization:e,theme:{themeName:A}})=>(e=>{if(void 0===e)return;if(e<=0)return Q[0];if(e>=100)return Q[Q.length-1];const A=Math.abs(100/Q.length),t=Math.floor((e-0)/A);return Q[t]})(e)||Pe.Ay[`desktop-color-neutral-03-${A}`]};

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 2px;
  border: 1px solid ${({theme:{themeName:e}})=>Pe.Ay[`desktop-color-neutral-06-${e}`]};
  width: 100%;
  height: 100%;

  ${({disabled:e})=>e?"":"cursor: pointer;"}
`,be=(0,b.A)("div")`
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;

  &::after {
    content: '';
    position: absolute;
    top: -${u.YC};
    left: -${u.YC};
    width: calc(100% + ${u.kc});
    height: calc(100% + ${u.kc});
    border-radius: 5px;
    border: 2px solid ${({theme:{themeName:e}})=>Pe.Ay[`desktop-color-ublue-04-${e}`]};
  }
`,ve=({utilization:e,children:A,selected:t})=>n.createElement(fe,{utilization:e,type:"button",selected:t},t?n.createElement(be,null):null,n.createElement(O.A,{position:"relative"},n.createElement(De.A,{size:"xsmall",color:void 0!==e?"neutral-inverse":"text-3"},A))),Le=({section:e,spectrum_table:A,band:t,channelWidths:a,activeChannels:l=[]})=>{const r=(0,_.useSelector)(Oe.H);return n.createElement(re.Ay,{sectionId:e,renderChannel:({channel:e,channelWidth:a})=>{const{from:i,to:o,utilization:s,interference:c}=((e,A,t,a)=>{const{subChannels:n,lowerFrequency:l,upperFrequency:r}=te.R[e]?.[t]?.[+A]??{},{utilization:i,interference:o}=ue((a||[]).filter(({width:e,channel:A})=>e===t&&n.includes(A)));return{utilization:i,interference:o,from:l,to:r}})(t,e,a,A),{subChannels:E}=te.R[t]?.[a]?.[+e]??{},m=(0,Te.r)(r,null,t,Number(a)),d=!E.some(e=>m.includes(e));return n.createElement(Me,{channel:e,channelWidth:a,band:t,from:i,to:o,utilization:s,interference:c,notAvailable:d},n.createElement(ve,{utilization:s,selected:l.some(A=>A.channel===e&&A.channelWidth===a)}))},channelWidths:a})};var he=t(553240),ye=t(545111);const ze=({ap:e,inProgress:A,radioBands:t,full6G:a})=>{const l=(0,_.useDispatch)(),r=(0,_.useSelector)((0,n.useMemo)(()=>(0,oe.T)(e.mac),[e.mac])),i=e?.quick_scan_state?.in_progress??!1,o=(0,ne.A)(i),s=(0,h.CW)(e,ce.A.QUICK_SCAN),c=(0,Ae.Q)(e),E=(0,n.useMemo)(()=>({mac:e.mac,deviceName:c,isQuickScanning:i,quickScanningChannelWidth:e?.quick_scan_state?.last_width,quickScanningRadio:e?.quick_scan_state?.last_band,supportedQuickScan:s,scanTimestamp:e?.spectrum_scan_timestamp}),[e.mac,i,e?.spectrum_scan_timestamp,c,s,e?.quick_scan_state?.last_band,e?.quick_scan_state?.last_width]),m=(0,n.useMemo)(()=>(r?.scans||[]).reduce((A,t)=>{const a=e?.radio_table_stats.find(e=>e.radio===t.radio)?.spectrum_table;return A[t.radio]=[...A[t.radio]||[],...a||t.spectrum_table||[]],A},{}),[r?.scans,e?.spectrum_scan_timestamp]),{hasRadioBandNg:T,hasRadioBandNa:I,hasRadioBand6e:S}=(0,n.useMemo)(()=>({hasRadioBandNg:t.includes(ie.sx.RADIO_NG),hasRadioBandNa:t.includes(ie.sx.RADIO_NA),hasRadioBand6e:t.includes(ie.sx.RADIO_6E)}),[t]),N=(0,n.useMemo)(()=>{const A=(0,he.A)(e.radio_table,e.radio_table_stats,e.vap_table);return Object.entries(A).reduce((e,[A,t])=>(e[A]=t.map(e=>({...e,channel:ae(A,e.channel,e.channelWidth)})),e),{})},[e.radio_table,e.radio_table_stats,e.vap_table]);return(0,n.useEffect)(()=>{e.mac&&l((0,se.p)(e.mac))},[l,e.mac]),(0,n.useEffect)(()=>{o&&!i&&e.mac&&l((0,se.p)(e.mac))},[o,i,l,e.mac]),(0,d.A)([(0,Ee.v)()],n.createElement(O.A,{position:"relative",flexDirection:"column",width:"100%"},n.createElement(le.B,{isInProgress:A,blur:14,opacity:.4,style:{width:"100%"}},n.createElement(O.A,{flexDirection:"column",gap:u.Er,width:"100%",pointerEvents:A?"none":void 0},n.createElement(O.A,{gap:u.kc,flexDirection:"column",position:"relative"},n.createElement(ye.N.Provider,{value:E},T||I?n.createElement(O.A,{flexWrap:"wrap",gap:u.Er,rowGap:u.kc,maxWidth:"100%"},T?n.createElement(Le,{band:ie.sx.RADIO_NG,section:re.z6.NG,spectrum_table:m[ie.sx.RADIO_NG],activeChannels:N[ie.sx.RADIO_NG]}):null,I?n.createElement(Le,{band:ie.sx.RADIO_NA,section:re.z6.NA,spectrum_table:m[ie.sx.RADIO_NA],activeChannels:N[ie.sx.RADIO_NA]}):null):null,S?n.createElement(n.Fragment,null,a?n.createElement(Le,{band:ie.sx.RADIO_6E,section:re.z6.FULL_6E,spectrum_table:m[ie.sx.RADIO_6E],activeChannels:N[ie.sx.RADIO_6E]}):n.createElement(n.Fragment,null,n.createElement(Le,{band:ie.sx.RADIO_6E,section:re.z6.LOWER_6E,spectrum_table:m[ie.sx.RADIO_6E],activeChannels:N[ie.sx.RADIO_6E]}),n.createElement(Le,{band:ie.sx.RADIO_6E,section:re.z6.UPPER_6E,spectrum_table:m[ie.sx.RADIO_6E],activeChannels:N[ie.sx.RADIO_6E]}))):null)))),A?n.createElement(de,null):null))};var ge=t(780811),xe=t(532419),We=t(222404);const He=({ap:e,band:A})=>{const{ref:t,width:a=0}=(0,F.A)(),l=(0,_.useSelector)((0,oe.T)(e.mac)),[r,i]=(0,n.useState)(l.spectrum_scanning||!1),o=(0,h.mT)(e,We.A.RF_SCAN_6G),s=(0,n.useMemo)(()=>(0,q.h)(A?e?.radio_table.filter(e=>e.radio===A):e?.radio_table,ge.J2F&&o)||[],[e?.radio_table,ge.J2F,o,A]);return(0,n.useEffect)(()=>{i(e.spectrum_scanning)},[e.spectrum_scanning]),(0,d.A)([(0,m.Zi)(E.B.WIFI_SCANNER)],n.createElement(O.A,{flexDirection:"column",gap:u.kc,ref:t},n.createElement(O.A,{gap:u.xO,alignItems:"center"},n.createElement(j.A,{variant:"medium"},n.createElement(w.sA,{id:"INS_AIRTIME_SCAN"})),n.createElement(ee,null)),n.createElement(ze,{ap:e,inProgress:r,radioBands:s,full6G:a>=1500})))},we=({mac:e,band:A})=>{const t=(0,_.useSelector)((0,xe.tG)(e));return t&&(0,K.A)(t)?n.createElement(He,{ap:t,band:A}):null};var Ue=t(444578),ke=t(119701),Ge=t(198494),Ve=t(200826),Xe=t(170459),Ze=t(325898),Ye=t(923361),Be=t(936344),Fe=t(769972),je=t(970405);const Ke=()=>n.createElement(le.Y,{gap:u.Ln,flexDirection:"column",alignItems:"center"},n.createElement(je.A,null),n.createElement(P.A,{color:"text-1"},n.createElement(w.sA,{id:"COMMON_ANALYZING"}),"..."));var qe=t(837612),Je=t(701548);const Qe=()=>n.createElement(O.A,{flex:"1",alignItems:"center",justifyContent:"center"},n.createElement(Je.A,{size:"original",variant:"fill",color:(0,v.u)().motifPalette.warning}),n.createElement(P.A,{color:"text-1",size:"medium"}," ",n.createElement(w.sA,{id:"WIFI_SCANNER_OFFLINE_AP"})));var $e=t(982858),eA=t(205908),AA=t(55897),tA=t(183878);const aA=[$e.y.PENDING,$e.y.READY,$e.y.FAILED,$e.y.SWITCHING],nA=(0,b.A)(O.A)`
  gap: ${u.YC};
  justify-content: center;
  align-items: center;
`,lA=()=>{const e=(0,n.useContext)(eA.L),A=(0,_.useSelector)(Y.W)?.[Z.dp.DEVICE],[t,a]=(0,n.useState)($e.y.PENDING),l=(0,n.useMemo)(()=>(0,AA.S8)(AA.Vn.WAVEFORM),[]);return(0,n.useEffect)(()=>(e?.on(tA.c.STATUS_UPDATED,a),()=>{e?.off(tA.c.STATUS_UPDATED,a)}),[A,e]),aA.includes(t)&&l?n.createElement(nA,null,n.createElement(je.A,{variant:"secondary",size:"tiny"}),n.createElement(P.A,{variant:"body-secondary"},n.createElement(w.sA,{id:"COMMON_ANALYZING"}),"...")):null};var rA=t(307331),iA=t(939703),oA=t(621690),sA=t(909519),cA=t(893562);const EA=e=>e*cA.vM.RESOLUTION+cA.vM.MIN,mA=e=>{if(e<=0)return cA.fB;const A=Math.min(Math.floor(e*cA.fR.length),cA.fR.length-1);return cA.fR[A]},dA=(0,sA.m4)().domain((0,oA.A)(cA.vM.MIN,cA.vM.MAX+1,cA.vM.STEP)).range([...cA.RH].reverse()),uA=(e=100)=>new Array(cA.vM.DIVISIONS).fill(0).map(()=>Math.floor(Math.random()*e)),TA=window?.devicePixelRatio||1,OA=6e4,IA=250,SA=Math.round(12)+5,NA=cA.RH[0],_A=n.createElement(n.Fragment,null,"   "),pA=[{label:"0",value:0},{label:"10",value:10},{label:"20",value:20},{label:"30",value:30},{label:"40",value:40},{label:"50",value:50},{label:"60",value:60}],RA=e=>n.createElement("tspan",null,e.label,_A),CA=e=>{const A={[ie.sx.RADIO_NG]:[],[ie.sx.RADIO_NA]:[],[ie.sx.RADIO_6E]:[]};return Object.entries(e).forEach(([e,t])=>{const a=[...t].reverse();if(a){const t=a.findIndex(e=>e>=10),n=EA(t),l=(e=>{switch(!0){case cA.lL[ie.sx.RADIO_NG].MIN<=e&&e<=cA.lL[ie.sx.RADIO_NG].MAX:return ie.sx.RADIO_NG;case cA.lL[ie.sx.RADIO_NA].MIN<=e&&e<=cA.lL[ie.sx.RADIO_NA].MAX:return ie.sx.RADIO_NA;case cA.lL[ie.sx.RADIO_6E].MIN<=e&&e<=cA.lL[ie.sx.RADIO_6E].MAX:return ie.sx.RADIO_6E;default:return null}})(+e);l&&A[l]&&A[l].push((0,iA.Wj)(dA(n)))}}),A},MA=(0,b.A)("div")`
  position: relative;
`,PA=(0,b.A)("div")`
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  padding: 0 ${u.kI} ${u.Er} 0; // aligned with spectrum chart
`,DA=({mac:e,band:A,width:t,height:a,xAxis:l,yAxisTitle:r,margin:i})=>{const{scan:o}=(0,n.useContext)(eA.B),s=(0,n.useRef)([]),c=(0,n.useRef)([]),E=!o||!Object.keys(o).length,m=(0,n.useRef)(null),[d,u]=(0,Fe.A)(),T=(0,n.useMemo)(()=>({width:Math.floor(d.width*TA),height:Math.floor(d.height*TA),style:{width:`${d.width}px`,height:`${d.height}px`}}),[d]),I=+(l[0]?.value||0),S=1/(+(l[l.length-1]?.value||0)-I),N=d.height/OA,_=(0,n.useCallback)(()=>{const e=m.current?.getContext("2d");if(e){e.resetTransform(),e.scale(TA,TA),e.fillStyle=NA,e.fillRect(0,0,t,a);for(let t=0;t<s.current.length;t+=1){const a=s.current[t];if(!a)return;const n=s.current[t+1]?(a.timestamp-s.current[t+1].timestamp)*N:.1;e.save();for(let t=0;t<=a?.colors?.[A]?.length;t+=1){const l=a.colors[A][t];l&&(e.fillStyle=l,e.fillRect(0,0,S*d.width+.2,n+.2)),e.translate(S*d.width,0)}if(e.restore(),e.translate(0,n),t>=249){s.current=s.current.slice(0,249);break}}}},[t,a,N,A,S,d.width]);return(0,n.useEffect)(()=>{E||(s.current.unshift(((e,A)=>({timestamp:A||Date.now(),colors:CA(e)}))(o,Date.now())),s.current=(e=>{if(!e.length)return[];const A=[...e];if(e.length<IA)for(let t=e.length;t<IA;t+=1){const a=e[e.length-1];a&&A.push({...a,timestamp:a.timestamp-t*cA.gH})}return A})(s.current)),_()},[o,A,_,E]),(0,n.useEffect)(()=>{(async()=>{if(!E)return;const A=await(0,AA.KF)(AA.Vn.WATERFALL);if(!A)return;if(!("mac"in A)||A.mac!==e)return void(0,AA.DM)(AA.Vn.WATERFALL);const t=(e=>{const A=[];if(e)for(let t=0;t<e.length-1;t+=1){const a=e[t],n=e[t+1];if(!a||!n||a.timestamp<Date.now()-OA)break;const l=a.timestamp-n.timestamp,r=Math.round(l/cA.gH);for(let e=0;e<r;e+=1){const t=a.timestamp-cA.gH*e,l=Math.min(e/r,cA.UV),i=(0,rA.A)(a.colors,n.colors)(l);A.push({colors:i,timestamp:t})}}return A})(A.scanlines);s.current=t.filter(Boolean),c.current=t||[],_()})()},[]),(0,n.useEffect)(()=>{const A=setInterval(()=>{c.current.unshift(s.current[0]),c.current=c.current.slice(0,SA),(0,AA.q5)(AA.Vn.WATERFALL,{mac:e,scanlines:c.current})},5e3);return()=>clearInterval(A)},[e]),(0,n.useEffect)(()=>{s.current=[],c.current=[],(0,AA.DM)(AA.Vn.WATERFALL)},[e]),n.createElement(MA,null,n.createElement(O.A,{flexDirection:"row"},n.createElement(Be.A,{height:a,width:t,xAxis:l,yAxis:pA,yAxisTitle:r,margin:i,yLabelsOnRight:!0,renderYLabel:RA,yAxisLabelSpacing:16})),n.createElement(PA,{ref:u},n.createElement("canvas",{ref:m,...T})))};var fA=t(964238);const bA=e=>{const A=(0,n.useRef)(),[t,a]=(0,n.useState)(0);return(0,n.useEffect)(()=>{e&&Object.keys(e||{}).length&&(A.current&&a(Date.now()-A.current),A.current=Date.now())},[e]),t};var vA=t(115829);const LA=100,hA=(0,b.A)("line")`
  stroke: ${({theme:{motifPalette:{uBlue06:e}}})=>e};
  stroke-dasharray: 4;
`,yA=(0,b.A)("rect")`
  fill: ${({theme:{motifPalette:{uBlue06:e}}})=>e};
  opacity: 0.1;
`,zA=(0,b.A)("div")`
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: ${Pe.Ay["desktop-color-neutral-12-light"]};
  padding: ${u.YC};
  border-radius: 4px;
  width: ${LA}px;
`,gA=(0,b.A)(vA.A)`
  color: ${Pe.Ay["desktop-color-neutral-12-dark"]};
`,xA=({model:e})=>n.createElement(zA,null,n.createElement(De.A,{size:"small",colorOverride:Pe.Ay["desktop-color-neutral-10-dark"]},n.createElement(w.sA,{id:"COMMON_THIS_AP"})),n.createElement(O.A,{maxWidth:LA,padding:u.YC},n.createElement(gA,{size:"small"},(0,Ae.Lm)(e)))),WA=({model:e,band:A,channel:t,channelWidth:a,getCoordinates:l,marginTop:r,maxY:i,topOffset:o=4})=>{if("number"!=typeof t||!a)return null;const{lowerFrequency:s,upperFrequency:c}=Object.values(te.R[A]?.[a])?.find(e=>e?.subChannels?.includes(t))||{};if(!s||!c)return null;const{x:E}=l(s,0),{x:m}=l(c,0),d=r,u=i;return n.createElement("g",null,n.createElement(yA,{x:E,y:d,width:m-E,height:u-d}),n.createElement(hA,{x1:E,y1:d,x2:E,y2:u}),n.createElement(hA,{x1:m,y1:d,x2:m,y2:u}),n.createElement("foreignObject",{x:E+(m-E)/2-50,y:r+o,width:"100px",overflow:"visible"},n.createElement(xA,{model:e})))},HA=({band:e,selectedAp:{model:A,radio_table:t,radio_table_stats:a,vap_table:l},getCoordinates:r,marginTop:i,maxY:o,topOffset:s=4})=>{const c=(0,n.useMemo)(()=>(0,he.A)(t,a,l),[t,a,l]);return c[e]?n.createElement(n.Fragment,null,c[e].map(({channel:t,channelWidth:a})=>n.createElement(WA,{key:`${e}-${t}-${a}`,model:A,band:e,channel:t,channelWidth:a,getCoordinates:r,marginTop:i,maxY:o,topOffset:s}))):null},wA=(e,A)=>{const t=Math.max(A?.findIndex(A=>A<e)||0,0);return EA(t)},UA=({band:e,xAxis:A,yAxis:t,yAxisTitle:a,width:l,height:r,margin:i,selectedAp:o,freqToPos:s})=>{const{scan:c}=(0,n.useContext)(eA.B),E=!Object.keys(c).length,m=(0,n.useMemo)(()=>((e=100)=>Object.values(cA.lL).reduce((A,{MIN:t,MAX:a})=>{for(let n=t;n<=a;n+=1)A[`${n}`]=uA(e);return A},{}))(),[]),d=(0,n.useMemo)(()=>Object.fromEntries(Object.entries(E?m:c).filter(([A])=>cA.lL[e].MIN<=+A&&+A<=cA.lL[e].MAX)),[c,E,m,e]),u=bA(c),[T,O]=(0,n.useState)(0);return(0,n.useEffect)(()=>{O(0),requestAnimationFrame(()=>{O(void 0)})},[e,l,r]),n.createElement(Be.A,{height:r,width:l,xAxis:A,yAxis:t,yAxisTitle:a,margin:i,yLabelsOnRight:!0},(t,a,l)=>n.createElement(n.Fragment,null,cA.Fl.map(e=>{return n.createElement(fA.A,{key:e,data:(a=e,r=d,i=+A[0].value,Object.keys(r).map((e,A)=>({x:i+A,y:wA(a,r[e])}))),variant:"solidArea",interpolation:"curved",maxY:l,lineColor:mA(e/100),getCoordinates:t,animationDuration:T??u,easing:"linear"});var a,r,i}),o?n.createElement(HA,{selectedAp:o,band:e,getCoordinates:(e,A)=>t(s[e]||e,A),maxY:l,marginTop:i[0]}):null))};var kA=t(27615);const GA=()=>n.createElement(le.Y,{gap:u.kc,flexDirection:"column",alignItems:"center"},n.createElement(kA.A,{color:(0,v.u)().motifPalette.uBlue02,variant:"fill",size:"logo"}),n.createElement(P.A,{color:"text-1"},n.createElement(w.sA,{id:"INS_AIRVIEW_OPEN_WARNING"}))),VA=[20,32,20,48],XA=[20,32,20,48],ZA=[20,32,20,48],YA=[0,48,20,0],BA=`calc(50% - ${u.kc} - 22px - ${u.Ln})`,FA={[ie.sx.RADIO_NG]:n.createElement(w.sA,{id:"COMMON_RADIO_BAND_NG"}),[ie.sx.RADIO_NA]:n.createElement(w.sA,{id:"COMMON_RADIO_BAND_NA"}),[ie.sx.RADIO_6E]:n.createElement(w.sA,{id:"COMMON_RADIO_BAND_6E"})},jA=[$e.y.BUSY,$e.y.DISCONNECTED,$e.y.FAILED],KA=({label:e,...A})=>A,qA=e=>{const A=te.R[e][20];return Object.values(Object.keys(A).reduce((e,t)=>(e[t]={label:t,value:A[t].centerFrequency},e),{}))},JA=[{label:"0",value:0},{label:"-20",value:-20},{label:"-40",value:-40},{label:"-60",value:-60},{label:"-80",value:-80},{label:"-100",value:-100}],QA=[{label:"-30",value:-30},{label:"-50",value:-50},{label:"-70",value:-70},{label:"-90",value:-90},{label:"-110",value:-110}],$A={[ie.sx.RADIO_NG]:[{value:2401},{label:"1",value:2412},{label:"2",value:2417},{label:"3",value:2422},{label:"4",value:2427},{label:"5",value:2432},{label:"6",value:2437},{label:"7",value:2442},{label:"8",value:2447},{label:"9",value:2452},{label:"10",value:2457},{label:"11",value:2462},{label:"12",value:2467},{label:"13",value:2472},{label:"14",value:2484},{value:2495}],[ie.sx.RADIO_NA]:[{label:"30",value:5150},{label:"36",value:5180},{label:"42",value:5210},{label:"48",value:5240},{label:"54",value:5270},{label:"60",value:5300},{label:"66",value:5330},{label:"72",value:5360},{label:"78",value:5390},{label:"84",value:5420},{label:"90",value:5450},{label:"96",value:5480},{label:"112",value:5560},{label:"118",value:5590},{label:"124",value:5620},{label:"130",value:5650},{label:"136",value:5680},{label:"142",value:5710},{label:"148",value:5740},{label:"154",value:5770},{label:"160",value:5800},{label:"165",value:5825},{label:"171",value:5855}],[ie.sx.RADIO_6E]:qA(ie.sx.RADIO_6E).sort((e,A)=>e.value>A.value?1:-1)},et=[ie.sx.RADIO_NG,ie.sx.RADIO_NA,ie.sx.RADIO_6E].reduce((e,A)=>({...e,[A]:qA(A)}),{}),At=Object.keys(et).reduce((e,A)=>(e[A]=et[A].reduce((e,A)=>(e[A.value]=A.label,e),{}),e),{}),tt=[.2,.4,.6,.8,1],at=[-110,-70,-50,-32],nt=s.AH`
  #x-grid-lines,
  #y-grid-lines {
    display: none; // avoid line duplication when overlaying
  }

  #y-labels {
    visibility: hidden; // hide placeholder label but keep it's space
  }
`,lt=(0,b.A)("div")`
  background: linear-gradient(
    90deg,
    ${({colors:e})=>e.map((A,t)=>`${A} ${Math.ceil(100*t/e.length)}%`).join(", ")}
  );
  overflow: hidden;
  border-radius: 2px;
  height: 4px;
  width: 100%;
`,rt=({colors:e,ticks:A})=>{const t=A.map(e=>n.createElement(P.A,{size:"xsmall",color:"text-3",key:e},e));return n.createElement(O.A,{flexDirection:"column",alignItems:"center",width:100},n.createElement(lt,{colors:e}),n.createElement(O.A,{width:"100%",justifyContent:"space-between",alignItems:"baseline"},t))},it=({title:e,legend:A,...t})=>n.createElement(O.A,{width:"100%",justifyContent:"space-between",alignItems:"center",marginBottom:u.Ln,paddingRight:u.Ln,position:"relative",...t},n.createElement(O.A,null,n.createElement(P.A,{variant:"heading-medium"},e)),n.createElement(O.A,{flexDirection:"row",gap:u.Ln,alignItems:"center"},A)),ot=(0,b.A)("div")`
  position: absolute;
  top: 0;
`,st=({children:e,margins:A})=>n.createElement("tspan",{dx:Math.round(A[2]/2)},e),ct=(0,n.memo)(({radio:e,data:A,clickedRowId:t,setClickedRowId:a,full:l,showSpectrumAnalysisFor:r,selectedAp:i})=>{const{scan:o,status:s}=(0,n.useContext)(eA.B),[{width:c,height:E},m]=(0,Fe.O)(),[d,T]=(0,Fe.O)(),[I,S]=(0,n.useState)(!1),{motifPalette:{neutral04:N}}=(0,v.u)(),{formatMessage:_}=(0,w.tz)(),p=Object.keys(o||{}),R=(0,n.useMemo)(()=>(0,AA.S8)(AA.Vn.WAVEFORM),[]),C=(0,qe.wk)((0,qe.S9)(i)),M=jA.includes(s),D=!o||!Object.keys(o).length,f=D&&C&&!M&&!R,b=(0,n.useMemo)(()=>p.filter(A=>cA.lL[e].MIN<=+A&&+A<=cA.lL[e].MAX),[e,p.length]),{xAxis:L,freqToPos:h}=(0,n.useMemo)(()=>{const A={};if(!r||!b?.length)return{xAxis:$A[e],freqToPos:A};const t=r&&b?.length?b.map((t,a,n)=>{const l=a+parseInt(b[0],10);if(A[+t]=l,0===a||a===n.length-1)return{value:l};const r=At?.[e]?.[t];return r?{value:l,label:r}:void 0}).filter(Boolean):$A[e],a=t.findIndex(e=>e.label);return a&&(t[a].label=_({id:"COMMON_CHANNEL_RADIO_CHANNEL"},{channel:t[a].label})),{xAxis:t,freqToPos:A}},[r,b,e,_]),y=(0,n.useCallback)((e,A)=>(I&&A?.id!==t&&a(A?.id),null),[a,I,t]);let z,g;return l?(z="100%",g=r?YA:VA):e===ie.sx.RADIO_NA?(z="67%",g=ZA):(z="33%",g=XA),n.createElement(O.A,{flexDirection:"column",alignItems:"center",width:z,onMouseLeave:()=>{S(!1),a(void 0)},onMouseEnter:()=>{S(!0)},height:"100%"},r?n.createElement(it,{title:n.createElement(n.Fragment,null,n.createElement(w.sA,{id:"INS_WAVEFORM"}),", ",n.createElement(Ne.A,{radio:e})),legend:n.createElement(n.Fragment,null,n.createElement(P.A,{variant:"body-secondary"},n.createElement(w.sA,{id:"WIFI_SCANNER_PROBABILITY"})),n.createElement(rt,{ticks:tt,colors:cA.fR.slice(Math.round(cA.fR.length*tt[0]))}),n.createElement(O.A,{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},C?n.createElement(lA,null):n.createElement(Qe,null)))}):null,n.createElement(O.A,{height:r?BA:"100%",width:"100%",position:"relative",flexDirection:r?"row":"column"},r?n.createElement(ot,null,n.createElement(le.B,{isInProgress:D||f||M||!C,opacity:.1},n.createElement(UA,{band:e,width:Math.round(c),height:Math.round(E),freqToPos:h,xAxis:L,yAxis:QA,yAxisTitle:n.createElement(st,{margins:g},n.createElement(w.sA,{id:"COMMON_UNIT_DBM"})),margin:g,selectedAp:i})),f?n.createElement(Ke,null):null,M?n.createElement(GA,null):null):n.createElement(O.A,null,n.createElement(P.A,{variant:"heading-medium"},n.createElement(w.sA,{id:"COMMON_BROADCASTS"}),",  ",FA[e])),n.createElement(O.A,{id:"chart-container",ref:m,height:"100%",width:"100%",position:"relative",className:r?nt:void 0},!r&&c&&E?n.createElement(Be.A,{height:Math.round(E),width:Math.round(c),xAxis:r?L.map(KA):L,yAxis:JA,yAxisTitle:_({id:"COMMON_UNIT_DBM"}),margin:g,yLabelsOnRight:!!r,hideXGridLines:!!r,hideYGridLines:!!r,renderYLabel:(e,A)=>A===JA.length-1?n.createElement(n.Fragment,null,n.createElement("tspan",{y:"0"},e.label),n.createElement("tspan",{y:"20",x:"0"},n.createElement(w.sA,{id:"COMMON_CHANNEL_ABBREVIATION"}))):e.label,renderXLabel:e===ie.sx.RADIO_6E?(e,A)=>A===L.length-1?n.createElement("tspan",{x:"5"},e.label):e.label:void 0},(a,l,r,o,s)=>n.createElement(n.Fragment,null,n.createElement(Ye.A,{data:A,getCoordinates:a,width:s.width,height:s.height,yBaseValue:-100,focusedId:t,showTitle:!0,renderTooltip:y,color:N}),i?n.createElement(HA,{selectedAp:i,band:e,getCoordinates:a,maxY:r,marginTop:g[0]}):null)):null)),r&&d?n.createElement(n.Fragment,null,r?n.createElement(it,{title:n.createElement(n.Fragment,null,n.createElement(w.sA,{id:"INS_WATERFALL"}),", ",n.createElement(Ne.A,{radio:e})),legend:n.createElement(n.Fragment,null,n.createElement(P.A,{variant:"body-secondary"},n.createElement(w.sA,{id:"INS_DBM_PER_MHZ"})),n.createElement(rt,{ticks:at,colors:cA.RH})),marginTop:u.Ln}):null,n.createElement(O.A,{height:BA,width:"100%",flexDirection:"row"},n.createElement(O.A,{width:"100%",height:"100%",ref:T},n.createElement(le.B,{isInProgress:f||M||!C,opacity:.1},n.createElement(DA,{mac:r,band:e,width:Math.round(d.width),height:Math.round(d.height),xAxis:L,yAxisTitle:n.createElement(st,{margins:g},n.createElement(w.sA,{id:"COMMON_UNIT_SECONDS"})),margin:g}))))):null)});var Et=t(395521);const mt=({paginationOffset:e,clickedRowId:A,setClickedRowId:t,selectedBand:a,selectedAp:l})=>{const{formatMessage:r}=(0,w.tz)(),{motif:i}=(0,Ze.A)(),o=r({id:"WIFI_SCANNER_HIDDEN_NETWORK_NAME"}),s=(0,_.useSelector)((0,n.useMemo)(()=>(0,Ue.eN)(e,i,o),[e,i,o]));return n.createElement(n.Fragment,null,n.createElement(ct,{radio:a,data:s[a],clickedRowId:A,setClickedRowId:t,key:a,full:!0,selectedAp:l}))},dt=(0,n.memo)(({paginationOffset:e,clickedRowId:A,setClickedRowId:t,showAirview:a,selectedAp:l,selectedBand:r})=>n.createElement(O.A,{height:"100%",width:"100%",flexDirection:"column",gap:u.kc},n.createElement(O.A,{flex:"1 1 100%",position:"relative"},n.createElement(O.A,{width:"100%",height:"100%",position:"absolute"},a&&l?.mac?n.createElement(Et.A,{mac:l?.mac},n.createElement(ct,{clickedRowId:A,setClickedRowId:t,radio:r,showSpectrumAnalysisFor:l.mac,selectedAp:l,full:!0})):n.createElement(mt,{paginationOffset:e,clickedRowId:A,setClickedRowId:t,selectedBand:r,selectedAp:l})))));var ut=t(580872),Tt=t(188787),Ot=t(963070),It=t(596441),St=t(532658),Nt=t(290480),_t=t(789768),pt=t(396660),Rt=t(598447),Ct=t(758649),Mt=t(444232);const Pt=({mac:e,...A})=>{const t=(0,_.useDispatch)(),a=(0,_.useSelector)(Mt.G$).find(A=>A.mac===e),l=(0,n.useCallback)(A=>{A.preventDefault(),A.stopPropagation(),t((0,X.XP)({type:y.H.DEVICE,id:e}))},[t,e]);return a?n.createElement(Ct.A,{type:"button",noWrap:!0,variant:"inline",size:"medium",onClick:l,...A},(0,Ae.Q)(a)):null},Dt={NA:n.createElement(w.sA,{id:"WIFI_SCANNER_PROTOCOL_NA"}),NA_AC:n.createElement(w.sA,{id:"WIFI_SCANNER_PROTOCOL_NA_AC"}),NA_AX:n.createElement(w.sA,{id:"WIFI_SCANNER_PROTOCOL_NA_AX"}),NG:n.createElement(w.sA,{id:"WIFI_SCANNER_PROTOCOL_NG"}),AD:n.createElement(w.sA,{id:"WIFI_SCANNER_PROTOCOL_AD"}),"6E":n.createElement(w.sA,{id:"WIFI_SCANNER_PROTOCOL_6E"})},ft=({children:e,...A})=>e?n.createElement(P.A,{color:"text-2",size:"medium",...A},e):null,bt=()=>n.createElement(Je.A,{size:"original",variant:"fill",color:(0,v.u)().motifPalette.warning}),vt=(0,b.A)(P.A)`
  white-space: nowrap;
`,Lt=[{id:St.ye.AP_COUNT,label:n.createElement(w.sA,{id:St.Bg[St.ye.AP_COUNT]}),minWidth:70,maxWidth:70,sortable:!0,renderCell:({children:e,is_rogue:A,hierarchy:t})=>!t&&e?.length?n.createElement(De.A,{size:"inherit",colorOverride:A?"warning":void 0},e.length+1):null,compare:(0,pt.l0)(e=>e?.children?.length||0)},{id:St.ye.ESSID,sortable:!0,label:n.createElement(w.sA,{id:St.Bg[St.ye.ESSID]}),minWidth:260,omitHideCellOverflow:e=>e?.hierarchy&&e?.is_rogue,renderCell:({hierarchy:e,essid:A,is_rogue:t})=>n.createElement(P.A,{color:"inherit",size:"medium"},e?t&&n.createElement(O.A,{alignItems:"center"},n.createElement(bt,null),n.createElement(vt,{weight:"bold",color:"text-2"},n.createElement(w.sA,{id:"WIFI_SCANNER_TABLE_ROGUE_AP"}))):A||n.createElement(w.sA,{id:"WIFI_SCANNER_HIDDEN_NETWORK_NAME"}))},{id:St.ye.SIGNAL,sortable:!0,label:n.createElement(w.sA,{id:St.Bg[St.ye.SIGNAL]}),renderCell:({signal:e})=>e?n.createElement(Rt.A,{signal:e}):null,minWidth:80},{id:St.ye.CHANNEL,sortable:!0,label:n.createElement(w.sA,{id:St.Bg[St.ye.CHANNEL]}),renderCell:({channel:e})=>n.createElement(ft,null,e),minWidth:80},{id:St.ye.BW,sortable:!0,label:n.createElement(w.sA,{id:St.Bg[St.ye.BW]}),renderCell:({bw:e})=>e?n.createElement(ft,null,e," ",n.createElement(w.sA,{id:"COMMON_UNIT_MHZ"})):null,minWidth:80},{id:St.ye.WIFI_STANDARD,sortable:!0,label:n.createElement(w.sA,{id:St.Bg[St.ye.WIFI_STANDARD]}),renderCell:({radio:e})=>e?n.createElement(ft,null,Dt[e.toUpperCase()]||n.createElement(w.sA,{id:"COMMON_FALLBACK"})):null,minWidth:120},{id:St.ye.BSSID,sortable:!0,label:n.createElement(w.sA,{id:St.Bg[St.ye.BSSID]}),minWidth:120,renderCell:({bssid:e})=>n.createElement(ft,null,e)},{id:St.ye.SECURITY,sortable:!0,label:n.createElement(w.sA,{id:St.Bg[St.ye.SECURITY]}),renderCell:({security:e})=>n.createElement(ft,null,e),minWidth:150},{id:St.ye.OUI,sortable:!0,label:n.createElement(w.sA,{id:St.Bg[St.ye.OUI]}),renderCell:({oui:e})=>n.createElement(ft,null,e),minWidth:150},{id:St.ye.AP_MAC,sortable:!0,label:n.createElement(w.sA,{id:St.Bg[St.ye.AP_MAC]}),minWidth:120,renderCell:({ap_mac:e})=>n.createElement(Pt,{mac:e})}],ht="selectedRow",yt=s.AH`
  display: none !important;
`,zt=(0,b.A)(Ot.A)`
  .${ht} {
    background: ${({theme:{motifPalette:{hoverUi01:e}}})=>e} !important;
  }
`,gt=(0,b.A)("div")`
  width: 100%;
`,xt=(0,n.memo)(({paginationOffset:{rowsPerPage:e,from:A},setClickedRowId:t,selectedId:a})=>{const l=(0,_.useSelector)(B.yD),{sortBy:r,isAscending:i,initialColumns:o=[]}=(0,Ve.A)(L.l.WIFI_SCANNER),s=(0,_.useSelector)(Ue.Jd),c=(0,_.useDispatch)(),E=(0,n.useMemo)(()=>l===Nt.TE.ALL?o:o.filter(e=>e!==St.ye.AP_MAC),[o,l]),m=(0,n.useCallback)(e=>{t(e.id)},[t]);return n.createElement(gt,{onMouseLeave:()=>{t(void 0)}},n.createElement(zt,{items:o.length?s:[],rowLimit:e,rowOffset:A,columns:Lt,onColumnFilterChanged:({visibleColumns:e})=>{c((0,_t.yT)(L.l.WIFI_SCANNER,{initialColumns:e.map(({id:e})=>e)}))},onSort:(e,A)=>{c((0,_t.yT)(L.l.WIFI_SCANNER,{sortBy:e.id,isAscending:A}))},initialSortBy:r,initiallySortAscending:i,rowHeight:It.I.ROW_HEIGHT,onRowClick:m,columnOverride:E,disableColumnFilters:!0,disableTextPointer:!1,multiSelectMode:!0,maximumSelections:1,selectedIds:[a],rowSelectedClassName:ht,selectionCellClassName:yt}))});var Wt=t(36579);const Ht="50vh",wt="65vh",Ut={padding:"0",overflow:"visible",height:"auto"},kt=(0,b.A)(O.A,{shouldForwardProp:e=>"rowIndex"!==e})`
  margin-top: ${u.Ln};

  > div:last-child > div {
    &:last-child > div:last-child {
      height: 80%;
      justify-content: center;
    }
  }
`,Gt=({mac:e,children:A})=>{const t=(0,_.useDispatch)(),a=(0,n.useCallback)(()=>t((0,X.XP)({type:y.H.DEVICE,id:e,tab:g.BC.SETTINGS})),[t,e]);return n.createElement(D.A,{type:"button",onPress:a},A)},Vt=({band:e})=>{const{formatMessage:A}=(0,w.tz)(),t=(0,_.useSelector)(B.yD),a=(0,_.useSelector)((0,n.useMemo)(()=>(0,xe.tG)(t),[t])),l=(0,n.useMemo)(()=>(0,Xe.Ww)(a?.radio_table?.find(A=>A.radio===e)||{}),[e,a?.radio_table]);return n.createElement(O.A,{flex:"1",alignItems:"center",justifyContent:"center",gap:u.kc},n.createElement(f.A,{size:"large",variant:"fill",color:(0,v.u)().motifPalette.blueDisabled}),n.createElement(P.A,{variant:"body-secondary"},l?n.createElement(w.sA,{id:"WIFI_SCANNER_TABLE_EMPTY_IF_DISABLED",values:{link:n.createElement(Gt,{mac:t},A({id:"COMMON_DISABLED"}).toLocaleLowerCase())}}):n.createElement(w.sA,{id:"WIFI_SCANNER_TABLE_EMPTY_HEADER"})))},Xt=({radio:e,subsection:A,paginationOffset:t,clickedRowId:a,setClickedRowId:l})=>{const[r,i]=(0,n.useState)(!1),o=(0,_.useSelector)(Y.W),s=o?.[Z.dp.DEVICE],c=(0,_.useSelector)((0,n.useMemo)(()=>(0,xe.tG)(s),[s])),E=(0,n.useMemo)(()=>(0,h.eh)(c?.scan_radio_table),[c?.scan_radio_table])&&A===ut.Yz.SPECTRUM;return n.createElement(O.A,{gap:u.Ln,flexDirection:"column"},n.createElement(O.A,{width:"100%",flexDirection:"column",flex:`0 0 ${r?wt:Ht}`,minHeight:r?500:300,...E?{flex:`0 0 ${r?wt:Ht}`,minHeight:r?500:300}:{flex:"0 0 35vh",minHeight:"unset"},gap:u.Ln},n.createElement(dt,{paginationOffset:t,clickedRowId:a,setClickedRowId:l,showAirview:E,selectedAp:c,selectedBand:e})),E?n.createElement(V,{expanded:r,onClick:()=>i(!r)}):null)},Zt=({sortedSlicedTableData:e,paginationOffset:A,clickedRowId:t,setClickedRowId:a})=>n.createElement(kt,{overflow:"auto",flexDirection:"column",rowIndex:e.findIndex(e=>e.id===t)+1,minHeight:48},n.createElement(xt,{setClickedRowId:a,selectedId:t,paginationOffset:A})),Yt=(e,A,t)=>a=>n.createElement(Zt,{sortedSlicedTableData:e,paginationOffset:a,setClickedRowId:A,clickedRowId:t}),Bt=(0,n.memo)(({radio:e,subsection:A})=>{const t=(0,_.useDispatch)(),a=(0,Wt.B)(),l=(0,_.useSelector)(Ue.Jd),r=(0,_.useSelector)(M.Yz),i=(0,n.useCallback)(e=>t((0,Tt.ql)(e)),[t]),o=(0,_.useSelector)(Ge.h2),[s,c]=(0,n.useState)(void 0),[E,m]=(0,n.useState)({pageNumber:0,from:0,rowsPerPage:l.length}),d=(0,_.useSelector)((0,n.useMemo)(()=>(0,Ue.Tz)(E),[E])),T=(0,_.useSelector)(Ue.BF),{initialColumns:I=[]}=(0,Ve.A)(L.l.WIFI_SCANNER),S=!T||!I?.length;return n.createElement(O.A,{flexDirection:"column",gap:u.Ln,height:S?"100%":void 0},o[ke.i.AIRTIME_SCAN]&&a?.mac?n.createElement(we,{mac:a?.mac,band:e}):null,n.createElement(Xt,{radio:e,subsection:A,paginationOffset:E,setClickedRowId:c,clickedRowId:s}),n.createElement(z.A,{section:"COMMON_SCANS",itemCount:l.length,tableType:L.l.WIFI_SCANNER,onPageChanged:i,onOffsetChanged:m,pageNumber:r,onRenderTable:Yt(d,c,s),wrapperFlexProps:Ut}),S?n.createElement(Vt,{band:e}):null)}),Ft=()=>{const e=(0,_.useDispatch)(),{start:A,end:t}=(0,_.useSelector)(M.iY),[a]=(0,_.useSelector)(M.jf),l=(0,_.useSelector)(M.lv);return(0,n.useEffect)(()=>()=>{e((0,p.NM)((0,C.Qs)(A,t)))},[e,t,A]),(0,d.A)([(0,C.Qs)(A,t)],n.createElement(Bt,{radio:a,subsection:l}),{renderKey:`${A}-${t}`,trackingName:R.t.WIFI_SCANNER})},jt=s.AH`
  overflow-y: auto !important;
  overflow-x: hidden !important;
`,Kt=()=>(0,d.A)([(0,m.Zi)(E.B.WIFI_SCANNER),(0,S.y)(void 0,{crudCacheStrategy:{type:c.e.CACHE}}),(0,I.uy)(void 0,{crudCacheStrategy:{type:c.e.CACHE}})],n.createElement(N.A,null,n.createElement(T.A,{padding:`0 ${u.Ln} ${u.Ln} 0`,mainPanelClassName:jt},n.createElement(O.A,{flexDirection:"column",gap:u.Ln,padding:u.Ln},n.createElement(Ft,null))))),qt=(0,n.lazy)(()=>Promise.all([t.e(46880),t.e(45539),t.e(15557),t.e(66712)]).then(t.bind(t,195707))),Jt=()=>n.createElement(n.Suspense,{fallback:null},n.createElement(qt,null));var Qt=t(462571);const $t=(0,a.Mz)(()=>!0),ea=(0,a.Mz)(()=>!0),Aa=(0,a.Mz)(xe.Gz,e=>e),ta=(0,i.WY)()((0,a.Mz)($t,Aa,ea,(e,A,t)=>({[R.t.RADIOS]:{[o.o9.ROUTE_COMPONENT]:r,[o.o9.SIDE_NAVIGATION]:void 0,[o.o9.ROUTE]:{[o.Fm.AVAILABLE]:e},[o.o9.NAVIGATION]:{[o.mx.AVAILABLE]:e},[o.o9.DEPENDENCIES]:Qt.a[R.t.RADIOS]},[R.t.ROAMING]:{[o.o9.ROUTE_COMPONENT]:Jt,[o.o9.SIDE_NAVIGATION]:void 0,[o.o9.ROUTE]:{[o.Fm.AVAILABLE]:A},[o.o9.NAVIGATION]:{[o.mx.AVAILABLE]:A},[o.o9.DEPENDENCIES]:Qt.a[R.t.ROAMING]},[R.t.WIFI_SCANNER]:{[o.o9.ROUTE_COMPONENT]:Kt,[o.o9.SIDE_NAVIGATION]:void 0,[o.o9.ROUTE]:{[o.Fm.AVAILABLE]:t},[o.o9.NAVIGATION]:{[o.mx.AVAILABLE]:t},[o.o9.DEPENDENCIES]:Qt.a[R.t.WIFI_SCANNER]}})),e=>e),aa=(0,i.WY)()((0,a.Mz)(xe.$8,xe.ir,(e,A)=>!e||Boolean(A)),e=>e)},980059:(e,A,t)=>{var a;t.d(A,{U:()=>a}),function(e){e.TYPE="type",e.MODEL="model",e.NAME="name",e.MAC="mac",e.HARDWARE_UUID="hardware_uuid"}(a||(a={}))},982858:(e,A,t)=>{var a;t.d(A,{y:()=>a}),function(e){e.OFF="off",e.PENDING="pending",e.READY="ready",e.RECEIVING="receiving",e.DISCONNECTED="disconnected",e.FAILED="failed",e.BUSY="busy",e.SWITCHING="switching"}(a||(a={}))},983228:(e,A,t)=>{t.d(A,{A2:()=>n,RR:()=>r,gI:()=>l});var a=t(510072);const n=`${a.MODEL}/all`,l=a.PATH,r="id"},984297:(e,A,t)=>{t.d(A,{E:()=>n,M:()=>l});var a=t(132196);const n=a.AH`
  min-width: 100%;
`,l=a.AH`
  table-layout: fixed;
`},986238:(e,A,t)=>{t.d(A,{Ho:()=>r,Mw:()=>c,WO:()=>n,ab:()=>i,b2:()=>s,kk:()=>o,kz:()=>l});var a=t(155918);const n="DASHBOARD_CONTENT_CHART_DONUT_TITLE_CLASSNAME",l="DASHBOARD_CONTENT_CHART_DONUT_DESCRIPTION_CLASSNAME",r={tooltipProps:{position:"right",width:252},titleClassName:n,descriptionClassName:l,portalTooltip:!0},i="DASHBOARD_CONTENT_CHART_TABLE_RIGHT_ALIGNMENT_CLASSNAME",o={width:"100%",pageIndex:0,pageSize:6},s={enableResizing:!1},c=[a.Z.TRAFFIC_IDENTIFICATION,a.Z.WIFI_TECHNOLOGY]},986905:(e,A,t)=>{t.d(A,{A:()=>D});var a=t(296540),n=t(469733),l=t(108666),r=t(71177),i=t(642597),o=t(592510),s=t(60519),c=t(516693),E=t(33453),m=t(659552),d=t(801156),u=t(784465),T=t(675359),O=t(742920),I=t(472807),S=t(370333),N=t(183970),_=t(861509),p=t(432680),R=t(874807),C=t(523275),M=t(413786),P=t(760919);const D=e=>{const A=(0,n.useDispatch)(),t=(0,n.useSelector)(m._),D=(0,n.useSelector)(_.y),f=(0,a.useCallback)(()=>{A((0,I.cF)(void 0)),A((0,I.nS)([])),A((0,I.UO)(void 0)),A((0,I.h7)(void 0))},[A]),{[P.S.CREATOR_MODE]:b,[P.S.CREATOR_MODE_DEPENDENCIES]:v,[P.S.CREATOR_MODE_AVAILABILITY_SELECTOR]:L,[P.S.CREATOR_MODE_CAN_CREATE_SELECTOR]:h,[P.S.CREATOR_MODE_CAN_DELETE_SELECTOR]:y,[P.S.CREATOR_MODE_CAN_EDIT_SELECTOR]:z,[P.S.CREATOR_MODE_CAN_ASSIGN_SELECTOR]:g,[P.S.CREATOR_MODE_FILTER]:x,[P.S.CREATOR_MODE_TAG_META_CALLBACK]:W,[P.S.CREATOR_MODE_HEADER_NEW_ID]:H,[P.S.CREATOR_MODE_HEADER_EDIT_ID]:w,[P.S.CREATOR_MODE_NOTICE_ID]:U,[P.S.CREATOR_MODE_CREATE_ID]:k,[P.S.CREATOR_MODE_REMOVE_ID]:G,[P.S.CREATOR_MODE_CREATE_CALLBACK]:V,[P.S.CREATOR_MODE_UPDATE_CALLBACK]:X,[P.S.CREATOR_MODE_DELETE_CALLBACK]:Z}=(0,a.useMemo)(()=>{switch(e){case l.a.DEVICES:{const e=()=>{f(),A((0,u.uu)())},a=({msg:e,details:t})=>{A((0,T.ox)({icon:O.C.danger,message:"COMMON_DEVICE_TAG_FAILED_SAVE",errorMessage:e,errorValues:t}))},n=(t,n)=>{A((0,u.$5)({[d.iV.NAME]:t,[d.iV.MEMBER_DEVICE_MACS]:n})).then(e=>{A({type:c.xk,meta:{model:E.A2,extend:!0,fetchTime:Date.now(),id:e[d.Ko._ID],idField:E.RR},payload:{data:e}})}).catch(a).finally(e)},l=(n,l,r)=>{const i=t.find(e=>e[d.Ko._ID]===n);A((0,u.kW)({[d.d5.ID]:n,[d.d5.NAME]:i?.[d.Ko.NAME]===l?null:l,...(({added:e,removed:A})=>({[d.d5.DEVICE_MAC_ADDITIONS]:e,[d.d5.DEVICE_MAC_REMOVALS]:A}))((0,S.qk)(i?.[d.Ko.MEMBER_DEVICE_MACS]||[],r))})).then(e=>{A({type:c.eC,meta:{model:E.A2,extend:!0,fetchTime:Date.now(),id:n,idField:E.RR},payload:{data:{...e,[d.Ko.NAME]:l}}})}).catch(a).finally(e)},i=t=>{A((0,u.uK)({[d.Xs.ID]:t})).then(()=>{A({type:c._7,meta:{model:E.A2,extend:!0,fetchTime:Date.now(),id:t,idField:E.RR}})}).catch(a).finally(e)};return{[P.S.CREATOR_MODE]:!0,[P.S.CREATOR_MODE_DEPENDENCIES]:[(0,r.m)(void 0,{crudCacheStrategy:{type:o.e.CACHE}})],[P.S.CREATOR_MODE_AVAILABILITY_SELECTOR]:s.JQ,[P.S.CREATOR_MODE_CAN_CREATE_SELECTOR]:s.Qu,[P.S.CREATOR_MODE_CAN_DELETE_SELECTOR]:s.lQ,[P.S.CREATOR_MODE_CAN_EDIT_SELECTOR]:s.m7,[P.S.CREATOR_MODE_CAN_ASSIGN_SELECTOR]:s.H2,[P.S.CREATOR_MODE_FILTER]:({adopted:e,device_type:A})=>A===M.iU.MANAGED&&e,[P.S.CREATOR_MODE_TAG_META_CALLBACK]:e=>(({[d.Ko._ID]:e,[d.Ko.NAME]:A,[d.Ko.MEMBER_DEVICE_MACS]:t})=>({[P.dD.TAG_ID]:e,[P.dD.NAME]:A,[P.dD.TAGS]:t}))(t.find(A=>A[d.Ko._ID]===e)||{}),[P.S.CREATOR_MODE_HEADER_NEW_ID]:"COMMON_NEW_DEVICE_TAG",[P.S.CREATOR_MODE_HEADER_EDIT_ID]:"COMMON_MANAGE_TAG",[P.S.CREATOR_MODE_NOTICE_ID]:"COMMON_TAGS_NOTICE",[P.S.CREATOR_MODE_CREATE_ID]:"COMMON_CREATE_TAG",[P.S.CREATOR_MODE_REMOVE_ID]:"COMMON_REMOVE_TAG",[P.S.CREATOR_MODE_CREATE_CALLBACK]:(e,A)=>{n(e,A)},[P.S.CREATOR_MODE_UPDATE_CALLBACK]:(e,A,t)=>{l(e,A,t)},[P.S.CREATOR_MODE_DELETE_CALLBACK]:e=>{i(e)},[P.S.CREATOR_MODE_CANCEL_CALLBACK]:f}}case l.a.CLIENTS:{const e=()=>{f(),A((0,i.O$)())},t=({msg:e,details:t})=>{A((0,T.ox)({icon:O.C.danger,message:"COMMON_CLIENT_GROUP_FAILED_SAVE",errorMessage:e,errorValues:t}))},a=(a,n,l)=>{A((0,i.YH)({id:a,name:n,members:l,type:D.find(e=>e.id===a)?.type||N.k.CLIENTS})).catch(t).finally(e)},n=a=>{A((0,i.aX)(a)).then(()=>{A((0,p.rt)())}).catch(t).finally(e)};return{[P.S.CREATOR_MODE]:!0,[P.S.CREATOR_MODE_DEPENDENCIES]:[(0,i.O$)(void 0,{crudCacheStrategy:{type:o.e.CACHE}})],[P.S.CREATOR_MODE_AVAILABILITY_SELECTOR]:s.Jc,[P.S.CREATOR_MODE_CAN_CREATE_SELECTOR]:s.cW,[P.S.CREATOR_MODE_CAN_DELETE_SELECTOR]:s.zp,[P.S.CREATOR_MODE_CAN_EDIT_SELECTOR]:s.As,[P.S.CREATOR_MODE_CAN_ASSIGN_SELECTOR]:s.vs,[P.S.CREATOR_MODE_FILTER]:()=>!0,[P.S.CREATOR_MODE_TAG_META_CALLBACK]:e=>(({members:A,name:t})=>({[P.dD.TAG_ID]:e,[P.dD.NAME]:t,[P.dD.TAGS]:A}))(D.find(A=>A.id===e)||{}),[P.S.CREATOR_MODE_HEADER_NEW_ID]:"COMMON_NEW_CLIENT_GROUP",[P.S.CREATOR_MODE_HEADER_EDIT_ID]:"COMMON_MANAGE_GROUP",[P.S.CREATOR_MODE_NOTICE_ID]:"COMMON_GROUPS_NOTICE",[P.S.CREATOR_MODE_CREATE_ID]:"COMMON_CREATE_GROUP",[P.S.CREATOR_MODE_REMOVE_ID]:"COMMON_REMOVE_GROUP",[P.S.CREATOR_MODE_CREATE_CALLBACK]:(e,A)=>{a(void 0,e,A)},[P.S.CREATOR_MODE_UPDATE_CALLBACK]:(e,A,t)=>{a(e,A,t)},[P.S.CREATOR_MODE_DELETE_CALLBACK]:e=>{n(e)},[P.S.CREATOR_MODE_CANCEL_CALLBACK]:f}}default:return{[P.S.CREATOR_MODE]:!1,[P.S.CREATOR_MODE_DEPENDENCIES]:[],[P.S.CREATOR_MODE_AVAILABILITY_SELECTOR]:R.bx,[P.S.CREATOR_MODE_CAN_CREATE_SELECTOR]:R.bx,[P.S.CREATOR_MODE_CAN_DELETE_SELECTOR]:R.bx,[P.S.CREATOR_MODE_CAN_EDIT_SELECTOR]:R.bx,[P.S.CREATOR_MODE_CAN_ASSIGN_SELECTOR]:R.bx,[P.S.CREATOR_MODE_FILTER]:R.wE,[P.S.CREATOR_MODE_TAG_META_CALLBACK]:C.A,[P.S.CREATOR_MODE_HEADER_NEW_ID]:void 0,[P.S.CREATOR_MODE_HEADER_EDIT_ID]:void 0,[P.S.CREATOR_MODE_NOTICE_ID]:void 0,[P.S.CREATOR_MODE_CREATE_ID]:void 0,[P.S.CREATOR_MODE_REMOVE_ID]:void 0,[P.S.CREATOR_MODE_CREATE_CALLBACK]:R.P1,[P.S.CREATOR_MODE_UPDATE_CALLBACK]:R.P1,[P.S.CREATOR_MODE_DELETE_CALLBACK]:R.P1,[P.S.CREATOR_MODE_CANCEL_CALLBACK]:R.P1}}},[e,t,A,f,D]),Y=(0,n.useSelector)(L),B=(0,n.useSelector)(h),F=(0,n.useSelector)(y),j=(0,n.useSelector)(z),K=(0,n.useSelector)(g);return(0,a.useMemo)(()=>({[P.fP.CREATOR_MODE]:b,[P.fP.CREATOR_MODE_DEPENDENCIES]:v,[P.fP.CREATOR_MODE_AVAILABLE]:Y,[P.fP.CREATOR_MODE_CAN_CREATE]:B,[P.fP.CREATOR_MODE_CAN_DELETE]:F,[P.fP.CREATOR_MODE_CAN_EDIT]:j,[P.fP.CREATOR_MODE_CAN_ASSIGN]:K,[P.fP.CREATOR_MODE_FILTER]:x,[P.fP.CREATOR_MODE_TAG_META_CALLBACK]:W,[P.fP.CREATOR_MODE_HEADER_NEW_ID]:H,[P.fP.CREATOR_MODE_HEADER_EDIT_ID]:w,[P.fP.CREATOR_MODE_NOTICE_ID]:U,[P.fP.CREATOR_MODE_CREATE_ID]:k,[P.fP.CREATOR_MODE_REMOVE_ID]:G,[P.fP.CREATOR_MODE_CREATE_CALLBACK]:V,[P.fP.CREATOR_MODE_UPDATE_CALLBACK]:X,[P.fP.CREATOR_MODE_DELETE_CALLBACK]:Z,[P.fP.CREATOR_MODE_CANCEL_CALLBACK]:f}),[b,v,Y,B,F,j,K,x,W,H,w,U,k,G,V,X,Z,f])}},986977:(e,A,t)=>{t.d(A,{A:()=>R});var a=t(469733),n=t(296540),l=t(951272),r=t(297465),i=t(870443),o=t(888980);const s=i.A.object().shape({note:i.A.string().label("COMMON_NAME").required(),n:i.A.number().integer().label("COMMON_AMOUNT").required().min(1).max(1e4),usageType:i.A.string(),quota:i.A.number().when("usageType",{is:o.w.MULTI_USE,then:i.A.number().integer().label("COMMON_USES_PER_VOUCHER").required().min(1).max(1e4)}),expire_number:i.A.number().integer().label("COMMON_EXPIRATION").required().min(1).max(1e6),expire_unit:i.A.string().when("expire",{is:e=>!e,then:i.A.string().required()}),down:i.A.number().integer().label("COMMON_DOWNLOAD_LIMIT").min(1).max(100),up:i.A.number().integer().label("COMMON_UPLOAD_LIMIT").min(1).max(100),bytes:i.A.number().integer().label("COMMON_DATA_LIMIT").min(1).max(1048576)}),c=(e,A)=>{switch(e){case o.w.ONE_TIME:return 1;case o.w.UNLIMITED:return 0}return A};var E=t(847883),m=t(71479),d=t(566723),u=t(705426),T=t(143811),O=t(294303),I=t(699784),S=t(697575);const N=(0,m.A)(u.A)`
  header {
    height: ${d.nf};
    svg {
      display: none;
    }
  }
  > div {
    overflow: visible !important;
    padding: ${d.Ln} ${d.fS};
  }
  footer {
    margin-top: ${d.S2};
  }
`,_=S.OO.map(({value:e,label:A})=>n.createElement(T.A,{key:e,name:"usageType",type:"radio",value:e,fast:!0},n.createElement(I.sA,{id:A}))),p=({closeModal:e})=>{const{values:A,isSubmitting:t,isValid:a,handleSubmit:r}=(0,l.j7)(),i=(0,n.useMemo)(()=>[{disabled:t,text:n.createElement(I.sA,{id:"COMMON_ACTION_CANCEL"}),type:"button",variant:"default",onClick:e},{disabled:t||!a,text:n.createElement(I.sA,{id:"COMMON_ACTION_ADD"}),type:"button",variant:"primary",onClick:()=>r()}],[e,r,t,a]);return n.createElement(N,{size:"small",isOpen:!0,title:n.createElement(I.sA,{id:"HOTSPOT_VOUCHER_ADD_NEW"}),actions:i,onRequestClose:e},n.createElement(O.A,{flexDirection:"column"},n.createElement(E.A,null,n.createElement(O.A,{alignItems:"center",justifyContent:"space-between",width:"100%"},n.createElement(O.A,{width:"100%"},n.createElement(T.A,{full:!0,name:"note",variant:"secondary",label:"COMMON_NAME"})),n.createElement(O.A,{marginLeft:d.Ln,width:110},n.createElement(T.A,{full:!0,name:"n",type:"number",min:1,max:1e4,variant:"secondary",label:"COMMON_AMOUNT"})))),n.createElement(E.A,null,n.createElement(O.A,{gap:d.Ln},_)),A.usageType===o.w.MULTI_USE?n.createElement(E.A,null,n.createElement(O.A,{width:110},n.createElement(T.A,{full:!0,name:"quota",type:"number",min:1,max:1e4,variant:"secondary",label:"COMMON_USES_PER_VOUCHER"}))):null,n.createElement(E.A,null,n.createElement(O.A,{alignItems:"center",justifyContent:"space-between",width:"100%"},n.createElement(O.A,{width:"calc(50% - 8px)"},n.createElement(T.A,{full:!0,name:"expire_number",min:1,max:1e6,variant:"secondary",label:"COMMON_EXPIRATION"})),n.createElement(O.A,{width:"calc(50% - 8px)"},n.createElement(T.A,{name:"expire_unit",type:"dropdown",options:S.GJ,translateOptions:!0,full:!0,variant:"secondary",label:"COMMON_UNIT",translateLabel:!0})))),n.createElement(E.A,null,n.createElement(O.A,{width:"100%"},n.createElement(O.A,{width:"calc(50% - 8px)"},n.createElement(T.A,{full:!0,name:"bytes",min:1,max:1048576,variant:"secondary",label:"COMMON_DATA_LIMIT",placeholder:"COMMON_UNLIMITED",contentAfter:n.createElement(O.A,{marginRight:d.YC},n.createElement(I.sA,{id:"COMMON_UNIT_BYTES_SHORT",values:{prefix:"M"}}))})))),n.createElement(E.A,null,n.createElement(O.A,{alignItems:"center",justifyContent:"space-between",width:"100%"},n.createElement(O.A,{width:"calc(50% - 8px)"},n.createElement(T.A,{full:!0,name:"down",min:1,max:100,variant:"secondary",label:"COMMON_DOWNLOAD_LIMIT",contentAfter:n.createElement(O.A,{marginRight:d.xO},n.createElement(I.sA,{id:"COMMON_SPEED_METRICS_MBPS"}))})),n.createElement(O.A,{width:"calc(50% - 8px)"},n.createElement(T.A,{full:!0,name:"up",min:1,max:100,variant:"secondary",label:"COMMON_UPLOAD_LIMIT",contentAfter:n.createElement(O.A,{marginRight:d.xO},n.createElement(I.sA,{id:"COMMON_SPEED_METRICS_MBPS"}))}))))))},R=({closeModal:e})=>{const A=(0,a.useDispatch)(),t=(0,n.useCallback)((t,{setSubmitting:a})=>{A((0,r.OL)((({usageType:e,quota:A,up:t,down:a,bytes:n,expire:l,...r})=>({quota:c(e,A),up:t?1e3*t:void 0,down:a?1e3*a:void 0,bytes:n||void 0,expire:l||void 0,...r}))(t))).then(()=>{e(),A((0,r.P5)())}).catch(()=>{a(!1)})},[A,e]);return n.createElement(l.l1,{enableReinitialize:!0,initialValues:S.b$,validationSchema:s,onSubmit:t},n.createElement(p,{closeModal:e}))}},997918:(e,A,t)=>{var a;t.d(A,{P:()=>a}),function(e){e.AMOUNT="amount",e.CARDTYPE="cardtype",e.CITY="city",e.COUNTRY="country",e.CURRENCY="currency",e.DATETIME="datetime",e.EMAIL="email",e.FIRST_NAME="first_name",e.GATEWAY="gateway",e.INFO="info",e.LAST_NAME="last_name",e.NAME="name",e.PACKAGE="package",e.SITE_ID="site_id",e.STATE="state",e.STATUS="status",e.TIME="time",e.TYPE="type",e.X_TRANSACTION_ID="x_transaction_id",e.ZIP="zip",e._ID="_id",e.HOTSPOT_PACKAGE="hotspotPackage"}(a||(a={}))}}]);