"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[33199],{57218:(e,E,A)=>{A.d(E,{A:()=>O});var n=A(296540),t=A(469733),l=A(398300),a=A(845030),s=A(699784),r=A(30611),c=A(151033),M=A(383664),R=A(638595),d=A(164231),i=A(487585);const O=({[R.j.ID]:e,[R.j.LOG]:E})=>{const A=(0,t.useDispatch)(),O=(0,n.useCallback)(()=>{A((0,a.XP)({type:l.H.DEVICE,id:E[c.k1.PARAMETERS]?.[r.ns.DEVICE]?.[c.bP.ID]}))},[A,E]),m=(0,d.A)({[i.U.MAC]:E[c.k1.PARAMETERS]?.[r.ns.DEVICE]?.[c.bP.ID],[i.U.NAME]:E[c.k1.PARAMETERS]?.[r.ns.DEVICE]?.[c.bP.NAME],[i.U.MODEL]:E[c.k1.PARAMETERS]?.[r.ns.DEVICE]?.[r.pq.MODEL_NAME]});return E[c.k1.PARAMETERS]?.[r.ns.DEVICE]?n.createElement(M.A,{label:n.createElement(s.sA,{id:e}),value:m,onPress:O}):null}},164231:(e,E,A)=>{A.d(E,{A:()=>o});var n=A(296540),t=A(118818),l=A(6510),a=A(487585),s=A(469733),r=A(171073),c=A(837612),M=A(602197);const R=e=>{const E=(0,s.useDispatch)(),[A,t]=(0,n.useState)(M.g.UNKNOWN);return(0,n.useEffect)(()=>{e&&E((0,r.pI)(e)).then(({data:e})=>{t((0,c.S9)(Array.isArray(e)?e[0]:e))})},[E,e]),A};var d=A(71479),i=A(294303),O=A(566723);const m=(0,d.A)(i.A)`
  align-items: center;
  gap: ${O.kc};
