(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define(["vue"],t):"object"===typeof exports?exports["TIS_PLATFORM-app"]=t(require("vue")):e["TIS_PLATFORM-app"]=t(e["Vue"])})(window,(function(e){return function(e){function t(t){for(var i,o,s=t[0],c=t[1],u=t[2],l=0,p=[];l1&&void 0!==arguments[1]?arguments[1]:{},n=new FormData;for(var i in n.append("file",e),e)t.hasOwnProperty(i)&&n.append(i,t[i]);return n}function V(e){return E.apply(this,arguments)}function E(){return E=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){Object(N["g"])(t).then((function(t){t&&/\.wav$/i.test(t.state||"")?e(t.state):n("合成失败")})).catch(n)})));case 1:case"end":return e.stop()}}),e)}))),E.apply(this,arguments)}function F(e){return D.apply(this,arguments)}function D(){return D=Object(o["a"])(regeneratorRuntime.mark((function e(t){var n,i=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:{},e.abrupt("return",new Promise((function(e,i){Object(N["c"])(C(t,n),{"Content-Type":"multipart/form-data"}).then((function(t){e(t.data)})).catch(i)})));case 2:case"end":return e.stop()}}),e)}))),D.apply(this,arguments)}function H(e){return K.apply(this,arguments)}function K(){return K=Object(o["a"])(regeneratorRuntime.mark((function e(t){var n,i=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:{},e.abrupt("return",new Promise((function(e,i){Object(N["f"])(C(t,n),{"Content-Type":"multipart/form-data"}).then((function(t){e(t.data)})).catch(i)})));case 2:case"end":return e.stop()}}),e)}))),K.apply(this,arguments)}function U(){return $.apply(this,arguments)}function $(){return $=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.abrupt("return",new Promise((function(e,n){Object(N["a"])(t).then((function(t){e(t.data)})).catch(n)})));case 2:case"end":return e.stop()}}),e)}))),$.apply(this,arguments)}function J(){return Y.apply(this,arguments)}function Y(){return Y=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.abrupt("return",new Promise((function(e,n){Object(N["e"])(t).then((function(t){e(t.bnfData)})).catch(n)})));case 2:case"end":return e.stop()}}),e)}))),Y.apply(this,arguments)}function z(){return q.apply(this,arguments)}function q(){return q=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.abrupt("return",new Promise((function(e,n){Object(N["b"])(t).then((function(t){e(t.state)})).catch(n)})));case 2:case"end":return e.stop()}}),e)}))),q.apply(this,arguments)}function G(){return Q.apply(this,arguments)}function Q(){return Q=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.abrupt("return",new Promise((function(e,n){Object(N["h"])(t).then((function(t){e(t.state)})).catch(n)})));case 2:case"end":return e.stop()}}),e)}))),Q.apply(this,arguments)}function X(e){return Z.apply(this,arguments)}function Z(){return Z=Object(o["a"])(regeneratorRuntime.mark((function e(t){var n,i=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:{},e.abrupt("return",new Promise((function(e,i){Object(N["d"])(C(t,n),{"Content-Type":"multipart/form-data"}).then((function(t){e(t.result_list||[])})).catch(i)})));case 2:case"end":return e.stop()}}),e)}))),Z.apply(this,arguments)}function ee(e){return te.apply(this,arguments)}function te(){return te=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){request.post("/voice2str/deleteBnf",t).then((function(t){e(t&&t.result)})).catch(n)})));case 1:case"end":return e.stop()}}),e)}))),te.apply(this,arguments)}function ne(e){e.voice={getVoice:V,free_voice2str:F,getCommandWord:H,aacVoice:U,getBnf:J,addBnf:z,updateBnf:G,getBaseIE:X,deleteBnf:ee,recorder:I}}var ie=n("e301"),oe=n.n(ie);function re(e){e.screenshot=oe.a}n("a9e3");var ae=n("53ca"),se={signal:1,propertyUpdate:2,init:3,idle:4,debug:5,invokeMethod:6,connectToSignal:7,disconnectFromSignal:8,setProperty:9,response:10},ce=function(e,t){if("object"===Object(ae["a"])(e)&&"function"===typeof e.send){var n=this;this.transport=e,this.send=function(e){"string"!==typeof e&&(e=JSON.stringify(e)),n.transport.send(e)},this.transport.onmessage=function(e){var t=e.data;switch("string"===typeof t&&(t=JSON.parse(t)),t.type){case se.signal:n.handleSignal(t);break;case se.response:n.handleResponse(t);break;case se.propertyUpdate:n.handlePropertyUpdate(t);break;default:console.error("invalid message received:",e.data);break}},this.execCallbacks={},this.execId=0,this.exec=function(e,t){t?(n.execId===Number.MAX_VALUE&&(n.execId=Number.MIN_VALUE),e.hasOwnProperty("id")?console.error("Cannot exec message with property id: "+JSON.stringify(e)):(e.id=n.execId++,n.execCallbacks[e.id]=t,n.send(e))):n.send(e)},this.objects={},this.handleSignal=function(e){var t=n.objects[e.object];t?t.signalEmitted(e.signal,e.args):console.warn("Unhandled signal: "+e.object+"::"+e.signal)},this.handleResponse=function(e){e.hasOwnProperty("id")?(n.execCallbacks[e.id](e.data),delete n.execCallbacks[e.id]):console.error("Invalid response message received: ",JSON.stringify(e))},this.handlePropertyUpdate=function(e){for(var t in e.data){var i=e.data[t],o=n.objects[i.object];o?o.propertyUpdate(i.signals,i.properties):console.warn("Unhandled property update: "+i.object+"::"+i.signal)}n.exec({type:se.idle})},this.debug=function(e){n.send({type:se.debug,data:e})},n.exec({type:se.init},(function(e){for(var i in e)new ue(i,e[i],n);for(var i in n.objects)n.objects[i].unwrapProperties();t&&t(n),n.exec({type:se.idle})}))}else console.error("The QWebChannel expects a transport object with a send function and onmessage callback property. Given is: transport: "+Object(ae["a"])(e)+", transport.send: "+Object(ae["a"])(e.send))};function ue(e,t,n){this.__id__=e,n.objects[e]=this,this.__objectSignals__={},this.__propertyCache__={};var i=this;function o(e,t){var o=e[0],r=e[1];i[o]={connect:function(e){"function"===typeof e?(i.__objectSignals__[r]=i.__objectSignals__[r]||[],i.__objectSignals__[r].push(e),t||"destroyed"===o||n.exec({type:se.connectToSignal,object:i.__id__,signal:r})):console.error("Bad callback given to connect to signal "+o)},disconnect:function(e){if("function"===typeof e){i.__objectSignals__[r]=i.__objectSignals__[r]||[];var a=i.__objectSignals__[r].indexOf(e);-1!==a?(i.__objectSignals__[r].splice(a,1),t||0!==i.__objectSignals__[r].length||n.exec({type:se.disconnectFromSignal,object:i.__id__,signal:r})):console.error("Cannot find connection of signal "+o+" to "+e.name)}else console.error("Bad callback given to disconnect from signal "+o)}}}function r(e,t){var n=i.__objectSignals__[e];n&&n.forEach((function(e){e.apply(e,t)}))}function a(e){var t=e[0],o=e[1];i[t]=function(){for(var e,t=[],r=0;r0&&void 0!==arguments[0]?arguments[0]:"";return{$emit:function(t,n){var i=n.system;Ve.$emit(t,{payload:n,source:{appId:e,system:i}})},$on:function(e,t,n){var i=t.appIds,o=void 0===i?[]:i,r=t.system,a=function(e){var t=e.payload,i=e.source,a=o.includes(i.appId),s=!0===r&&!0===i.system;(a||s)&&n(t,i)};function s(){Ve.$off(e,a)}return Ve.$on(e,a),s}}}function Fe(e){return De.apply(this,arguments)}function De(){return De=Object(o["a"])(regeneratorRuntime.mark((function e(t){var n,o,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=[].concat(Object(i["a"])(Ve.apps),Object(i["a"])(Ve.widgets)),o=n.find((function(e){return e.id===t})),o){e.next=4;break}throw new Error("应用或浮窗不存在(id: ".concat(t,")"));case 4:if(o.instance){e.next=10;break}return r=Date.now(),e.next=8,He(o);case 8:o.instance=e.sent,o.loadTime=Date.now()-r;case 10:return e.abrupt("return",o);case 11:case"end":return e.stop()}}),e)}))),De.apply(this,arguments)}function He(e){return Ke.apply(this,arguments)}function Ke(){return Ke=Object(o["a"])(regeneratorRuntime.mark((function e(t){var n,i,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={ref:null},i={ref:null},o=Object(l["b"])({name:t.id,container:"#"+t.containerId,entry:t.entry,props:{tis:Object(a["a"])(Object(a["a"])(Object(a["a"])({},Je),Ee(t.id)),{},{appId:t.id,entry:t.entry,components:t.components,asserts:t.asserts}),onMessage:n,onMenu:i}},{sandbox:{strictStyleIsolation:!1,experimentalStyleIsolation:!0}}),e.next=5,o.bootstrapPromise.catch((function(e){throw console.error("boostrap: [".concat(t.name," ").concat(t.id,"] 出错"),e),e}));case 5:return e.abrupt("return",Object(a["a"])(Object(a["a"])({},o),{},{show:function(e){o.update({show:!0,params:e,theme:Ve.theme})},hide:function(){o.update({show:!1})},postMessage:function(e,t){if("function"===typeof n.ref)return n.ref(e,t)},postMenu:function(e){if("function"===typeof i.ref)return i.ref(e)},switchTheme:function(e){o.update({theme:e})}}));case 6:case"end":return e.stop()}}),e)}))),Ke.apply(this,arguments)}function Ue(e,t){return $e.apply(this,arguments)}function $e(){return $e=Object(o["a"])(regeneratorRuntime.mark((function e(t,n){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t.instance.getStatus(),"NOT_MOUNTED"!==i){e.next=20;break}if(e.prev=2,t.instance.mountPromise){e.next=8;break}return e.next=6,t.instance.mount();case 6:e.next=10;break;case 8:return e.next=10,t.instance.mountPromise;case 10:e.next=19;break;case 12:throw e.prev=12,e.t0=e["catch"](2),console.error("mount: [".concat(t.name," ").concat(t.id,"] 出错"),e.t0),t.instance=null,t.opened=!1,t.instance.mountPromise=null,e.t0;case 19:t.instance.mountPromise=null;case 20:t.opened=!0,t.instance.show(n);case 22:case"end":return e.stop()}}),e,null,[[2,12]])}))),$e.apply(this,arguments)}var Je=Object(a["a"])(Object(a["a"])({axios:A.a,Notifition:k,layouts:{},toggleVoiceBox:function(){Ve.visibleVoiceBox=!Ve.visibleVoiceBox},setSysAndWarTime:function(){return Object(o["a"])(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(N["i"])().catch((function(e){return console.error(e)}));case 2:if(t=e.sent,t){e.next=5;break}return e.abrupt("return");case 5:n="ws://".concat(document.domain,":").concat(Re?8080:3806,"/ws/stfw"),i=new WebSocket(n),i.addEventListener("message",(function(e){var t=JSON.parse(e.data).text,n=t.zztime,i=void 0===n?"":n,o=t.twtime,r=void 0===o?"":o;Ve.warAndAstrTime.warTime=Object(Te["e"])(i),Ve.warAndAstrTime.astrTime=Object(Te["e"])(r)}));case 8:case"end":return e.stop()}}),e)})))()},onLoaded:function(e){return new Promise((function(t,n){e.onload=e.onreadystatechange=function(){var n=e.readyState;("undefined"===typeof n||/^(loaded|complete)$/.test(n))&&(t(),e.onload=e.onerror=e.onreadystatechange=null)},e.onerror=function(){var t=e.readyState;("undefined"===typeof t||/^(loaded|complete)$/.test(t))&&(console.log("load js resources failed"),n({error:"load js resources failed"}),e.onload=e.onerror=e.onreadystatechange=null)}}))},loadTimeConsumingResources:function(){this.onLoaded(document).then((function(){console.log("<<<<=========基础资源加载完毕,第三方资源加载ing===========>>>>>");var e=["manager","appStore","monitor"];A.a.get("".concat(Le,"manifest/library.json")).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(n){var i,o,r,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:i=n.data,o=Object.keys(i).filter((function(t){return new RegExp(Ve.deviceType,"gi").test(i[t].target)&&!e.includes(window.currentLauncher)})),r=regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=o[t],e.next=3,Oe(i[n],Le).then((function(){return console.log("<<<<=========".concat(n,"资源加载完毕===========>>>>>"))}));case 3:case"end":return e.stop()}}),e)})),a=0;case 4:if(!(a>>>>");case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}))},getSysAndWarTime:function(){return Ve.warAndAstrTime},getDeviceType:function(){return Ve.deviceType},login:function(e){Ve.userInfo=e,localStorage.removeItem("USER_INFO"),localStorage.setItem("USER_INFO",JSON.stringify(Ve.userInfo))},loginOut:function(){Ve.userInfo={},Ve.openByKt=!1,Ve.whitelist=[],Ve.globalState={},Ve.appsSleeping=[],Ve.apps=[],Ve.widgets=[],Ve.visibleWidgetPanel=!1,Ve.visibleAppsPanel=!1,Ve.widgetListViewVisible=!1,Ve.visibleWidgetSysSetting=!1,Ve.visibleWidgetLogin=!1,Ve.visibleHistoricalNews=!1,Ve.visibleNotificationWhole=!1,Ve.visibleSearchBox=!1,Ve.visibleDialogBox=!1,Ve.visibleLookAtMsgBox=!1,Ve.messageItem={},Ve.messageBoxList=[],Ve.footerTimer=null,Ve.showFooter=!0,localStorage.removeItem("USER_INFO"),localStorage.removeItem("SYS_MODE"),this.openWidgetLoginPanel(),Object(N["w"])({mode:"0"}).then((function(e){}))},setFooterShow:function(){Ve.showFooter=!0},setFooterHide:function(){Ve.showFooter=!1},setNotificationConfig:function(e){Ve.notificationConfig=e,window.localStorage.setItem("MESSAGE_CONFIG",JSON.stringify(Ve.notificationConfig))},getNotificationConfig:function(){return Ve.notificationConfig},setLocation:function(e){var t=e.lat,n=void 0===t?"":t,i=e.lng,o=void 0===i?"":i;Ve.location.lat=n,Ve.location.lng=o},getLocation:function(){return Ve.location},getAlertSettingPageVisible:function(){return Ve.alertSettingPageVisible},setAlertSettingPageVisible:function(e){Ve.alertSettingPageVisible=e},getUserInfo:function(){return Ve.userInfo},showControlPanel:function(e){Ve.registerVisible.alarmMainWineowVisible=!1,Ve.alarmMainWineowVisible=!1,Ve.controlPanelPadVisible=!Ve.controlPanelPadVisible,Ve.registerVisible.controlPanelPadVisible=!Ve.controlPanelPadVisible},switchControlPadVisible:function(){Ve.controlPanelPadVisible=!Ve.controlPanelPadVisible,Ve.registerVisible.controlPanelPadVisible=!Ve.controlPanelPadVisible},openFullScreenAppId:function(){return this.GetRequest().appId},openAppTheme:function(){return this.GetRequest().theme},getGlobalState:function(e){return e?Ve.globalState[e]:Ve.globalState},setGlobalState:function(e,t){return c.a.set(Ve.globalState,e,t),Ve.globalState[t]},getApps:function(){return Ve.apps},addApps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.map((function(e){return Object(a["a"])(Object(a["a"])({},e),{},{containerId:"app_"+e.id,opened:!1,asserts:Ve.resource,privateBus:{}})}));Ve.apps=[].concat(Object(i["a"])(Ve.apps),Object(i["a"])(t))},getAllapps:function(){return Ve.allApps},addAllApps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Ve.allApps=e},getCurrentApp:function(){var e=Ve.apps,t=e.find((function(e){return e.opened}));return t},getRunningApps:function(){return Ve.apps.filter((function(e){return e.instance&&"MOUNTED"===e.instance.getStatus()}))},isMainApp:function(){var e=Ve.apps,t=e.find((function(e){return e.opened}));return!t||t.default},setApps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Ve.apps=e},postMessage:function(e){var t=arguments;return Object(o["a"])(regeneratorRuntime.mark((function n(){var i,o,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=t.length>1&&void 0!==t[1]?t[1]:{},o=t.length>2&&void 0!==t[2]?t[2]:{},n.next=4,Fe(e);case 4:return r=n.sent,n.abrupt("return",r.instance.postMessage(i,o));case 6:case"end":return n.stop()}}),n)})))()},onCurrentAppMenu:function(e){var t=this.getCurrentApp();t&&t.instance.postMenu(e)},openApp:function(e){var t=arguments;return Object(o["a"])(regeneratorRuntime.mark((function n(){var i,o,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=t.length>1&&void 0!==t[1]?t[1]:{},Ve.visibleSearchBox=!1,Ve.visibleNotificationWhole=!1,n.next=5,Fe(e);case 5:return o=n.sent,o.lastOpenTime=Date.now(),o.openTimes=(o.openTimes||0)+1,n.next=10,Ue(o,i);case 10:return r=Ve.appsSleeping.indexOf(o.id),-1!==r?(Ve.appsSleeping.splice(r,1),Ve.appsSleeping.unshift(o.id)):Ve.whitelist.includes(o.id)||(Ve.appsSleeping.length>=Ce&&Ve.appsSleeping.pop(),Ve.appsSleeping.unshift(o.id)),Ve.apps.forEach((function(e){e!==o&&e.opened&&e.instance&&(e.opened=!1,Ve.whitelist.includes(e.id)||-1!==Ve.appsSleeping.indexOf(e.id)?e.instance.hide():e.instance.unmount())})),n.abrupt("return",o);case 14:case"end":return n.stop()}}),n)})))()},openDefaultApp:function(){return Object(o["a"])(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=Ve.apps,n=t.find((function(e){return e.default})),n&&Je.openApp(n.id);case 3:case"end":return e.stop()}}),e)})))()},onHeaderVisible:function(e){Ve.headerVisible=e},getHeaderVisible:function(){return Ve.headerVisible},switchFrameTheme:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";document.documentElement.setAttribute("data-theme",e),Ve.theme=e,this.switchCurrentAppTheme();var t="default"===e?"":"-".concat(e),n=document.getElementById("tis_design_theme");console.log("process.env.VUE_APP_DEVLIB","dev");var i=Ne?"http://localhost:9902/":"",o=Re?"/":"/TIS_LIB/";n.setAttribute("href","".concat(i).concat(o,"tis-ui/theme-chalk/index").concat(t,".css")),localStorage.setItem("TIS_DESIGN_THEME",e)},switchCurrentAppTheme:function(){var e=this.getCurrentApp();e&&e.instance.update({theme:Ve.theme})},closeCurrentApp:function(){var e=this.getCurrentApp();if(e){e.opened=!1,Ve.whitelist.includes(e.id)||-1!==Ve.appsSleeping.indexOf(e.id)?e.instance.hide():e.instance.unmount(),Ve.appsSleeping.shift();var t=Ve.apps.find((function(e){return e.id===Ve.appsSleeping[0]}));t&&(t.opened=!0,t.instance.show())}},closeAppsPanel:function(){Ve.visibleAppsPanel=!1},openAppsPanel:function(){Ve.visibleAppsPanel=!0},isVisibleAppsPanel:function(){return Ve.visibleAppsPanel},closeWidgetPanel:function(){Ve.visibleWidgetPanel=!1},openWidgetPanel:function(){Ve.visibleWidgetPanel=!0},toggleWidgetPanel:function(){Ve.visibleWidgetPanel=!Ve.visibleWidgetPanel},isVisibleWidgetsPanel:function(){return Ve.visibleWidgetPanel},closeWidgetSettingPanel:function(){Ve.visibleWidgetSysSetting=!1},openWidgetSettingPanel:function(){Ve.visibleWidgetSysSetting=!0},controlPanelPadVisible:function(){Ve.controlPanelPadVisible=!Ve.controlPanelPadVisible},isVisibleWidgetsSettingPanel:function(){return Ve.visibleWidgetSysSetting},closeWidgetLoginPanel:function(){Ve.visibleWidgetLogin=!1},openWidgetLoginPanel:function(){Ve.visibleWidgetLogin=!0},isVisibleWidgetsLoginPanel:function(){return Ve.visibleWidgetLogin},closeHistoricalNews:function(){Ve.visibleHistoricalNews=!1},openHistoricalNews:function(){Ve.visibleHistoricalNews=!0,Ve.visibleNotificationWhole=!1},isVisibleHistoricalNews:function(){return Ve.visibleHistoricalNews},closeNotificationWhole:function(){Ve.visibleNotificationWhole=!1},openNotificationWhole:function(){Ve.visibleNotificationWhole=!0},toggleNotifycationWhole:function(){Ve.visibleNotificationWhole=!Ve.visibleNotificationWhole},isVisibleNotificationWhole:function(){return Ve.visibleNotificationWhole},isVisibleSearchBox:function(){return Ve.visibleSearchBox},toggleSearchBox:function(){Ve.visibleSearchBox=!Ve.visibleSearchBox},tggtoList:function(){Ve.visibleSearchBox=!1},visiblediwddae:function(){Ve.visiblediwd=!Ve.visiblediwd},visiblediwdfalse:function(){Ve.visiblediwd=!1},isVisiblelocationArtificial:function(){return Ve.locationArtificial},togglelocationArtificial:function(){Ve.locationArtificial=!Ve.locationArtificial},tggtolocationArtificial:function(){Ve.locationArtificial=!1},isVisibleMessageBox:function(){return Ve.visibleMessageBox},toggleMessageBox:function(){Ve.visibleMessageBox=!Ve.visibleMessageBox},togtomeslist:function(){Ve.visibleMessageBox=!1},isvisibleToListMail:function(){return Ve.visibleToListMail},toggToListMail:function(){Ve.visibleToListMail=!Ve.visibleToListMail},togToListMail:function(){Ve.visibleToListMail=!1},showMenuVisible:function(){Ve.menuVisible=!0},hideMenuVisible:function(){Ve.menuVisible=!1},closeDialogBox:function(){Ve.messageItem={},Ve.visibleDialogBox=!1},openDialogBox:function(e){Ve.messageItem=e,Ve.visibleDialogBox=!0},isVisibleDialogBox:function(){return Ve.visibleDialogBox},changeAppCardsVisible:function(e){this.$emit("visibleAppCards",e)},closeLookAtMsgBox:function(){Ve.msgBoxText="",Ve.visibleLookAtMsgBox=!1},openLookAtMsgBox:function(e){Ve.msgBoxText=e,Ve.visibleLookAtMsgBox=!0},isVisibleLookAtMsgBox:function(){return Ve.visibleLookAtMsgBox},getLookAtMsgBoxText:function(){return Ve.msgBoxText},getCurrMessage:function(){return Ve.messageItem},addMessageData:function(e){Ve.unReadMessageList.push(e)},getMessageCenterData:function(){return Ve.unReadMessageList},delMessage:function(e){var t=Ve.unReadMessageList.filter((function(t){return t.id==e&&e.length>15})).map((function(e){return e.isRead="1",Object(Te["d"])(e)}));t.length>0&&Object(N["x"])({Content:t}).catch((function(e){return console.error(e)})),Ve.unReadMessageList=Ve.unReadMessageList.filter((function(t){return t.id!==e}))},emptyMessage:function(){Ve.unReadMessageList=[]},showNotifyCation:function(){},addWidgets:function(e){var t=e.map((function(e){return Object(a["a"])(Object(a["a"])({},e),{},{containerId:"widget_"+e.id,opened:!1,asserts:Ve.resource})}));Ve.widgets=[].concat(Object(i["a"])(Ve.widgets),Object(i["a"])(t))},getAllwidgets:function(){return Ve.allWidgets},addAllWidgets:function(e){Ve.allWidgets=e},addComponents:function(e){Ve.allComponents=[].concat(Object(i["a"])(Ve.allComponents),Object(i["a"])(e.map((function(e){return Object(a["a"])(Object(a["a"])({},e),{},{loaded:!1})}))))},getAllComponents:function(){return Ve.allComponents},getWidgets:function(){return Ve.widgets},getOpenedWidgets:function(){return Ve.widgets.filter((function(e){return e.opened}))},initMessageBoxData:function(){},getMessageCount:function(){return window.api&&window.api.setUnReadMessage(Ve.unReadMessageList),Ve.unReadMessageList.length},getWidgetCount:function(){return Ve.widgets.length},getOpenedWidgetIds:function(){return Ve.widgets.filter((function(e){return e.opened})).map((function(e){return e.id}))},_saveOpenedWidgets:function(){sessionStorage.setItem("openedWidgets",JSON.stringify(this.getOpenedWidgetIds()))},restoreWidgetsFromSession:function(){var e=this;try{var t=sessionStorage.getItem("openedWidgets")||JSON.stringify([]);JSON.parse(t).forEach((function(t){e.openWidget(t)}))}catch(n){console.error(n)}},openWidget:function(e){var t=arguments,n=this;return Object(o["a"])(regeneratorRuntime.mark((function i(){var o,r;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return o=t.length>1&&void 0!==t[1]?t[1]:{},i.next=3,Fe(e);case 3:return r=i.sent,i.next=6,Ue(r,o);case 6:return n._saveOpenedWidgets(),i.abrupt("return",r);case 8:case"end":return i.stop()}}),i)})))()},closeWidget:function(e){var t=Ve.widgets.find((function(t){return t.id===e}));return t&&(t.opened=!1,t.instance.hide()),this._saveOpenedWidgets(),t},isFullScreen:function(){return Ve.isFullScreen},getAllresource:function(){return Ve.resource},addResource:function(e){Ve.resource=Object(a["a"])(Object(a["a"])({},Ve.resource),e)},initFrameView:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.apps,n=void 0===t?[]:t,o=e.widgets,r=void 0===o?[]:o,s=e.test,c=void 0!==s&&s,u=Ve.allComponents||[],l=[];n.forEach((function(e){var t=[],n=Ve.allApps.find((function(t){return t.id===e.id}));e.components.forEach((function(e){var n=u.find((function(t){return t.component===e}));n&&t.push(n)})),e.components=n&&n.components?[].concat(t,Object(i["a"])(n.components)):t})),l=r.map((function(e){var t=[],n=Ve.allWidgets.find((function(t){return t.id===e.id}));return e.components.forEach((function(e){var n=u.find((function(t){return t.component===e}));n&&t.push(n)})),e.components=n&&n.components?[].concat(Object(i["a"])(n.components),t):t,Object(a["a"])(Object(a["a"])({},e),n)})),c||(this.addApps(n.filter((function(e){return"TIS_RJJHJCKJ_WEB"!==e.id}))),this.addWidgets(l),this.openDefaultApp(),this.restoreWidgetsFromSession(),this._initUnReadMessageList(),this.initConfig())},getSchema:function(){return Ve.schema},initOMFrameView:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;Ve.apps=[],Object(N["o"])(t).then((function(t){var n=t.apps,i=void 0===n?[]:n;e.addApps(i),e.initConfig(),e.openDefaultApp()})).catch((function(e){return console.error(e)}))},initFrameViewByDefault:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.widgets,n=void 0===t?[]:t,i=e.apps,o=void 0===i?[]:i,r=e.resource,a=void 0===r?{}:r,s=e.components,c=void 0===s?[]:s,u=this.openFullScreenAppId(),l=this.openAppTheme();u?(this.addApps(o),this.addWidgets(n),this.restoreWidgetsFromSession(),this.openApp(u),console.log("当前theme=======>:",l),l&&this.switchFrameTheme(l)):(this.addApps(o),this.addWidgets(n),this.addResource(a),this.addComponents(c),this.restoreWidgetsFromSession(),this.initConfig(),this.openDefaultApp())},initConfig:function(){var e=window.localStorage.getItem("MESSAGE_CONFIG");e&&(Ve.notificationConfig=JSON.parse(e))},initAlldata:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.apps,n=void 0===t?[]:t,i=e.widgets,o=void 0===i?[]:i,r=e.components,a=void 0===r?[]:r;this.addAllApps(n),this.addAllWidgets(o),this.addComponents(a),this.openAppByIdImmediately()},openAppByIdImmediately:function(){var e=this.openFullScreenAppId(),t=this.openAppTheme();e&&(this.addApps(this.getAllapps()),this.addWidgets(this.getAllwidgets()),this.openApp(e),console.log("当前theme=======>:",t),t&&this.switchFrameTheme(t),this.closeWidgetLoginPanel(),Ve.applicationInterface={visible:!0,type:"app"})},GetRequest:function(){var e=location.search,t=new Object;if(-1!=e.indexOf("?"))for(var n=e.substr(1),i=n.split("&"),o=0;o0){var a=i.filter((function(e){return 0==e.isRead})).map((function(e){return Object(Te["c"])(e)}));a.forEach((function(t){return e.addMessageData(t)}))}}))},getRealNameFromAlias:function(e){return Ve.alias[e]},_loadComponent:function(e){return Object(o["a"])(regeneratorRuntime.mark((function t(){var n,i,o,a,s,u,l,p,d;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n="http://".concat(document.domain,":3806"),i=Ve.allComponents.find((function(t){return t.component===e}))||{},o=null,a=[];try{s=i.segprefix,o=Ve.resource[s],a=i.dependencies||[]}catch(f){console.error(f)}console.log("框架开始加载".concat(e,"组件资源..."),"所有组件信息",Ve.allComponents,"匹配到的组件信息",i,"该组件静态资源",o),u=Object(r["a"])(a),t.prev=7,u.s();case 9:if((l=u.n()).done){t.next=16;break}return p=l.value,d=Ve.resource[p]||null,t.next=14,Oe(d,n);case 14:t.next=9;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t["catch"](7),u.e(t.t0);case 21:return t.prev=21,u.f(),t.finish(21);case 24:return t.abrupt("return",new Promise((function(t,r){console.log("开始加载组件","组件:"+e,o),Oe(o,n).then((function(){var n=(new Date).getTime(),a=setInterval((function(){if(c.a.component("".concat(e)))t(i),clearInterval(a);else{var s=(new Date).getTime();s-n>2e3&&(r("[loading error:".concat(e,o?"]:loading component timed out":"]:组件资源加载失败")),clearInterval(a))}}),300)})).catch((function(t){r(o?"[loading error:".concat(e,"]:").concat(t):"[loading error:".concat(e,"]:组件资源加载失败"))}))})));case 25:case"end":return t.stop()}}),t,null,[[7,18,21,24]])})))()},worker:Ie,bus:Ve},Ee("",!0)),{},{fullScreen:function(e){Ve.isFullScreen=e,e&&Je.hiddenAllVisible()},hiddenAllVisible:function(){Object.keys(Ve.registerVisible).map((function(e){Ve[e]=!1})),Ve.applicationInterface.visible=!1},initAppBusById:function(e,t){var n=this.getApps().find((function(e){return e.id===t}));n.privateBus=e}});function Ye(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layouts,n=void 0===t?{}:t,o=e.whitelist,r=void 0===o?[]:o,a=e.schema,s=e.wsUrl,l=e.apps,p=void 0===l?[]:l,d=e.components,f=void 0===d?[]:d,g=e.hotkeys,h=e.alias,m=void 0===h?{}:h,b=e.theme,v=void 0===b?"default":b;Je.layouts=n,Ve.whitelist=Object(i["a"])(r),Ve.alias=m,Ve.schema=a,console.log("<<<=====切换主题=====>>>",v),v&&Je.switchFrameTheme(v),Je.addApps(p),Je.addComponents(f),Je.setSysAndWarTime();var w=new WebSocket(s);return Je.socket=w,w.addEventListener("open",(function(e){console.log("open ws",e)})),w.addEventListener("message",(function(e){var t=JSON.parse(e.data),n=t.text||t;"message"===n.type&&Je.$emit("message",n.payload)})),Je.bindPlatformHotkeys(g),window.esapp=Object.assign(window.esapp?window.esapp:window.esapp={},{Vue:c.a,vue:new c.a({store:O,router:Be,render:function(e){return e(_["default"])}}).$mount("#app"),add_path:function(e,t,n){O.registerModule(t,n)},add_store:function(e,t){O.commit(e,t)},Vuex:u["a"],VueRouter:{},registerAppAsync:function(e){return e},tis:Je,flag:Je}),Je}B(Je),ne(Je),le(Je),re(Je),c.a.prototype.$tis=new Proxy({loadApp:He},{get:function(e,t){return e[t]||Je[t]}});var ze=Je,qe={Login:function(){return Promise.all([n.e("chunk-dc27c620"),n.e("LoginPageKT")]).then(n.bind(null,"97e8"))},StatusBar:function(){return n.e("StatusBar").then(n.bind(null,"4bc8"))},SiderMenu:function(){return n.e("SiderMenu").then(n.bind(null,"756c"))},Footer:function(){return n.e("Footer").then(n.bind(null,"fd2d"))},NavBar:function(){return n.e("NavBar").then(n.bind(null,"d000"))},AppBar:function(){return n.e("AppBar").then(n.bind(null,"dd38"))},WidgetsPanel:function(){return n.e("WidgetsPanel").then(n.bind(null,"3b88"))},WidgetsView:function(){return n.e("WidgetsView").then(n.bind(null,"6746"))},Widget:function(){return n.e("Widget").then(n.bind(null,"9023"))},WidgetDR:function(){return n.e("WidgetDR").then(n.bind(null,"b6ee"))},AppView:function(){return n.e("AppView").then(n.bind(null,"9200"))},AppsPanel:function(){return n.e("AppsPanel").then(n.bind(null,"2d97"))},TaskKanban:function(){return n.e("TaskKanban").then(n.bind(null,"37aa"))},SettingSys:function(){return n.e("SettingSys").then(n.bind(null,"d121"))},NotificationWhole:function(){return n.e("NotificationWhole").then(n.bind(null,"01b0"))},HistoricalNews:function(){return n.e("HistoricalNews").then(n.bind(null,"f7e0"))},SearchBox:function(){return n.e("SearchBox").then(n.bind(null,"e52f"))},locationArtificial:function(){return n.e("locationArtificial").then(n.bind(null,"5020"))},MessageBox:function(){return n.e("MessageBox").then(n.bind(null,"521f"))},ToListMail:function(){return n.e("ToListMail").then(n.bind(null,"5f33"))}},Ge={Login:function(){return Promise.all([n.e("chunk-dc27c620"),n.e("LoginPage")]).then(n.bind(null,"5a1f"))},StatusBar:function(){return n.e("StatusBar").then(n.bind(null,"4bc8"))},SiderMenu:function(){return n.e("SiderMenu").then(n.bind(null,"756c"))},Footer:function(){return n.e("Footer").then(n.bind(null,"fd2d"))},NavBar:function(){return n.e("NavBar").then(n.bind(null,"d000"))},AppBar:function(){return n.e("AppBar").then(n.bind(null,"dd38"))},WidgetsPanel:function(){return n.e("WidgetsPanel").then(n.bind(null,"3b88"))},WidgetsView:function(){return n.e("WidgetsView").then(n.bind(null,"6746"))},Widget:function(){return n.e("Widget").then(n.bind(null,"9023"))},WidgetDR:function(){return n.e("WidgetDR").then(n.bind(null,"b6ee"))},AppView:function(){return n.e("AppView").then(n.bind(null,"9200"))},AppsPanel:function(){return n.e("AppsPanel").then(n.bind(null,"2d97"))},TaskKanban:function(){return n.e("TaskKanban").then(n.bind(null,"37aa"))},SettingSys:function(){return n.e("SettingSys").then(n.bind(null,"d121"))},NotificationWhole:function(){return n.e("NotificationWhole").then(n.bind(null,"01b0"))},HistoricalNews:function(){return n.e("HistoricalNews").then(n.bind(null,"f7e0"))},SearchBox:function(){return n.e("SearchBox").then(n.bind(null,"e52f"))},locationArtificial:function(){return n.e("locationArtificial").then(n.bind(null,"5020"))},MessageBox:function(){return n.e("MessageBox").then(n.bind(null,"521f"))},ToListMail:function(){return n.e("ToListMail").then(n.bind(null,"5f33"))}},Qe={"ctrl+w":"toggleWidgetPanel","ctrl+h":"toggleNotifycationWhole"},Xe="/TIS_PLATFORM/",Ze=!1,et={KT:qe,QB:Ge},tt={schema:"",layouts:{},whitelist:[],wsUrl:"ws://".concat(document.domain,":").concat(Ze?8080:3806,"/ws/ch1"),apps:[{id:"TIS_APP_FRAME_YYSC",entry:"/TIS_APP_FRAME_YYSC/",name:"应用市场",icon:"/TIS_APP_FRAME_YYSC/icon.png",system:!0},{id:"TIS_APP_FRAME_YXJK",entry:"/TIS_APP_FRAME_YXJK/",name:"运行监控",icon:"/TIS_APP_FRAME_YXJK/icon.png",system:!0}],widgets:[],appIds:{},components:[{name:"时统",component:"tis_sjtyfw",segprefix:"TIS_COMPONET_STFW"},{name:"kt名录",component:"tis_txl",segprefix:"TIS_COMPONET_TXL"}]};function nt(){return it.apply(this,arguments)}function it(){return it=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,n,o,r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return ze.loadTimeConsumingResources(),ze.openWidgetLoginPanel(),ze.switchFrameTheme(localStorage.getItem("TIS_DESIGN_THEME")||"default"),e.next=5,A.a.get("".concat(Ze?Xe:"/","xmlx.json")).then((function(e){return e.data})).catch((function(e){return{schema:"",theme:""}}));case 5:return t=e.sent,e.next=8,A.a.get("".concat(Xe,"/manifest/manifest.json")).then((function(e){return e.data}));case 8:n=e.sent,o=new Promise((function(e,t){Object(N["j"])({userid:"",roleid:"",isNew:!0}).then((function(t){e({type:"p1",data:t.data})})).catch((function(){t()}))})),r=new Promise((function(e,t){Object(N["q"])({isNew:!0}).then((function(t){return e({type:"p2",data:t.data})})).catch((function(){t(),console.log("资源接口请求失败,访问本地文件")}))})),a=!0,console.log("当前运行模式========>",a),a||Promise.all([o,r]).then((function(e){e.forEach((function(e){var t=e.data;switch(e.type){case"p1":ze.initAlldata({apps:t.apps,widgets:t.widgets,components:t.components});break;case"p2":ze.addResource(t);break;default:break}}))})).catch((function(e){console.log("应用商店接口访问失败",e)})),tt.whitelist=[].concat(Object(i["a"])(tt.whitelist),Object(i["a"])(n.whitelist)),tt.wsUrl=n.wsUrl||tt.wsUrl,tt.alias=n.alias||{},tt.hotkeys=Qe,tt.schema=t.schema||"QB",tt.theme=t.theme,tt.layouts=et["".concat(tt.schema)],Ye(tt),ze.initMessageBoxData();case 23:case"end":return e.stop()}}),e)}))),it.apply(this,arguments)}nt(),window.tis=ze,ze.$on("TIS_TEMPLATE_MENU_ACTIVE",{system:!0},(function(e){var t=e.appId,n=e.onActives,i=ze.getApps().find((function(e){return e.id===t}));i.hasOwnProperty("menuBar")&&(i.menuBar.forEach((function(e){e.active=n.includes(e.component[0])})),console.log(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>",n,i.menuBar))})),ze.$on("message",{system:!0},function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var n,i,o,r,a,s,c,u,l,p,d;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=t.msgType,i=t.appId,o=t.openAppParams,r=t.message,"OPEN_APP"===n?ze.openApp(i,o):"NONTIFY_APP"===n?ze.postMessage(i,o):"SILENT_APP"===n&&(console.log(r),Object(N["v"])({isPush:!0,Content:[Object(Te["d"])(r)]}).then((function(e){var t=e.Code,n=e.content;200==t&&(r.id=n[0].uuid,ze.addMessageData(r))})).catch((function(e){console.log(e),ze.addMessageData(r)})),a=ze.getNotificationConfig(),s=a.disturb,c=void 0!==s&&s,u=a.startTime,l=void 0===u?"":u,p=a.endTime,d=void 0===p?"":p,(!c||!Object(Te["a"])(l,d))&&!ze.isVisibleNotificationWhole()&&ze.Notifition.show(r));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},"6f16":function(e,t){},"8bbf":function(t,n){t.exports=e},"91ab":function(e,t,n){},befc:function(e,t,n){"use strict";n.r(t);var i=n("1fcd"),o=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},ca53:function(e,t,n){"use strict";n.r(t);var i=n("196f"),o=n("befc");for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a=n("2877"),s=Object(a["a"])(o["default"],i["a"],i["b"],!1,null,null,null);t["default"]=s.exports},d0ad:function(e,t,n){},e0cf:function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));n("99af"),n("a15b"),n("baa5"),n("a9e3"),n("d3b7"),n("4d63"),n("ac1f"),n("25f0"),n("5319");Date.prototype.format=function(e){var t={"M+":this.getMonth()+1,"d+":this.getDate(),"H+":this.getHours(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var n in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),t)new RegExp("("+n+")").test(e)&&(e=e.replace(RegExp.$1,1===RegExp.$1.length?t[n]:("00"+t[n]).substr((""+t[n]).length)));return e};var i=function(e){return{userid:window.tis.getUserInfo().userid,updatetime:(new Date).format("yyyy-MM-dd hh:mm:ss"),prefixname:e.appName,destination:"",source:e.type,accepttime:new Date(Number(e.time)).format("yyyy-MM-dd hh:mm:ss"),id:e.id,isFrontShow:"false",isRead:e.isRead||0,level:e.level+"",type:e.type,text:e.text,content:e.title,url:e.url,component:e.component+""||"",opencp:e.reply+"",extra:JSON.stringify(e.extra)||"",uuid:e.id}},o=function(e){return{id:e.uuid,appName:e.prefixname,text:e.text,type:e.type,level:e.level||2,component:1,time:new Date(e.accepttime).getTime(),title:e.content,reply:e.opencp||0,isRead:e.isRead,url:e.url}};function r(e,t){return e.length=0&&n.getTime()<=o.getTime()},c=function(){var e="",t=window.location.href;return/pad/gi.test(t)&&(e="pad"),/mobile/gi.test(t)&&(e="mobile"),/pc/gi.test(t)&&(e="pc"),e}},e1d2:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return u}));n("d3b7");var i=n("bc3a"),o=n.n(i),r=n("4328"),a=n.n(r),s=o.a.create({paramsSerializer:function(e){return a.a.stringify(e,{arrayFormat:"brackets"})}});function c(e,t){return new Promise((function(n,i){s.get(e,{params:t}).then((function(e){return n(e.data)})).catch((function(e){return i(e)}))}))}function u(e,t){return new Promise((function(n,i){s.post(e,t).then((function(e){return n(e.data)})).catch((function(e){i(e)}))}))}}})}));