"use strict";(self["webpackChunkfibocom"]=self["webpackChunkfibocom"]||[]).push([[114],{40114:(e,t,s)=>{s.r(t),s.d(t,{default:()=>d});var o=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("DeviceStatus",{ref:"deviceStatus",attrs:{props:{SIMConnectionStatus:e.SIMConnectionStatus,deviceStatusProp:e.deviceStatusProp}}}),s("SystemInfo",{attrs:{props:e.infoProp,MobileDateSwitchName:e.MobileDateSwitchName}})],1)},n=[],a=s(67906),r=s(16198),i=(s(32564),s(56977),s(9653),s(25353));const c={data:function(){return{deviceStatusProp:{DlRate:"0(bps)",UlRate:"0(bps)"},infoProp:{ConnectionTime:"00:00:00",UlBytes:"0.0(KB)",DlBytes:"0.0(KB)",IPv4Adrress:""},getDeviceStatus:null,MobileDateSwitchName:"",SIMConnectionStatus:0}},mounted:function(){var e=this;this.$store.dispatch("GetDeviceInfo"),this.$nextTick((function(){e.getDeviceStatus=setInterval((function(){e.$refs.deviceStatus.getNetWorkData(),e.GetConnectionInfo()}),2e3)}))},beforeDestroy:function(){clearInterval(this.getDeviceStatus)},methods:{GetConnectionInfo:function(){var e=this;return(0,r.Z)((0,a.Z)().mark((function t(){var s;return(0,a.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,i.D5P)();case 2:s=t.sent,s.code||(e.SIMConnectionStatus=s.ConnectionStatus,s.DlRate<1e3?e.deviceStatusProp.DlRate=s.DlRate+"(bps)":1e3<s.DlRate&&s.DlRate<1e6?e.deviceStatusProp.DlRate=(s.DlRate/1e3).toFixed(2)+"(kbps)":e.deviceStatusProp.DlRate=(s.DlRate/1e6).toFixed(2)+"(Mbps)",s.UlRate<1e3?e.deviceStatusProp.UlRate=s.UlRate+"(bps)":1e3<s.UlRate&&s.UlRate<1e6?e.deviceStatusProp.UlRate=(s.UlRate/1e3).toFixed(2)+"(kbps)":e.deviceStatusProp.UlRate=(s.UlRate/1e6).toFixed(2)+"(Mbps)",e.infoProp.IPv4Adrress=s.IPv4Adrress,e.infoProp.IPv6Adrress=s.IPv6Adrress,Number(s.UlBytes)<1e6?e.infoProp.UlBytes=(Number(s.UlBytes)/1e3).toFixed(2)+"(KB)":e.infoProp.UlBytes=(Number(s.UlBytes)/1e6).toFixed(2)+"(MB)",Number(s.DlBytes)<1e6?e.infoProp.DlBytes=(Number(s.DlBytes)/1e3).toFixed(2)+"(KB)":e.infoProp.DlBytes=(Number(s.DlBytes)/1e6).toFixed(2)+"(MB)");case 4:case"end":return t.stop()}}),t)})))()}}},l=c;var u=s(1001),p=(0,u.Z)(l,o,n,!1,null,null,null);const d=p.exports}}]);