`,o=({[a.U.MAC]:e,[a.U.NAME]:E,[a.U.MODEL]:A})=>{return n.createElement(m,null,n.createElement(t.A,{size:"small",variant:(s=R(e),s===M.g.CONNECTED?"success":"danger")}),(0,l.Q)({name:E,model:A,mac:e}));var s}},196898:(e,E,A)=>{A.d(E,{A:()=>c});var n=A(296540),t=A(699784),l=A(30611),a=A(151033),s=A(67668),r=A(638595);const c=({[r.j.LOG]:e,[r.j.ID]:E})=>e[a.k1.PARAMETERS]?.[l.ns.DEVICE]?.[a.bP.ID]?n.createElement(s.A,{label:n.createElement(t.sA,{id:E}),value:e[a.k1.PARAMETERS][l.ns.DEVICE][a.bP.ID]}):null},383664:(e,E,A)=>{A.d(E,{A:()=>r});var n=A(296540),t=A(592563),l=A(491876),a=A(35571),s=A(115829);const r=({label:e,value:E,onPress:A})=>n.createElement(a.R,null,n.createElement(l.A,null,e),n.createElement(t.A,{style:{display:"flex",alignItems:"center",justifyContent:"end",overflow:"hidden"},fontSize:"medium",type:"button",onPress:A},n.createElement(s.A,{size:"medium",color:"inherit"},E)))},429722:(e,E,A)=>{A.d(E,{A:()=>c});var n=A(296540),t=A(699784),l=A(30611),a=A(151033),s=A(67668),r=A(638595);const c=({[r.j.LOG]:e,[r.j.ID]:E})=>e[a.k1.PARAMETERS]?.[l.ns.SIM]?.[a.bP.NAME]?n.createElement(s.A,{label:n.createElement(t.sA,{id:E}),value:e[a.k1.PARAMETERS][l.ns.SIM][a.bP.NAME]}):null},487585:(e,E,A)=>{var n;A.d(E,{U:()=>n}),function(e){e.MAC="mac",e.NAME="name",e.MODEL="model"}(n||(n={}))},547642:(e,E,A)=>{A.d(E,{A:()=>M});var n=A(296540),t=A(699784),l=A(30611),a=A(151033),s=A(422970),r=A(67668),c=A(638595);const M=({[c.j.ID]:e,[c.j.LOG]:E})=>E[a.k1.PARAMETERS]?.[l.ns.AMOUNT]&&E[a.k1.PARAMETERS]?.[l.ns.TOTAL]?n.createElement(r.A,{label:n.createElement(t.sA,{id:e}),value:n.createElement(s.p,null,E[a.k1.PARAMETERS][l.ns.AMOUNT][a.bP.NAME]," / ",E[a.k1.PARAMETERS][l.ns.TOTAL][a.bP.NAME])}):null},556742:(e,E,A)=>{A.d(E,{A:()=>c});var n=A(296540),t=A(699784),l=A(30611),a=A(151033),s=A(67668),r=A(638595);const c=({[r.j.ID]:e,[r.j.LOG]:E})=>E[a.k1.PARAMETERS]?.[l.ns.NETWORK_OPERATOR]?.[a.bP.NAME]?n.createElement(s.A,{label:n.createElement(t.sA,{id:e}),value:E[a.k1.PARAMETERS][l.ns.NETWORK_OPERATOR][a.bP.NAME]}):null},609838:(e,E,A)=>{A.d(E,{A:()=>c});var n=A(296540),t=A(699784),l=A(30611),a=A(151033),s=A(67668),r=A(638595);const c=({[r.j.LOG]:e,[r.j.ID]:E})=>e[a.k1.PARAMETERS]?.[l.ns.DEVICE]?.[l.pq.VERSION]?n.createElement(s.A,{label:n.createElement(t.sA,{id:E}),value:e[a.k1.PARAMETERS][l.ns.DEVICE][l.pq.VERSION]}):null},638595:(e,E,A)=>{var n;A.d(E,{j:()=>n}),function(e){e.ID="id",e.LOG="log"}(n||(n={}))},689210:(e,E,A)=>{A.d(E,{A:()=>M});var n=A(296540),t=A(6510),l=A(699784),a=A(30611),s=A(151033),r=A(67668),c=A(638595);const M=({[c.j.LOG]:e,[c.j.ID]:E})=>e[s.k1.PARAMETERS]?.[a.ns.DEVICE]?.[a.pq.MODEL_NAME]?n.createElement(r.A,{label:n.createElement(l.sA,{id:E}),value:(0,t.Lm)(e[s.k1.PARAMETERS][a.ns.DEVICE][a.pq.MODEL_NAME])}):null},893126:(e,E,A)=>{A.d(E,{A:()=>c});var n=A(296540),t=A(699784),l=A(30611),a=A(151033),s=A(67668),r=A(638595);const c=({[r.j.LOG]:e,[r.j.ID]:E})=>e[a.k1.PARAMETERS]?.[l.ns.DEVICE]?.[l.pq.IP]?n.createElement(s.A,{label:n.createElement(t.sA,{id:E}),value:e[a.k1.PARAMETERS][l.ns.DEVICE][l.pq.IP]}):null},933199:(e,E,A)=>{A.r(E),A.d(E,{default:()=>i});var n=A(296540),t=A(979353),l=A(429722),a=A(556742),s=A(609838),r=A(57218),c=A(689210),M=A(196898),R=A(893126),d=A(547642);const i=({[t.w.LOG]:e})=>[n.createElement(r.A,{key:"deviceName",id:"COMMON_DEVICE",log:e}),n.createElement(c.A,{key:"deviceModel",id:"COMMON_MODEL",log:e}),n.createElement(R.A,{key:"deviceIpAddress",id:"COMMON_IP_ADDRESS",log:e}),n.createElement(M.A,{key:"deviceMacAddress",id:"COMMON_MAC_ADDRESS",log:e}),n.createElement(s.A,{key:"deviceVersion",id:"COMMON_VERSION",log:e}),n.createElement(l.A,{key:"sim",id:"COMMON_SIM",log:e}),n.createElement(a.A,{key:"networkOperator",id:"COMMON_CARRIER",log:e}),n.createElement(d.A,{key:"dataUsed",id:"LOGS_CELLULAR_DATA_USED",log:e})]},979353:(e,E,A)=>{var n;A.d(E,{w:()=>n}),function(e){e.LOG="log"}(n||(n={}))}}]);