"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[61080],{861080(e,n,t){t.r(n),t.d(n,{default:()=>u});var i=t(274934),s=t(602086),a=t(977872),o=t(938984),d=t(247816),r=t(105472),c=t(869332),l=t(470070),_=t(384783);const A=(0,d.A)(_.A)`
  width: 388px !important;

  footer {
    border-top: none !important;
    padding-top: 0 !important;
  }
`,m=(0,d.A)("ul")`
  margin: ${({theme:{spacing:e}})=>e["spacing-l"]};
  padding: 0;

  li {
    margin-bottom: ${({theme:{spacing:e}})=>e["spacing-xs"]};
  }
`;var p;!function(e){e.DISABLE="disable",e.REMOVE="remove"}(p||(p={}));const u=({name:e,wlans:n})=>{const t=(0,a.wA)(),d=(0,s.useCallback)(()=>{t((0,c.AS)())},[t]);return(0,r.A)(d),(0,i.jsxs)(A,{size:"small",isOpen:!0,title:(0,i.jsx)(l.sA,{id:"SETTINGS_WIFI_FORM_ADVANCED_AP_GROUPS_REMOVE_AP_GROUP"}),actions:[{text:(0,i.jsx)(l.sA,{id:"COMMON_ACTION_CLOSE"}),type:"button",variant:"default",onClick:d}],onRequestClose:d,children:[(0,i.jsx)(o.A,{children:(0,i.jsx)(l.sA,{id:"SETTINGS_WIFI_FORM_ADVANCED_AP_GROUPS_REMOVE_FROM_WLANS_REMOVE_FROM_WIFI_NETWORKS",values:{name:e}})}),(0,i.jsx)(m,{children:n.map(({name:e,_id:n})=>(0,i.jsx)("li",{children:e},`wlan-item-${n}`))})]})}},105472(e,n,t){t.d(n,{A:()=>s});var i=t(602086);const s=(e,n=[])=>{const t=n=>{27===n.keyCode&&e(n)};(0,i.useEffect)(()=>(document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}),n)}}}]);