"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[17705,89965],{86571:(e,t,n)=>{n.d(t,{A:()=>a});var i=n(296540),r=n(217439),o=n(699784);const a=({id:e,children:t,values:n})=>i.createElement(r.A,{color:"text-1",weight:"bold",size:"medium"},e?i.createElement(o.sA,{id:e,values:n}):null,t)},112142:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(296540),r=n(271856),o=n(325898),a=(0,i.memo)(e=>{const{motif:t,width:n=194,left:a=0,top:c=0,topMargin:d,tooltipProps:l={},...u}=e,{motif:s}=(0,o.A)(t),m=d?d+10:l.offset;return i.createElement("div",{style:{position:"absolute",left:a,top:c}},i.createElement(r.A,{motif:s,width:n,animate:!1,isHoverable:!1,offset:m,...u,...l},i.createElement("div",null)))},(e,t)=>Boolean(t.hidden));function c(e){return null!==e&&("string"==typeof e?"%"===e.slice(-1):!isNaN(e))}(0,n(349005).A)(".tooltipContainer__Q9Q7ZKPc{opacity:1;pointer-events:none}.tooltipContainer__Q9Q7ZKPc.animated__Q9Q7ZKPc{transition-duration:.1s;transition-property:opacity;transition-timing-function:cubic-bezier(.25,0,.25,1)}.tooltipContainer__Q9Q7ZKPc.interactive__Q9Q7ZKPc{pointer-events:auto}.tooltipContainer__Q9Q7ZKPc.interactive__Q9Q7ZKPc.hidden__Q9Q7ZKPc{pointer-events:none}.tooltipContainer__Q9Q7ZKPc.hidden__Q9Q7ZKPc{opacity:0}");var d=n(722860),l=n(385941);const u=(0,d.c)({tooltipContainer:"tooltipContainer__Q9Q7ZKPc",animated:"animated__Q9Q7ZKPc",interactive:"interactive__Q9Q7ZKPc",hidden:"hidden__Q9Q7ZKPc"});var s=(0,i.memo)(i.forwardRef((e,t)=>{const{className:n,isAnimated:r=!0,delay:o,hidden:d=!1,top:s=0,left:m=0,isInteractive:h,message:p,title:f,description:g,children:b,...v}=e,{currentState:x,onStart:_,onComplete:k}=(0,l.T)(d,o),[A,E]=(0,i.useState)(!0),[Q,$]=(0,i.useState)({top:s,left:m,message:p,title:f,description:g,children:b});(0,i.useEffect)(()=>{E(!1)},[]),(0,i.useEffect)(()=>{d!==x&&(d?k:_)(d)},[d,x,_,k]),(0,i.useEffect)(()=>{d||$({top:s,left:m,message:p,title:f,description:g,children:b})},[d,s,m,p,f,g,b]);const w=!x&&c(m)&&c(s)&&!A;return i.createElement("div",{"data-testid":"svgtooltip",ref:t,className:u.concat(n)("tooltipContainer",!w&&"hidden",h&&"interactive",r&&"animated")},i.createElement(a,{hidden:x,top:Q.top,left:Q.left,isInteractive:h,message:Q.message,title:Q.title,description:Q.description,...v},Q.children))}))},216211:(e,t,n)=>{n.d(t,{e:()=>m});var i=n(956347),r=n(469733),o=n(296540),a=n(15095),c=n(627440),d=n(431247),l=n(293016),u=n(649413),s=n(497470);const m=()=>{const e=(0,r.useDispatch)(),t=(0,i.W6)(),n=(0,a.A)(`${c.VO.PORTS}`);return{handleGoToPortsPage:(0,o.useCallback)((i,r,o)=>{if(i)if(e((0,s.gU)(!0)),e((0,s.U)((0,u.HN)(l.F7.DEVICE,[i]))),o&&(e((0,s.IU)(!0)),e((0,s.E1)(!1))),r){const t=(0,d.FS)(i,r);e((0,s.Ao)([t]))}else e((0,s.Ao)([]));t.push(n)},[n,t,e])}}},340936:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(296540);function r(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:"contentBoxSize"===t?e.contentRect["inlineSize"===n?"width":"height"]:void 0}function o(e){void 0===e&&(e={});var t=e.onResize,n=(0,i.useRef)(void 0);n.current=t;var o=e.round||Math.round,a=(0,i.useRef)(),c=(0,i.useState)({width:void 0,height:void 0}),d=c[0],l=c[1],u=(0,i.useRef)(!1);(0,i.useEffect)(function(){return u.current=!1,function(){u.current=!0}},[]);var s=(0,i.useRef)({width:void 0,height:void 0}),m=function(e,t){var n=(0,i.useRef)(null),r=(0,i.useRef)(null);r.current=t;var o=(0,i.useRef)(null);(0,i.useEffect)(function(){a()});var a=(0,i.useCallback)(function(){var t=o.current,i=r.current,a=t||(i?i instanceof Element?i:i.current:null);n.current&&n.current.element===a&&n.current.subscriber===e||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:a,subscriber:e,cleanup:a?e(a):void 0})},[e]);return(0,i.useEffect)(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),(0,i.useCallback)(function(e){o.current=e,a()},[a])}((0,i.useCallback)(function(t){return a.current&&a.current.box===e.box&&a.current.round===o||(a.current={box:e.box,round:o,instance:new ResizeObserver(function(t){var i=t[0],a="border-box"===e.box?"borderBoxSize":"device-pixel-content-box"===e.box?"devicePixelContentBoxSize":"contentBoxSize",c=r(i,a,"inlineSize"),d=r(i,a,"blockSize"),m=c?o(c):void 0,h=d?o(d):void 0;if(s.current.width!==m||s.current.height!==h){var p={width:m,height:h};s.current.width=m,s.current.height=h,n.current?n.current(p):u.current||l(p)}})}),a.current.instance.observe(t,{box:e.box}),function(){a.current&&a.current.instance.unobserve(t)}},[e.box,o]),e.ref);return(0,i.useMemo)(function(){return{ref:m,width:d.width,height:d.height}},[m,d.width,d.height])}},689965:(e,t,n)=>{n.d(t,{A:()=>h,I:()=>i});var i,r=n(296540),o=n(822336),a=n(427853),c=n(71479),d=n(825032),l=n(566723),u=n(294303);!function(e){e.ACCORDION="accordion",e.BUTTON_LIST="buttonList"}(i||(i={}));const s=(0,c.A)(u.A,{shouldForwardProp:e=>!["marginBottom","isButtonList","margin","flex","width","padding","nested","background"].includes(e)})`
  background-color: ${({background:e,nested:t,theme:{themeName:n}})=>e||o.Ay[n===d.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  `:""}
`,m=(0,c.A)(a.A,{shouldForwardProp:e=>!["marginBottom","margin","flex","padding","nested","background"].includes(e)})`
  background-color: ${({background:e,nested:t,theme:{themeName:n}})=>e||o.Ay[n===d.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===d.S.DARK?"desktop-color-neutral-01-dark":"desktop-color-neutral-00-light"]};
      height: 48px;
      padding: 0 ${l.Ln};
    }
    > div:nth-child(2) {
      margin-bottom: 0;
      padding: 0 ${l.Ln} ${l.Ln};
      > div {
        padding: 0;
      }
    }
  }
`,h=({type:e,marginBottom:t,margin:n,padding:o,flex:a,width:c,nested:d,...l})=>"items"in l?r.createElement(m,{marginBottom:t,margin:n,padding:o,flex:a,nested:d,...l}):r.createElement(s,{nested:d,width:c,marginBottom:t,margin:n,padding:o,flex:a,isButtonList:e===i.BUTTON_LIST,...l},l.children)},698941:(e,t,n)=>{n.r(t),n.d(t,{default:()=>m});var i=n(469733),r=n(296540),o=n(87250),a=n(656372),c=n(780811),d=n(275357),l=n(540739),u=n(525901),s=n(470995);const m=({activeItem:{mac:e,model:t}})=>{const n=(0,i.useDispatch)(),m=(0,r.useMemo)(()=>(0,c.E4T)({model:t})?o.qv.AP:o.qv.UDB,[t]);return(0,r.useEffect)(()=>{n((0,a.aN)(e,m))},[n,e,m]),r.createElement(r.Fragment,null,r.createElement(u.A,{mac:e,model:t,logType:l.F.DEVICE,label:"COMMON_HISTORY",ignoreActionableValues:[d.dl.DEVICE],hideClientTabs:!0}),r.createElement(s.A,{mac:e,object:m}))}}}]);