"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[51188],{71265:(e,t,n)=>{n.d(t,{R:()=>m,k:()=>A});var a=n(280258),l=n(190497),r=n(953048),c=n(175522),i=n(936621),o=n(305988);const E=[...new Set([a.H,c.Q.join(c.A),r.Zt,i.F,l.nc,o.Vr])],s={numeric:!0,sensitivity:"base"},m=(e,t)=>{const n=[];for(let a=e;a<=t;a+=1)n.push({value:a,label:String(a)});return n},A=e=>({value:t,label:n},{value:a,label:l})=>E.includes(t?.toString())||E.includes(a?.toString())?1/0:n?.toString().localeCompare(l?.toString(),e,s)??-1},175522:(e,t,n)=>{n.d(t,{A:()=>l,Q:()=>r});var a=n(416348);const l="_",r=[a.ZM,a.Je]},205830:(e,t,n)=>{n.d(t,{A:()=>m});var a=n(296540),l=n(217439),r=n(83438),c=n(566723),i=n(294303),o=n(699784),E=n(780811),s=n(360113);const m=({sys_stats:e,flexProps:t,withTooltip:n,compact:m=!1})=>{const A=(0,E.eiG)(e);return A?a.createElement(s.A,{flexProps:t,compact:m},a.createElement(l.A,{color:"text-2",size:"medium"},a.createElement(o.sA,{id:"COMMON_LOAD_AVERAGE"})),n?a.createElement(i.A,{alignItems:"center",gap:c.YC},a.createElement(l.A,{color:"text-3",size:"medium"},A),a.createElement(r.A,{description:a.createElement(o.sA,{id:"DEVICE_PROPERTY_OVERVIEW_LOAD_AVERAGE_TOOLTIP"}),placement:"top left"})):a.createElement(l.A,{color:"text-3",size:"medium"},A)):null}},211908:(e,t,n)=>{n.d(t,{A:()=>B});var a=n(469733),l=n(296540),r=n(353899),c=n(758649),i=n(742920),o=n(421130),E=n(675359),s=n(699784),m=n(801081),A=n(25553),d=n(87485),u=n(264963);const _=e=>(0,m.Mz)((e=>(0,A.uh)((0,u.lX)({queryParams:{mac:e}})))(e),e=>(0,d.i6)(e)?.devices||[]);var p,C,I=n(768195),N=n(546391);!function(e){e.EXISTING="existing",e.NEW="new"}(p||(p={})),function(e){e.MAC="mac",e.TYPE="type",e.MODEL="model"}(C||(C={}));var M,v=n(238761),O=n(271856),D=n(438628),T=n(162420),S=n(400261),R=n(874807);!function(e){e.DEVICE_REPLACEMENT_MODE="deviceReplacementMode",e.SET_DEVICE_REPLACEMENT_MODE="setDeviceReplacementMode",e.NEW_MAC="newMac",e.SET_NEW_MAC="setNewMac",e.EXISTING_MAC="existingMac",e.SET_EXISTING_MAC="setExistingMac",e.REPLACEMENT_CANDIDATES="replacementCandidates",e.ERROR="error",e.RESET_ERROR="resetError"}(M||(M={}));const P={[M.DEVICE_REPLACEMENT_MODE]:void 0,[M.SET_DEVICE_REPLACEMENT_MODE]:R.P1,[M.NEW_MAC]:void 0,[M.SET_NEW_MAC]:R.P1,[M.EXISTING_MAC]:void 0,[M.SET_EXISTING_MAC]:R.P1,[M.REPLACEMENT_CANDIDATES]:[],[M.ERROR]:void 0,[M.RESET_ERROR]:R.P1},g=(0,l.createContext)(P);const f=n(132196).AH`
  height: 54px;
`;var h=n(71479),L=n(566723),y=n(294303);const x=(0,h.A)(y.A)`
  align-items: center;
  gap: ${L.YC};
