"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[11673,83102],{762934(e,t,a){a.r(t),a.d(t,{default:()=>F});var r=a(296540),n=a(956347),l=a(136048),c=a(817935),s=a(929573),o=a(98160),i=a(17724),E=a(627440),u=a(596731),A=a(118835),m=a(616660),O=a(864768),d=a(260183),T=a(672773);const S=`${u.eu}/${E.VO.CLIENTS}/${A.M.HOTSPOT}/${u.hH}`,{footer:p,columns:f,editor:N,children:g}=T.O[A.M.HOTSPOT]||{},I=p,_=f,h=N,C=g;var k=a(469733),M=a(834959),R=a(604482),b=a(413357),D=a(165758),H=a(793177),L=a(105540),w=a(736388),U=a(422969),y=a(701201);const P=e=>{const t=(0,k.useSelector)(H.j7),a=(0,r.useMemo)(()=>(0,D.Z)(A.M.HOTSPOT,t),[t]);return(0,U.A)([(0,b.Zi)(M.B.HOTSPOT),(0,b.Zi)(M.B.CLIENTS)],r.createElement(r.Suspense,{fallback:null},r.createElement(L.A,{leftFilterPageId:R.g1.ISOLATED_HOTSPOT_MANAGER,content:r.createElement(w.A,{leftFilterPageId:R.g1.CLIENTS,leftFilterColumnsId:a,footer:I,columns:_,editor:h},C)},r.createElement(y.A,null))))},F=({location:{key:e},match:{params:t},showNetworkServerHeader:a})=>{(0,r.useEffect)(()=>{O.A.captureMessage(O.A.NetworkSentryMessage.hotspotManagerRedirect)},[]);const T=(0,r.useCallback)(()=>(0,n.tW)(u.Si[E.VO.CLIENTS],{...t,section:A.M.HOTSPOT,subSection:m.z.GUESTS}),[t]);return r.createElement(r.Fragment,null,a?r.createElement(i.default,null):null,r.createElement(o.A,null,r.createElement(d.N,null,r.createElement(r.Suspense,{fallback:null},r.createElement(n.dO,null,r.createElement(l.F,{path:S,component:P}),r.createElement(n.rd,{from:"*",to:T()}))),r.createElement(s.default,{key:e}),r.createElement(c.default,null))))}},183989(e,t,a){a.d(t,{aQ:()=>i,bB:()=>o});var r=a(489050),n=a(789768),l=a(953141),c=a(16795);const s=e=>({error:e,type:c.ID}),o=()=>e=>{r.K.post("/api/logout").then(()=>e((0,n.oX)()))},i=e=>async t=>{await t({type:c.V8});try{return await r.K.post("/api/login",{strict:!0,...e}),t(async e=>e({type:c.FE}))}catch(e){const{response:a}=e;if(400===a?.status&&a?.data)switch(a.data?.meta?.msg){case l.ApiString.apiErrUbic2faTokenRequired:return t(((e=!1)=>({type:c.HH,payload:{require2Fa:e}}))(!0));case l.ApiString.apiErrInvalid2FAToken:return t(s("COMMON_VALIDATION_INVALID_2FA_TOKEN"))}return t(s(400===a?.status?"COMMON_VALIDATION_INVALID_USERNAME_OR_PASSWORD":"COMMON_NOTICE_REQUEST_ERROR"))}}},17724(e,t,a){a.r(t),a.d(t,{default:()=>D});var r=a(296540),n=a(469733),l=a(217439),c=a(932837),s=a(758649),o=a(566198),i=a(256126),E=a(451919),u=a(510497),A=a(801081),m=a(139587),O=a(276907),d=a(919952);const T=(0,A.Mz)(e=>e[d.U.SHARED][O.N.LOADER_ADAPTER],e=>e[m.V.REASONS]);var S=a(294303),p=a(183989),f=a(916537),N=a(602021),g=a(968906),I=a(227598),_=a(633620),h=a(427463),C=a(71479),k=a(566723);const M=(0,C.A)(_.A)`
  margin-right: ${k.Ln};
  height: 24px;
  width: 24px;
`,R=(0,C.A)(h.A)`
  margin-right: ${k.kc};
  height: 16px;
  width: 16px;
`,b=(0,C.A)(I.A)`
  left: 50px;
`,D=()=>{const e=(0,n.useDispatch)(),t=(0,n.useSelector)(T),a=(0,n.useSelector)(N.AF),A=(0,n.useSelector)(N.LF),m=(0,r.useCallback)(()=>{a&&u.u.setItem(E.lP.HOTSPOT_LOGOUT_SITE_NAME,A),e((0,p.bB)())},[e,a,A]),O=(0,r.useCallback)(()=>r.createElement(S.A,{...g.A.addDataTestId(g.A.TestId.HEADER_USERICON)},r.createElement(M,{actionable:!0})),[]);return r.createElement(o.A,{size:"classic",title:r.createElement(l.A,{size:"xlarge-1",weight:"regular",color:"text-3"},r.createElement(f.sA,{id:"COMMON_NETWORK"})),icon:r.createElement(i.A,{size:"full"})},t.length?r.createElement(b,{isLoading:!0,placement:"bottom"}):null,r.createElement(S.A,null,r.createElement(c.A,{renderToggle:O,size:"small",align:"bottomCenter",toggleOffset:8},r.createElement(S.A,{alignContent:"center"},r.createElement(R,{isActive:!0}),r.createElement(s.A,{type:"button",variant:"inline",onClick:m,...g.A.addDataTestId(g.A.TestId.HEADER_SIGNOUT_BUTTON)},r.createElement(f.sA,{id:"COMMON_HEADER_USER_PROFILE_SIGN_OUT"}))))))}},489050(e,t,a){a.d(t,{K:()=>s,o:()=>c});var r=a(272505),n=a.n(r);const l=n().create({baseURL:"/",withCredentials:!0,xsrfCookieName:"csrf_token",xsrfHeaderName:"X-Csrf-Token"}),c=n().create();l.interceptors.response.use(e=>e.data&&e.data instanceof ArrayBuffer?e:{...e,data:e.data.data,meta:e.data.meta});const s=l}}]);