"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[17275],{517275(e,E,t){t.r(E),t.d(E,{default:()=>R});var n=t(296540),l=t(979353),A=t(482098),s=t(348698),a=t(805014),r=t(10410);const R=({[l.w.LOG]:e})=>[n.createElement(a.A,{key:"network",id:"COMMON_NETWORK",log:e}),n.createElement(s.A,{key:"networkSubnet",id:"COMMON_SUBNET",log:e}),n.createElement(r.A,{key:"connectedTo",id:"COMMON_CONNECTED_TO",log:e}),n.createElement(A.A,{key:"port",id:"LOGS_CONNECTED_PORT",log:e})]},979353(e,E,t){var n;t.d(E,{w:()=>n}),function(e){e.LOG="log"}(n||(n={}))},10410(e,E,t){t.d(E,{A:()=>u});var n=t(469733),l=t(296540),A=t(968906),s=t(398300),a=t(845030),r=t(916537),R=t(30611),c=t(151033),T=t(383664),d=t(638595),o=t(487585),i=t(164231);const u=({[d.j.ID]:e,[d.j.LOG]:E})=>{const t=(0,n.useDispatch)(),u=(0,l.useCallback)(()=>{t((0,a.XP)({type:s.H.DEVICE,id:E[c.k1.PARAMETERS]?.[R.ns.DEVICE]?.[c.bP.ID]}))},[t,E]),N=(0,i.A)({[o.U.MAC]:E[c.k1.PARAMETERS]?.[R.ns.DEVICE]?.[c.bP.ID],[o.U.NAME]:E[c.k1.PARAMETERS]?.[R.ns.DEVICE]?.[c.bP.NAME],[o.U.MODEL]:E[c.k1.PARAMETERS]?.[R.ns.DEVICE]?.[R.pq.MODEL_NAME]});return E[c.k1.PARAMETERS]?.[R.ns.DEVICE]?l.createElement(T.A,{label:l.createElement(r.sA,{id:e}),onPress:u,value:N,...A.A.addDataTestId(A.A.TestId.SIDE_PANEL_TRIGGER)}):null}},638595(e,E,t){var n;t.d(E,{j:()=>n}),function(e){e.ID="id",e.LOG="log"}(n||(n={}))},805014(e,E,t){t.d(E,{A:()=>N});var n=t(956347),l=t(469733),A=t(296540),s=t(968906),a=t(928085),r=t(398300),R=t(845030),c=t(916537),T=t(30611),d=t(151033),o=t(959341),i=t(383664),u=t(638595);const N=({[u.j.LOG]:e,[u.j.ID]:E})=>{const t=(0,l.useDispatch)(),N=(0,n.W6)(),P=(0,a.A)(o.Cs),O=(0,A.useCallback)(()=>{const E=e[d.k1.PARAMETERS]?.[T.ns.NETWORK]?.[d.bP.ID];E?t((0,R.XP)({type:r.H.NETWORK,id:e[d.k1.PARAMETERS]?.[T.ns.NETWORK]?.[d.bP.ID]})):N.push(P)},[e,N,t,P]),M=e[d.k1.PARAMETERS]?.[T.ns.NETWORK]?.[d.bP.NAME],k=e[d.k1.PARAMETERS]?.[T.ns.NETWORK]?.[T.jN.VLAN_ID];return M?A.createElement(i.A,{label:A.createElement(c.sA,{id:E}),value:`${M}${k?` (${k})`:""}`,onPress:O,...s.A.addDataTestId(s.A.TestId.SIDE_PANEL_TRIGGER)}):null}},348698(e,E,t){t.d(E,{A:()=>R});var n=t(296540),l=t(916537),A=t(30611),s=t(151033),a=t(67668),r=t(638595);const R=({[r.j.LOG]:e,[r.j.ID]:E})=>e[s.k1.PARAMETERS]?.[A.ns.NETWORK]?.[A.jN.SUBNET]?n.createElement(a.A,{label:n.createElement(l.sA,{id:E}),value:e[s.k1.PARAMETERS][A.ns.NETWORK][A.jN.SUBNET]}):null},482098(e,E,t){t.d(E,{A:()=>R});var n=t(296540),l=t(916537),A=t(30611),s=t(151033),a=t(67668),r=t(638595);const R=({[r.j.ID]:e,[r.j.LOG]:E})=>E[s.k1.PARAMETERS]?.[A.ns.PORT]?.[s.bP.NAME]?n.createElement(a.A,{label:n.createElement(l.sA,{id:e}),value:E[s.k1.PARAMETERS][A.ns.PORT][s.bP.NAME]}):null},383664(e,E,t){t.d(E,{A:()=>R});var n=t(296540),l=t(592563),A=t(199582),s=t(491876),a=t(35571),r=t(115829);const R=({label:e,value:E,onPress:t,[A.L]:R})=>n.createElement(a.R,null,n.createElement(s.A,null,e),n.createElement(l.A,{style:{display:"flex",alignItems:"center",justifyContent:"end",overflow:"hidden"},fontSize:"medium",type:"button",onPress:t,...R&&{[A.L]:R}},n.createElement(r.A,{size:"medium",color:"inherit"},E)))}}]);