`,w=(0,l.memo)(()=>{const{newMac:e,setNewMac:t,error:n,resetError:a}=(0,l.useContext)(g),r=(0,l.useCallback)(({target:{value:e}})=>{t((0,S.Z)(e)),a()},[t,a]);return l.createElement(D.A,{className:f,value:e,onChange:r,onFocus:a,variant:"secondary",label:l.createElement(x,null,l.createElement(s.sA,{id:"COMMON_MAC_ADDRESS"}),l.createElement(O.A,{portal:!0,width:"100%",maxWidth:248,description:l.createElement(s.sA,{id:"DEVICE_REPLACEMENT_MAC_LOCATION"})},l.createElement(T.A,{isActive:!0}))),width:"100%",invalid:n})});var b=n(362412),V=n(6176);const k=(0,l.memo)(()=>{const{replacementCandidates:e,existingMac:t,setExistingMac:n,error:a,resetError:r}=(0,l.useContext)(g),c=(0,l.useMemo)(()=>e.map(({mac:e,model:t,name:n})=>({label:n,value:e,image:l.createElement(V.A,{model:t}),additionalInfo:e})),[e]),i=(0,l.useCallback)(({value:e})=>{n(String(e)),r()},[n,r]);return l.createElement(b.A.Sorted,{value:t,label:l.createElement(s.sA,{id:"COMMON_DEVICE"}),width:"100%",searchable:!0,onChange:i,onFocus:r,maxHeight:228,options:c,invalid:a})}),W=(0,h.A)(y.A)`
  flex-direction: column;
  gap: ${L.kc};
`,z=(0,l.memo)(()=>{const{replacementCandidates:e,deviceReplacementMode:t,setDeviceReplacementMode:n,resetError:a}=(0,l.useContext)(g),r=(0,l.useMemo)(()=>e.length?[{id:p.EXISTING,children:l.createElement(s.sA,{id:"COMMON_EXISTING"}),onChange:()=>{n(p.EXISTING),a()},checked:t===p.EXISTING},{id:p.NEW,children:l.createElement(s.sA,{id:"COMMON_NEW"}),onChange:()=>{n(p.NEW),a()},checked:t===p.NEW}]:[],[e.length,t,n,a]);return l.createElement(W,null,l.createElement(v.A,{direction:"row",items:r}),t===p.EXISTING?l.createElement(k,null):null,t===p.NEW?l.createElement(w,null):null)}),F=(0,h.A)(y.A)`
  align-items: center;
  gap: ${L.YC};
  width: fit-content;
