"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[1673],{17724:(e,t,l)=>{l.r(t),l.d(t,{default:()=>U});var a=l(296540),n=l(469733),i=l(256126),r=l(927099),c=l(566198),s=l(832914),A=l(758649),E=l(459449),o=l(183989),m=l(294303),u=l(801081),d=l(919952),O=l(276907),g=l(139587);const h=(0,u.Mz)(e=>e[d.U.SHARED][O.N.LOADER_ADAPTER],e=>e[g.V.REASONS]);var T=l(602021),_=l(510497),N=l(451919),S=l(968906),p=l(427463),R=l(633620),k=l(71479),C=l(227598),I=l(566723);const b=(0,k.A)(R.A)`
  margin-right: ${I.Ln};
  height: 24px;
  width: 24px;
`,f=(0,k.A)(p.A)`
  margin-right: ${I.kc};
  height: 16px;
  width: 16px;
`,D=(0,k.A)(C.A)`
  left: 50px;
`,U=()=>{const e=(0,n.useDispatch)(),t=(0,n.useSelector)(h),l=(0,n.useSelector)(T.AF),u=(0,n.useSelector)(T.LF),d=(0,a.useCallback)(()=>{l&&_.u.setItem(N.lP.HOTSPOT_LOGOUT_SITE_NAME,u),e((0,o.bB)())},[e,l,u]),O=(0,a.useCallback)(()=>a.createElement(m.A,{...S.A.addDataTestId(S.A.TestId.HEADER_USERICON)},a.createElement(b,{actionable:!0})),[]);return a.createElement(c.A,{size:"classic",title:a.createElement(r.A,{size:"header-s",weight:"normal",color:"tertiary"},a.createElement(E.sA,{id:"COMMON_NETWORK"})),icon:a.createElement(i.A,{size:"full"})},t.length?a.createElement(D,{isLoading:!0,placement:"bottom"}):null,a.createElement(m.A,null,a.createElement(s.A,{renderToggle:O,size:"small",align:"bottomCenter",toggleOffset:8},a.createElement(m.A,{alignContent:"center"},a.createElement(f,{isActive:!0}),a.createElement(A.A,{type:"button",variant:"inline",onClick:d,...S.A.addDataTestId(S.A.TestId.HEADER_SIGNOUT_BUTTON)},a.createElement(E.sA,{id:"COMMON_HEADER_USER_PROFILE_SIGN_OUT"}))))))}}}]);