"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[16385],{516385(e,t,n){n.r(t),n.d(t,{default:()=>R});var l=n(296540),A=n(804220),E=n(228122),s=n(469733),a=n(968906),r=n(398300),i=n(845030),c=n(916537),d=n(30611),u=n(151033),o=n(383664),I=n(638595),P=n(487585),M=n(164231);const N=({[I.j.LOG]:e,[I.j.ID]:t})=>{const n=e[u.k1.PARAMETERS]?.[d.ns.BSSID]?.[u.bP.NAME],A=(0,s.useDispatch)(),E=(0,l.useCallback)(()=>{A((0,i.XP)({type:r.H.DEVICE,id:n}))},[A,n]),N=(0,M.A)({[P.U.MAC]:e[u.k1.PARAMETERS]?.[d.ns.BSSID]?.[u.bP.ID],[P.U.NAME]:e[u.k1.PARAMETERS]?.[d.ns.BSSID]?.[u.bP.NAME],[P.U.MODEL]:void 0});return n?l.createElement(o.A,{label:l.createElement(c.sA,{id:t}),value:N,onPress:E,...a.A.addDataTestId(a.A.TestId.SIDE_PANEL_TRIGGER)}):null};var S=n(979353);const R=({[S.w.LOG]:e})=>[l.createElement(A.A,{key:"wifiName",id:"COMMON_WIFI_NAME",log:e}),l.createElement(N,{key:"bssid",id:"COMMON_BSSID",log:e}),l.createElement(E.A,{key:"channel",id:"COMMON_CHANNEL",log:e})]},979353(e,t,n){var l;n.d(t,{w:()=>l}),function(e){e.LOG="log"}(l||(l={}))},228122(e,t,n){n.d(t,{A:()=>i});var l=n(296540),A=n(916537),E=n(30611),s=n(151033),a=n(67668),r=n(638595);const i=({[r.j.ID]:e,[r.j.LOG]:t})=>t[s.k1.PARAMETERS]?.[E.ns.CHANNEL]?.[s.bP.NAME]?l.createElement(a.A,{label:l.createElement(A.sA,{id:e}),value:t[s.k1.PARAMETERS][E.ns.CHANNEL][s.bP.NAME]}):null},638595(e,t,n){var l;n.d(t,{j:()=>l}),function(e){e.ID="id",e.LOG="log"}(l||(l={}))},383664(e,t,n){n.d(t,{A:()=>i});var l=n(296540),A=n(592563),E=n(199582),s=n(491876),a=n(35571),r=n(115829);const i=({label:e,value:t,onPress:n,[E.L]:i})=>l.createElement(a.R,null,l.createElement(s.A,null,e),l.createElement(A.A,{style:{display:"flex",alignItems:"center",justifyContent:"end",overflow:"hidden"},fontSize:"medium",type:"button",onPress:n,...i&&{[E.L]:i}},l.createElement(r.A,{size:"medium",color:"inherit"},t)))},804220(e,t,n){n.d(t,{A:()=>M});var l=n(956347),A=n(469733),E=n(296540),s=n(968906),a=n(928085),r=n(398300),i=n(845030),c=n(916537),d=n(30611),u=n(151033),o=n(959341),I=n(383664),P=n(638595);const M=({[P.j.LOG]:e,[P.j.ID]:t})=>{const n=(0,l.W6)(),M=(0,A.useDispatch)(),N=(0,a.A)(o._L),S=e[u.k1.PARAMETERS]?.[d.ns.WLAN]?.[u.bP.NAME]||e[u.k1.PARAMETERS]?.[d.ns.ESSID]?.[u.bP.NAME],R=e[u.k1.PARAMETERS]?.[d.ns.WLAN]?.[u.bP.ID]||e[u.k1.PARAMETERS]?.[d.ns.ESSID]?.[u.bP.ID],D=(0,E.useCallback)(()=>{R?M((0,i.XP)({type:r.H.WIFI,id:R})):n.push(N)},[R,M,n,N]);return S?E.createElement(I.A,{label:E.createElement(c.sA,{id:t}),onPress:D,value:S,...s.A.addDataTestId(s.A.TestId.SIDE_PANEL_TRIGGER)}):null}}}]);