`;var G=n(252093);const U={[I.gQ.INCOMPATIBLE_REPLACEMENT]:"DEVICE_REPLACEMENT_DEVICE_INCOMPATIBLE_REPLACEMENT_ERROR",[I.gQ.REPLACEMENT_ALREADY_ASSIGNED]:"DEVICE_REPLACEMENT_DEVICE_REPLACEMENT_ALREADY_ASSIGNED_ERROR"},$=({mac:e,hideTooltip:t=!1})=>{const{formatMessage:n}=(0,s.tz)(),o=(0,a.useDispatch)(),[m,A]=(0,l.useState)(!1),[d,C]=(0,l.useState)(!1),[v,O]=(0,l.useState)(p.NEW),[D,T]=(0,l.useState)(""),[S,R]=(0,l.useState)(""),[P,f]=(0,l.useState)(void 0),h=(0,a.useSelector)((0,l.useMemo)(()=>_(e),[e])),L=(0,l.useCallback)(()=>{A(!0)},[]),y=(0,l.useCallback)(()=>{A(!1),T(""),R(""),C(!1),O(p.NEW),f(void 0)},[]),x=(0,l.useCallback)(()=>{switch(v){case p.EXISTING:return S;case p.NEW:return D;default:return}},[v,S,D]),w=(0,l.useCallback)(()=>{o((0,E.ox)({icon:i.C.success,message:"DEVICE_REPLACEMENT_DEVICE_SET",duration:3e3})),y()},[o,y]),b=(0,l.useCallback)(e=>{switch(e.apiData?.replacement_state){case I.gQ.INCOMPATIBLE_REPLACEMENT:case I.gQ.REPLACEMENT_ALREADY_ASSIGNED:f(n({id:U[e.apiData.replacement_state]}));break;case I.gQ.CANNOT_REPLACE:default:o((0,E.ox)({icon:i.C.danger,message:"DEVICE_FAILED_TO_SET_REPLACEMENT_DEVICE",duration:3e3}))}},[o,n]),V=(0,l.useCallback)(()=>{C(!1)},[]),k=(0,l.useCallback)(()=>{C(!0),o((0,u.uC)(e,x())).then(w).catch(b).finally(V)},[o,w,b,e,x,V]),W=(0,l.useMemo)(()=>Boolean(x().match(N.b8)),[x]),$=(0,l.useMemo)(()=>[{text:l.createElement(s.sA,{id:"COMMON_ACTION_CANCEL"}),variant:"tertiary",onClick:y},{text:l.createElement(s.sA,{id:"COMMON_ACTION_APPLY"}),variant:"primary",onClick:k,disabled:!W||d,loader:d?"spinner":void 0}],[y,k,W,d]),B=(0,l.useCallback)(()=>{f(void 0)},[f]),Y=(0,l.useMemo)(()=>({[M.DEVICE_REPLACEMENT_MODE]:v,[M.SET_DEVICE_REPLACEMENT_MODE]:O,[M.NEW_MAC]:D,[M.SET_NEW_MAC]:T,[M.EXISTING_MAC]:S,[M.SET_EXISTING_MAC]:R,[M.REPLACEMENT_CANDIDATES]:h,[M.ERROR]:P,[M.RESET_ERROR]:B}),[v,D,S,h,P,B]);return(0,l.useEffect)(()=>{o((0,u.lX)({queryParams:{mac:e}}))},[o,e]),l.createElement(g.Provider,{value:Y},l.createElement(r.A,{allowOverflow:!0,title:l.createElement(s.sA,{id:"DEVICE_SET_REPLACEMENT_DEVICE"}),body:l.createElement(z,null),position:"top",portal:!0,actions:$,isOpen:m,onRequestClose:y},l.createElement(F,null,l.createElement(c.A,{type:"button",variant:"inline",size:"medium",onClick:L},l.createElement(s.sA,{id:"DEVICE_SET_REPLACEMENT_DEVICE"})),t?null:l.createElement(G.A,{messageId:"DEVICE_SET_REPLACEMENT_DEVICE_DESCRIPTION",variant:"outline"}))))},B=(0,l.memo)(({model:e,type:t,...n})=>(0,o.G)({type:t,model:e})?l.createElement($,{type:t,model:e,...n}):null)},212406:(e,t,n)=>{n.d(t,{A:()=>C});var a=n(296540),l=n(146784),r=n(294303),c=n(689965),i=n(768195),o=n(999063),E=n(633819),s=n(559674),m=n(329708),A=n(32753),d=n(723544),u=n(205830),_=n(400242),p=n(500045);const C=({model:e,ip:t,lan_ip:n,ipv6:C,mac:I,displayable_version:N,connection_network_name:M,uptime:v,sys_stats:O,systemStatsMem:D,total_used_power:T,device_mode_override:S})=>{const R=S===i.Yp.MANAGED_SHADOW_GATEWAY;return a.createElement(c.A,null,a.createElement(r.A,{height:"100%",flexDirection:"column"},a.createElement(m.A,{model:e}),R?null:a.createElement(_.A,{ip:t,lan_ip:n}),R?null:a.createElement(l.A,{ipv6_address:C}),a.createElement(d.A,{mac:I}),a.createElement(p.A,{displayable_version:N}),R?null:a.createElement(s.A,{connection_network_name:M}),a.createElement(o.A,{uptime:v}),R?null:a.createElement(A.A,{systemStatsMem:D}),R?null:a.createElement(u.A,{sys_stats:O}),R?null:a.createElement(E.A,{totalPower:T})))}},252093:(e,t,n)=>{n.d(t,{A:()=>i});var a=n(296540),l=n(271856),r=n(162420),c=n(699784);const i=({messageId:e,tooltipClassName:t,values:n,isInteractive:i,portal:o,variant:E="twoTone",size:s="medium"})=>a.createElement(l.A,{description:a.createElement(c.sA,{id:e,values:n}),width:210,isInteractive:i,portal:o,tooltipClassName:t},a.createElement(r.A,{isActive:!0,omitSvgMargin:!0,variant:E,size:s}))},264963:(e,t,n)=>{n.d(t,{X2:()=>d,lX:()=>m,uC:()=>A});var a=n(516693),l=n(691189),r=n(742920),c=n(887831);const i="/v2/api/site/{site}/device/:mac:",o=`${i}/replacement-candidates`,E=`${i}/replace?replacementDeviceMac=:replacement-mac:`,s=`${i}/replace`,m=(e={},t={})=>(0,l.Kd)("replacementCandidates",`${o.replace(":mac:",e.queryParams?.mac)}`,e.queryParams?.mac,e,{...t,idField:"mac"}),A=(e,t)=>n=>n((0,l.vB)(a.aC,null,null,c.A.POST,E.replace(":mac:",e).replace(":replacement-mac:",t),{},null,{})),d=e=>t=>t((0,l.vB)(a.aC,null,null,c.A.DELETE,s.replace(":mac:",e),{},null,{failureToast:()=>({icon:r.C.danger,message:"COMMON_UNKNOWN_ERROR"})}))},284428:(e,t,n)=>{n.d(t,{Im:()=>o,iL:()=>E,mQ:()=>c,pv:()=>r,q:()=>i});var a=n(296540),l=n(451449);function r(){return(0,a.useContext)(l.I)}function c(){return r().fields}function i(){return r().tooltipPopovers}function o(){return r().tooltipIcons}function E(){return r().labels}},329708:(e,t,n)=>{n.d(t,{A:()=>o});var a=n(296540),l=n(927099),r=n(6510),c=n(699784),i=n(360113);const o=({model:e})=>a.createElement(i.A,null,a.createElement(l.A,{color:"secondary",size:"body"},a.createElement(c.sA,{id:"COMMON_MODEL"})),a.createElement(l.A,{color:"tertiary",size:"body"},(0,r.Lm)(e)))},362412:(e,t,n)=>{n.d(t,{A:()=>m});var a=n(469733),l=n(296540),r=n(436331),c=n(805837),i=n(282556),o=n(71265);const E=e=>l.createElement(r.A,{renderOption:c.q,...e}),s=e=>l.createElement(E,{...e});s.Sorted=e=>{const t=(0,a.useSelector)(i.zi),n=(0,l.useMemo)(()=>(0,o.k)(t),[t]);return l.createElement(E,{...e,sortBy:n})};const m=s},400242:(e,t,n)=>{n.d(t,{A:()=>i});var a=n(296540),l=n(927099),r=n(699784),c=n(360113);const i=({ip:e,lan_ip:t,wan:n=!1,lan:i=!1,compact:o=!1})=>t||e?a.createElement(c.A,{compact:o},a.createElement(l.A,{color:"secondary",size:"body"},a.createElement(r.sA,{id:n?"DEVICE_PROPERTY_OVERVIEW_WAN_IP_ADDRESS":i?"DEVICE_PROPERTY_OVERVIEW_LAN_IP_ADDRESS":"COMMON_IP_ADDRESS"})),a.createElement(l.A,{color:"tertiary",size:"body"},t||e)):null},400261:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(546391);const l=e=>e?e.replace(a.SD,"").replace(a.fA,"$&:").substring(0,17).toLowerCase():e},418328:(e,t,n)=>{n.d(t,{A:()=>T});var a=n(296540),l=n(325898),r=n(271856),c=n(822336),i=n(773412),o=n(84385),E=n(217439),s=n(823858),m=n(71479),A=n(998837),d=n(178233),u=n(566723),_=n(294303),p=n(532114),C=n(699784),I=n(757167),N=n(53765);const M=(0,m.A)(_.A)`
  justify-content: space-between;
