"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[18180],{818180(E,A,s){s.r(A),s.d(A,{default:()=>L});var e=s(274934),n=s(980178),l=s(337235),D=s(400241),C=s(16129),O=s(865069),R=s(518893),N=s(470070),M=s(602764),P=s(599508),d=s(292681),I=s(412258);const T=({[I.j.LOG]:E,[I.j.ID]:A})=>E[P.k1.PARAMETERS]?.[M.ns.CONNECTED_DEVICE]?.[M.wZ.VERSION]?(0,e.jsx)(d.A,{label:(0,e.jsx)(N.sA,{id:A}),value:E[P.k1.PARAMETERS][M.ns.CONNECTED_DEVICE][M.wZ.VERSION]}):null;var j=s(977872),i=s(602086),o=s(590979),a=s(449339),t=s(205521),S=s(913637),_=s(105436),c=s(10820);const u=({[I.j.ID]:E,[I.j.LOG]:A})=>{const s=(0,j.wA)(),n=(0,i.useCallback)(()=>{s((0,t.XP)({type:a.H.DEVICE,id:A[P.k1.PARAMETERS]?.[M.ns.CONNECTED_DEVICE]?.[P.bP.ID]}))},[s,A]),l=(0,c.A)({[_.U.MAC]:A[P.k1.PARAMETERS]?.[M.ns.CONNECTED_DEVICE]?.[P.bP.ID],[_.U.NAME]:A[P.k1.PARAMETERS]?.[M.ns.CONNECTED_DEVICE]?.[P.bP.NAME],[_.U.MODEL]:A[P.k1.PARAMETERS]?.[M.ns.CONNECTED_DEVICE]?.[M.wZ.MODEL_NAME]});return A[P.k1.PARAMETERS]?.[M.ns.CONNECTED_DEVICE]?(0,e.jsx)(S.A,{label:(0,e.jsx)(N.sA,{id:E}),value:l,onPress:n,...o.A.addDataTestId(o.A.TestId.SIDE_PANEL_TRIGGER)}):null};var r=s(347625);const x=({[I.j.LOG]:E,[I.j.ID]:A})=>E[P.k1.PARAMETERS]?.[M.ns.CONNECTED_DEVICE]?.[M.wZ.MODEL_NAME]?(0,e.jsx)(d.A,{label:(0,e.jsx)(N.sA,{id:A}),value:(0,r.Lm)(E[P.k1.PARAMETERS][M.ns.CONNECTED_DEVICE][M.wZ.MODEL_NAME])}):null,k=({[I.j.LOG]:E,[I.j.ID]:A})=>E[P.k1.PARAMETERS]?.[M.ns.CONNECTED_DEVICE]?.[P.bP.ID]?(0,e.jsx)(d.A,{label:(0,e.jsx)(N.sA,{id:A}),value:E[P.k1.PARAMETERS][M.ns.CONNECTED_DEVICE][P.bP.ID]}):null,b=({[I.j.LOG]:E,[I.j.ID]:A})=>E[P.k1.PARAMETERS]?.[M.ns.CONNECTED_DEVICE]?.[M.wZ.IP]?(0,e.jsx)(d.A,{label:(0,e.jsx)(N.sA,{id:A}),value:E[P.k1.PARAMETERS][M.ns.CONNECTED_DEVICE][M.wZ.IP]}):null,L=({[n.w.LOG]:E})=>[(0,e.jsx)(u,{id:"COMMON_DEVICE",log:E},"connectedDeviceName"),(0,e.jsx)(x,{id:"COMMON_MODEL",log:E},"connectedDeviceModel"),(0,e.jsx)(b,{id:"COMMON_IP_ADDRESS",log:E},"connectedDeviceIpAddress"),(0,e.jsx)(k,{id:"COMMON_MAC_ADDRESS",log:E},"connectedDeviceMacAddress"),(0,e.jsx)(T,{id:"COMMON_VERSION",log:E},"connectedDeviceVersion"),(0,e.jsx)(l.A,{id:"LOGS_POE_POWER_IN_USE",log:E},"powerUsage"),(0,e.jsx)(D.A,{id:"LOGS_POE_AVAILABILITY",log:E},"powerBudget"),(0,e.jsx)(R.A,{id:"COMMON_CONNECTED_TO",log:E},"connectedTo"),(0,e.jsx)(C.A,{id:"LOGS_CONNECTED_PORT",log:E},"port"),(0,e.jsx)(O.A,{id:"COMMON_LINK_SPEED",log:E},"connectionSpeed")]},980178(E,A,s){var e;s.d(A,{w:()=>e}),function(E){E.LOG="log"}(e||(e={}))},518893(E,A,s){s.d(A,{A:()=>j});var e=s(274934),n=s(977872),l=s(602086),D=s(590979),C=s(449339),O=s(205521),R=s(470070),N=s(602764),M=s(599508),P=s(913637),d=s(412258),I=s(105436),T=s(10820);const j=({[d.j.ID]:E,[d.j.LOG]:A})=>{const s=(0,n.wA)(),j=(0,l.useCallback)(()=>{s((0,O.XP)({type:C.H.DEVICE,id:A[M.k1.PARAMETERS]?.[N.ns.DEVICE]?.[M.bP.ID]}))},[s,A]),i=(0,T.A)({[I.U.MAC]:A[M.k1.PARAMETERS]?.[N.ns.DEVICE]?.[M.bP.ID],[I.U.NAME]:A[M.k1.PARAMETERS]?.[N.ns.DEVICE]?.[M.bP.NAME],[I.U.MODEL]:A[M.k1.PARAMETERS]?.[N.ns.DEVICE]?.[N.pq.MODEL_NAME]});return A[M.k1.PARAMETERS]?.[N.ns.DEVICE]?(0,e.jsx)(P.A,{label:(0,e.jsx)(R.sA,{id:E}),onPress:j,value:i,...D.A.addDataTestId(D.A.TestId.SIDE_PANEL_TRIGGER)}):null}},865069(E,A,s){s.d(A,{A:()=>R});var e=s(274934),n=s(470070),l=s(602764),D=s(599508),C=s(292681),O=s(412258);const R=({[O.j.ID]:E,[O.j.LOG]:A})=>A[D.k1.PARAMETERS]?.[l.ns.CONNECTION_SPEED]?.[D.bP.NAME]?(0,e.jsx)(C.A,{label:(0,e.jsx)(n.sA,{id:E}),value:A[D.k1.PARAMETERS][l.ns.CONNECTION_SPEED][D.bP.NAME]}):null},412258(E,A,s){var e;s.d(A,{j:()=>e}),function(E){E.ID="id",E.LOG="log"}(e||(e={}))},16129(E,A,s){s.d(A,{A:()=>R});var e=s(274934),n=s(470070),l=s(602764),D=s(599508),C=s(292681),O=s(412258);const R=({[O.j.ID]:E,[O.j.LOG]:A})=>A[D.k1.PARAMETERS]?.[l.ns.PORT]?.[D.bP.NAME]?(0,e.jsx)(C.A,{label:(0,e.jsx)(n.sA,{id:E}),value:A[D.k1.PARAMETERS][l.ns.PORT][D.bP.NAME]}):null},400241(E,A,s){s.d(A,{A:()=>R});var e=s(274934),n=s(470070),l=s(602764),D=s(599508),C=s(292681),O=s(412258);const R=({[O.j.ID]:E,[O.j.LOG]:A})=>A[D.k1.PARAMETERS]?.[l.ns.POWER_BUDGET]?.[D.bP.NAME]?(0,e.jsx)(C.A,{label:(0,e.jsx)(n.sA,{id:E}),value:A[D.k1.PARAMETERS][l.ns.POWER_BUDGET][D.bP.NAME]}):null},337235(E,A,s){s.d(A,{A:()=>R});var e=s(274934),n=s(470070),l=s(602764),D=s(599508),C=s(292681),O=s(412258);const R=({[O.j.ID]:E,[O.j.LOG]:A})=>A[D.k1.PARAMETERS]?.[l.ns.POWER_USAGE]?.[D.bP.NAME]?(0,e.jsx)(C.A,{label:(0,e.jsx)(n.sA,{id:E}),value:A[D.k1.PARAMETERS][l.ns.POWER_USAGE][D.bP.NAME]}):null},913637(E,A,s){s.d(A,{A:()=>R});var e=s(274934),n=s(954702),l=s(147045),D=s(785697),C=s(607084),O=s(421314);const R=({label:E,value:A,onPress:s,[l.L]:R})=>(0,e.jsxs)(C.R,{children:[(0,e.jsx)(D.A,{children:E}),(0,e.jsx)(n.A,{style:{display:"flex",alignItems:"center",justifyContent:"end",overflow:"hidden"},fontSize:"medium",type:"button",onPress:s,...R&&{[l.L]:R},children:(0,e.jsx)(O.A,{size:"medium",color:"inherit",children:A})})]})}}]);