"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[64874,89965],{39705:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(296540),i=n(705145),a=n(699784),o=n(115829),l=n(424135),s=n(819127);const c=function({items:e,renderMultipleItemsSummary:t,renderListItem:n,renderNoItems:c,getItemKey:d,enabled:m=!0,showListMarkers:p,cursorType:u,isInteractive:h}){const A=m?"inherit":"disabled";return e.length>1?r.createElement(l.A,{tooltip:r.createElement(s.A,{items:e,getItemKey:d,renderItem:n,showListMarkers:p,isInteractive:h,cursorType:u})},r.createElement(o.A,{color:A,cursorType:u},t(e))):1===e.length?r.createElement(o.A,{color:A,cursorType:u},n(e[0])):c?r.createElement(r.Fragment,null,c()):r.createElement(i.A,{isTruncated:!0,color:A},r.createElement(a.sA,{id:"COMMON_FALLBACK"}))}},113658:(e,t,n)=>{n.d(t,{v:()=>s});var r=n(296540),i=n(271856),a=n(927099);const o={size:"inherit",color:"inherit"},l={portal:!0,maxWidth:"unset",width:"auto",style:{display:"flex",alignItems:"center"}},s=({text:e,textElement:t,textProps:n,tooltipProps:s,isTooltipDisabled:c=!1})=>{const d=t||r.createElement(a.A,{...o,...n},e);return c?d:r.createElement(i.A,{...l,description:e,...s},d)}},203157:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(296540),i=n(271856),a=n(400270),o=n(566723),l=n(294303),s=n(699784);const c=({enabled:e})=>r.createElement(l.A,{opacity:e?void 0:o.xN},r.createElement(i.A,{description:r.createElement(s.sA,{id:"COMMON_MATCH_OPPOSITE"}),portal:!0},r.createElement(a.A,{size:"original"})))},229817:(e,t,n)=>{n.d(t,{A:()=>m});var r=n(469733),i=n(296540),a=n(705145),o=n(566723),l=n(294303),s=n(703447),c=n(951106),d=n(239417);const m=({mac:e})=>{const t=(0,r.useSelector)(d.GB).find(t=>"mac"in t&&t.mac===e)||{};return i.createElement(l.A,{gap:o.kc,alignItems:"center"},i.createElement(l.A,{maxWidth:16,maxHeight:16},i.createElement(s.A,{client:{mac:e,...t}})),i.createElement(a.A,{variant:"inherit",isTruncated:!0},(0,c.tn)(t||{})||e))}},269889:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(296540),i=n(927099);const a=({enabled:e,color:t,children:n,...a})=>r.createElement(i.A,{color:!1===e?"disabled":t||"inherit",size:"inherit",...a},n)},284428:(e,t,n)=>{n.d(t,{Im:()=>s,iL:()=>c,mQ:()=>o,pv:()=>a,q:()=>l});var r=n(296540),i=n(451449);function a(){return(0,r.useContext)(i.I)}function o(){return a().fields}function l(){return a().tooltipPopovers}function s(){return a().tooltipIcons}function c(){return a().labels}},321235:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(296540),i=n(217439),a=n(705145),o=n(71479),l=n(699784),s=n(360113);const c=(0,o.A)(i.A)`
  white-space: nowrap;
