"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[64874],{113658(e,t,n){n.d(t,{v:()=>c});var i=n(296540),r=n(271856),o=n(217439);const a={size:"inherit",color:"inherit"},l={portal:!0,maxWidth:"unset",width:"auto",style:{display:"flex",alignItems:"center"}},c=({text:e,textElement:t,textProps:n,tooltipProps:c,isTooltipDisabled:s=!1})=>{const d=t||i.createElement(o.A,{...a,...n},e);return s?d:i.createElement(r.A,{...l,description:e,...c},d)}},689965(e,t,n){n.d(t,{A:()=>u,I:()=>i});var i,r=n(296540),o=n(822336),a=n(963724),l=n(71479),c=n(825032),s=n(566723),d=n(294303),m=n(311785);!function(e){e.ACCORDION="accordion",e.BUTTON_LIST="buttonList"}(i||(i={}));const p=(0,l.A)(d.A,(0,m.A)("marginBottom","isButtonList","margin","flex","width","padding","nested","background"))`
  background-color: ${({background:e,nested:t,theme:{themeName:n}})=>e||o.Ay[n===c.S.DARK?`desktop-color-neutral-${t?"00":"01"}-dark`:`desktop-color-neutral-${t?"01":"00"}-light`]};
  padding: ${({theme:e,isButtonList:t,padding:n})=>n||(t?`0 ${e.spacing["spacing-l"]}`:e.spacing["spacing-l"])};
  margin-bottom: ${({theme:e,marginBottom:t})=>t||e.spacing["spacing-l"]};
  ${({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  `:""}
`,h=(0,l.A)(a.A,(0,m.A)("marginBottom","margin","flex","padding","nested","background"))`
  background-color: ${({background:e,nested:t,theme:{themeName:n}})=>e||o.Ay[n===c.S.DARK?`desktop-color-neutral-${t?"00":"01"}-dark`:`desktop-color-neutral-${t?"01":"00"}-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===c.S.DARK?"desktop-color-neutral-01-dark":"desktop-color-neutral-00-light"]};
      height: 48px;
      padding: 0 ${s.Ln};
    }
    > div:nth-child(2) {
      margin-bottom: 0;
      padding: 0;
      > div {
        padding: 0 ${s.Ln} ${s.Ln};
      }
    }
  }
