"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[2294],{10410:(e,E,n)=>{n.d(E,{A:()=>O});var t=n(469733),l=n(296540),A=n(398300),a=n(845030),s=n(699784),c=n(30611),r=n(151033),D=n(383664),C=n(638595),M=n(487585),N=n(164231);const O=({[C.j.ID]:e,[C.j.LOG]:E})=>{const n=(0,t.useDispatch)(),O=(0,l.useCallback)(()=>{n((0,a.XP)({type:A.H.DEVICE,id:E[r.k1.PARAMETERS]?.[c.ns.DEVICE]?.[r.bP.ID]}))},[n,E]),R=(0,N.A)({[M.U.MAC]:E[r.k1.PARAMETERS]?.[c.ns.DEVICE]?.[r.bP.ID],[M.U.NAME]:E[r.k1.PARAMETERS]?.[c.ns.DEVICE]?.[r.bP.NAME],[M.U.MODEL]:E[r.k1.PARAMETERS]?.[c.ns.DEVICE]?.[c.pq.MODEL_NAME]});return E[r.k1.PARAMETERS]?.[c.ns.DEVICE]?l.createElement(D.A,{label:l.createElement(s.sA,{id:e}),onPress:O,value:R}):null}},164231:(e,E,n)=>{n.d(E,{A:()=>P});var t=n(296540),l=n(118818),A=n(6510),a=n(487585),s=n(469733),c=n(171073),r=n(837612),D=n(602197);const C=e=>{const E=(0,s.useDispatch)(),[n,l]=(0,t.useState)(D.g.UNKNOWN);return(0,t.useEffect)(()=>{e&&E((0,c.pI)(e)).then(({data:e})=>{l((0,r.S9)(Array.isArray(e)?e[0]:e))})},[E,e]),n};var M=n(71479),N=n(294303),O=n(566723);const R=(0,M.A)(N.A)`
  align-items: center;
  gap: ${O.kc};
