"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[87301],{815879(e,t,i){i.d(t,{A:()=>o});var n=i(602086),r=i(141992);const o=(0,i(272338).w)(e=>(0,n.createElement)("svg",(0,r.d)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H4Zm8 8a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-4Z",fill:"currentColor",className:e.twotonedclassname}),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 4h4v4H4V4ZM3 4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4Zm9 8h4v4h-4v-4Zm-1 0a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-4Zm1.854-4.854L11.707 6H16v3.5a.5.5 0 0 0 1 0v-4a.5.5 0 0 0-.5-.5h-4.793l1.147-1.146a.5.5 0 0 0-.708-.708l-2 2a.5.5 0 0 0 0 .708l2 2a.5.5 0 0 0 .708-.708ZM8.293 15H3.5a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 1 0V14h4.293l-1.147-1.146a.5.5 0 0 1 .708-.708l2 2a.5.5 0 0 1 0 .708l-2 2a.5.5 0 0 1-.708-.708L8.293 15Z",fill:"currentColor",className:e.baseclassname}),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H4Zm7 9a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-4Zm1.854-4.854L11.707 6H16v3.5a.5.5 0 0 0 1 0v-4a.5.5 0 0 0-.5-.5h-4.793l1.147-1.146a.5.5 0 0 0-.708-.708l-2 2a.5.5 0 0 0 0 .708l2 2a.5.5 0 0 0 .708-.708ZM8.293 15H3.5a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 1 0V14h4.293l-1.147-1.146a.5.5 0 0 1 .708-.708l2 2a.5.5 0 0 1 0 .708l-2 2a.5.5 0 0 1-.708-.708L8.293 15Z",fill:"currentColor",className:e.fillclassname})))},398693(e,t,i){i.d(t,{v:()=>d});var n=i(274934),r=i(125799),o=i(938984);const a={size:"inherit",color:"inherit"},s={portal:!0,maxWidth:"unset",width:"auto",style:{display:"flex",alignItems:"center"}},d=({text:e,textElement:t,textProps:i,tooltipProps:d,isTooltipDisabled:l=!1})=>{const c=t||(0,n.jsx)(o.A,{...a,...i,children:e});return l?c:(0,n.jsx)(r.A,{...s,description:e,...d,children:c})}},535322(e,t,i){i.d(t,{A:()=>x,I:()=>n});var n,r=i(274934),o=i(814557),a=i(158885),s=i(247816),d=i(565527),l=i(309130),c=i(100978),h=i(291508);!function(e){e.ACCORDION="accordion",e.BUTTON_LIST="buttonList"}(n||(n={}));const m=(0,s.A)(c.A,(0,h.A)("marginBottom","isButtonList","margin","flex","width","padding","nested","background"))`
  background-color: ${({background:e,nested:t,theme:{themeName:i}})=>e||o.Ay[i===d.S.DARK?`desktop-color-neutral-${t?"00":"01"}-${d.S.DARK}`:`desktop-color-neutral-${t?"01":"00"}-${d.S.LIGHT}`]};
  padding: ${({isButtonList:e,padding:t})=>t||(e?`0 ${l.Ln}`:l.Ln)};
  margin-bottom: ${({marginBottom:e})=>e||l.Ln};
  ${({margin:e})=>e?`margin: ${e};`:""}
  border-radius: 8px;
  flex-direction: column;
  width: ${({width:e="100%"})=>e};
  flex: ${({flex:e=0})=>e};
  > :last-child {
    margin-bottom: 0;
  }
  thead {
    tr {
      height: 32px !important;
    }
    th {
      text-transform: none;
    }
  }
  ${({isButtonList:e})=>e?`\n    > div {\n      display: flex;\n      height: 48px;\n      border-bottom: ${({theme:{themeName:e}})=>o.Ay[`desktop-border-divider-${e}`]};\n      &:last-child {\n        border-bottom: none;\n      }\n    }\n  `:""}
`,p=(0,s.A)(a.A,(0,h.A)("marginBottom","margin","flex","padding","nested","background"))`
  background-color: ${({background:e,nested:t,theme:{themeName:i}})=>e||o.Ay[i===d.S.DARK?`desktop-color-neutral-${t?"00":"01"}-${d.S.DARK}`:`desktop-color-neutral-${t?"01":"00"}-${d.S.LIGHT}`]};
  margin-bottom: ${({theme:e,marginBottom:t})=>t||e.spacing["spacing-l"]};
  ${({margin:e})=>e?`margin: ${e};`:""}
  ${({padding:e})=>e?`padding: ${e};`:""}
  border-radius: 8px;
  flex-direction: column;
  flex: ${({flex:e=0})=>e};
  > :last-child {
    margin-bottom: 0;
  }
  thead {
    tr {
      height: 32px !important;
    }
    th {
      text-transform: none;
    }
  }
  > li {
    > div:first-child {
      background: ${({background:e,theme:{themeName:t}})=>e||o.Ay[t===d.S.DARK?`desktop-color-neutral-01-${d.S.DARK}`:`desktop-color-neutral-00-${d.S.LIGHT}`]};
      height: 48px;
      padding: 0 ${l.Ln};
    }
    > div:nth-child(2) {
      margin-bottom: 0;
      padding: 0;
      > div {
        padding: 0 ${l.Ln} ${l.Ln};
      }
    }
  }
`,x=({type:e,marginBottom:t,margin:i,padding:o,flex:a,width:s,nested:d,...l})=>"items"in l?(0,r.jsx)(p,{marginBottom:t,margin:i,padding:o,flex:a,nested:d,...l}):(0,r.jsx)(m,{nested:d,width:s,marginBottom:t,margin:i,padding:o,flex:a,isButtonList:e===n.BUTTON_LIST,...l,children:l.children})},297640(e,t,i){i.d(t,{A:()=>h});var n=i(274934),r=i(977872),o=i(95032),a=i(309130),s=i(100978),d=i(650632),l=i(831433),c=i(34118);const h=({mac:e})=>{const t=(0,r.d4)(c.GB).find(t=>"mac"in t&&t.mac===e)||{};return(0,n.jsxs)(s.A,{gap:a.kc,alignItems:"center",children:[(0,n.jsx)(s.A,{maxWidth:16,maxHeight:16,children:(0,n.jsx)(d.A,{client:{mac:e,...t}})}),(0,n.jsx)(o.A,{variant:"inherit",isTruncated:!0,children:(0,l.tn)(t||{})||e})]})}},737364(e,t,i){i.d(t,{A:()=>m});var n=i(274934),r=i(599110),o=i(309130),a=i(580988),s=i(100978),d=i(470070),l=i(421314),c=i(300626),h=i(174710);const m=({enabled:e,label:t,tooltipItems:i,neverShowListMarkers:m,limit:p=20,seeMoreCallback:x,isInteractive:u,title:A,showMatchOppositeIcon:g,listGap:v,iconProps:j})=>(0,n.jsxs)(s.A,{flex:1,overflow:"hidden",gap:o.YC,children:[g?(0,n.jsx)(a.A,{enabled:e}):null,(0,n.jsx)(c.A,{tooltip:(0,n.jsx)(h.A,{title:A,position:"top",isInteractive:Boolean(x)||u,items:i,showListMarkers:!m,maxItemCount:p,getItemKey:(e,t)=>t,renderItem:e=>e,listGap:v,renderShowMore:x?()=>(0,n.jsx)(r.A,{variant:"inline",onClick:x,children:(0,n.jsx)(d.sA,{id:"COMMON_SEE_MORE"})}):void 0,iconProps:j}),children:t?(0,n.jsx)(l.A,{color:e?"inherit":"disabled",children:t}):null})]})},174710(e,t,i){i.d(t,{A:()=>a});var n=i(274934),r=i(304151),o=i(158498);const a=function({items:e,getItemKey:t,renderItem:i,maxItemCount:a,renderShowMore:s,showListMarkers:d,title:l,position:c,isInteractive:h,cursorType:m,listGap:p,iconProps:x}){return(0,n.jsx)(r.A,{title:l,position:c,isInteractive:h,cursorType:m,description:(0,n.jsx)(o.A,{items:e,getItemKey:t,renderItem:i,maxItemCount:a,listGap:p,renderShowMore:s,showListMarkers:d}),iconProps:x})}},580988(e,t,i){i.d(t,{A:()=>l});var n=i(274934),r=i(125799),o=i(815879),a=i(309130),s=i(100978),d=i(470070);const l=({enabled:e})=>(0,n.jsx)(s.A,{opacity:e?void 0:a.xN,children:(0,n.jsx)(r.A,{description:(0,n.jsx)(d.sA,{id:"COMMON_MATCH_OPPOSITE"}),portal:!0,children:(0,n.jsx)(o.A,{size:"original"})})})},986993(e,t,i){i.d(t,{A:()=>l});var n=i(274934),r=i(95032),o=i(470070),a=i(421314),s=i(300626),d=i(174710);const l=function({items:e,renderMultipleItemsSummary:t,renderListItem:i,renderNoItems:l,getItemKey:c,enabled:h=!0,showListMarkers:m,cursorType:p,isInteractive:x}){const u=h?"inherit":"disabled";return e.length>1?(0,n.jsx)(s.A,{tooltip:(0,n.jsx)(d.A,{items:e,getItemKey:c,renderItem:i,showListMarkers:m,isInteractive:x,cursorType:p}),children:(0,n.jsx)(a.A,{color:u,cursorType:p,children:t(e)})}):1===e.length?(0,n.jsx)(a.A,{color:u,cursorType:p,children:i(e[0])}):l?(0,n.jsx)(n.Fragment,{children:l()}):(0,n.jsx)(r.A,{isTruncated:!0,color:u,children:(0,n.jsx)(o.sA,{id:"COMMON_FALLBACK"})})}},300626(e,t,i){i.d(t,{A:()=>a});var n=i(274934),r=i(309130),o=i(100978);const a=({children:e,tooltip:t})=>(0,n.jsxs)(o.A,{maxWidth:"100%",overflow:"hidden",gap:r.YC,alignItems:"center",children:[e?(0,n.jsx)(o.A,{flex:1,overflow:"hidden",children:e}):null,t]})},403118(e,t,i){i.d(t,{A:()=>d});var n=i(274934),r=i(376527),o=i(100978),a=i(470070),s=i(969288);const d=({policy:e})=>e.origin_id?(0,n.jsx)(o.A,{children:(0,n.jsx)(r.A,{to:`${s.Db}/${e.origin_id}`,children:(0,n.jsx)(a.sA,{id:"SETTINGS_OPEN_OBJECT"})})}):null},280674(e,t,i){i.d(t,{A:()=>h});var n=i(274934),r=i(977872),o=i(602086),a=i(986993),s=i(297640),d=i(470070),l=i(34118);const c=e=>"mac"in e,h=({client_macs:e})=>{const t=(0,r.d4)(l.GB),i=(0,o.useMemo)(()=>e.map(e=>t?.find(t=>c(t)&&t.mac===e)||{mac:e}),[e,t]);return i.length?(0,n.jsx)(a.A,{items:i,getItemKey:e=>(e=>"id"in e)(e)?e.id:e.mac,renderListItem:e=>c(e)?(0,n.jsx)(s.A,{mac:e.mac}):(e=>"name"in e)(e)?e.name:(0,n.jsx)(d.sA,{id:"COMMON_FALLBACK"}),renderMultipleItemsSummary:e=>(0,n.jsxs)(n.Fragment,{children:[e.length," ",(0,n.jsx)(d.sA,{id:"COMMON_DEVICES",values:{count:e.length}})]})}):(0,n.jsx)(d.sA,{id:"COMMON_FALLBACK"})}},1077(e,t,i){i.d(t,{A:()=>h});var n=i(274934),r=i(977872),o=i(602086),a=i(254590),s=i(600416),d=i(737364),l=i(470070),c=i(197571);const h=({network_ids:e})=>{const t=(0,r.d4)(c.Ct),i=(0,o.useMemo)(()=>t.filter(({_id:t})=>e?.includes(t)),[t,e]);return i.length?i.length>1?(0,n.jsx)(d.A,{enabled:!0,label:(0,n.jsx)(l.sA,{id:"COMMON_NETWORK_COUNT",values:{count:i.length}}),tooltipItems:i.map(({name:e})=>e)}):(0,s.Po)(i[0]?.name||a.L,!0,"pointer"):(0,n.jsx)(l.sA,{id:"COMMON_FALLBACK"})}},828196(e,t,i){i.d(t,{A:()=>c});var n=i(274934),r=i(938984),o=i(95032),a=i(247816),s=i(470070),d=i(664092);const l=(0,a.A)(r.A)`
  white-space: nowrap;
`,c=({id:e,color:t,values:i,children:r})=>(0,n.jsxs)(d.A,{children:[(0,n.jsx)(l,{color:"text-2",size:"medium",children:(0,n.jsx)(s.sA,{id:e,values:i})}),(0,n.jsx)(o.A,{color:t||"text-3",size:"medium",isTruncated:!0,children:r})]})},664092(e,t,i){i.d(t,{A:()=>l});var n=i(274934),r=i(247816),o=i(309130),a=i(100978),s=i(291508);const d=(0,r.A)(a.A,(0,s.A)("valueMaxWidth","keyMinWidth","compact"))`
  &:not(:last-child) {
    ${({compact:e})=>e?"":`margin-bottom: ${o.kc};`}
  }
  & > {
    &:nth-child(1) {
      min-width: ${({keyMinWidth:e})=>e}px;
    }
    &:nth-child(2) {
      max-width: ${({valueMaxWidth:e})=>e}px;
    }
  }
`,l=({children:e,valueMaxWidth:t=215,keyMinWidth:i=0,flexProps:r={},compact:a=!1})=>(0,n.jsx)(d,{width:"100%",justifyContent:"space-between",gap:o.kc,height:a?void 0:24,valueMaxWidth:t,keyMinWidth:i,compact:a,...r,children:e})},638644(e,t,i){i.d(t,{A:()=>o});var n=i(274934),r=i(938984);const o=({enabled:e,color:t,children:i,...o})=>(0,n.jsx)(r.A,{color:!1===e?"disabled":t||"inherit",size:"inherit",...o,children:i})},218333(e,t,i){i.d(t,{p:()=>r});var n=i(247816);i(409844).AH`
  th {
    span {
      font-size: 14px;
      font-weight: 600;
    }
    svg {
      width: 16px;
      height: 16px;
    }
  }
`;const r=(0,n.A)("div")`
  width: 100%;
  .${"truncate-text-tooltip"} {
    display: flex;
  }
`},600416(e,t,i){i.d(t,{Po:()=>m,eX:()=>h,rR:()=>c});var n=i(274934),r=i(125799),o=i(470070),a=i(398693),s=i(218333),d=i(638644),l=i(737364);const c=(e,t,i={},a={})=>s=>(0,n.jsx)(r.A,{portal:!0,description:e?(0,n.jsx)(o.sA,{id:e,values:a}):t,...i,children:s}),h=(e,t,i,r="default",o=!1)=>{const c=(0,n.jsx)(a.v,{text:t,textElement:(0,n.jsx)(d.A,{enabled:i,isTruncated:!0,children:t}),tooltipProps:{cursorType:r}});return(0,n.jsx)(s.p,{children:(0,n.jsx)(l.A,{label:c,tooltipItems:e,enabled:i,showMatchOppositeIcon:o})})},m=(e,t,i="default")=>(0,n.jsx)(a.v,{text:e,tooltipProps:{cursorType:i,style:{display:"grid"}},textProps:{isTruncated:!0,color:t?"inherit":"disabled",size:"inherit"}})}}]);