"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[40711],{57218:(e,E,A)=>{A.d(E,{A:()=>i});var l=A(296540),t=A(469733),n=A(398300),a=A(845030),r=A(699784),s=A(30611),c=A(151033),M=A(383664),R=A(638595),d=A(164231),N=A(487585);const i=({[R.j.ID]:e,[R.j.LOG]:E})=>{const A=(0,t.useDispatch)(),i=(0,l.useCallback)(()=>{A((0,a.XP)({type:n.H.DEVICE,id:E[c.k1.PARAMETERS]?.[s.ns.DEVICE]?.[c.bP.ID]}))},[A,E]),m=(0,d.A)({[N.U.MAC]:E[c.k1.PARAMETERS]?.[s.ns.DEVICE]?.[c.bP.ID],[N.U.NAME]:E[c.k1.PARAMETERS]?.[s.ns.DEVICE]?.[c.bP.NAME],[N.U.MODEL]:E[c.k1.PARAMETERS]?.[s.ns.DEVICE]?.[s.pq.MODEL_NAME]});return E[c.k1.PARAMETERS]?.[s.ns.DEVICE]?l.createElement(M.A,{label:l.createElement(r.sA,{id:e}),value:m,onPress:i}):null}},140711:(e,E,A)=>{A.r(E),A.d(E,{default:()=>I});var l=A(296540),t=A(979353),n=A(701242),a=A(833540),r=A(269606),s=A(393114),c=A(314114),M=A(482098),R=A(485202),d=A(357244),N=A(609838),i=A(57218),m=A(689210),P=A(196898),u=A(893126);const I=({[t.w.LOG]:e})=>[l.createElement(i.A,{key:"deviceName",id:"COMMON_DEVICE",log:e}),l.createElement(m.A,{key:"deviceModel",id:"COMMON_MODEL",log:e}),l.createElement(u.A,{key:"deviceIpAddress",id:"COMMON_IP_ADDRESS",log:e}),l.createElement(P.A,{key:"deviceMacAddress",id:"COMMON_MAC_ADDRESS",log:e}),l.createElement(N.A,{key:"deviceVersion",id:"COMMON_VERSION",log:e}),l.createElement(r.A,{key:"wanName",id:"COMMON_INTERNET",log:e}),l.createElement(c.A,{key:"wanId",id:"COMMON_WAN_ID",log:e}),l.createElement(M.A,{key:"port",id:"COMMON_PORT",log:e}),l.createElement(R.A,{key:"ispName",id:"LOGS_SERVICE_PROVIDER",log:e}),l.createElement(s.A,{key:"wanIp",id:"COMMON_WAN_IP_ADDRESS",log:e}),l.createElement(n.A,{key:"wanSubnet",id:"LOGS_WAN_SUBNET",log:e}),l.createElement(a.A,{key:"wanSla",id:"COMMON_WAN_SLA",log:e}),l.createElement(d.A,{key:"duration",id:"LOGS_OUTAGE_DURATION",log:e})]},164231:(e,E,A)=>{A.d(E,{A:()=>P});var l=A(296540),t=A(118818),n=A(6510),a=A(487585),r=A(469733),s=A(171073),c=A(837612),M=A(602197);const R=e=>{const E=(0,r.useDispatch)(),[A,t]=(0,l.useState)(M.g.UNKNOWN);return(0,l.useEffect)(()=>{e&&E((0,s.pI)(e)).then(({data:e})=>{t((0,c.S9)(Array.isArray(e)?e[0]:e))})},[E,e]),A};var d=A(71479),N=A(294303),i=A(566723);const m=(0,d.A)(N.A)`
  align-items: center;
  gap: ${i.kc};