`,P=({[a.U.MAC]:e,[a.U.NAME]:E,[a.U.MODEL]:n})=>{return t.createElement(R,null,t.createElement(l.A,{size:"small",variant:(s=C(e),s===D.g.CONNECTED?"success":"danger")}),(0,A.Q)({name:E,model:n,mac:e}));var s}},383664:(e,E,n)=>{n.d(E,{A:()=>c});var t=n(296540),l=n(592563),A=n(491876),a=n(35571),s=n(115829);const c=({label:e,value:E,onPress:n})=>t.createElement(a.R,null,t.createElement(A.A,null,e),t.createElement(l.A,{style:{display:"flex",alignItems:"center",justifyContent:"end",overflow:"hidden"},fontSize:"medium",type:"button",onPress:n},t.createElement(s.A,{size:"medium",color:"inherit"},E)))},482098:(e,E,n)=>{n.d(E,{A:()=>r});var t=n(296540),l=n(699784),A=n(30611),a=n(151033),s=n(67668),c=n(638595);const r=({[c.j.ID]:e,[c.j.LOG]:E})=>E[a.k1.PARAMETERS]?.[A.ns.PORT]?.[a.bP.NAME]?t.createElement(s.A,{label:t.createElement(l.sA,{id:e}),value:E[a.k1.PARAMETERS][A.ns.PORT][a.bP.NAME]}):null},487585:(e,E,n)=>{var t;n.d(E,{U:()=>t}),function(e){e.MAC="mac",e.NAME="name",e.MODEL="model"}(t||(t={}))},638595:(e,E,n)=>{var t;n.d(E,{j:()=>t}),function(e){e.ID="id",e.LOG="log"}(t||(t={}))},702294:(e,E,n)=>{n.r(E),n.d(E,{default:()=>v});var t=n(296540),l=n(979353),A=n(793292),a=n(868070),s=n(482098),c=n(945978),r=n(10410),D=n(699784),C=n(30611),M=n(151033),N=n(67668),O=n(638595);const R=({[O.j.LOG]:e,[O.j.ID]:E})=>e[M.k1.PARAMETERS]?.[C.ns.CONNECTED_DEVICE]?.[C.wZ.VERSION]?t.createElement(N.A,{label:t.createElement(D.sA,{id:E}),value:e[M.k1.PARAMETERS][C.ns.CONNECTED_DEVICE][C.wZ.VERSION]}):null;var P=n(469733),d=n(398300),i=n(845030),o=n(383664),I=n(487585),T=n(164231);const m=({[O.j.ID]:e,[O.j.LOG]:E})=>{const n=(0,P.useDispatch)(),l=(0,t.useCallback)(()=>{n((0,i.XP)({type:d.H.DEVICE,id:E[M.k1.PARAMETERS]?.[C.ns.CONNECTED_DEVICE]?.[M.bP.ID]}))},[n,E]),A=(0,T.A)({[I.U.MAC]:E[M.k1.PARAMETERS]?.[C.ns.CONNECTED_DEVICE]?.[M.bP.ID],[I.U.NAME]:E[M.k1.PARAMETERS]?.[C.ns.CONNECTED_DEVICE]?.[M.bP.NAME],[I.U.MODEL]:E[M.k1.PARAMETERS]?.[C.ns.CONNECTED_DEVICE]?.[C.wZ.MODEL_NAME]});return E[M.k1.PARAMETERS]?.[C.ns.CONNECTED_DEVICE]?t.createElement(o.A,{label:t.createElement(D.sA,{id:e}),value:A,onPress:l}):null};var u=n(6510);const S=({[O.j.LOG]:e,[O.j.ID]:E})=>e[M.k1.PARAMETERS]?.[C.ns.CONNECTED_DEVICE]?.[C.wZ.MODEL_NAME]?t.createElement(N.A,{label:t.createElement(D.sA,{id:E}),value:(0,u.Lm)(e[M.k1.PARAMETERS][C.ns.CONNECTED_DEVICE][C.wZ.MODEL_NAME])}):null,k=({[O.j.LOG]:e,[O.j.ID]:E})=>e[M.k1.PARAMETERS]?.[C.ns.CONNECTED_DEVICE]?.[M.bP.ID]?t.createElement(N.A,{label:t.createElement(D.sA,{id:E}),value:e[M.k1.PARAMETERS][C.ns.CONNECTED_DEVICE][M.bP.ID]}):null,_=({[O.j.LOG]:e,[O.j.ID]:E})=>e[M.k1.PARAMETERS]?.[C.ns.CONNECTED_DEVICE]?.[C.wZ.IP]?t.createElement(N.A,{label:t.createElement(D.sA,{id:E}),value:e[M.k1.PARAMETERS][C.ns.CONNECTED_DEVICE][C.wZ.IP]}):null,v=({[l.w.LOG]:e})=>[t.createElement(m,{key:"connectedDeviceName",id:"COMMON_DEVICE",log:e}),t.createElement(S,{key:"connectedDeviceModel",id:"COMMON_MODEL",log:e}),t.createElement(_,{key:"connectedDeviceIpAddress",id:"COMMON_IP_ADDRESS",log:e}),t.createElement(k,{key:"connectedDeviceMacAddress",id:"COMMON_MAC_ADDRESS",log:e}),t.createElement(R,{key:"connectedDeviceVersion",id:"COMMON_VERSION",log:e}),t.createElement(A.A,{key:"powerUsage",id:"LOGS_POE_POWER_IN_USE",log:e}),t.createElement(a.A,{key:"powerBudget",id:"LOGS_POE_AVAILABILITY",log:e}),t.createElement(r.A,{key:"connectedTo",id:"COMMON_CONNECTED_TO",log:e}),t.createElement(s.A,{key:"port",id:"LOGS_CONNECTED_PORT",log:e}),t.createElement(c.A,{key:"connectionSpeed",id:"COMMON_LINK_SPEED",log:e})]},793292:(e,E,n)=>{n.d(E,{A:()=>r});var t=n(296540),l=n(699784),A=n(30611),a=n(151033),s=n(67668),c=n(638595);const r=({[c.j.ID]:e,[c.j.LOG]:E})=>E[a.k1.PARAMETERS]?.[A.ns.POWER_USAGE]?.[a.bP.NAME]?t.createElement(s.A,{label:t.createElement(l.sA,{id:e}),value:E[a.k1.PARAMETERS][A.ns.POWER_USAGE][a.bP.NAME]}):null},868070:(e,E,n)=>{n.d(E,{A:()=>r});var t=n(296540),l=n(699784),A=n(30611),a=n(151033),s=n(67668),c=n(638595);const r=({[c.j.ID]:e,[c.j.LOG]:E})=>E[a.k1.PARAMETERS]?.[A.ns.POWER_BUDGET]?.[a.bP.NAME]?t.createElement(s.A,{label:t.createElement(l.sA,{id:e}),value:E[a.k1.PARAMETERS][A.ns.POWER_BUDGET][a.bP.NAME]}):null},945978:(e,E,n)=>{n.d(E,{A:()=>r});var t=n(296540),l=n(699784),A=n(30611),a=n(151033),s=n(67668),c=n(638595);const r=({[c.j.ID]:e,[c.j.LOG]:E})=>E[a.k1.PARAMETERS]?.[A.ns.CONNECTION_SPEED]?.[a.bP.NAME]?t.createElement(s.A,{label:t.createElement(l.sA,{id:e}),value:E[a.k1.PARAMETERS][A.ns.CONNECTION_SPEED][a.bP.NAME]}):null},979353:(e,E,n)=>{var t;n.d(E,{w:()=>t}),function(e){e.LOG="log"}(t||(t={}))}}]);