"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[11673,83102],{858163(e,t,s){s.r(t),s.d(t,{default:()=>C});var a=s(274934),r=s(602086),n=s(237725),i=s(309920),l=s(17696),c=s(159305),o=s(74307),d=s(864578),A=s(104997),u=s(331302),O=s(635496),T=s(911851),h=s(758489),S=s(53328);const x=`${u.eu}/${A.VO.CLIENTS}/${O.M.HOTSPOT}/${u.hH}`;var E=s(213920),p=s(222361),f=s(401004),N=s(96732),g=s(645648),I=s(692),_=s(724081),j=s(20687);const m=({match:{params:{subSection:e=T.z.GUESTS}}})=>{const t=(0,r.useMemo)(()=>(0,N.Z)(O.M.HOTSPOT,e),[e]),{footer:s,columns:n,editor:i,children:l}=(0,r.useMemo)(()=>(0,N.u)(e)[O.M.HOTSPOT]||{},[e]);return(0,_.A)([(0,f.Zi)(E.B.HOTSPOT),(0,f.Zi)(E.B.CLIENTS)],(0,a.jsx)(r.Suspense,{fallback:null,children:(0,a.jsx)(g.A,{leftFilterPageId:p.g1.ISOLATED_HOTSPOT_MANAGER,content:(0,a.jsx)(I.A,{leftFilterPageId:p.g1.CLIENTS,leftFilterColumnsId:t,footer:s,columns:n,editor:i,children:l}),children:(0,a.jsx)(j.A,{subSection:e})})}))},C=({location:{key:e},match:{params:t},showNetworkServerHeader:s})=>{(0,r.useEffect)(()=>{h.A.captureMessage(h.A.NetworkSentryMessage.hotspotManagerRedirect)},[]);const E=(0,r.useCallback)(()=>(0,n.tW)(u.Si[A.VO.CLIENTS],{...t,section:O.M.HOTSPOT,subSection:T.z.GUESTS}),[t]);return(0,a.jsxs)(a.Fragment,{children:[s?(0,a.jsx)(d.default,{}):null,(0,a.jsx)(o.A,{children:(0,a.jsxs)(S.N,{children:[(0,a.jsx)(r.Suspense,{fallback:null,children:(0,a.jsxs)(n.dO,{children:[(0,a.jsx)(i.F,{path:x,component:m}),(0,a.jsx)(n.rd,{from:"*",to:E()})]})}),(0,a.jsx)(c.default,{},e),(0,a.jsx)(l.default,{})]})})]})}},35332(e,t,s){s.d(t,{aQ:()=>o,bB:()=>c});var a=s(197003),r=s(158402),n=s(352210),i=s(608958);const l=e=>({error:e,type:i.ID}),c=()=>e=>{a.K.post("/api/logout").then(()=>e((0,r.oX)()))},o=e=>async t=>{await t({type:i.V8});try{return await a.K.post("/api/login",{strict:!0,...e}),t(async e=>e({type:i.FE}))}catch(e){const{response:s}=e;if(400===s?.status&&s?.data)switch(s.data?.meta?.msg){case n.ApiString.apiErrUbic2faTokenRequired:return t(((e=!1)=>({type:i.HH,payload:{require2Fa:e}}))(!0));case n.ApiString.apiErrInvalid2FAToken:return t(l("COMMON_VALIDATION_INVALID_2FA_TOKEN"))}return t(l(400===s?.status?"COMMON_VALIDATION_INVALID_USERNAME_OR_PASSWORD":"COMMON_NOTICE_REQUEST_ERROR"))}}},864578(e,t,s){s.r(t),s.d(t,{default:()=>b});var a=s(274934),r=s(602086),n=s(977872),i=s(938984),l=s(98499),c=s(599110),o=s(160182),d=s(643747),A=s(482748),u=s(607856),O=s(222102),T=s(892450),h=s(573534),S=s(172205);const x=(0,O.Mz)(e=>e[S.U.SHARED][h.N.LOADER_ADAPTER],e=>e[T.V.REASONS]);var E=s(100978),p=s(35332),f=s(470070),N=s(897166),g=s(590979),I=s(813209),_=s(722545),j=s(143050),m=s(247816),C=s(309130);const M=(0,m.A)(_.A)`
  margin-right: ${C.Ln};
  height: 24px;
  width: 24px;
`,R=(0,m.A)(j.A)`
  margin-right: ${C.kc};
  height: 16px;
  width: 16px;
`,k=(0,m.A)(I.A)`
  left: 50px;
`,b=()=>{const e=(0,n.wA)(),t=(0,n.d4)(x),s=(0,n.d4)(N.AF),O=(0,n.d4)(N.LF),T=(0,r.useCallback)(()=>{s&&u.u.setItem(A.lP.HOTSPOT_LOGOUT_SITE_NAME,O),e((0,p.bB)())},[e,s,O]),h=(0,r.useCallback)(()=>(0,a.jsx)(E.A,{...g.A.addDataTestId(g.A.TestId.HEADER_USERICON),children:(0,a.jsx)(M,{actionable:!0})}),[]);return(0,a.jsxs)(o.A,{size:"classic",title:(0,a.jsx)(i.A,{size:"xlarge-1",weight:"regular",color:"text-3",children:(0,a.jsx)(f.sA,{id:"COMMON_NETWORK"})}),icon:(0,a.jsx)(d.A,{size:"full"}),children:[t.length?(0,a.jsx)(k,{isLoading:!0,placement:"bottom"}):null,(0,a.jsx)(E.A,{children:(0,a.jsx)(l.A,{renderToggle:h,size:"small",align:"bottomCenter",toggleOffset:8,children:(0,a.jsxs)(E.A,{alignContent:"center",children:[(0,a.jsx)(R,{isActive:!0}),(0,a.jsx)(c.A,{type:"button",variant:"inline",onClick:T,...g.A.addDataTestId(g.A.TestId.HEADER_SIGNOUT_BUTTON),children:(0,a.jsx)(f.sA,{id:"COMMON_HEADER_USER_PROFILE_SIGN_OUT"})})]})})})]})}},197003(e,t,s){s.d(t,{K:()=>l,o:()=>i});var a=s(989181),r=s.n(a);const n=r().create({baseURL:"/",withCredentials:!0,xsrfCookieName:"csrf_token",xsrfHeaderName:"X-Csrf-Token"}),i=r().create();n.interceptors.response.use(e=>e.data&&e.data instanceof ArrayBuffer?e:{...e,data:e.data.data,meta:e.data.meta});const l=n}}]);