`,u=({type:e,marginBottom:t,margin:n,padding:o,flex:a,width:l,nested:c,...s})=>"items"in s?r.createElement(h,{marginBottom:t,margin:n,padding:o,flex:a,nested:c,...s}):r.createElement(p,{nested:c,width:l,marginBottom:t,margin:n,padding:o,flex:a,isButtonList:e===i.BUTTON_LIST,...s},s.children)},229817(e,t,n){n.d(t,{A:()=>m});var i=n(469733),r=n(296540),o=n(705145),a=n(566723),l=n(294303),c=n(703447),s=n(951106),d=n(239417);const m=({mac:e})=>{const t=(0,i.useSelector)(d.GB).find(t=>"mac"in t&&t.mac===e)||{};return r.createElement(l.A,{gap:a.kc,alignItems:"center"},r.createElement(l.A,{maxWidth:16,maxHeight:16},r.createElement(c.A,{client:{mac:e,...t}})),r.createElement(o.A,{variant:"inherit",isTruncated:!0},(0,s.tn)(t||{})||e))}},876773(e,t,n){n.d(t,{A:()=>a});var i=n(296540),r=n(758649),o=n(196010);const a=e=>i.createElement(r.A,{component:o.A,variant:"inline",size:"medium",...e})},363370(e,t,n){n.d(t,{A:()=>a});var i=n(296540),r=n(928085),o=n(876773);const a=e=>{const t=(0,r.A)(e.to);return i.createElement(o.A,{...e,to:t})}},802123(e,t,n){n.d(t,{A:()=>p});var i=n(296540),r=n(758649),o=n(566723),a=n(203157),l=n(294303),c=n(916537),s=n(115829),d=n(424135),m=n(819127);const p=({enabled:e,label:t,tooltipItems:n,neverShowListMarkers:p,limit:h=20,seeMoreCallback:u,isInteractive:A,title:g,showMatchOppositeIcon:E,listGap:v,iconProps:x})=>i.createElement(l.A,{flex:1,overflow:"hidden",gap:o.YC},E?i.createElement(a.A,{enabled:e}):null,i.createElement(d.A,{tooltip:i.createElement(m.A,{title:g,position:"top",isInteractive:Boolean(u)||A,items:n,showListMarkers:!p,maxItemCount:h,getItemKey:(e,t)=>t,renderItem:e=>e,listGap:v,renderShowMore:u?()=>i.createElement(r.A,{variant:"inline",onClick:u},i.createElement(c.sA,{id:"COMMON_SEE_MORE"})):void 0,iconProps:x})},t?i.createElement(s.A,{color:e?"inherit":"disabled"},t):null))},819127(e,t,n){n.d(t,{A:()=>a});var i=n(296540),r=n(766624),o=n(530813);const a=function({items:e,getItemKey:t,renderItem:n,maxItemCount:a,renderShowMore:l,showListMarkers:c,title:s,position:d,isInteractive:m,cursorType:p,listGap:h,iconProps:u}){return i.createElement(r.A,{title:s,position:d,isInteractive:m,cursorType:p,description:i.createElement(o.A,{items:e,getItemKey:t,renderItem:n,maxItemCount:a,listGap:h,renderShowMore:l,showListMarkers:c}),iconProps:u})}},203157(e,t,n){n.d(t,{A:()=>s});var i=n(296540),r=n(271856),o=n(400270),a=n(566723),l=n(294303),c=n(916537);const s=({enabled:e})=>i.createElement(l.A,{opacity:e?void 0:a.xN},i.createElement(r.A,{description:i.createElement(c.sA,{id:"COMMON_MATCH_OPPOSITE"}),portal:!0},i.createElement(o.A,{size:"original"})))},39705(e,t,n){n.d(t,{A:()=>s});var i=n(296540),r=n(705145),o=n(916537),a=n(115829),l=n(424135),c=n(819127);const s=function({items:e,renderMultipleItemsSummary:t,renderListItem:n,renderNoItems:s,getItemKey:d,enabled:m=!0,showListMarkers:p,cursorType:h,isInteractive:u}){const A=m?"inherit":"disabled";return e.length>1?i.createElement(l.A,{tooltip:i.createElement(c.A,{items:e,getItemKey:d,renderItem:n,showListMarkers:p,isInteractive:u,cursorType:h})},i.createElement(a.A,{color:A,cursorType:h},t(e))):1===e.length?i.createElement(a.A,{color:A,cursorType:h},n(e[0])):s?i.createElement(i.Fragment,null,s()):i.createElement(r.A,{isTruncated:!0,color:A},i.createElement(o.sA,{id:"COMMON_FALLBACK"}))}},424135(e,t,n){n.d(t,{A:()=>a});var i=n(296540),r=n(566723),o=n(294303);const a=({children:e,tooltip:t})=>i.createElement(o.A,{maxWidth:"100%",overflow:"hidden",gap:r.YC,alignItems:"center"},e?i.createElement(o.A,{flex:1,overflow:"hidden"},e):null,t)},791403(e,t,n){n.d(t,{A:()=>c});var i=n(296540),r=n(363370),o=n(294303),a=n(916537),l=n(959341);const c=({policy:e})=>e.origin_id?i.createElement(o.A,null,i.createElement(r.A,{to:`${l.Db}/${e.origin_id}`},i.createElement(a.sA,{id:"SETTINGS_OPEN_OBJECT"}))):null},527927(e,t,n){n.d(t,{A:()=>d});var i=n(469733),r=n(296540),o=n(39705),a=n(229817),l=n(916537),c=n(239417);const s=e=>"mac"in e,d=({client_macs:e})=>{const t=(0,i.useSelector)(c.GB),n=(0,r.useMemo)(()=>e.map(e=>t?.find(t=>s(t)&&t.mac===e)||{mac:e}),[e,t]);return n.length?r.createElement(o.A,{items:n,getItemKey:e=>(e=>"id"in e)(e)?e.id:e.mac,renderListItem:e=>s(e)?r.createElement(a.A,{mac:e.mac}):(e=>"name"in e)(e)?e.name:r.createElement(l.sA,{id:"COMMON_FALLBACK"}),renderMultipleItemsSummary:e=>r.createElement(r.Fragment,null,e.length," ",r.createElement(l.sA,{id:"COMMON_DEVICES",values:{count:e.length}}))}):r.createElement(l.sA,{id:"COMMON_FALLBACK"})}},713590(e,t,n){n.d(t,{A:()=>d});var i=n(469733),r=n(296540),o=n(573531),a=n(524803),l=n(802123),c=n(916537),s=n(366188);const d=({network_ids:e})=>{const t=(0,i.useSelector)(s.Ct),n=(0,r.useMemo)(()=>t.filter(({_id:t})=>e?.includes(t)),[t,e]);return n.length?n.length>1?r.createElement(l.A,{enabled:!0,label:r.createElement(c.sA,{id:"COMMON_NETWORK_COUNT",values:{count:n.length}}),tooltipItems:n.map(({name:e})=>e)}):(0,a.Po)(n[0]?.name||o.L,!0,"pointer"):r.createElement(c.sA,{id:"COMMON_FALLBACK"})}},321235(e,t,n){n.d(t,{A:()=>d});var i=n(296540),r=n(217439),o=n(705145),a=n(71479),l=n(916537),c=n(360113);const s=(0,a.A)(r.A)`
  white-space: nowrap;
