"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[64869],{947852(e,i,t){t.d(i,{A:()=>a});var s=t(602086),n=t(141992);const a=(0,t(272338).w)(e=>(0,s.createElement)("svg",(0,n.d)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,s.createElement)("circle",{cx:10,cy:10,r:4,fill:"currentColor",className:e.twotonedclassname}),(0,s.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.697 4.696a.53.53 0 0 1 .013.72 6.999 6.999 0 0 0 0 9.166.53.53 0 0 1-.013.72.477.477 0 0 1-.697-.01 7.995 7.995 0 0 1-2-5.293 8 8 0 0 1 2-5.292.477.477 0 0 1 .697-.01ZM10 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0 1a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm5.29.583a.53.53 0 0 0 .014.72.477.477 0 0 0 .696-.01 7.97 7.97 0 0 0 1.392-2.231A8 8 0 0 0 16 4.708a.477.477 0 0 0-.696-.01.53.53 0 0 0-.013.72 7 7 0 0 1 0 9.165ZM6.115 6.114c.198.197.195.516.019.732a4.99 4.99 0 0 0 0 6.307c.176.216.179.535-.019.732a.474.474 0 0 1-.698-.015 6.03 6.03 0 0 1-.96-1.574 6 6 0 0 1 .96-6.167.474.474 0 0 1 .698-.015Zm7.754 7.04c-.177.216-.179.535.018.732a.474.474 0 0 0 .7-.015 5.996 5.996 0 0 0 .958-6.167 6 6 0 0 0-.959-1.575.474.474 0 0 0-.699-.014c-.197.197-.194.515-.018.732a4.99 4.99 0 0 1 0 6.307Z",fill:"currentColor",className:e.baseclassname}),(0,s.createElement)("path",{d:"M4.71 5.417a.53.53 0 0 0-.013-.72.477.477 0 0 0-.697.01A7.994 7.994 0 0 0 2 10a8 8 0 0 0 2 5.292.477.477 0 0 0 .697.011.53.53 0 0 0 .013-.72 6.999 6.999 0 0 1 0-9.165Zm6.029 8.515a4.001 4.001 0 1 0-1.48-7.865 4.001 4.001 0 0 0 1.48 7.865Zm4.565 1.371a.53.53 0 0 1-.013-.72 7 7 0 0 0 0-9.165.53.53 0 0 1 .013-.72.477.477 0 0 1 .696.01 7.975 7.975 0 0 1 1.392 2.231A8 8 0 0 1 16 15.293a.477.477 0 0 1-.696.01Z",fill:"currentColor",className:e.fillclassname}),(0,s.createElement)("path",{d:"M6.133 6.846c.176-.216.179-.535-.019-.732a.474.474 0 0 0-.698.015 6.004 6.004 0 0 0-.96 6.167 6 6 0 0 0 .96 1.574c.18.214.501.212.698.015.198-.197.195-.515.019-.732a4.99 4.99 0 0 1 0-6.307Zm7.753 7.04c-.197-.197-.194-.516-.018-.732a4.99 4.99 0 0 0 0-6.307c-.177-.217-.179-.535.018-.732a.474.474 0 0 1 .7.014 5.97 5.97 0 0 1 .958 1.575 6 6 0 0 1-.959 6.167.474.474 0 0 1-.699.015Z",fill:"currentColor",className:e.fillclassname})))},14665(e,i,t){t.d(i,{$m:()=>c,ne:()=>l,xt:()=>d});var s=t(29472),n=t(401042),a=t(193730),r=t(126389);const l=({start:e,end:i},t={},n={})=>(0,s.An)([{model:r.A2,payload:(t=[])=>[{hotspotGuests:t,[r.RR]:`${e}_${i}`}]}],r.gI,{queryParams:{start:e,end:i},...t},{idField:r.RR,...n}),c=(e,i,t={})=>(0,s.Xj)(a.A.EXTEND,r.BX,{_id:e},{...(0,n.rk)("HOTSPOT_ACTIONS_EXTEND_ERROR",{guestName:i}),...t}),d=(e,i,t={})=>(0,s.Xj)(a.A.TERMINATE,r.BX,{_id:e},{...(0,n.rk)("HOTSPOT_ACTIONS_UNAUTHORIZE_ERROR",{guestName:i}),...t})},77215(e,i,t){var s;t.d(i,{u:()=>s}),function(e){e.NONE="none",e.VOUCHER="voucher",e.FREE="free",e.CREDIT="credit",e.MERCADOPAGO="mercadopago",e.TWOCHECKOUT="twocheckout",e.PASSWORD="password",e.RADIUS="radius",e.API="api",e.GOOGLE="google"}(s||(s={}))},381325(e,i,t){t.d(i,{ol:()=>m,cd:()=>c,A:()=>l,R9:()=>o,xt:()=>u,Ds:()=>d});var s=t(29472),n=t(193730),a=t(401042);const r=`${t(290454).J}/cmd/stamgr`,l=(e,i,t={})=>(0,s.Xj)(n.A.FORGET_STA,r,{macs:e},{...(0,a.rk)("CLIENTS_ACTIONS_REMOVE_ERROR",{clientName:i}),...t}),c=(e,i,t={})=>(0,s.Xj)(n.A.BLOCK_STA,r,{mac:e},{...(0,a.rk)("CLIENTS_ACTIONS_BLOCK_ERROR",{clientName:i}),...t}),d=(e,i,t={})=>(0,s.Xj)(n.A.UNBLOCK_STA,r,{mac:e},{...(0,a.rk)("CLIENTS_ACTIONS_UNBLOCK_ERROR",{clientName:i}),...t}),o=(e,i,t={})=>(0,s.Xj)(n.A.KICK_STA,r,{mac:e},{...(0,a.rk)("CLIENTS_ACTIONS_RECONNECT_ERROR",{clientName:i}),...t}),m=(e,i,t={})=>(0,s.Xj)(n.A.AUTHORIZE_GUEST,r,{mac:e},{...(0,a.rk)("CLIENTS_ACTIONS_AUTHORIZE_ERROR",{clientName:i}),...t}),u=(e,i,t={})=>(0,s.Xj)(n.A.UNAUTHORIZE_GUEST,r,{mac:e},{...(0,a.rk)("CLIENTS_ACTIONS_UNAUTHORIZE_ERROR",{clientName:i}),...t})},537417(e,i,t){t.d(i,{A:()=>n});var s=t(938984);const n=(0,t(247816).A)(s.A)`
  white-space: nowrap;
`},555672(e,i,t){t.d(i,{A:()=>x});var s=t(274934),n=t(814557),a=t(602086),r=t(977872),l=t(247816),c=t(409844),d=t(222102),o=t(430328),m=t(773434),u=t(291508);const A=c.i7`
  0% {
    opacity: 0.0;
    transform: scale(0.3);
  }
  // fadein
  20% {
    opacity: 0.8;
  }
  // grow
  70% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  // fadeout
  100% {
    opacity: 0.0;
    transform: scale(1.0);
  }
`,h=(0,l.A)("div",(0,u.A)("size","animationName","delay"))`
  position: absolute;
  border-radius: 50%;
  ${({size:e,theme:{themeName:i},delay:t,animationName:s})=>`\n    width: ${e}px;\n    height: ${e}px;\n    background: ${n.Ay[`desktop-color-ublue-03-${i}`]};\n    animation-delay: ${t}ms;\n    animation-name: ${s};\n  `}
  animation-duration: ${2e3}ms;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0, 0.3, 0.1, 0);
  z-index: -1;
  opacity: 0;
  transform: scale(0);
`,x=(0,a.memo)(({size:e,mac:i})=>(0,r.d4)((0,a.useMemo)(()=>(e=>(0,o.WY)()((0,d.Mz)(({models:i})=>i[m.G.SESSION_METADATA]?.byId?.[e],e=>Boolean(e)),e=>e))(i),[i]))?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h,{size:e,animationName:A,delay:-500}),(0,s.jsx)(h,{size:e,animationName:A,delay:-1500})]}):null)},648175(e,i,t){t.d(i,{A:()=>a});var s=t(274934),n=t(642687);const a=({children:e,...i})=>(0,s.jsx)(n.A,{variant:"secondary-emphasis",...i,children:e})},778270(e,i,t){t.d(i,{A:()=>x});var s=t(274934),n=t(602086),a=t(977872),r=t(590979),l=t(449339),c=t(205521),d=t(831433),o=t(223597),m=t(347625),u=t(698950),A=t(785068);const h=({uplinkDevice:e,client:i,maxWidth:t})=>{const o=(0,a.wA)(),h=(0,m.Q)(e),x=(0,d.f2)(i,e),O=(0,n.useCallback)(()=>{o((0,c.XP)({type:l.H.DEVICE,id:e?.mac}))},[o,e?.mac]);return h?(0,s.jsx)(u.A,{messageId:"COMMON_CONNECTED_TO",buttonEl:(0,s.jsx)(A.A,{...r.A.addDataTestId(r.A.TestId.SIDE_PANEL_TRIGGER),onClick:O,name:h,port:x,size:"medium",maxWidth:t||195,separatePortNumber:!0,isFullWidth:!0})}):null},x=({uplinkDevice:e,client:i,maxWidth:t})=>i.status===o.S2.ONLINE?(0,s.jsx)(h,{uplinkDevice:e,client:i,maxWidth:t}):null},376892(e,i,t){t.d(i,{A:()=>r});var s=t(274934),n=t(938984),a=t(470070);const r=({id:e,children:i,values:t})=>(0,s.jsxs)(n.A,{color:"text-1",weight:"bold",size:"medium",children:[e?(0,s.jsx)(a.sA,{id:e,values:t}):null,i]})},449954(e,i,t){t.d(i,{A:()=>d});var s=t(274934),n=t(602086),a=t(95032),r=t(669439);var l=t(309130),c=t(100978);const d=(0,n.memo)(({title:e,icon:i,maxWidth:t,disabled:d=!1})=>{const o=(0,n.useRef)(null),m=(e=>{const[i,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{e.current&&t(e.current.clientWidth<e.current.scrollWidth)},[e]),i})(o);return(0,s.jsx)(r.A,{description:m?e:void 0,children:(0,s.jsxs)(c.A,{gap:l.YC,alignItems:"center",maxWidth:t,children:[i,(0,s.jsx)(a.A,{isTruncated:!0,size:"medium",weight:"bold",color:d?"text-3":"text-1",ref:o,children:e})]})})})},910100(e,i,t){t.d(i,{p:()=>l});var s=t(814557),n=t(247816),a=t(100978),r=t(291508);const l=(0,n.A)(a.A,(0,r.A)("disabled"))`
  height: 48px;
  border-bottom: ${({theme:{themeName:e}})=>s.Ay[`desktop-border-divider-${e}`]};
  ${({disabled:e=!1})=>e&&"\n      opacity: 0.4;\n      pointer-events: none;\n  "}
`},270509(e,i,t){t.d(i,{A:()=>h});var s=t(274934),n=t(977872),a=t(602086),r=t(938984),l=t(555672),c=t(650632),d=t(470070),o=t(815436),m=t(869332),u=t(831433),A=t(236519);const h=({activeItem:e,activeItem:{fingerprint:i,unifi_device_info:t,mac:h},size:x=80})=>{const O=(0,n.wA)(),{isFingerprintFromUiDb:_}=(0,a.useMemo)(()=>({fingerprintHasOverride:(0,u.n8)(i),isFingerprintFromUiDb:(0,u.fN)(t)}),[t,i]);return(0,s.jsxs)(A.qN,{onClick:()=>{O((e=>(0,m.to)({modalType:o.A.REPORT_CLIENT_ICON,modalProps:{activeItem:e}}))(e))},children:[(0,s.jsx)(c.A,{client:e,grid:!0}),(0,s.jsx)(l.A,{size:x,mac:h}),_?null:(0,s.jsx)(A.XV,{className:"report-icon",children:(0,s.jsx)(r.A,{color:"inherit",children:(0,s.jsx)(d.sA,{id:"COMMON_CHANGE_ICON"})})})]})}},236519(e,i,t){t.d(i,{XV:()=>c,fI:()=>d,qN:()=>l,u0:()=>o});var s=t(814557),n=t(247816),a=t(309130),r=t(100978);const l=(0,n.A)(r.A)`
  position: relative;
  width: 80px;
  min-width: 80px;
  height: 80px;
  border-radius: 8px;
  justify-content: center;
  transition: 0.25s ease;
  &:hover {
    cursor: pointer;
    background-color: ${({theme:{themeName:e}})=>s.Ay[`desktop-color-neutral-01-${e}`]};
    .report-icon {
      opacity: 1;
    }
  }
`,c=(0,n.A)(r.A)`
  width: 100%;
  height: 20px;
  position: absolute;
  opacity: 0;
  border-radius: 0 0 8px 8px;
  color: #ffffff;
  background-color: rgb(14, 14, 14, 0.5);
  bottom: 0;
  justify-content: center;
  transition: 0.25s ease;
`,d=((0,n.A)(r.A)`
  align-items: center;
  gap: ${a.kc};
  margin-top: ${a.kc};
  line-height: initial;
`,(0,n.A)(r.A)`
  align-items: baseline;
  gap: ${a.xO};
`),o=(0,n.A)(r.A)`
  align-items: baseline;
  gap: ${a.YC};
  white-space: nowrap;
`},698950(e,i,t){t.d(i,{A:()=>h});var s=t(274934),n=t(247816),a=t(409844),r=t(291508),l=t(470070),c=t(309130),d=t(100978),o=t(537417);const m=(0,n.A)(d.A,(0,r.A)("alignLeft"))`
  ${({alignLeft:e})=>e?"max-width: 288px;":"max-width: 100%; justify-content: center;"}
  gap: ${c.YC};
  align-items: center;
`,u=a.AH`
  max-width: 50%;
`,A=a.AH`
  flex: 0 1 auto;
  min-width: 0;
`,h=({messageId:e,messageValues:i,buttonEl:t,alignLeft:n=!0,color:a="text-3",variant:r="body-primary"})=>(0,s.jsxs)(m,{alignLeft:n,children:[(0,s.jsx)(o.A,{variant:r,color:a,children:i?(0,s.jsx)(d.A,{maxWidth:288,whiteSpace:"nowrap",paddingRight:c.YC,children:(0,s.jsx)(l.sA,{id:e,values:i})}):(0,s.jsx)(l.sA,{id:e})}),t?(0,s.jsx)(d.A,{className:n?A:u,children:t}):null]})},664092(e,i,t){t.d(i,{A:()=>d});var s=t(274934),n=t(247816),a=t(309130),r=t(100978),l=t(291508);const c=(0,n.A)(r.A,(0,l.A)("valueMaxWidth","keyMinWidth","compact"))`
  &: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;
    }
  }
`,d=({children:e,valueMaxWidth:i=215,keyMinWidth:t=0,flexProps:n={},compact:r=!1})=>(0,s.jsx)(c,{width:"100%",justifyContent:"space-between",gap:a.kc,height:r?void 0:24,valueMaxWidth:i,keyMinWidth:t,compact:r,...n,children:e})},364869(e,i,t){t.r(i),t.d(i,{default:()=>W});var s=t(274934),n=t(602086),a=t(977872),r=t(938984),l=t(95032),c=t(254590),d=t(376892),o=t(100978),m=t(535322),u=t(470070),A=t(897166),h=t(754924),x=t(223597),O=t(34118),_=t(664092),T=t(660366),p=t(814557),E=t(125799),C=t(947852),j=t(263705),N=t(309130),g=t(449954),f=t(778270),S=t(270509),v=t(648175),I=t(869332),R=t(771927),M=t(221182),b=t(14665),k=t(77215);const y=e=>e!==k.u.NONE,w=(0,n.memo)(({_id:e,display_name:i,authorized:t,authorized_by:r})=>{const l=(0,a.wA)(),{startDate:c,endDate:d}=(0,a.d4)(M.K5),m=(0,n.useCallback)(()=>l((0,b.$m)(e,i)).then(()=>l((0,I.AS)())).then(()=>l((0,b.ne)({start:c.getTime(),end:d.getTime()},void 0))),[e,i,d,c,l]),A=(0,n.useCallback)(()=>l((0,R.E)({title:"HOTSPOT_EXTEND_GUEST_TITLE",message:"HOTSPOT_EXTEND_GUEST_MESSAGE",messageValues:{guestName:i},onConfirm:m})),[l,i,m]),h=(0,n.useCallback)(()=>l((0,b.xt)(e,i)).then(()=>l((0,I.AS)())).then(()=>l((0,b.ne)({start:c.getTime(),end:d.getTime()},void 0))),[e,i,c,d,l]),x=(0,n.useCallback)(()=>l((0,R.E)({title:"HOTSPOT_UNAUTHORIZE_GUEST_TITLE",message:"HOTSPOT_UNAUTHORIZE_GUEST_MESSAGE",messageValues:{guestName:i},onConfirm:h})),[h,l,i]);return(0,s.jsxs)(o.A,{justifyContent:"space-between",marginTop:N.kc,lineHeight:"initial",gap:N.kc,children:[(0,s.jsx)(v.A,{onClick:A,width:"full",children:(0,s.jsx)(u.sA,{id:"COMMON_ACTION_EXTEND"})}),y(r)&&t?(0,s.jsx)(v.A,{onClick:x,width:"full",children:(0,s.jsx)(u.sA,{id:"COMMON_ACTION_UNAUTHORIZE"})}):null]})}),U=({_id:e,hotspotClient:i,hotspotClient:{display_name:t,authorized:n},uplinkDevice:a,fingerprintData:r,authorized_by:l})=>{const{themeName:c}=(0,j.u)();return(0,s.jsx)(m.A,{marginBottom:N.Ln,padding:N.Ln,children:(0,s.jsxs)(o.A,{flexDirection:"row",alignItems:"stretch",justifyContent:"flex-start",gap:N.kc,children:[(0,s.jsx)(S.A,{activeItem:i}),(0,s.jsxs)(o.A,{flexDirection:"column",justifyContent:"space-between",alignItems:"stretch",overflow:"hidden",flex:"1",children:[(0,s.jsxs)(o.A,{flexDirection:"column",children:[(0,s.jsx)(g.A,{title:t||r?.fingerprint_device_name,icon:(0,s.jsx)(E.A,{portal:!0,description:(0,s.jsx)(u.sA,{id:"COMMON_GUEST"}),children:(0,s.jsx)(C.A,{width:20,height:20,color:p.Ay[`desktop-color-neutral-08-${c}`]})})}),(0,s.jsx)(f.A,{uplinkDevice:a,client:i})]}),(0,s.jsx)(w,{_id:e,display_name:t,authorized:n,authorized_by:l})]})]})})};var z=t(599110),D=t(910100),H=t(381325),L=t(897326);const $=(0,n.memo)(({mac:e,status:i,display_name:t,blocked:l})=>{const c=(0,a.wA)(),[d,o]=(0,n.useState)(!1),[A,h]=(0,n.useState)(!1),[O,_]=(0,n.useState)(!1),T=(0,n.useCallback)(()=>{o(!0),c((0,H.R9)(e,t)).then(()=>c((0,I.AS)())).finally(()=>{o(!1)})},[c,e,t]),p=(0,n.useCallback)(()=>c((0,R.E)({title:"HOTSPOT_RECONNECT_GUEST_TITLE",titleValues:{guestName:t},message:"HOTSPOT_RECONNECT_GUEST_MESSAGE",messageValues:{guestName:t},onConfirm:T})),[c,t,T]),E=(0,n.useCallback)(()=>{h(!0),c((0,H.cd)(e,t)).then(()=>c((0,I.AS)())).then(()=>c((0,L.s)())).finally(()=>{h(!1)})},[c,t,e]),C=(0,n.useCallback)(()=>c((0,R.E)({title:"HOTSPOT_BLOCK_GUEST_TITLE",message:"HOTSPOT_BLOCK_GUEST_MESSAGE",messageValues:{guestName:t},onConfirm:E})),[c,t,E]),j=(0,n.useCallback)(()=>{_(!0),c((0,H.Ds)(e,t)).then(()=>c((0,I.AS)())).then(()=>c((0,L.s)())).finally(()=>{_(!1)})},[c,t,e]),N=(0,n.useCallback)(()=>c((0,R.E)({title:"HOTSPOT_UNBLOCK_GUEST_TITLE",titleValues:{guestName:t},message:"HOTSPOT_UNBLOCK_GUEST_MESSAGE",messageValues:{guestName:t},onConfirm:j})),[c,j,t]);return(0,s.jsxs)(m.A,{type:m.I.BUTTON_LIST,children:[(0,s.jsx)(D.p,{disabled:d,children:(0,s.jsx)(z.A,{type:"button",variant:"inline",onClick:p,disabled:i!==x.S2.ONLINE,children:(0,s.jsx)(r.A,{size:"medium",color:"inherit",children:(0,s.jsx)(u.sA,{id:"COMMON_ACTION_RECONNECT"})})})}),(0,s.jsx)(D.p,{disabled:A||O,children:(0,s.jsx)(z.A,{type:"button",variant:"inline",color:"danger",onClick:l?N:C,children:(0,s.jsx)(r.A,{size:"medium",color:"inherit",children:(0,s.jsx)(u.sA,{id:l?"COMMON_ACTION_UNBLOCK":"COMMON_ACTION_BLOCK"})})})})]})});var G=t(570866);const P=({authorized_by:e,voucher_code:i,activeItemPackage:t})=>{switch(e){case k.u.VOUCHER:return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(_.A,{children:[(0,s.jsx)(r.A,{color:"text-2",size:"medium",children:(0,s.jsx)(u.sA,{id:"COMMON_METHOD"})}),(0,s.jsx)(l.A,{color:"text-3",size:"medium",isTruncated:!0,children:(0,s.jsx)(u.sA,{id:"HOTSPOT_VOUCHER"})})]}),(0,s.jsxs)(_.A,{children:[(0,s.jsx)(r.A,{color:"text-2",size:"medium",children:(0,s.jsx)(u.sA,{id:"HOTSPOT_VOUCHER_CODE"})}),(0,s.jsx)(l.A,{color:"text-3",size:"medium",isTruncated:!0,children:i?.replace(G.fe,"$&-")})]})]});case k.u.FREE:return(0,s.jsxs)(_.A,{children:[(0,s.jsx)(r.A,{color:"text-2",size:"medium",children:(0,s.jsx)(u.sA,{id:"COMMON_METHOD"})}),(0,s.jsx)(l.A,{color:"text-3",size:"medium",isTruncated:!0,children:(0,s.jsx)(u.sA,{id:"HOTSPOT_FREE_TRIAL"})})]});case k.u.CREDIT:return(0,s.jsxs)(_.A,{children:[(0,s.jsx)(r.A,{color:"text-2",size:"medium",children:(0,s.jsx)(u.sA,{id:"COMMON_METHOD"})}),(0,s.jsx)(l.A,{color:"text-3",size:"medium",isTruncated:!0,children:t})]});default:return e?(0,s.jsxs)(_.A,{children:[(0,s.jsx)(r.A,{color:"text-2",size:"medium",children:(0,s.jsx)(u.sA,{id:"COMMON_METHOD"})}),(0,s.jsx)(l.A,{color:"text-3",size:"medium",isTruncated:!0,children:`${e.charAt(0).toUpperCase()}${e.slice(1).toLowerCase()}`})]}):null}},W=({activeItem:{_id:e,mac:i,authorized_by:t,voucher_code:p,package:E,hotspot_client:C}})=>{const j=(0,a.d4)(A.AF),N=(0,a.d4)((0,n.useMemo)(()=>C.fingerprint?(0,O.OF)(C.fingerprint):()=>({}),[C.fingerprint])),g=(0,a.d4)((0,n.useMemo)(()=>C.uplink_mac?(0,h.bw)(C.uplink_mac,["type","name","model","mac"]):()=>{},[C.uplink_mac])),f=(0,n.useMemo)(()=>[{id:"hotspot_methods",label:(0,s.jsx)(d.A,{id:"COMMON_AUTH"}),openByDefault:!0,renderContent:()=>(0,s.jsxs)(o.A,{width:"100%",flexDirection:"column",children:[(0,s.jsx)(P,{authorized_by:t,voucher_code:p,activeItemPackage:E}),(0,s.jsxs)(_.A,{children:[(0,s.jsx)(r.A,{color:"text-2",size:"medium",children:(0,s.jsx)(u.sA,{id:"COMMON_NOTE"})}),(0,s.jsx)(l.A,{color:"text-3",size:"medium",isTruncated:!0,children:C.note||c.L})]})]})}],[t,p,E,C.note]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(U,{_id:e,hotspotClient:C,fingerprintData:N,uplinkDevice:g,authorized_by:t}),j?null:(0,s.jsx)(T.A,{activeItem:C,isWired:C.type===x.sK.WIRED}),(0,s.jsxs)(m.A,{children:[i?(0,s.jsxs)(_.A,{children:[(0,s.jsx)(r.A,{color:"text-2",size:"medium",children:(0,s.jsx)(u.sA,{id:"COMMON_MAC_ADDRESS"})}),(0,s.jsx)(r.A,{color:"text-3",size:"medium",children:i})]}):null,N.fingerprint_device_vendor||C.oui?(0,s.jsxs)(_.A,{children:[(0,s.jsx)(r.A,{color:"text-2",size:"medium",children:(0,s.jsx)(u.sA,{id:"COMMON_MANUFACTURER"})}),(0,s.jsx)(l.A,{style:{maxWidth:"250px"},color:"text-3",size:"medium",isTruncated:!0,children:N.fingerprint_device_vendor||C.oui})]}):null,N.fingerprint_device_name?(0,s.jsxs)(_.A,{children:[(0,s.jsx)(r.A,{color:"text-2",size:"medium",children:(0,s.jsx)(u.sA,{id:"COMMON_MODEL"})}),(0,s.jsx)(l.A,{style:{maxWidth:"250px"},color:"text-3",size:"medium",isTruncated:!0,children:N.fingerprint_device_name})]}):null,N.fingerprint_device_os?(0,s.jsxs)(_.A,{children:[(0,s.jsx)(r.A,{color:"text-2",size:"medium",children:(0,s.jsx)(u.sA,{id:"CLIENTS_HEADER_OS"})}),(0,s.jsx)(l.A,{color:"text-3",size:"medium",isTruncated:!0,children:N.fingerprint_device_os})]}):null]}),(0,s.jsx)(m.A,{type:m.I.ACCORDION,items:f}),(0,s.jsx)($,{mac:C.mac,status:C.status,display_name:C.display_name,blocked:C.blocked})]})}}}]);