`,v=(0,m.A)(o.A)`
  margin: 0 6px;
  height: 10px;
`,O=(0,m.A)(s.A)`
  margin: 0 6px;
`,D=({index:e,item:t})=>a.createElement(N.m,null,a.createElement(N.Y,{id:"COMMON_POWER_SUPPLY_UNIT",values:{psuIndex:""}},e+1),t.temp?Object.entries(t.temp).map(([e,t])=>a.createElement(N.Y,{id:"DEVICE_TEMPERATURE_SENSOR",values:{index:+e+1},key:e},t?.toFixed(1)||a.createElement(C.sA,{id:"COMMON_FALLBACK"})," ",a.createElement(C.sA,{id:"COMMON_UNIT_CELSIUS"}))):null,t.fanSpeed?a.createElement(N.Y,{id:"DEVICE_FAN_SPEED"},t.fanSpeed," ",a.createElement(C.sA,{id:"COMMON_UNIT_RPM"})):null),T=({psuTable:e=[],marginBottom:t})=>{const{motifPalette:{neutral00:n,warning:o},motifPalette:s}=(0,A.u)(),{motif:m}=(0,l.A)(),{formatMessage:N}=(0,C.tz)(),T=(0,a.useMemo)(()=>e.map(({power:t,power_capacity:l,temp:A,fan:u,present:T,online:S,label:R},P)=>{const g=l||550,f=Math.ceil(parseFloat(t)/g*100),h={variant:(0,I.NH)(f),value:f,temp:A,fanSpeed:u?.[0],online:S,present:T},L=e?.[P]?.power;return a.createElement(_.A,{flexDirection:"column",key:R},a.createElement(M,null,a.createElement(E.A,{color:"text-2",size:"medium"},a.createElement(C.sA,{id:"COMMON_POWER_SUPPLY_UNIT",values:{psuIndex:P+1}})),a.createElement(_.A,{justifyContent:"space-between",alignItems:"center"},h.present?a.createElement(a.Fragment,null,h.online||h.value?null:a.createElement(r.A,{description:N({id:"DEVICE_USW_MC_PSU_OFFLINE_TOOLTIP"},{index:P+1}),portal:!0},a.createElement(O,{size:"original",variant:"fill",color:o,fill:n})),h.online?a.createElement(a.Fragment,null,a.createElement(E.A,{color:"text-3",size:"medium"},a.createElement(C.sA,{id:"COMMON_UNIT_WATTS_SHORT",values:{value:`${Math.ceil(parseFloat(L))}/${g}`}})),a.createElement(v,{orientation:"vertical",color:s.neutral04}),a.createElement(p.A,{size:"medium",colorOverride:h.value?s[h.variant]:c.Ay[`desktop-color-text-3-${m}`]},(0,d.A)(h.value))):null):a.createElement(E.A,{color:"text-3",size:"medium"},a.createElement(C.sA,{id:"DEVICE_NOT_INSTALLED"})))),a.createElement(r.A,{description:h.present?a.createElement(D,{index:P,item:h}):null,width:250},a.createElement(i.A,{items:[h],rounded:!0})))}),[e]);return a.createElement(_.A,{flexDirection:"column",marginBottom:t??u.kI,gap:u.kc},T)}},421130:(e,t,n)=>{n.d(t,{G:()=>i});var a=n(780811),l=n(768195);const r=[l.bq.USW,l.bq.UAP],c=[l.W4.UDBA69F],i=({type:e,model:t})=>(r.includes(e)||c.includes(t))&&!(0,a.tNJ)({model:t})},451449:(e,t,n)=>{n.d(t,{I:()=>a});const a=(0,n(296540).createContext)({fields:!1,labels:!1,tooltipPopovers:!1,tooltipIcons:!1})},532114:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(217439);const l=(0,n(71479).A)(a.A,{shouldForwardProp:e=>"colorOverride"!==e})`
  ${({colorOverride:e})=>e?`color: ${e} !important`:""};