`,d=({id:e,color:t,values:n,children:r})=>i.createElement(c.A,null,i.createElement(s,{color:"text-2",size:"medium"},i.createElement(l.sA,{id:e,values:n})),i.createElement(o.A,{color:t||"text-3",size:"medium",isTruncated:!0},r))},360113(e,t,n){n.d(t,{A:()=>s});var i=n(296540),r=n(71479),o=n(566723),a=n(294303),l=n(311785);const c=(0,r.A)(a.A,(0,l.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;
    }
  }
`,s=({children:e,valueMaxWidth:t=215,keyMinWidth:n=0,flexProps:r={},compact:a=!1})=>i.createElement(c,{width:"100%",justifyContent:"space-between",gap:o.kc,height:a?void 0:24,valueMaxWidth:t,keyMinWidth:n,compact:a,...r},e)},269889(e,t,n){n.d(t,{A:()=>o});var i=n(296540),r=n(217439);const o=({enabled:e,color:t,children:n,...o})=>i.createElement(r.A,{color:!1===e?"disabled":t||"inherit",size:"inherit",...o},n)},506538(e,t,n){n.d(t,{p:()=>r});var i=n(71479);n(132196).AH`
  th {
    span {
      font-size: 14px;
      font-weight: 600;
    }
    svg {
      width: 16px;
      height: 16px;
    }
  }
`;const r=(0,i.A)("div")`
  width: 100%;
  .${"truncate-text-tooltip"} {
    display: flex;
  }
`},766624(e,t,n){n.d(t,{A:()=>c});var i=n(296540),r=n(271856),o=n(709690),a=n(284428),l=n(566723);const c=({description:e,isInteractive:t,portal:n=!0,cursorType:c,title:s,position:d,width:m,iconProps:p,disabled:h=!1})=>{const u=(0,a.Im)()||h,A=(0,a.q)();return i.createElement(r.A,{description:e,portal:n,isInteractive:t,style:{display:"flex",alignItems:"center"},cursorType:c,title:s,position:d,width:m,disableHover:A},i.createElement(o.A,{isActive:!0,size:"original",opacity:u?l.xN:void 0,...p}))}},524803(e,t,n){n.d(t,{Po:()=>p,eX:()=>m,rR:()=>d});var i=n(296540),r=n(271856),o=n(916537),a=n(113658),l=n(506538),c=n(269889),s=n(802123);const d=(e,t,n={},a={})=>l=>i.createElement(r.A,{portal:!0,description:e?i.createElement(o.sA,{id:e,values:a}):t,...n},l),m=(e,t,n,r="default",o=!1)=>{const d=i.createElement(a.v,{text:t,textElement:i.createElement(c.A,{enabled:n,isTruncated:!0},t),tooltipProps:{cursorType:r}});return i.createElement(l.p,null,i.createElement(s.A,{label:d,tooltipItems:e,enabled:n,showMatchOppositeIcon:o}))},p=(e,t,n="default")=>i.createElement(a.v,{text:e,tooltipProps:{cursorType:n,style:{display:"grid"}},textProps:{isTruncated:!0,color:t?"inherit":"disabled",size:"inherit"}})},451449(e,t,n){n.d(t,{I:()=>i});const i=(0,n(296540).createContext)({fields:!1,labels:!1,tooltipPopovers:!1,tooltipIcons:!1})},284428(e,t,n){n.d(t,{Im:()=>c,iL:()=>s,mQ:()=>a,pv:()=>o,q:()=>l});var i=n(296540),r=n(451449);function o(){return(0,i.useContext)(r.I)}function a(){return o().fields}function l(){return o().tooltipPopovers}function c(){return o().tooltipIcons}function s(){return o().labels}}}]);