You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
60 KiB
1 lines
60 KiB
(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=[];l<s.length;l++)o=s[l],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&p.push(r[o][0]),r[o]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);d&&d(t);while(p.length)p.shift()();return a.push.apply(a,u||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],i=!0,o=1;o<n.length;o++){var s=n[o];0!==r[s]&&(i=!1)}i&&(a.splice(t--,1),e=c(c.s=n[0]))}return e}var i={},o={app:0},r={app:0},a=[];function s(e){return c.p+"js/"+({AppBar:"AppBar",AppView:"AppView",AppsPanel:"AppsPanel",Footer:"Footer",HistoricalNews:"HistoricalNews",MessageBox:"MessageBox",NavBar:"NavBar",NotificationWhole:"NotificationWhole",SearchBox:"SearchBox",SettingSys:"SettingSys",SiderMenu:"SiderMenu",StatusBar:"StatusBar",TaskKanban:"TaskKanban",ToListMail:"ToListMail",Widget:"Widget",WidgetDR:"WidgetDR",WidgetsPanel:"WidgetsPanel",WidgetsView:"WidgetsView",LoginPage:"LoginPage",LoginPageKT:"LoginPageKT",locationArtificial:"locationArtificial"}[e]||e)+".js"}function c(t){if(i[t])return i[t].exports;var n=i[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,c),n.l=!0,n.exports}c.e=function(e){var t=[],n={AppBar:1,AppView:1,AppsPanel:1,Footer:1,HistoricalNews:1,MessageBox:1,NavBar:1,NotificationWhole:1,SearchBox:1,SettingSys:1,SiderMenu:1,StatusBar:1,TaskKanban:1,ToListMail:1,Widget:1,WidgetDR:1,WidgetsPanel:1,WidgetsView:1,"chunk-1d83bc38":1,"chunk-7cc1d81e":1,"chunk-daf00976":1,LoginPage:1,"chunk-4829b1f4":1,LoginPageKT:1,locationArtificial:1};o[e]?t.push(o[e]):0!==o[e]&&n[e]&&t.push(o[e]=new Promise((function(t,n){for(var i="css/"+({AppBar:"AppBar",AppView:"AppView",AppsPanel:"AppsPanel",Footer:"Footer",HistoricalNews:"HistoricalNews",MessageBox:"MessageBox",NavBar:"NavBar",NotificationWhole:"NotificationWhole",SearchBox:"SearchBox",SettingSys:"SettingSys",SiderMenu:"SiderMenu",StatusBar:"StatusBar",TaskKanban:"TaskKanban",ToListMail:"ToListMail",Widget:"Widget",WidgetDR:"WidgetDR",WidgetsPanel:"WidgetsPanel",WidgetsView:"WidgetsView",LoginPage:"LoginPage",LoginPageKT:"LoginPageKT",locationArtificial:"locationArtificial"}[e]||e)+".css",r=c.p+i,a=document.getElementsByTagName("link"),s=0;s<a.length;s++){var u=a[s],l=u.getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(l===i||l===r))return t()}var p=document.getElementsByTagName("style");for(s=0;s<p.length;s++){u=p[s],l=u.getAttribute("data-href");if(l===i||l===r)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=t,d.onerror=function(t){var i=t&&t.target&&t.target.src||r,a=new Error("Loading CSS chunk "+e+" failed.\n("+i+")");a.code="CSS_CHUNK_LOAD_FAILED",a.request=i,delete o[e],d.parentNode.removeChild(d),n(a)},d.href=r;var f=document.getElementsByTagName("head")[0];f.appendChild(d)})).then((function(){o[e]=0})));var i=r[e];if(0!==i)if(i)t.push(i[2]);else{var a=new Promise((function(t,n){i=r[e]=[t,n]}));t.push(i[2]=a);var u,l=document.createElement("script");l.charset="utf-8",l.timeout=120,c.nc&&l.setAttribute("nonce",c.nc),l.src=s(e);var p=new Error;u=function(t){l.onerror=l.onload=null,clearTimeout(d);var n=r[e];if(0!==n){if(n){var i=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;p.message="Loading chunk "+e+" failed.\n("+i+": "+o+")",p.name="ChunkLoadError",p.type=i,p.request=o,n[1](p)}r[e]=void 0}};var d=setTimeout((function(){u({type:"timeout",target:l})}),12e4);l.onerror=l.onload=u,document.head.appendChild(l)}return Promise.all(t)},c.m=e,c.c=i,c.d=function(e,t,n){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},c.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(c.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)c.d(n,i,function(t){return e[t]}.bind(null,i));return n},c.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="/TIS_PLATFORM/",c.oe=function(e){throw console.error(e),e};var u=window["webpackJsonp_TIS_PLATFORM"]=window["webpackJsonp_TIS_PLATFORM"]||[],l=u.push.bind(u);u.push=t,u=u.slice();for(var p=0;p<u.length;p++)t(u[p]);var d=l;return a.push([0,"chunk-vendors"]),n()}({0:function(e,t,n){e.exports=n("56d7")},"196f":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("router-view")},o=[]},"1fcd":function(e,t){},"441a":function(e,t,n){},"4ec3":function(e,t,n){"use strict";n.d(t,"j",(function(){return a})),n.d(t,"q",(function(){return s})),n.d(t,"s",(function(){return c})),n.d(t,"n",(function(){return u})),n.d(t,"m",(function(){return l})),n.d(t,"v",(function(){return p})),n.d(t,"x",(function(){return d})),n.d(t,"p",(function(){return f})),n.d(t,"k",(function(){return g})),n.d(t,"l",(function(){return h})),n.d(t,"r",(function(){return m})),n.d(t,"y",(function(){return b})),n.d(t,"i",(function(){return v})),n.d(t,"o",(function(){return w})),n.d(t,"w",(function(){return y})),n.d(t,"g",(function(){return S})),n.d(t,"c",(function(){return x})),n.d(t,"f",(function(){return O})),n.d(t,"a",(function(){return _})),n.d(t,"e",(function(){return j})),n.d(t,"b",(function(){return A})),n.d(t,"h",(function(){return P})),n.d(t,"d",(function(){return T})),n.d(t,"t",(function(){return M})),n.d(t,"u",(function(){return k}));n("99af");var i=n("e1d2"),o="/TIS_PLATFORM/",r=!1,a=function(e){return Object(i["a"])("".concat(r?"":"http://".concat(document.domain,":55555"),"/api/tisyysc/yysccore/esplug"),e).catch((function(){return Object(i["a"])("".concat(o,"manifest/apps_widgets.json"))}))},s=function(e){return Object(i["b"])("".concat(r?"":"http://".concat(document.domain,":55555"),"/api/tisyysc/yysccore/htmlresource"),e)},c=function(e){return Object(i["b"])("/api/tisyhgl/KeyLogin/usr_verify",e)},u=function(e){return Object(i["b"])("/api/tisyhgl/KeyLogin/getMenuByRoleId",e)},l=function(e){return Object(i["a"])("/api/207S_MLYY/mlyy/localseat",e)},p=function(e){return Object(i["b"])("/api/tisframework/msgtool/recvmsg/insert",e)},d=function(e){return Object(i["b"])("/api/tisframework/msgtool/recvmsg/update",e)},f=function(e){return Object(i["a"])("/api/tisframework/msgtool/get_recvmsg",e)},g=function(e){return Object(i["b"])("/api/tisframework/msgtool/recvmsg/delete",e)},h=function(e){return Object(i["b"])("/api/tisframework/msgtool/sendmsg/delete",e)},m=function(e){return Object(i["a"])("/api/tisframework/msgtool/get_sendmsg",e)},b=function(e){return Object(i["b"])("/api/tisframework/msgtool/sendmsg/update",e)},v=function(e){return Object(i["a"])("/api/tisstfw/tisstfw/getBaseInfo",e)},w=function(e){return Object(i["a"])("".concat(o,"/manifest/om_esplug_").concat(0===e?"low":"senior",".json"),e)},y=function(e){return Object(i["b"])("/api/tisyhgl/manage/mode/setMode",e)},S=function(e){return Object(i["b"])("/api/aisound/voice2str/getVoice",e)},x=function(e){return Object(i["b"])("/api/aisound/voice2str/free_voice2str",e)},O=function(e){return Object(i["b"])("/api/aisound/voice2str/post_test",e)},_=function(e){return Object(i["b"])("/api/aisound/voice2str/aacVoice",e)},j=function(e){return Object(i["a"])("/api/aisound/voice2str/getBnf",e)},A=function(e){return Object(i["b"])("/api/aisound/voice2str/addCompName",e)},P=function(e){return Object(i["b"])("/api/aisound/voice2str/updateBnf",e)},T=function(e){return Object(i["b"])("/api/aisound/voice2str/getBaseIE",e)},M=function(){return Object(i["a"])("".concat(o,"mock/apps_widgets_cps.json"))},k=function(){return Object(i["a"])("".concat(o,"mock/esplug.json"))}},"4eec":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div")},o=[],r=(n("91ab"),{name:"Notification",data:function(){return{notifications:{},timer:null}},created:function(){},methods:{renderClass:function(e){return 2==e?"noticeWrapYellow":3==e?"noticeWraRed":"noticeWrap"},handleBtn:function(e,t){alert(e),console.log(e,t)},closeNotification:function(e){console.log(this.notifications,"weee",e),this.notifications[e].close(),delete this.notifications[e]},show:function(e){var t=e.id,n=(e.appName,e.text),i=(e.type,e.level),o=(e.compent,e.time,e.title),r=(e.replay,e.btn),a=void 0===r?1:r,s=this.$tis.getNotificationConfig(),c=(s.voiceHint,s.precise),u=void 0===c?"模糊":c;s.rightHint;console.log("模糊"!==u?n:"您收到一条消息");var l=this.$createElement,p=this,d=this.$notify({message:l("div",{class:this.renderClass(i)},[l("div",{class:"notice-content",style:{display:3==a?"block":"none"}},"模糊"!==u?n:"您收到一条消息"),l("div",{class:"buttonOne",style:{display:1==a?" flex":"none"}},[l("span",{class:"content"},"模糊"!==u?n:"您收到一条消息")]),l("div",{class:"groupButtonTwoWrap",style:{display:2==a?" flex":"none"}},[l("span",{class:"groupButtonTwo"},[l("span",{on:{click:function(){p.handleBtn(1,e)}}},"主按钮"),l("span",{on:{click:function(){p.handleBtn(2,e)}}},"次按钮")]),l("span",{class:"content-wrap"},[l("span",{class:"content-title"},o),l("span",{class:"content"},n)])]),l("div",{class:"groupButtontThird",style:{display:3==a?" flex":"none"}},[l("span",{class:"closeWrap",on:{click:function(){p.closeNotification(t)}}},"关闭"),l("span",{on:{click:function(){p.handleBtn(3,e)}}},[l("i",{class:"el-icon-video-camera"}),l("em",{},"视频接听")]),l("span",{on:{click:function(){p.handleBtn(4,e)}}},[l("i",{class:"el-icon-chat-dot-square"}),l("em",{},"语音接听")])])]),dangerouslyUseHTMLString:!0,duration:5e3,showClose:1==a,offset:100});this.notifications[t]=d}}}),a=r,s=n("2877"),c=Object(s["a"])(a,i,o,!1,null,null,null);t["a"]=c.exports},"56d7":function(e,t,n){"use strict";n.r(t);n("99af"),n("7db0"),n("4160"),n("caad"),n("d3b7"),n("2532"),n("3ca3"),n("159b"),n("ddb0");var i=n("2909"),o=(n("96cf"),n("1da1")),r=(n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("d0ad"),n("441a"),n("4de4"),n("c975"),n("d81d"),n("a434"),n("b0c0"),n("b64b"),n("4d63"),n("ac1f"),n("25f0"),n("841c"),n("1276"),n("b85c")),a=n("5530"),s=n("8bbf"),c=n.n(s),u=n("2f62"),l=n("34ac9"),p=(n("f5df1"),n("6f16")),d={getTestData:function(e){return e.testData}},f={testData:"KKKKKK",acceptData:"oooooooooooooooo"},g=f,h=n("ade3"),m="SET_TEST",b=Object(h["a"])({},m,(function(e,t){e.testData=t})),v=b,w=n("b054"),y=n.n(w),S=!1;c.a.use(u["a"]);var x,O=new u["a"].Store({modules:{test:{namespaced:!0,state:g,getters:d,actions:p,mutations:v}},strict:S,plugin:S?[y()()]:[]}),_=n("ca53"),j=n("bc3a"),A=n.n(j),P=n("4eec"),T=c.a.extend(P["a"]),M=function(){return x||(x=new T,x.vm=x.$mount(),document.body.appendChild(x.vm.$el),x)};M.show=function(e){var t=new M;t.show(e)};var k=M,W=n("9b6a");function B(e){e._platformHotkeys=[],e.bindPlatformHotkeys=function(t){e._platformHotkeys=Object.keys(t);var n=function(n){Object(W["a"])(n,(function(i){i.preventDefault();var o=t[n];"function"!==typeof e[o]?alert("快捷键调用失败,tis不存在".concat(o)):e[o]()}))};for(var i in t)n(i)},e.bindAppHotkeys=function(t,n,i){if(e._platformHotkeys.includes(t))throw new Error("".concat(t,"快捷键已被框架占用,请更换"));Object(W["a"])(t,(function(e){e.preventDefault(),i(e)}))}}var N=n("4ec3"),R=n("da43"),L=n.n(R),I=new L.a;function C(e){var t=arguments.length>1&&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;r<arguments.length;++r)"function"===typeof arguments[r]?e=arguments[r]:t.push(arguments[r]);n.exec({type:se.invokeMethod,object:i.__id__,method:o,args:t},(function(t){if(void 0!==t){var n=i.unwrapQObject(t);e&&e(n)}}))}}function s(e){var t=e[0],r=e[1],a=e[2];i.__propertyCache__[t]=e[3],a&&(1===a[0]&&(a[0]=r+"Changed"),o(a,!0)),Object.defineProperty(i,r,{configurable:!0,get:function(){var e=i.__propertyCache__[t];return void 0===e&&console.warn('Undefined value in property cache for property "'+r+'" in object '+i.__id__),e},set:function(e){void 0!==e?(i.__propertyCache__[t]=e,n.exec({type:se.setProperty,object:i.__id__,property:t,value:e})):console.warn("Property setter for "+r+" called with undefined value!")}})}for(var e in this.unwrapQObject=function(e){if(e instanceof Array){for(var t=new Array(e.length),o=0;o<e.length;++o)t[o]=i.unwrapQObject(e[o]);return t}if(!e||!e["__QObject*__"]||void 0===e.id)return e;var r=e.id;if(n.objects[r])return n.objects[r];if(e.data){var a=new ue(r,e.data,n);return a.destroyed.connect((function(){if(n.objects[r]===a){delete n.objects[r];var e=[];for(var t in a)e.push(t);for(var i in e)delete a[e[i]]}})),a.unwrapProperties(),a}console.error("Cannot unwrap unknown QObject "+r+" without data.")},this.unwrapProperties=function(){for(var e in i.__propertyCache__)i.__propertyCache__[e]=i.unwrapQObject(i.__propertyCache__[e])},this.propertyUpdate=function(e,t){for(var n in t){var o=t[n];i.__propertyCache__[n]=o}for(var a in e)r(a,e[a])},this.signalEmitted=function(e,t){r(e,t)},t.methods.forEach(a),t.properties.forEach(s),t.signals.forEach((function(e){o(e,!1)})),t.enums)i[e]=t.enums[e]}function le(e){function t(e){return new Promise((function(t,n){window.qt||n(new Error("当前不在QT环境里")),new ce(window.qt.webChannelTransport,(function(n){var i=n.objects.webobj,o=i.jscallme(JSON.stringify(e));t(o)}))}))}e.qt={QWebChannel:ce,QObject:ue,jscallme:t}}var pe=n("f633"),de=n.n(pe),fe=(n("6062"),document.querySelector("body"));function ge(e){return he.apply(this,arguments)}function he(){return he=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:if(t.length){e.next=2;break}return e.abrupt("return");case 2:n=Object(r["a"])(t),e.prev=3,o=regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=i.value,fe.appendChild(t),e.next=4,ve(t).catch((function(){fe.removeChild(t)}));case 4:case"end":return e.stop()}}),e)})),n.s();case 6:if((i=n.n()).done){e.next=10;break}return e.delegateYield(o(),"t0",8);case 8:e.next=6;break;case 10:e.next=15;break;case 12:e.prev=12,e.t1=e["catch"](3),n.e(e.t1);case 15:return e.prev=15,n.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[3,12,15,18]])}))),he.apply(this,arguments)}function me(e){var t=document.createElement("link");return t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),t}function be(e){var t=document.createElement("script");return t.setAttribute("type","text/javascript"),t.setAttribute("src",e.src?e.src:e),t}function ve(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)}}))}var we=new Set,ye=!1,Se=ye?"/TIS_PLATFORM/":"",xe="";function Oe(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=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)/,xe=i.test(n)?n:"",void 0!==t&&null!=t){e.next=4;break}return e.abrupt("return",Promise.resolve("[所加载资源为null]"));case 4:return e.next=6,je(t)();case 6:case"end":return e.stop()}}),e)}))),_e.apply(this,arguments)}function je(e){return Object(o["a"])(regeneratorRuntime.mark((function t(){var n,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(void 0!==e&&null!=e){t.next=2;break}return t.abrupt("return");case 2:if(n=e.cssFiles,o=e.jsFiles,!n){t.next=8;break}return t.next=6,ge([].concat(Object(i["a"])(n.filter(Pe).map(Ae).map(me)),Object(i["a"])(o.filter(Pe).map(Ae).map(be))),we);case 6:t.next=10;break;case 8:return t.next=10,ge(Object(i["a"])(o.filter(Pe).map(Ae).map(be)),we);case 10:case"end":return t.stop()}}),t)})))}function Ae(e){return(xe||Se)+e}function Pe(e){var t=we.has(e);return we.add(e),!t}var Te=n("e0cf"),Me=n("8c4f");c.a.use(Me["a"]);var ke=[{name:"app",path:"/",redirect:"/pc",component:function(){return Promise.resolve().then(n.bind(null,"ca53"))}},{path:"/pc",name:"pc",meta:{title:"index"},component:function(){return Promise.all([n.e("chunk-dc27c620"),n.e("LoginPage"),n.e("chunk-4829b1f4")]).then(n.bind(null,"6f12"))}},{path:"/pad",name:"pad",meta:{title:"pad"},component:function(){return Promise.all([n.e("chunk-1d83bc38"),n.e("chunk-7cc1d81e")]).then(n.bind(null,"8e69"))}},{path:"/mobile",name:"mobile",meta:{title:"mobile"},component:function(){return Promise.all([n.e("chunk-1d83bc38"),n.e("chunk-daf00976")]).then(n.bind(null,"53d2"))}}],We=new Me["a"]({mode:"hash",base:"/TIS_PLATFORM/",routes:ke,scrollBehavior:function(e,t,n){return n||(e.hash?{selector:e.hash}:{x:0,y:0})}}),Be=We,Ne=!0,Re=Ne,Le="/TIS_PLATFORM/",Ie=de.a.pool(),Ce=5;c.a.config.productionTip=!1,c.a.prototype.$Notifition=k,c.a.prototype.$EsDataMsg=function(){};var Ve=new c.a({data:{devMode:Re,schema:"",alias:{},userInfo:{},openByKt:!1,resource:{},allComponents:[],whitelist:[],globalState:{},appsSleeping:[],apps:[],widgets:[],allApps:[],allWidgets:[],location:{},deviceType:Object(Te["b"])()||"pc",visibleWidgetPanel:!1,visibleAppsPanel:!1,widgetListViewVisible:!1,visibleWidgetSysSetting:!1,controlPanelPadVisible:!1,visibleWidgetLogin:!1,visibleHistoricalNews:!1,visibleNotificationWhole:!1,visibleSearchBox:!1,visibleDialogBox:!1,visibleLookAtMsgBox:!1,visibleVoiceBox:!1,msgBoxText:"",isFullScreen:!1,messageItem:{},messageBoxList:[],warAndAstrTime:{astrTime:"----/--/-- --:--:--",warTime:"----/--/-- --:--:--"},footerTimer:null,showFooter:!0,alertSettingPageVisible:!1,locationArtificial:!1,visibleMessageBox:!1,visibleToListMail:!1,visiblediwd:!1,headerVisible:!0,theme:document.documentElement.getAttribute("data-theme")||"default",showMoreContent:!1,menuVisible:!1,applicationInterface:{visible:!1,name:null},alarmMainWineowVisible:!1,alarmSendVisible:!1,searchBoxPadVisible:!1,SettingSysPadVisible:!1,messageCenterVisible:!1,txlVisiable:!1,registerVisible:{},notificationConfig:{voiceHint:"无",precise:"模糊",rightHint:!0,disturb:!1,startTime:"",endTime:""},unReadMessageList:[{id:0,appName:"taishiganzhi",text:"态势感知态势感知态势感知态势感知知态势感",type:"态势感知",level:3,compnent:1,time:1619827200,title:"态势感知",reply:0},{id:1,appName:"taishiganzhi",text:"态势感知态势感知态势感知态势感知知态势感",type:"态势感知",level:3,compnent:1,time:16225056e5,title:"态势感知",reply:1},{id:11,appName:"taishiganzhi",text:"态势感知态势感知态势感知态势感知知态势感",type:"态势感知",level:3,compnent:1,time:16225056e5,title:"态势感知",reply:1},{id:12,appName:"taishiganzhi",text:"态势感知态势感知态势感知态势感知知态势感",type:"态势感知",level:3,compnent:1,time:16225056e5,title:"态势感知",reply:1},{id:13,appName:"taishiganzhi",text:"态势感知态势感知态势感知态势感知知态势感",type:"态势感知",level:3,compnent:1,time:16225056e5,title:"态势感知",reply:1},{id:14,appName:"taishiganzhi",text:"态势感知态势感知态势感知态势感知知态势感",type:"态势感知",level:3,compnent:1,time:16225056e5,title:"态势感知",reply:1},{id:2,appName:"kongzhanbaojing",text:"态势感知态势感知态势感知态势感知态势感知态势",type:"空战报警",level:1,compnent:1,time:16229724e5,title:"",reply:1},{id:3,appName:"kongzhanbaojing",text:"态势感知态势感知态势感知态势感知态势感知态势",type:"空战报警",level:1,compnent:1,time:16229724e5,title:"",reply:1}],messageCenterData:{taishigaizhi:[{id:1,appName:"taishiganzhi",text:"态势感知态势感知态势感知态势感知态势感感",type:"态势感知",level:3,compnent:1,time:"10分钟",title:"态势感知",reply:1},{id:11,appName:"taishiganzhi",text:"态势感知态势感知态势感知态势感知态势感感",type:"态势感知",level:3,compnent:1,time:"10分钟",title:"态势感知",reply:0},{id:12,appName:"taishiganzhi",text:"态势感知态势感知态势感知态势感知态势感感",type:"态势感知",level:3,compnent:1,time:"10分钟",title:"态势感知",reply:0}],kongzhanbaojing:[{id:2,appName:"kongzhanbaojing",text:"态势感知态势感知态势感知态势感知态势感知态势",type:"空战报警",level:1,compnent:1,time:"10分钟",title:"",reply:1}]}}});function Ee(){var e=arguments.length>0&&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<o.length)){t.next=9;break}return t.delegateYield(r(a),"t0",6);case 6:a++,t.next=4;break;case 9:console.log("<<<<=========第三方资源加载完毕===========>>>>>");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;o<i.length;o++)t[i[o].split("=")[0]]=unescape(i[o].split("=")[1]);return t},_initUnReadMessageList:function(){var e=this,t={userid:this.getUserInfo().userid,type:"",prefixname:"",starttime:"",endtime:"",currentPage:"",pageShowNum:""};Object(N["p"])(t).then((function(t){var n=t.Content,i=void 0===n?[]:n,o=t.TotalNum,r=void 0===o?0:o;if(r>0){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<t?"0"+e:e}var a=function(e){var t=new Date(e);if("string"===typeof e||isNaN(e))return"----/--/-- --:--:--";var n=t.getFullYear(),i=r((t.getMonth()+1).toString(),2),o=r(t.getDate().toString(),2),a=r(t.getHours().toString(),2),s=r(t.getMinutes().toString(),2),c=r(t.getSeconds().toString(),2);return"".concat(n,"/").concat(i,"/").concat(o," ").concat(a,":").concat(s,":").concat(c)},s=function(e,t){if(!e||!t)return!1;var n=new Date,i=new Date(n),o=new Date(n),r=e.lastIndexOf(":"),a=e.substring(0,r),s=e.substring(r+1,e.length);i.setHours(a,s,0,0);var c=t.lastIndexOf(":"),u=t.substring(0,c),l=t.substring(c+1,t.length);return o.setHours(u,l,0,0),n.getTime()-i.getTime()>=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)}))}))}}})}));
|