`},610901:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var a=n(296540),l=n(720282),r=n(212406),c=n(889879),i=n(328787),o=n(15244),E=n(686130),s=n(442728),m=n(812454),A=n(772317);const d=({activeItem:e,activeItem:{adopted:t,mac:n,type:d,model:u,lan_ip:_,ipv6:p,displayable_version:C,connection_network_name:I,uptime:N,sys_stats:M,ip:v,detailed_states:{device_near_power_limit:O}={device_near_power_limit:!1},total_used_power:D,total_max_power:T,config_network:S,"system-stats":R,psu_table:P,shortname:g}})=>a.createElement(a.Fragment,null,a.createElement(m.A,{activeItem:e,showPortOverview:!0,hidePortsButton:!0},a.createElement(E.A,{activeItem:e,showPortsButton:!0,showCaptureButton:!0})),a.createElement(i.A,{ip:v,adopted:t,config_network:S}),a.createElement(c.A,{mac:n,type:d,model:u,device_near_power_limit:O,total_used_power:D,total_max_power:T}),a.createElement(s.A,{activeItem:e}),a.createElement(l.A,{psu_table:P}),a.createElement(r.A,{model:u,ip:v,lan_ip:_,ipv6:p,mac:n,displayable_version:C,connection_network_name:I,uptime:N,sys_stats:M,systemStatsMem:R?.mem,total_used_power:D}),a.createElement(o.A,{activeItem:e}),a.createElement(A.A,{shortname:g}))},720282:(e,t,n)=>{n.d(t,{A:()=>w});var a=n(296540),l=n(231755),r=n(566723),c=n(86571),i=n(294303),o=n(689965),E=n(271856),s=n(822336),m=n(217439),A=n(920360),d=n(823858),u=n(71479),_=n(311785),p=n(699784);const C=1,I=2,N=4;var M,v=n(53765);!function(e){e.ORANGE="orange",e.RED="red"}(M||(M={}));const O=(e,t)=>(e.index||0)-(t.index||0),D=(0,u.A)(A.A)`
  color: ${({theme:e})=>s.Ay[`desktop-color-neutral-00-${e.themeName}`]};