`,P=({[a.U.MAC]:e,[a.U.NAME]:E,[a.U.MODEL]:A})=>{return l.createElement(m,null,l.createElement(t.A,{size:"small",variant:(r=R(e),r===M.g.CONNECTED?"success":"danger")}),(0,n.Q)({name:E,model:A,mac:e}));var r}},196898:(e,E,A)=>{A.d(E,{A:()=>c});var l=A(296540),t=A(699784),n=A(30611),a=A(151033),r=A(67668),s=A(638595);const c=({[s.j.LOG]:e,[s.j.ID]:E})=>e[a.k1.PARAMETERS]?.[n.ns.DEVICE]?.[a.bP.ID]?l.createElement(r.A,{label:l.createElement(t.sA,{id:E}),value:e[a.k1.PARAMETERS][n.ns.DEVICE][a.bP.ID]}):null},269606:(e,E,A)=>{A.d(E,{A:()=>c});var l=A(296540),t=A(699784),n=A(30611),a=A(151033),r=A(67668),s=A(638595);const c=({[s.j.ID]:e,[s.j.LOG]:E})=>E[a.k1.PARAMETERS]?.[n.ns.WAN_NAME]?.[a.bP.NAME]?l.createElement(r.A,{label:l.createElement(t.sA,{id:e}),value:E[a.k1.PARAMETERS][n.ns.WAN_NAME][a.bP.NAME]}):null},314114:(e,E,A)=>{A.d(E,{A:()=>c});var l=A(296540),t=A(699784),n=A(30611),a=A(151033),r=A(67668),s=A(638595);const c=({[s.j.LOG]:e,[s.j.ID]:E})=>e[a.k1.PARAMETERS]?.[n.ns.WAN_ID]?.[a.bP.NAME]?l.createElement(r.A,{label:l.createElement(t.sA,{id:E}),value:e[a.k1.PARAMETERS][n.ns.WAN_ID][a.bP.NAME]}):null},357244:(e,E,A)=>{A.d(E,{A:()=>c});var l=A(296540),t=A(699784),n=A(30611),a=A(151033),r=A(67668),s=A(638595);const c=({[s.j.ID]:e,[s.j.LOG]:E})=>E[a.k1.PARAMETERS]?.[n.ns.DURATION]?.[a.bP.NAME]?l.createElement(r.A,{label:l.createElement(t.sA,{id:e}),value:E[a.k1.PARAMETERS][n.ns.DURATION][a.bP.NAME]}):null},383664:(e,E,A)=>{A.d(E,{A:()=>s});var l=A(296540),t=A(592563),n=A(491876),a=A(35571),r=A(115829);const s=({label:e,value:E,onPress:A})=>l.createElement(a.R,null,l.createElement(n.A,null,e),l.createElement(t.A,{style:{display:"flex",alignItems:"center",justifyContent:"end",overflow:"hidden"},fontSize:"medium",type:"button",onPress:A},l.createElement(r.A,{size:"medium",color:"inherit"},E)))},393114:(e,E,A)=>{A.d(E,{A:()=>c});var l=A(296540),t=A(699784),n=A(30611),a=A(151033),r=A(67668),s=A(638595);const c=({[s.j.LOG]:e,[s.j.ID]:E})=>{const[A]=(e[a.k1.PARAMETERS]?.[n.ns.WAN_SUBNET]?.[a.bP.ID]||"").split("/");return A?l.createElement(r.A,{label:l.createElement(t.sA,{id:E}),value:A}):null}},425829:(e,E,A)=>{A.d(E,{r:()=>l});const l={width:"auto",maxWidth:"80px",height:"20px"}},482098:(e,E,A)=>{A.d(E,{A:()=>c});var l=A(296540),t=A(699784),n=A(30611),a=A(151033),r=A(67668),s=A(638595);const c=({[s.j.ID]:e,[s.j.LOG]:E})=>E[a.k1.PARAMETERS]?.[n.ns.PORT]?.[a.bP.NAME]?l.createElement(r.A,{label:l.createElement(t.sA,{id:e}),value:E[a.k1.PARAMETERS][n.ns.PORT][a.bP.NAME]}):null},485202:(e,E,A)=>{A.d(E,{A:()=>N});var l=A(296540),t=A(568777),n=A(699784),a=A(30611),r=A(151033),s=A(559874),c=A(422970),M=A(67668),R=A(425829),d=A(638595);const N=({[d.j.LOG]:e,[d.j.ID]:E})=>e[r.k1.PARAMETERS]?.[a.ns.ISP_NAME]?.[r.bP.NAME]?l.createElement(M.A,{label:l.createElement(n.sA,{id:E}),value:l.createElement(c.p,null,l.createElement(t.A,{asn:Number(e[r.k1.PARAMETERS][a.ns.ISP_ASN]?.[r.bP.NAME]),name:e[r.k1.PARAMETERS][a.ns.ISP_NAME][r.bP.NAME],useFallback:!0,style:R.r}),l.createElement(s.A,null,e[r.k1.PARAMETERS][a.ns.ISP_NAME][r.bP.NAME]))}):null},487585:(e,E,A)=>{var l;A.d(E,{U:()=>l}),function(e){e.MAC="mac",e.NAME="name",e.MODEL="model"}(l||(l={}))},609838:(e,E,A)=>{A.d(E,{A:()=>c});var l=A(296540),t=A(699784),n=A(30611),a=A(151033),r=A(67668),s=A(638595);const c=({[s.j.LOG]:e,[s.j.ID]:E})=>e[a.k1.PARAMETERS]?.[n.ns.DEVICE]?.[n.pq.VERSION]?l.createElement(r.A,{label:l.createElement(t.sA,{id:E}),value:e[a.k1.PARAMETERS][n.ns.DEVICE][n.pq.VERSION]}):null},638595:(e,E,A)=>{var l;A.d(E,{j:()=>l}),function(e){e.ID="id",e.LOG="log"}(l||(l={}))},689210:(e,E,A)=>{A.d(E,{A:()=>M});var l=A(296540),t=A(6510),n=A(699784),a=A(30611),r=A(151033),s=A(67668),c=A(638595);const M=({[c.j.LOG]:e,[c.j.ID]:E})=>e[r.k1.PARAMETERS]?.[a.ns.DEVICE]?.[a.pq.MODEL_NAME]?l.createElement(s.A,{label:l.createElement(n.sA,{id:E}),value:(0,t.Lm)(e[r.k1.PARAMETERS][a.ns.DEVICE][a.pq.MODEL_NAME])}):null},701242:(e,E,A)=>{A.d(E,{A:()=>c});var l=A(296540),t=A(699784),n=A(30611),a=A(151033),r=A(67668),s=A(638595);const c=({[s.j.LOG]:e,[s.j.ID]:E})=>{const[,A]=(e[a.k1.PARAMETERS]?.[n.ns.WAN_SUBNET]?.[a.bP.ID]||"").split("/");return A?l.createElement(r.A,{label:l.createElement(t.sA,{id:E}),value:A}):null}},833540:(e,E,A)=>{A.d(E,{A:()=>c});var l=A(296540),t=A(699784),n=A(30611),a=A(151033),r=A(67668),s=A(638595);const c=({[s.j.LOG]:e,[s.j.ID]:E})=>e[a.k1.PARAMETERS]?.[n.ns.WAN_SLA]?.[a.bP.NAME]?l.createElement(r.A,{label:l.createElement(t.sA,{id:E}),value:e[a.k1.PARAMETERS][n.ns.WAN_SLA][a.bP.NAME]}):null},893126:(e,E,A)=>{A.d(E,{A:()=>c});var l=A(296540),t=A(699784),n=A(30611),a=A(151033),r=A(67668),s=A(638595);const c=({[s.j.LOG]:e,[s.j.ID]:E})=>e[a.k1.PARAMETERS]?.[n.ns.DEVICE]?.[n.pq.IP]?l.createElement(r.A,{label:l.createElement(t.sA,{id:E}),value:e[a.k1.PARAMETERS][n.ns.DEVICE][n.pq.IP]}):null},979353:(e,E,A)=>{var l;A.d(E,{w:()=>l}),function(e){e.LOG="log"}(l||(l={}))}}]);