`,d=({id:e,color:t,values:n,children:i})=>r.createElement(s.A,null,r.createElement(c,{color:"text-2",size:"medium"},r.createElement(l.sA,{id:e,values:n})),r.createElement(a.A,{color:t||"text-3",size:"medium",isTruncated:!0},i))},360113:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(296540),i=n(71479),a=n(566723),o=n(294303);const l=(0,i.A)(o.A,{shouldForwardProp:e=>!["valueMaxWidth","keyMinWidth","compact"].includes(e)})`
  &:not(:last-child) {
    ${({compact:e})=>e?"":`margin-bottom: ${a.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:i={},compact:o=!1})=>r.createElement(l,{width:"100%",justifyContent:"space-between",gap:a.kc,height:o?void 0:24,valueMaxWidth:t,keyMinWidth:n,compact:o,...i},e)},363370:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(296540),i=n(928085),a=n(876773);const o=e=>{const t=(0,i.A)(e.to);return r.createElement(a.A,{...e,to:t})}},424135:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(296540),i=n(566723),a=n(294303);const o=({children:e,tooltip:t})=>r.createElement(a.A,{maxWidth:"100%",overflow:"hidden",gap:i.YC,alignItems:"center"},r.createElement(a.A,{flex:1,overflow:"hidden"},e),t)},451449:(e,t,n)=>{n.d(t,{I:()=>r});const r=(0,n(296540).createContext)({fields:!1,labels:!1,tooltipPopovers:!1,tooltipIcons:!1})},506538:(e,t,n)=>{n.d(t,{p:()=>i});var r=n(71479);n(132196).AH`
  th {
    span {
      font-size: 14px;
      font-weight: 600;
    }
    svg {
      width: 16px;
      height: 16px;
    }
  }
`;const i=(0,r.A)("div")`
  width: 100%;
  .${"truncate-text-tooltip"} {
    display: flex;
  }
`},524803:(e,t,n)=>{n.d(t,{Po:()=>p,eX:()=>m,rR:()=>d});var r=n(296540),i=n(271856),a=n(699784),o=n(113658),l=n(506538),s=n(269889),c=n(802123);const d=(e,t,n={},o={})=>l=>r.createElement(i.A,{portal:!0,description:e?r.createElement(a.sA,{id:e,values:o}):t,...n},l),m=(e,t,n,i="default",a=!1)=>{const d=r.createElement(o.v,{text:t,textElement:r.createElement(s.A,{enabled:n,truncate:!0},t),tooltipProps:{cursorType:i}});return r.createElement(l.p,null,r.createElement(c.A,{label:d,tooltipItems:e,enabled:n,showMatchOppositeIcon:a}))},p=(e,t,n="default")=>r.createElement(o.v,{text:e,tooltipProps:{cursorType:n,style:{display:"grid"}},textProps:{truncate:!0,color:t?"inherit":"disabled",size:"inherit"}})},527927:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(469733),i=n(296540),a=n(39705),o=n(229817),l=n(699784),s=n(239417);const c=e=>"mac"in e,d=({client_macs:e})=>{const t=(0,r.useSelector)(s.GB),n=(0,i.useMemo)(()=>e.map(e=>t?.find(t=>c(t)&&t.mac===e)||{mac:e}),[e,t]);return n.length?i.createElement(a.A,{items:n,getItemKey:e=>(e=>"id"in e)(e)?e.id:e.mac,renderListItem:e=>c(e)?i.createElement(o.A,{mac:e.mac}):(e=>"name"in e)(e)?e.name:i.createElement(l.sA,{id:"COMMON_FALLBACK"}),renderMultipleItemsSummary:e=>i.createElement(i.Fragment,null,e.length," ",i.createElement(l.sA,{id:"COMMON_DEVICES",values:{count:e.length}}))}):i.createElement(l.sA,{id:"COMMON_FALLBACK"})}},530813:(e,t,n)=>{n.d(t,{A:()=>u,d:()=>p});var r=n(296540),i=n(217439),a=n(705145),o=n(71479),l=n(311785),s=n(566723),c=n(699784),d=n(795097),m=n(294303);const p=(0,o.A)(d.A,(0,l.A)("showListMarkers","gap"))`
  padding-left: ${({showListMarkers:e})=>e?s.Ln:0};
  display: flex;
  flex-direction: column;
  gap: ${({gap:e})=>e??s.YC};

  > li {
    list-style-type: ${({showListMarkers:e})=>e?"disc":"none"};
  }
`;const u=function({items:e,getItemKey:t,renderItem:n,maxItemCount:o=20,renderShowMore:l,showListMarkers:d,listGap:u}){return r.createElement(m.A,{flexDirection:"column",gap:s.YC},r.createElement(p,{showListMarkers:d,gap:u},e.slice(0,o).map((e,i)=>r.createElement("li",{key:t(e,i)},r.createElement(a.A,{variant:"inherit",isTruncated:!0},n(e))))),o&&e.length>o?l?l(e):r.createElement(i.A,{variant:"inherit"},r.createElement(c.sA,{id:"COMMON_X_MORE",values:{count:e.length-o}})):null)}},689965:(e,t,n)=>{n.d(t,{A:()=>u,I:()=>r});var r,i=n(296540),a=n(822336),o=n(427853),l=n(71479),s=n(825032),c=n(566723),d=n(294303);!function(e){e.ACCORDION="accordion",e.BUTTON_LIST="buttonList"}(r||(r={}));const m=(0,l.A)(d.A,{shouldForwardProp:e=>!["marginBottom","isButtonList","margin","flex","width","padding","nested","background"].includes(e)})`
  background-color: ${({background:e,nested:t,theme:{themeName:n}})=>e||a.Ay[n===s.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}})=>a.Ay[`desktop-border-divider-${e}`]};\n      &:last-child {\n        border-bottom: none;\n      }\n    }\n  `:""}
`,p=(0,l.A)(o.A,{shouldForwardProp:e=>!["marginBottom","margin","flex","padding","nested","background"].includes(e)})`
  background-color: ${({background:e,nested:t,theme:{themeName:n}})=>e||a.Ay[n===s.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||a.Ay[t===s.S.DARK?"desktop-color-neutral-01-dark":"desktop-color-neutral-00-light"]};
      height: 48px;
      padding: 0 ${c.Ln};
    }
    > div:nth-child(2) {
      margin-bottom: 0;
      padding: 0 ${c.Ln} ${c.Ln};
      > div {
        padding: 0;
      }
    }
  }
`,u=({type:e,marginBottom:t,margin:n,padding:a,flex:o,width:l,nested:s,...c})=>"items"in c?i.createElement(p,{marginBottom:t,margin:n,padding:a,flex:o,nested:s,...c}):i.createElement(m,{nested:s,width:l,marginBottom:t,margin:n,padding:a,flex:o,isButtonList:e===r.BUTTON_LIST,...c},c.children)},713590:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(469733),i=n(296540),a=n(573531),o=n(524803),l=n(802123),s=n(699784),c=n(366188);const d=({network_ids:e})=>{const t=(0,r.useSelector)(c.Ct),n=(0,i.useMemo)(()=>t.filter(({_id:t})=>e?.includes(t)),[t,e]);return n.length?n.length>1?i.createElement(l.A,{enabled:!0,label:i.createElement(s.sA,{id:"COMMON_NETWORK_COUNT",values:{count:n.length}}),tooltipItems:n.map(({name:e})=>e)}):(0,o.Po)(n[0]?.name||a.L,!0,"pointer"):i.createElement(s.sA,{id:"COMMON_FALLBACK"})}},766624:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(296540),i=n(271856),a=n(709690),o=n(284428),l=n(566723);const s=({description:e,isInteractive:t,portal:n=!0,cursorType:s,title:c,position:d,width:m,iconProps:p,disabled:u=!1})=>{const h=(0,o.Im)()||u,A=(0,o.q)();return r.createElement(i.A,{description:e,portal:n,isInteractive:t,style:{display:"flex",alignItems:"center"},cursorType:s,title:c,position:d,width:m,disableHover:A},r.createElement(a.A,{isActive:!0,size:"original",opacity:h?l.xN:void 0,...p}))}},791403:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(296540),i=n(363370),a=n(294303),o=n(699784),l=n(959341);const s=({policy:e})=>e.origin_id?r.createElement(a.A,null,r.createElement(i.A,{to:`${l.Db}/${e.origin_id}`},r.createElement(o.sA,{id:"SETTINGS_OPEN_OBJECT"}))):null},795097:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(71479),i=n(566723);const a=(0,r.A)("ul")`
  padding-left: ${i.Er};
  margin-bottom: 0;
  margin-top: 0;
`},802123:(e,t,n)=>{n.d(t,{A:()=>p});var r=n(296540),i=n(758649),a=n(566723),o=n(203157),l=n(294303),s=n(699784),c=n(115829),d=n(424135),m=n(819127);const p=({enabled:e,label:t,tooltipItems:n,neverShowListMarkers:p,limit:u=20,seeMoreCallback:h,isInteractive:A,title:g,showMatchOppositeIcon:E,listGap:v})=>r.createElement(l.A,{flex:1,overflow:"hidden",gap:a.YC},E?r.createElement(o.A,{enabled:e}):null,r.createElement(d.A,{tooltip:r.createElement(m.A,{title:g,position:"top",isInteractive:Boolean(h)||A,items:n,showListMarkers:!p,maxItemCount:u,getItemKey:(e,t)=>t,renderItem:e=>e,listGap:v,renderShowMore:h?()=>r.createElement(i.A,{variant:"inline",onClick:h},r.createElement(s.sA,{id:"COMMON_SEE_MORE"})):void 0})},t?r.createElement(c.A,{color:e?"inherit":"disabled"},t):null))},819127:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(296540),i=n(766624),a=n(530813);const o=function({items:e,getItemKey:t,renderItem:n,maxItemCount:o,renderShowMore:l,showListMarkers:s,title:c,position:d,isInteractive:m,cursorType:p,listGap:u}){return r.createElement(i.A,{title:c,position:d,isInteractive:m,cursorType:p,description:r.createElement(a.A,{items:e,getItemKey:t,renderItem:n,maxItemCount:o,listGap:u,renderShowMore:l,showListMarkers:s})})}},876773:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(296540),i=n(758649),a=n(196010);const o=e=>r.createElement(i.A,{component:a.A,variant:"inline",size:"medium",...e})}}]);