`,T=(0,u.A)(d.A,(0,_.A)("color"))`
  color: ${({theme:e,color:t})=>s.Ay[`desktop-color-${t}-06-${e.themeName}`]};
`,S=(0,u.A)(i.A)`
  width: ${r.S2};
  height: ${r.S2};
  border-radius: 4px;
  background-color: ${({theme:e})=>s.Ay[`desktop-color-green-06-${e.themeName}`]};
`,R=(0,u.A)(S)`
  background-color: ${({theme:e})=>s.Ay[`desktop-color-neutral-03-${e.themeName}`]};
`,P=({fan:{index:e,speed:t}})=>a.createElement(v.m,null,a.createElement(v.Y,{id:"DEVICE_FAN"},e),a.createElement(v.Y,{id:"DEVICE_LEVEL"},t)),g=({fan:e})=>a.createElement(E.A,{description:a.createElement(P,{fan:e}),width:100},a.createElement(S,{justifyContent:"center",alignItems:"center"},a.createElement(D,null))),f=({index:e,messageId:t,color:n=M.ORANGE})=>a.createElement(E.A,{description:a.createElement(p.sA,{id:t,values:{index:e}}),width:199},a.createElement(R,{justifyContent:"center",alignItems:"center"},a.createElement(T,{color:n,size:"original",variant:"fill"}))),h=({fan:e})=>{switch(!0){case!e.present:return a.createElement(f,{index:e.index,messageId:"DEVICE_FAN_UNAVAILABLE",color:M.RED});case!!(e.critical_state&C):return a.createElement(f,{index:e.index,messageId:"DEVICE_FAN_SPEED_TOO_HIGH"});case!!(e.critical_state&I):return a.createElement(f,{index:e.index,messageId:"DEVICE_FAN_STOPPED"});case!!(e.critical_state&N):return a.createElement(f,{index:e.index,messageId:"DEVICE_FAN_UNAVAILABLE",color:M.RED});default:return a.createElement(g,{fan:e})}},L=({fan:e})=>a.createElement(i.A,{flexDirection:"column",justifyContent:"center",alignItems:"center"},a.createElement(h,{fan:e}),a.createElement(m.A,{size:"small",color:"text-3"},e.present&&void 0!==e.speed?e.speed:a.createElement(p.sA,{id:"COMMON_FALLBACK"}))),y=({fan_table:e})=>a.createElement(i.A,{flexDirection:"row",justifyContent:"center",gap:r.S2},e.sort(O).map(e=>a.createElement(L,{key:e.index,fan:e})));var x=n(418328);const w=({psu_table:e=[],fan_table:t=[]})=>e.length>0?a.createElement(o.A,{type:o.I.ACCORDION,items:[{id:"powerSource",openByDefault:!0,label:a.createElement(c.A,{id:t.length?"DEVICE_HEADER_POWER_AND_FAN_UTILIZATION":"DEVICE_HEADER_POWER_UTILIZATION"}),renderContent:()=>a.createElement(i.A,{flexDirection:"column",gap:r.Ln},a.createElement(x.A,{psuTable:e,marginBottom:0}),t.length?a.createElement(a.Fragment,null,a.createElement(l.A,null),a.createElement(y,{fan_table:t})):null)}]}):null},766624:(e,t,n)=>{n.d(t,{A:()=>o});var a=n(296540),l=n(271856),r=n(709690),c=n(284428),i=n(566723);const o=({description:e,isInteractive:t,portal:n=!0,cursorType:o,title:E,position:s,width:m,iconProps:A,disabled:d=!1})=>{const u=(0,c.Im)()||d,_=(0,c.q)();return a.createElement(l.A,{description:e,portal:n,isInteractive:t,style:{display:"flex",alignItems:"center"},cursorType:o,title:E,position:s,width:m,disableHover:_},a.createElement(r.A,{isActive:!0,size:"original",opacity:u?i.xN:void 0,...A}))}},772317:(e,t,n)=>{n.d(t,{A:()=>S});var a,l=n(592563),r=n(296540),c=n(469733),i=n(217439),o=n(187483),E=n(699784),s=n(689965),m=n(86571),A=n(801081);!function(e){e.OPEN_MODAL="openModal"}(a||(a={}));const d=(0,A.Mz)(o.zn,e=>void 0!==e[a.OPEN_MODAL]);var u=n(523275),_=n(840279),p=n(919952);const C=e=>e[p.U.UIDB]||(0,u.A)(),I=(0,A.Mz)(C,({version:e})=>Boolean(e)),N=(0,A.Mz)(C,({devices:e})=>e||(0,_.A)());var M=n(765562),v=n(79871);const O=()=>{const e=(0,c.useDispatch)(),t=(0,c.useSelector)(I);return(0,r.useEffect)(()=>{t||(async()=>{const t=await fetch(M.A.fingerprintPublicDatabasePath),n=await t.json();e((0,v.$)(n))})()},[t,e]),t},D=({uidbDevice:e})=>{const t=(0,c.useSelector)(o.zn),n=t?.[a.OPEN_MODAL];return n?r.createElement(l.A,{onClick:()=>n(e)},r.createElement(i.A,{size:"medium",color:"inherit"},r.createElement(E.sA,{id:"DEVICE_SHOW_DETAILS"}))):null},T=({shortname:e})=>{const t=(0,c.useSelector)((e=>(0,A.Mz)(N,t=>t.find(t=>t.shortnames?.includes(e))||(0,u.A)()))(e));return O(),t?.compliance?r.createElement(s.A,{type:s.I.ACCORDION,items:[{id:"compliance",label:r.createElement(m.A,{id:"COMMON_COMPLIANCE"}),renderContent:()=>r.createElement(D,{uidbDevice:t}),openByDefault:!0}]}):null},S=({shortname:e})=>(0,c.useSelector)(d)?r.createElement(T,{shortname:e}):null},776288:(e,t,n)=>{n.d(t,{A:()=>a});const a={PCAP:4194304,HWOFFLOAD_QOS_AND_SMART_QUEUE:2147483648,SUPPORT_FILE:65536}}}]);