diff --git a/index.html b/index.html index 74b0746..dec9d85 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -垛机视觉系统
\ No newline at end of file +垛机视觉系统
\ No newline at end of file diff --git a/js/app.0504831b.js b/js/app.0504831b.js new file mode 100644 index 0000000..132dca2 --- /dev/null +++ b/js/app.0504831b.js @@ -0,0 +1 @@ +(function(e){function t(t){for(var a,i,s=t[0],c=t[1],l=t[2],d=0,p=[];d0&&t(n[a].children)},o=0;o3?this.selectedKeys=[this.$route.matched[2].name]:this.selectedKeys=[this.$route.matched[this.$route.matched.length-1].name]:this.selectedKeys=[this.$route.matched[1].name],console.log("selectedKeys",this.selectedKeys),this.$route.matched[1].meta.unfold?this.openKeys.push(this.$route.matched[1].name):this.openKeys=[""],this.$forceUpdate()},menuItemHover:function(e){this.mouseItemKey=e.key},menuItemOut:function(){this.mouseItemKey=""}},mounted:function(){var e=this;this.$nextTick((function(){e.setRoute()}))}},c=s,l=(n("017d"),n("2877")),d=Object(l["a"])(c,a,o,!1,null,null,null);t["default"]=d.exports},"34ab":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrap"},[n("keep-alive",{attrs:{include:["checkManage"]}},[n("router-view",{staticClass:"table"})],1),n("div",{staticClass:"wrap-footer bg-white"},[e._t("footer")],2)],1)},o=[],r=(n("b0c0"),{name:"PageContent",data:function(){return{title:"",footerStyle:!1}},watch:{$route:function(e){this.title=e.meta.title||e.meta.name}},computed:{},mounted:function(){this.title=this.$route.meta.title||this.$route.meta.name}}),i=r,s=(n("5187"),n("2877")),c=Object(s["a"])(i,a,o,!1,null,null,null);t["default"]=c.exports},"40d1":function(e,t,n){"use strict";var a=n("1bf5"),o=n.n(a);o.a},4678:function(e,t,n){var a={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id="4678"},5187:function(e,t,n){"use strict";var a=n("dfb3"),o=n.n(a);o.a},5491:function(e,t,n){var a={"./AsideMenu.vue":"2f7f","./Breadcrumb.vue":"5670","./PageContent.vue":"34ab","./PageHeader.vue":"d8dc"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id="5491"},5670:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-breadcrumb",{staticClass:"breadcrumb"},e._l(e.breadList,(function(t,a){return n("a-breadcrumb-item",{key:t.name},[t.name!==e.name&&1!==a?n("router-link",{attrs:{to:{path:""===t.path?"/":t.path}}},[e._v(e._s(t.meta.name))]):e.breadList.length>2?n("span",[e._v(e._s(t.meta.name))]):e._e()],1)})),1)},o=[],r=(n("4160"),n("b0c0"),n("159b"),{name:"Breadcrumb",data:function(){return{name:"",breadList:[]}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var e=this;this.breadList=[],this.name=this.$route.name,console.log(this.$route.matched),this.$route.matched.forEach((function(t){e.breadList.push(t)}))}},watch:{$route:function(){this.getBreadcrumb()}}}),i=r,s=(n("1330"),n("2877")),c=Object(s["a"])(i,a,o,!1,null,"3fb4eae8",null);t["default"]=c.exports},"568d":function(e,t,n){var a={"./aside-item.vue":"b94e","./content-view.vue":"69f1","./reset-search.vue":"0359"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id="568d"},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79df");var a=n("2b0e"),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-config-provider",{attrs:{locale:e.locale}},[n("div",{attrs:{id:"app"}},[e.isRouterAlive?n("router-view"):e._e()],1)])},r=[],i=(n("45fc"),n("5530")),s=n("677e"),c=n.n(s),l=n("c1df"),d=n.n(l),u=(n("5c3a"),n("2f62"));d.a.locale("zh-cn");var p={name:"App",data:function(){return{isRouterAlive:!0,locale:c.a}},provide:function(){return{reload:this.reload}},methods:Object(i["a"])(Object(i["a"])({},Object(u["mapActions"])(["getStyles"])),{},{reload:function(){this.isRouterAlive=!1,this.$nextTick((function(){this.isRouterAlive=!0}))}}),mounted:function(){var e=this;this.getStyles(),window.onmessage=function(t){if(t.data.id)if(sessionStorage.setItem("postMessage",t.data.id),t.data.userInfo&&t.data.userInfo.id){if(t.data.userInfo.permissionList.some((function(e){return"duojiSystem"===e.rights}))){var n=e.$utils.translateDataToTree(t.data.userInfo.permissionList,"duojiSystem");t.data.userInfo.permissionList=e.$utils.treeToArray(n)}else t.data.userInfo.permissionList=[];localStorage.setItem("userInfo",JSON.stringify(t.data.userInfo))}else localStorage.clear()}}},f=p,m=(n("5c0b"),n("2877")),h=Object(m["a"])(f,o,r,!1,null,null,null),g=h.exports,b=(n("d3b7"),n("8c4f"));a["default"].use(b["a"]);var x=b["a"].prototype.push;b["a"].prototype.push=function(e){return x.call(this,e).catch((function(e){return e}))};var v=[{path:"/",redirect:{name:"realTimeMonitoring"},component:function(){return n.e("chunk-e205a644").then(n.bind(null,"1e4b"))},children:[{path:"realTimeMonitoring",name:"realTimeMonitoring",meta:{icon:"desktop",name:"实时视频流"},component:function(){return n.e("chunk-95d7389c").then(n.bind(null,"d7ad"))}},{path:"realTimeMonitoring/model",name:"realTimeMonitoringModel",meta:{name:"实时视频流(全屏)"},component:function(){return Promise.all([n.e("chunk-7140b3ea"),n.e("chunk-e0f9bdd0")]).then(n.bind(null,"5949"))}},{path:"historyMonitoring",name:"historyMonitoring",meta:{icon:"line-chart",name:"历史数据"},component:function(){return n.e("chunk-0e4de15d").then(n.bind(null,"2bf9"))}},{path:"alarmLog",name:"alarmLog",meta:{icon:"exception",name:"告警日志"},component:function(){return n.e("chunk-6c799606").then(n.bind(null,"f9bc"))}},{path:"checkManage",name:"checkManage",meta:{icon:"form",name:"盘点管理"},component:function(){return n.e("chunk-2258ecde").then(n.bind(null,"1b63"))}},{path:"checkOperation",name:"checkOperation",meta:{name:"盘点操作"},component:function(){return n.e("chunk-47777934").then(n.bind(null,"02d3"))}},{path:"roadwayManage",name:"roadwayManage",meta:{icon:"build",name:"巷道管理"},component:function(){return n.e("chunk-122fafcf").then(n.bind(null,"dff9"))}},{path:"cameraManage",name:"cameraManage",meta:{icon:"video-camera",name:"球机管理"},component:function(){return Promise.all([n.e("chunk-7140b3ea"),n.e("chunk-7e66e84e"),n.e("chunk-a6c02796")]).then(n.bind(null,"9543"))}},{path:"cameraManage/model",name:"cameraManageModel",meta:{name:"球机管理测试or配置"},component:function(){return Promise.all([n.e("chunk-7140b3ea"),n.e("chunk-7e66e84e")]).then(n.bind(null,"9545"))}},{path:"productSpecManage",name:"productSpecManage",meta:{icon:"pushpin",name:"品规管理"},component:function(){return n.e("chunk-e63447d2").then(n.bind(null,"98e8"))}},{path:"repertoryManage",name:"repertoryManage",meta:{icon:"wallet",name:"库存管理"},component:function(){return n.e("chunk-0ab3aab0").then(n.bind(null,"0b85"))}},{path:"cameraManage/ioTable",name:"ioTable",meta:{name:"IO表配置"},component:function(){return n.e("chunk-1e8ac3a9").then(n.bind(null,"4999"))}},{path:"center",name:"center",meta:{name:"个人中心"},component:function(){return n.e("chunk-c4503cf6").then(n.bind(null,"97b0"))}},{path:"plcStatus",name:"plcStatus",meta:{name:"PLC状态"},component:function(){return n.e("chunk-f2934902").then(n.bind(null,"7433"))}}]},{path:"/login",name:"login",component:function(){return n.e("chunk-813fd848").then(n.bind(null,"dd7b"))}},{path:"/guide",name:"guide",component:function(){return n.e("chunk-d8c3b5aa").then(n.bind(null,"1761"))}},{path:"/updateStyles",name:"修改样式",component:function(){return n.e("chunk-4e0fc9bc").then(n.bind(null,"d3fe"))}},{path:"*",name:"404",component:function(){return n.e("chunk-2d0e95df").then(n.bind(null,"8cdb"))}}],w=new b["a"]({routes:v});w.beforeEach((function(e,t,n){n()}));var j=w,y=(n("96cf"),n("1da1")),k=(n("4160"),n("c975"),n("d81d"),n("b64b"),n("ac1f"),n("466d"),n("5319"),n("159b"),n("ddb0"),n("07ac"),n("841c"),n("bc3a")),O=n.n(k),S=O.a.create({baseURL:"/api",timeout:6e4,headers:{"Content-Type":"application/json;charset=UTF-8"},withCredentials:!0});window.once=0;var _=["/stock/export","/category/export/model","/stock/export/model"];S.interceptors.request.use((function(e){var t=e,n=/\{(.+?)\}/g;return n.test(t.url)&&(t.url=t.url.replace(n,Object.values(t.path)[0])),localStorage.getItem("userInfo")&&(t.headers.token=JSON.parse(localStorage.getItem("userInfo")).token),_.indexOf(e.url)>-1&&(e.responseType="blob"),t}),(function(e){return Promise.reject(e)})),S.interceptors.response.use((function(e){if(_.some((function(t){return e.config.url.indexOf(t)>-1})))return e.data;var t=e.data;return 200!==t.code&&0!==t.code?(a["default"].prototype.$message.error(t.message),401===t.code&&(0!=window.once||location.search||(a["default"].prototype.$message.error(t.message),a["default"].prototype.$axios({url:"/app/userCenter",method:"GET"}).then((function(e){window.open(e.data.url+"?redirect="+location.origin,"_self")})).catch((function(e){}))),++window.once),Promise.reject(t.message)):t}),(function(e){return Promise.reject(e)})),a["default"].prototype.$axios=S;var T=S,C=function(e){var t=e;return Object.keys(t).forEach((function(e){var n=Object(i["a"])({},t[e]);t[e]=function(e){return T(Object(i["a"])({method:n.method,url:n.url},e))}})),t},I=n("739d"),M={};function $(e){var t=/-([a-z])/g;return e.replace(t,(function(e,t){return t.toUpperCase()}))}I.keys().map((function(e){var t=$(e.match(/.*\/.*\/(.*\..*)/)[1]).indexOf(".js"),n=$(e.match(/.*\/.*\/(.*\..*)/)[1]).substring(0,t);return M[n]=I(e).default,C(M[n])}));var P=M,E=n("1f94"),L=n.n(E),z=Object(i["a"])(Object(i["a"])({},L.a),{},{async:!1,env:"production"}),A=function(e){console.log(z,e),z.modifyVars({"@primary-color":e,"@link-color":e,"@btn-primary-bg":e}).then((function(){console.log("antd主题颜色成功")})).catch((function(e){console.error("antd主题颜色失败"),console.error(e)}))},R=(new a["default"],P.httpNodeApi),K={state:{data:{theme:{"primary-color":"rgba(184, 68, 13, 1)"},title:{text:"昆船垛机视觉系统",style:{color:"rgba(255, 255, 255, 1)","background-color":"rgba(163, 60, 12, 1)","font-size":"24px"}},menu:{default:{color:"rgba(230, 224, 224, 1)","background-color":"rgba(163, 60, 12, 1)"},select:{color:"rgba(255, 255, 255, 1)","background-color":"rgba(184, 68, 13, 1)"}}}},mutations:{UPDATE_STYLES:function(e,t){e.data=t,A(t.theme["primary-color"])}},actions:{updateStyles:function(e,t){return Object(y["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.commit,console.log(a["default"].prototype.$api),n.next=4,R.updateStylesAPI({data:t});case 4:case"end":return n.stop()}}),n)})))()},getStyles:function(e){return Object(y["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.commit,console.log("获取样式"),t.next=4,O.a.get("/api/node/default_css.json");case 4:a=t.sent,n("UPDATE_STYLES",a.data);case 6:case"end":return t.stop()}}),t)})))()}}},U=K,G=n("2784");a["default"].use(u["default"]);var N=new u["default"].Store({state:{aside_collapsed:!1,userInfo:JSON.parse(localStorage.getItem("userInfo")||"{}")},getters:{styles:function(e){return e.styles.data},getAside_collapsed:function(e){return e.aside_collapsed}},mutations:{setState:function(e,t){for(var n in t)e[n]=t[n]},aside_collapsed:function(e,t){e.aside_collapsed=t}},actions:{},modules:{styles:U},plugins:[Object(G["a"])()]}),D=(n("3aed"),n("8592")),F=n("98c5"),B=n("4df5"),H=n("dfae"),J=n("b558"),q=n("09d9"),W=n("ccb9"),V=n("0020"),Y=n("de1b"),Q=n("55f1"),X=n("3af3"),Z=n("5efb"),ee=n("2fc4"),te=n("0c63"),ne=n("d865"),ae=n("f23d"),oe=n("ed3b"),re=n("681b"),ie=n("9a63"),se=n("e32c"),ce=n("9839"),le=n("768f"),de=n("f933"),ue=n("7571"),pe=n("9571"),fe=n("a79d"),me=n("0bb7"),he=n("39ab"),ge=n("59a5"),be=n("a071"),xe=n("fa07"),ve=n("f64c");a["default"].use(D["a"]),a["default"].use(F["a"]),a["default"].use(B["b"]),a["default"].use(H["a"]),a["default"].use(J["a"]),a["default"].use(q["a"]),a["default"].use(W["a"]),a["default"].use(V["a"]),a["default"].use(Y["a"]),a["default"].use(Q["a"]),a["default"].use(X["a"]),a["default"].use(Z["a"]),a["default"].use(ee["a"]),a["default"].use(te["a"]),a["default"].use(ne["a"]);try{a["default"].use(ae["result"])}catch(Ce){console.log(Ce)}a["default"].use(oe["a"]),a["default"].use(re["a"]),a["default"].use(ie["a"]),a["default"].use(se["a"]),a["default"].use(ce["d"]),a["default"].use(le["a"]),a["default"].use(de["a"]),a["default"].use(ue["a"]),a["default"].use(pe["a"]),a["default"].use(fe["a"]),a["default"].use(me["a"]),a["default"].use(he["a"]),a["default"].use(ge["a"]),a["default"].use(be["a"]),a["default"].use(xe["a"]),a["default"].prototype.$form=X["a"],a["default"].prototype.$message=ve["a"],a["default"].prototype.$info=oe["a"].info,a["default"].prototype.$success=oe["a"].success,a["default"].prototype.$confirm=oe["a"].confirm,a["default"].prototype.$error=oe["a"].error;var we=n("5c96");n("0fae");a["default"].use(we["ColorPicker"]),a["default"].use(we["Form"]),a["default"].use(we["FormItem"]);n("b0c0");var je=n("568d");je.keys().map((function(e){var t=je(e).default;return a["default"].component(t.name,t)}));var ye=n("5491");ye.keys().map((function(e){var t=ye(e).default;return a["default"].component(t.name,t)}));n("4de4"),n("7db0"),n("a434"),n("25f0"),n("3ca3"),n("1276"),n("2b3d");var ke={format:function(e){var t=parseInt(e/864e5),n=parseInt(e%864e5/36e5),a=parseInt(e%36e5/6e4),o=e%6e4/1e3;return t+" 天 "+n+" 小时 "+a+" 分钟 "+o+" 秒 "},timerFormat:function(){var e=new Date,t=e.getFullYear(),n=e.getMonth()+1,a=e.getDate(),o=e.getHours()<10?"0"+e.getHours():e.getHours(),r=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),i=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return t+"年"+n+"月"+a+"日 "+o+":"+r+":"+i},computedStrLen:function(e){for(var t=0,n=0;n=1&&a<=126||65376<=a&&a<=65439?t++:t+=2}return t},deepClone:function(e){var t,n=this.getType(e);if("array"===n)t=[];else{if("object"!==n)return e;t={}}if("array"===n)for(var a=0,o=e.length;a1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach((function(e){var a=e.children;if(a&&(delete e.children,a.length))return n.push(e),t.treeToArray(a,n);n.push(e)})),n},translateDataToTree:function(e,t){var n=e.filter((function(e){return 0===e.parentId})),a=e.filter((function(e){return 0!==e.parentId})),o=function e(t,n){t&&t.forEach((function(t){n&&n.forEach((function(a,o){if(a.parentId===t.id){var r=JSON.parse(JSON.stringify(n));r.splice(o,1),t.children&&t.children.length?t.children.push(a):t.children=[a],e([a],r)}}))}))};return o(n,a),n=n.filter((function(e){return e.rights===t})),n&&n.length&&n[0].children}},Oe=n("6db4"),Se=(n("14d3"),n("0808"),n("6944")),_e=n.n(Se);a["default"].config.productionTip=!1,a["default"].prototype.$utils=ke,a["default"].prototype.$api=P,a["default"].component("happy-scroll",Oe["HappyScroll"]),a["default"].use(_e.a),new a["default"]({router:j,store:N,render:function(e){return e(g)}}).$mount("#app");var Te=n("2f62");console.log(Te)},"57cd":function(e,t,n){var a=n("6532");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=n("499e").default;o("66ea037e",a,!0,{sourceMap:!1,shadowMode:!1})},"5c0b":function(e,t,n){"use strict";var a=n("0554"),o=n.n(a);o.a},6532:function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".alarm .ant-form-item-label{text-align:left}.aside{flex:0 0 270px!important;max-width:270px!important;min-width:270px!important;width:270px!important;height:100vh;color:#fff;position:fixed;top:0;left:0;box-shadow:2px 0 6px 0 rgba(0,21,41,.35);z-index:1000}.aside .logo{width:100%;height:64px;overflow:hidden;line-height:64px;font-size:18px;font-weight:600;color:#fff}.aside .logo img{width:24px;height:24px;margin:10px 10px 10px 15px}.aside .logo .logo-title{transition-delay:.5s;margin-left:25px}.aside .ant-menu-inline{width:100%;height:100%}.aside .ant-menu-inline-collapsed{width:80px}.merge{flex:0 0 80px!important;max-width:80px!important;min-width:80px!important;width:80px!important}.merge .logo img{margin:0 30px}.merge .logo .logo-title{display:none;height:30px;overflow:hidden}",""]),e.exports=t},"69f1":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrap"},[e.$route.meta.name?n("div",{staticClass:"wrap-title"},[n("span",{staticClass:"wrap-title-text"},[e._t("title",[e._v(e._s(e.title))])],2)]):e._e(),n("div",{staticClass:"wrap-header"},[e._t("header"),e._t("button")],2),n("div",{staticClass:"wrap-cont"},[n("div",{staticClass:"wrap-cont-cover"},[n("div",{staticClass:"wrap-container"},[e._t("default")],2)])]),n("div",{staticClass:"wrap-footer bg-white"},[e._t("footer")],2)])},o=[],r=(n("b0c0"),{name:"content-view",data:function(){return{title:"",footerStyle:!1}},watch:{$route:function(e){this.title=e.meta.title||e.meta.name}},computed:{},mounted:function(){this.title=this.$route.meta.title||this.$route.meta.name}}),i=r,s=(n("40d1"),n("2877")),c=Object(s["a"])(i,a,o,!1,null,null,null);t["default"]=c.exports},"6e33":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".alarm .ant-form-item-label{text-align:left}.wrap{display:flex;flex-direction:column;flex:1;position:relative}.wrap-title{background:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 0 20px 24px;font-size:18px}.wrap-title-text{font-weight:700;flex:1}.wrap-header{background:#fff;border-bottom:1px solid #e1e1e1}.wrap-cont{padding:0 24px}.wrap-cont,.wrap-cont-cover{display:flex;flex-direction:column;flex:1}.wrap-cont-cover{padding:24px 0}.wrap-container{flex:1;position:relative;display:flex;flex-direction:column;overflow-x:auto;background-color:#fff}.wrap-container>div{padding:24px;overflow-x:hidden}.wrap-footer{position:fixed;left:0;bottom:0;padding-left:256px;width:100%;text-align:center;z-index:2}.wrap .table{background:#fff;margin:8px 20px;min-height:calc(100vh - 100px);padding:20px}",""]),e.exports=t},"739d":function(e,t,n){var a={"./http/http-api.js":"2a8b","./http/http-node-api.js":"f4ed"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id="739d"},"7a48":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,"/*! minireset.css v0.0.3 | MIT License | github.com/jgthms/minireset.css */blockquote,body,dd,dl,dt,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,html,iframe,legend,li,ol,p,pre,textarea,ul{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:400}ul{list-style:none}button,input,select,textarea{margin:0}body,html{font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,SimSun,sans-serif}html{box-sizing:border-box}*,:after,:before{box-sizing:inherit}audio,embed,iframe,img,object,video{height:auto;max-width:100%}iframe{border:0}table{border-collapse:collapse;border-spacing:0}td,th{padding:0;text-align:left}a{text-decoration:none}input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #fff inset!important}input[type=number]::-webkit-inner-spin-button{display:none}",""]),e.exports=t},"86a3":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".alarm .ant-form-item-label{text-align:left}",""]),e.exports=t},"96a4":function(e,t,n){var a=n("24fb"),o=n("7a48");t=a(!1),t.i(o),t.push([e.i,'.alarm .ant-form-item-label{text-align:left}.w40{width:40px!important}.w48{width:48px!important}.w56{width:56px!important}.w64{width:64px!important}.w72{width:72px!important}.w80{width:80px!important}.w88{width:88px!important}.w96{width:96px!important}.w104{width:104px!important}.w112{width:112px!important}.w120{width:120px!important}.w128{width:128px!important}.w136{width:136px!important}.w144{width:144px!important}.w152{width:152px!important}.w160{width:160px!important}.w168{width:168px!important}.w176{width:176px!important}.w184{width:184px!important}.w192{width:192px!important}.w200{width:200px!important}.w208{width:208px!important}.w216{width:216px!important}.w224{width:224px!important}.w232{width:232px!important}.w240{width:240px!important}.w248{width:248px!important}.w256{width:256px!important}.w264{width:264px!important}.w272{width:272px!important}.w280{width:280px!important}.w288{width:288px!important}.w296{width:296px!important}.w304{width:304px!important}.w312{width:312px!important}.w320{width:320px!important}.w328{width:328px!important}.w336{width:336px!important}.w344{width:344px!important}.w352{width:352px!important}.w360{width:360px!important}.w368{width:368px!important}.w376{width:376px!important}.w384{width:384px!important}.w392{width:392px!important}.w400{width:400px!important}.w408{width:408px!important}.w416{width:416px!important}.w424{width:424px!important}.w432{width:432px!important}.w440{width:440px!important}.w448{width:448px!important}.w456{width:456px!important}.w464{width:464px!important}.w472{width:472px!important}.w480{width:480px!important}.ml8{margin-left:8px}.mr8{margin-right:8px}.mt8{margin-top:8px}.mb8{margin-bottom:8px}.pl8{padding-left:8px}.pr8{padding-right:8px}.pt8{padding-top:8px}.pb8{padding-bottom:8px}.ml16{margin-left:16px}.mr16{margin-right:16px}.mt16{margin-top:16px}.mb16{margin-bottom:16px}.pl16{padding-left:16px}.pr16{padding-right:16px}.pt16{padding-top:16px}.pb16{padding-bottom:16px}.ml24{margin-left:24px}.mr24{margin-right:24px}.mt24{margin-top:24px}.mb24{margin-bottom:24px}.pl24{padding-left:24px}.pr24{padding-right:24px}.pt24{padding-top:24px}.pb24{padding-bottom:24px}.ml32{margin-left:32px}.mr32{margin-right:32px}.mt32{margin-top:32px}.mb32{margin-bottom:32px}.pl32{padding-left:32px}.pr32{padding-right:32px}.pt32{padding-top:32px}.pb32{padding-bottom:32px}.ml40{margin-left:40px}.mr40{margin-right:40px}.mt40{margin-top:40px}.mb40{margin-bottom:40px}.pl40{padding-left:40px}.pr40{padding-right:40px}.pt40{padding-top:40px}.pb40{padding-bottom:40px}.ml48{margin-left:48px}.mr48{margin-right:48px}.mt48{margin-top:48px}.mb48{margin-bottom:48px}.pl48{padding-left:48px}.pr48{padding-right:48px}.pt48{padding-top:48px}.pb48{padding-bottom:48px}.ml56{margin-left:56px}.mr56{margin-right:56px}.mt56{margin-top:56px}.mb56{margin-bottom:56px}.pl56{padding-left:56px}.pr56{padding-right:56px}.pt56{padding-top:56px}.pb56{padding-bottom:56px}.ml64{margin-left:64px}.mr64{margin-right:64px}.mt64{margin-top:64px}.mb64{margin-bottom:64px}.pl64{padding-left:64px}.pr64{padding-right:64px}.pt64{padding-top:64px}.pb64{padding-bottom:64px}.ml72{margin-left:72px}.mr72{margin-right:72px}.mt72{margin-top:72px}.mb72{margin-bottom:72px}.pl72{padding-left:72px}.pr72{padding-right:72px}.pt72{padding-top:72px}.pb72{padding-bottom:72px}.ml80{margin-left:80px}.mr80{margin-right:80px}.mt80{margin-top:80px}.mb80{margin-bottom:80px}.pl80{padding-left:80px}.pr80{padding-right:80px}.pt80{padding-top:80px}.pb80{padding-bottom:80px}.bg-white{background-color:#fff}.no-margin{margin:0!important}.no-margin-bottom{margin-bottom:0!important}.no-margin-top{margin-top:0!important}.no-margin-left{margin-left:0!important}.no-margin-right{margin-right:0!important}.no-padding{padding:0!important}.bq{border:1px solid #e9e9e9}.bl{border-left:1px solid #e9e9e9}.bt{border-top:1px solid #e9e9e9}.br{border-right:1px solid #e9e9e9}.bb{border-bottom:1px solid #e9e9e9}.flex{display:flex;align-items:center;justify-content:center;flex-flow:row nowrap}.flex-column{flex-flow:column nowrap}.flex-wrap{flex-wrap:wrap}.flex-start{justify-content:flex-start}.flex-end{justify-content:flex-end}.flex-space-around{justify-content:space-around}.flex-space-between{justify-content:space-between}.flex-align-start{align-items:flex-start}.flex-align-end{align-items:flex-end}.flex-align-center{align-items:center}.flex-none{flex:none}.flex-extensible{flex:1}.inline-block{display:inline-block}.inline-block+.inline-block{vertical-align:bottom}.inline-block_top{display:inline-block}.inline-block+.inline-block_top{vertical-align:top}.relative{position:relative}.relative .absolute{position:absolute}.float-left{float:left}.float-right{float:right}.float-clear:after{content:"";clear:both;display:block}.table-form{width:100%;table-layout:fixed}.table-form tr:last-of-type td{padding-bottom:0}.table-form tr td{padding-bottom:16px}.table-form tr td>div{width:100%}.table-form tr td:nth-child(odd){text-align:left}.table-form tr td:nth-child(odd) label:after{content:":";margin:0 8px 0 2px;position:relative;top:-.5px}.table-form tr td:nth-child(2n){padding-right:32px}.table-form_full{width:100%}',""]),e.exports=t},aad6:function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".alarm .ant-form-item-label{text-align:left}.header{background:#fff;display:flex;align-items:center;justify-content:space-between;height:64px;box-shadow:0 2px 5px rgba(0,21,41,.15);position:fixed;top:0;width:calc(100% - 270px);z-index:999}.header-left .trigger{font-size:18px;line-height:64px;padding:0 24px;cursor:pointer;transition:color .3s}.header-right{display:flex;align-items:flex-start;padding-right:20px}.header-right-circle{width:24px;height:24px;border-radius:50%;background-color:#fff;margin-right:8px;cursor:pointer}.collapsed-header{width:calc(100% - 80px)}",""]),e.exports=t},af1e:function(e,t,n){var a=n("1d6f");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=n("499e").default;o("0505df12",a,!0,{sourceMap:!1,shadowMode:!1})},b94e:function(e,t,n){"use strict";n.r(t);var a=function(e,t){var n=t._c;return n("a-sub-menu",t._g({key:t.data.attrs.menuInfo.name},t.listeners),[n("span",{attrs:{slot:"title"},slot:"title"},[n("a-icon",{attrs:{type:t.data.attrs.menuInfo.meta.icon}}),n("span",[t._v(t._s(t.data.attrs.menuInfo.meta.name))])],1),t._l(t.data.attrs.menuInfo.children,(function(e){return[e.meta.unfold?t._e():n("a-menu-item",{key:e.name},[n("span",[t._v(t._s(e.meta.name))])]),e.meta.unfold?n("aside-item",{key:e.name,attrs:{menuInfo:e}}):t._e()]}))],2)},o=[],r={name:"aside-item",components:{},data:function(){return{}},methods:{},mounted:function(){}},i=r,s=n("2877"),c=Object(s["a"])(i,a,o,!0,null,null,null);t["default"]=c.exports},d8dc:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["header",e.collapsed?"collapsed-header":""]},[n("div",{staticClass:"header-left"},[n("a-layout-header",{staticStyle:{background:"#fff",padding:"0"}},[n("a-icon",{staticClass:"trigger",attrs:{type:e.collapsed?"menu-unfold":"menu-fold"},on:{click:e.collapsedFlag}}),e._t("title",[e._v(e._s(e.title))])],2)],1),n("div",{staticClass:"header-right"},[n("div",{staticClass:"header-top-right-circle",on:{click:function(t){e.visible=!e.visible}}}),n("a-badge",{attrs:{count:e.count},on:{click:e.openPlc}},[n("a-icon",{staticStyle:{"font-size":"20px",cursor:"pointer"},attrs:{type:"bell"}})],1),n("a-popover",{attrs:{id:"popover",placement:"bottom",trigger:"click"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[n("a",{staticStyle:{margin:"0 10px"},attrs:{href:"javascript:;"}},[e._v(" "+e._s(e.userInfo.name?e.userInfo.name:"userName")+" ")]),n("div",{staticClass:"flex flex-column",style:{"min-width":"78px"},attrs:{slot:"content"},slot:"content"},[n("a",{staticClass:"block mb16",attrs:{href:"javascript:;"},on:{click:function(t){e.visible=!1,e.$router.push({name:"center"})}}},[e._v("个人中心")]),n("a",{attrs:{href:"javascript:;"},on:{click:e.logout}},[e._v("退出登录")])])])],1)])},o=[],r=(n("b0c0"),n("5530")),i=n("2f62"),s={name:"PageHeader",computed:Object(r["a"])(Object(r["a"])({},Object(i["mapState"])(["aside_collapsed","userInfo"])),Object(i["mapGetters"])(["getAside_collapsed"])),watch:{getAside_collapsed:function(e){console.log(e),this.collapsed=e},$route:function(e){this.title=e.meta.title||e.meta.name}},data:function(){return{visible:!1,collapsed:!1,count:0,title:""}},mounted:function(){this.title=this.$route.meta.title||this.$route.meta.name,this.getplcStatus();var e=this;setInterval((function(){e.getplcStatus()}),1e4)},methods:Object(r["a"])(Object(r["a"])({},Object(i["mapMutations"])(["setState"])),{},{logout:function(){this.visible=!1,localStorage.clear(),sessionStorage.clear(),this.$axios({url:"/app/userCenter",method:"GET"}).then((function(e){window.open(e.data.url+"?action=logout","_self")})).catch((function(e){}))},collapsedFlag:function(){this.collapsed=!this.collapsed,this.$store.commit("aside_collapsed",this.collapsed)},getplcStatus:function(){var e=this;this.$axios({url:"/plc/plcStatus",method:"GET"}).then((function(t){200==t.code&&(e.count=t.data)})).catch((function(e){console.log(e)}))},openPlc:function(){this.$router.push({name:"plcStatus"})}})},c=s,l=(n("f016"),n("2877")),d=Object(l["a"])(c,a,o,!1,null,null,null);t["default"]=d.exports},dfb3:function(e,t,n){var a=n("6e33");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=n("499e").default;o("5dda7116",a,!0,{sourceMap:!1,shadowMode:!1})},f016:function(e,t,n){"use strict";var a=n("04b4"),o=n.n(a);o.a},f4ed:function(e,t,n){"use strict";n.r(t),t["default"]={updateStylesAPI:{url:"/node/antv-styles/update",name:"更新标题菜单样式",method:"POST"},getStylesAPI:{url:"/node/default_css.json",name:"获取标题菜单样式",method:"GET"},getStockRowColumnAPI:{url:"/node/stock/getStockRowColumn",name:"获取盘点颜色状态",method:"GET"},getStockRowColumnNesInfo:{url:"/node/stock/getStockRowColumnNesInfo",name:"如果是人工复合错误,那么就需要取stock_log里的关联的最新的信息",method:"GET"},viewVideoAPI:{url:"/node/hk_video/view_video",name:"唤醒VSplay,查看海康视频",method:"GET"}}}}); \ No newline at end of file diff --git a/js/app.3a7000ed.js b/js/app.3a7000ed.js deleted file mode 100644 index e9cb886..0000000 --- a/js/app.3a7000ed.js +++ /dev/null @@ -1 +0,0 @@ -(function(e){function t(t){for(var a,i,s=t[0],c=t[1],l=t[2],d=0,p=[];d0&&t(n[a].children)},o=0;o3?this.selectedKeys=[this.$route.matched[2].name]:this.selectedKeys=[this.$route.matched[this.$route.matched.length-1].name]:this.selectedKeys=[this.$route.matched[1].name],console.log("selectedKeys",this.selectedKeys),this.$route.matched[1].meta.unfold?this.openKeys.push(this.$route.matched[1].name):this.openKeys=[""],this.$forceUpdate()},menuItemHover:function(e){this.mouseItemKey=e.key},menuItemOut:function(){this.mouseItemKey=""}},mounted:function(){var e=this;this.$nextTick((function(){e.setRoute()}))}},c=s,l=(n("017d"),n("2877")),d=Object(l["a"])(c,a,o,!1,null,null,null);t["default"]=d.exports},"34ab":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrap"},[e.$route.meta.name?n("div",{staticClass:"wrap-title"},[n("span",{staticClass:"wrap-title-text"},[e._t("title",[e._v(e._s(e.title))])],2)]):e._e(),n("keep-alive",{attrs:{include:["checkManage"]}},[n("router-view",{staticClass:"table"})],1),n("div",{staticClass:"wrap-footer bg-white"},[e._t("footer")],2)],1)},o=[],r=(n("b0c0"),{name:"PageContent",data:function(){return{title:"",footerStyle:!1}},watch:{$route:function(e){this.title=e.meta.title||e.meta.name}},computed:{},mounted:function(){this.title=this.$route.meta.title||this.$route.meta.name}}),i=r,s=(n("5187"),n("2877")),c=Object(s["a"])(i,a,o,!1,null,null,null);t["default"]=c.exports},"40d1":function(e,t,n){"use strict";var a=n("1bf5"),o=n.n(a);o.a},4678:function(e,t,n){var a={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id="4678"},5187:function(e,t,n){"use strict";var a=n("dfb3"),o=n.n(a);o.a},5491:function(e,t,n){var a={"./AsideMenu.vue":"2f7f","./Breadcrumb.vue":"5670","./PageContent.vue":"34ab","./PageHeader.vue":"d8dc"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id="5491"},5670:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-breadcrumb",{staticClass:"breadcrumb"},e._l(e.breadList,(function(t,a){return n("a-breadcrumb-item",{key:t.name},[t.name!==e.name&&1!==a?n("router-link",{attrs:{to:{path:""===t.path?"/":t.path}}},[e._v(e._s(t.meta.name))]):e.breadList.length>2?n("span",[e._v(e._s(t.meta.name))]):e._e()],1)})),1)},o=[],r=(n("4160"),n("b0c0"),n("159b"),{name:"Breadcrumb",data:function(){return{name:"",breadList:[]}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var e=this;this.breadList=[],this.name=this.$route.name,console.log(this.$route.matched),this.$route.matched.forEach((function(t){e.breadList.push(t)}))}},watch:{$route:function(){this.getBreadcrumb()}}}),i=r,s=(n("2a5c"),n("2877")),c=Object(s["a"])(i,a,o,!1,null,"73ecb21a",null);t["default"]=c.exports},"568d":function(e,t,n){var a={"./aside-item.vue":"b94e","./content-view.vue":"69f1","./reset-search.vue":"0359"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id="568d"},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79df");var a=n("2b0e"),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-config-provider",{attrs:{locale:e.locale}},[n("div",{attrs:{id:"app"}},[e.isRouterAlive?n("router-view"):e._e()],1)])},r=[],i=(n("45fc"),n("5530")),s=n("677e"),c=n.n(s),l=n("c1df"),d=n.n(l),u=(n("5c3a"),n("2f62"));d.a.locale("zh-cn");var p={name:"App",data:function(){return{isRouterAlive:!0,locale:c.a}},provide:function(){return{reload:this.reload}},methods:Object(i["a"])(Object(i["a"])({},Object(u["mapActions"])(["getStyles"])),{},{reload:function(){this.isRouterAlive=!1,this.$nextTick((function(){this.isRouterAlive=!0}))}}),mounted:function(){var e=this;this.getStyles(),window.onmessage=function(t){if(t.data.id)if(sessionStorage.setItem("postMessage",t.data.id),t.data.userInfo&&t.data.userInfo.id){if(t.data.userInfo.permissionList.some((function(e){return"duojiSystem"===e.rights}))){var n=e.$utils.translateDataToTree(t.data.userInfo.permissionList,"duojiSystem");t.data.userInfo.permissionList=e.$utils.treeToArray(n)}else t.data.userInfo.permissionList=[];localStorage.setItem("userInfo",JSON.stringify(t.data.userInfo))}else localStorage.clear()}}},f=p,m=(n("5c0b"),n("2877")),h=Object(m["a"])(f,o,r,!1,null,null,null),g=h.exports,b=(n("d3b7"),n("8c4f"));a["default"].use(b["a"]);var x=b["a"].prototype.push;b["a"].prototype.push=function(e){return x.call(this,e).catch((function(e){return e}))};var v=[{path:"/",redirect:{name:"realTimeMonitoring"},component:function(){return n.e("chunk-e205a644").then(n.bind(null,"1e4b"))},children:[{path:"realTimeMonitoring",name:"realTimeMonitoring",meta:{icon:"desktop",name:"实时视频流"},component:function(){return n.e("chunk-2bf8fbf5").then(n.bind(null,"d7ad"))}},{path:"realTimeMonitoring/model",name:"realTimeMonitoringModel",meta:{name:"实时视频流(全屏)"},component:function(){return Promise.all([n.e("chunk-7140b3ea"),n.e("chunk-e0f9bdd0")]).then(n.bind(null,"5949"))}},{path:"historyMonitoring",name:"historyMonitoring",meta:{icon:"line-chart",name:"历史数据"},component:function(){return n.e("chunk-33953752").then(n.bind(null,"2bf9"))}},{path:"alarmLog",name:"alarmLog",meta:{icon:"exception",name:"告警日志"},component:function(){return n.e("chunk-50c80e87").then(n.bind(null,"f9bc"))}},{path:"checkManage",name:"checkManage",meta:{icon:"form",name:"盘点管理"},component:function(){return n.e("chunk-7f9ca11f").then(n.bind(null,"1b63"))}},{path:"checkOperation",name:"checkOperation",meta:{name:"盘点操作"},component:function(){return n.e("chunk-47777934").then(n.bind(null,"02d3"))}},{path:"roadwayManage",name:"roadwayManage",meta:{icon:"build",name:"巷道管理"},component:function(){return n.e("chunk-c884d4ae").then(n.bind(null,"dff9"))}},{path:"cameraManage",name:"cameraManage",meta:{icon:"video-camera",name:"球机管理"},component:function(){return Promise.all([n.e("chunk-7140b3ea"),n.e("chunk-190db7ae"),n.e("chunk-35ca11da")]).then(n.bind(null,"9543"))}},{path:"cameraManage/model",name:"cameraManageModel",meta:{name:"球机管理测试or配置"},component:function(){return Promise.all([n.e("chunk-7140b3ea"),n.e("chunk-190db7ae")]).then(n.bind(null,"9545"))}},{path:"productSpecManage",name:"productSpecManage",meta:{icon:"pushpin",name:"品规管理"},component:function(){return n.e("chunk-0a0877f0").then(n.bind(null,"98e8"))}},{path:"repertoryManage",name:"repertoryManage",meta:{icon:"wallet",name:"库存管理"},component:function(){return n.e("chunk-2a036b42").then(n.bind(null,"0b85"))}},{path:"cameraManage/ioTable",name:"ioTable",meta:{name:"IO表配置"},component:function(){return n.e("chunk-1e8ac3a9").then(n.bind(null,"4999"))}},{path:"center",name:"center",meta:{name:"个人中心"},component:function(){return n.e("chunk-c4503cf6").then(n.bind(null,"97b0"))}},{path:"plcStatus",name:"plcStatus",meta:{name:"PLC状态"},component:function(){return n.e("chunk-f2934902").then(n.bind(null,"7433"))}}]},{path:"/login",name:"login",component:function(){return n.e("chunk-66821f00").then(n.bind(null,"dd7b"))}},{path:"/guide",name:"guide",component:function(){return n.e("chunk-d8c3b5aa").then(n.bind(null,"1761"))}},{path:"/updateStyles",name:"修改样式",component:function(){return n.e("chunk-1b79387a").then(n.bind(null,"d3fe"))}},{path:"*",name:"404",component:function(){return n.e("chunk-2d0e95df").then(n.bind(null,"8cdb"))}}],w=new b["a"]({routes:v});w.beforeEach((function(e,t,n){n()}));var j=w,y=(n("96cf"),n("1da1")),k=(n("4160"),n("c975"),n("d81d"),n("b64b"),n("ac1f"),n("466d"),n("5319"),n("159b"),n("ddb0"),n("07ac"),n("841c"),n("bc3a")),O=n.n(k),S=O.a.create({baseURL:"/api",timeout:6e4,headers:{"Content-Type":"application/json;charset=UTF-8"},withCredentials:!0});window.once=0;var _=["/stock/export","/category/export/model","/stock/export/model"];S.interceptors.request.use((function(e){var t=e,n=/\{(.+?)\}/g;return n.test(t.url)&&(t.url=t.url.replace(n,Object.values(t.path)[0])),localStorage.getItem("userInfo")&&(t.headers.token=JSON.parse(localStorage.getItem("userInfo")).token),_.indexOf(e.url)>-1&&(e.responseType="blob"),t}),(function(e){return Promise.reject(e)})),S.interceptors.response.use((function(e){if(_.some((function(t){return e.config.url.indexOf(t)>-1})))return e.data;var t=e.data;return 200!==t.code&&0!==t.code?(a["default"].prototype.$message.error(t.message),401===t.code&&(0!=window.once||location.search||(a["default"].prototype.$message.error(t.message),a["default"].prototype.$axios({url:"/app/userCenter",method:"GET"}).then((function(e){window.open(e.data.url+"?redirect="+location.origin,"_self")})).catch((function(e){}))),++window.once),Promise.reject(t.message)):t}),(function(e){return Promise.reject(e)})),a["default"].prototype.$axios=S;var T=S,C=function(e){var t=e;return Object.keys(t).forEach((function(e){var n=Object(i["a"])({},t[e]);t[e]=function(e){return T(Object(i["a"])({method:n.method,url:n.url},e))}})),t},I=n("739d"),M={};function $(e){var t=/-([a-z])/g;return e.replace(t,(function(e,t){return t.toUpperCase()}))}I.keys().map((function(e){var t=$(e.match(/.*\/.*\/(.*\..*)/)[1]).indexOf(".js"),n=$(e.match(/.*\/.*\/(.*\..*)/)[1]).substring(0,t);return M[n]=I(e).default,C(M[n])}));var P=M,E=n("1f94"),L=n.n(E),z=Object(i["a"])(Object(i["a"])({},L.a),{},{async:!1,env:"production"}),A=function(e){console.log(z,e),z.modifyVars({"@primary-color":e,"@link-color":e,"@btn-primary-bg":e}).then((function(){console.log("antd主题颜色成功")})).catch((function(e){console.error("antd主题颜色失败"),console.error(e)}))},K=(new a["default"],P.httpNodeApi),R={state:{data:{theme:{"primary-color":"rgba(184, 68, 13, 1)"},title:{text:"ROBO垛机视觉系统",style:{color:"rgba(255, 255, 255, 1)","background-color":"rgba(163, 60, 12, 1)","font-size":"24px"}},menu:{default:{color:"rgba(230, 224, 224, 1)","background-color":"rgba(163, 60, 12, 1)"},select:{color:"rgba(255, 255, 255, 1)","background-color":"rgba(184, 68, 13, 1)"}}}},mutations:{UPDATE_STYLES:function(e,t){e.data=t,A(t.theme["primary-color"])}},actions:{updateStyles:function(e,t){return Object(y["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.commit,console.log(a["default"].prototype.$api),n.next=4,K.updateStylesAPI({data:t});case 4:case"end":return n.stop()}}),n)})))()},getStyles:function(e){return Object(y["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.commit,console.log("获取样式"),t.next=4,O.a.get("/api/node/default_css.json");case 4:a=t.sent,n("UPDATE_STYLES",a.data);case 6:case"end":return t.stop()}}),t)})))()}}},U=R,G=n("2784");a["default"].use(u["default"]);var N=new u["default"].Store({state:{aside_collapsed:!1,userInfo:JSON.parse(localStorage.getItem("userInfo")||"{}")},getters:{styles:function(e){return e.styles.data},getAside_collapsed:function(e){return e.aside_collapsed}},mutations:{setState:function(e,t){for(var n in t)e[n]=t[n]},aside_collapsed:function(e,t){e.aside_collapsed=t}},actions:{},modules:{styles:U},plugins:[Object(G["a"])()]}),D=(n("3aed"),n("8592")),F=n("98c5"),H=n("4df5"),B=n("dfae"),J=n("b558"),q=n("09d9"),W=n("ccb9"),Y=n("0020"),V=n("de1b"),Q=n("55f1"),X=n("3af3"),Z=n("5efb"),ee=n("2fc4"),te=n("0c63"),ne=n("d865"),ae=n("f23d"),oe=n("ed3b"),re=n("681b"),ie=n("9a63"),se=n("e32c"),ce=n("9839"),le=n("768f"),de=n("f933"),ue=n("7571"),pe=n("9571"),fe=n("a79d"),me=n("0bb7"),he=n("39ab"),ge=n("59a5"),be=n("a071"),xe=n("fa07"),ve=n("f64c");a["default"].use(D["a"]),a["default"].use(F["a"]),a["default"].use(H["b"]),a["default"].use(B["a"]),a["default"].use(J["a"]),a["default"].use(q["a"]),a["default"].use(W["a"]),a["default"].use(Y["a"]),a["default"].use(V["a"]),a["default"].use(Q["a"]),a["default"].use(X["a"]),a["default"].use(Z["a"]),a["default"].use(ee["a"]),a["default"].use(te["a"]),a["default"].use(ne["a"]);try{a["default"].use(ae["result"])}catch(Ce){console.log(Ce)}a["default"].use(oe["a"]),a["default"].use(re["a"]),a["default"].use(ie["a"]),a["default"].use(se["a"]),a["default"].use(ce["d"]),a["default"].use(le["a"]),a["default"].use(de["a"]),a["default"].use(ue["a"]),a["default"].use(pe["a"]),a["default"].use(fe["a"]),a["default"].use(me["a"]),a["default"].use(he["a"]),a["default"].use(ge["a"]),a["default"].use(be["a"]),a["default"].use(xe["a"]),a["default"].prototype.$form=X["a"],a["default"].prototype.$message=ve["a"],a["default"].prototype.$info=oe["a"].info,a["default"].prototype.$success=oe["a"].success,a["default"].prototype.$confirm=oe["a"].confirm,a["default"].prototype.$error=oe["a"].error;var we=n("5c96");n("0fae");a["default"].use(we["ColorPicker"]),a["default"].use(we["Form"]),a["default"].use(we["FormItem"]);n("b0c0");var je=n("568d");je.keys().map((function(e){var t=je(e).default;return a["default"].component(t.name,t)}));var ye=n("5491");ye.keys().map((function(e){var t=ye(e).default;return a["default"].component(t.name,t)}));n("4de4"),n("7db0"),n("a434"),n("25f0"),n("3ca3"),n("1276"),n("2b3d");var ke={format:function(e){var t=parseInt(e/864e5),n=parseInt(e%864e5/36e5),a=parseInt(e%36e5/6e4),o=e%6e4/1e3;return t+" 天 "+n+" 小时 "+a+" 分钟 "+o+" 秒 "},timerFormat:function(){var e=new Date,t=e.getFullYear(),n=e.getMonth()+1,a=e.getDate(),o=e.getHours()<10?"0"+e.getHours():e.getHours(),r=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),i=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return t+"年"+n+"月"+a+"日 "+o+":"+r+":"+i},computedStrLen:function(e){for(var t=0,n=0;n=1&&a<=126||65376<=a&&a<=65439?t++:t+=2}return t},deepClone:function(e){var t,n=this.getType(e);if("array"===n)t=[];else{if("object"!==n)return e;t={}}if("array"===n)for(var a=0,o=e.length;a1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach((function(e){var a=e.children;if(a&&(delete e.children,a.length))return n.push(e),t.treeToArray(a,n);n.push(e)})),n},translateDataToTree:function(e,t){var n=e.filter((function(e){return 0===e.parentId})),a=e.filter((function(e){return 0!==e.parentId})),o=function e(t,n){t&&t.forEach((function(t){n&&n.forEach((function(a,o){if(a.parentId===t.id){var r=JSON.parse(JSON.stringify(n));r.splice(o,1),t.children&&t.children.length?t.children.push(a):t.children=[a],e([a],r)}}))}))};return o(n,a),n=n.filter((function(e){return e.rights===t})),n&&n.length&&n[0].children}},Oe=n("6db4"),Se=(n("14d3"),n("0808"),n("6944")),_e=n.n(Se);a["default"].config.productionTip=!1,a["default"].prototype.$utils=ke,a["default"].prototype.$api=P,a["default"].component("happy-scroll",Oe["HappyScroll"]),a["default"].use(_e.a),new a["default"]({router:j,store:N,render:function(e){return e(g)}}).$mount("#app");var Te=n("2f62");console.log(Te)},"57cd":function(e,t,n){var a=n("6532");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=n("499e").default;o("66ea037e",a,!0,{sourceMap:!1,shadowMode:!1})},"5c0b":function(e,t,n){"use strict";var a=n("0554"),o=n.n(a);o.a},6532:function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".alarm .ant-form-item-label{text-align:left}.aside{flex:0 0 270px!important;max-width:270px!important;min-width:270px!important;width:270px!important;height:100vh;color:#fff;position:fixed;top:0;left:0;box-shadow:2px 0 6px 0 rgba(0,21,41,.35);z-index:1000}.aside .logo{width:100%;height:64px;overflow:hidden;line-height:64px;font-size:18px;font-weight:600;color:#fff}.aside .logo img{width:24px;height:24px;margin:10px 10px 10px 15px}.aside .logo .logo-title{transition-delay:.5s;margin-left:25px}.aside .ant-menu-inline{width:100%;height:100%}.aside .ant-menu-inline-collapsed{width:80px}.merge{flex:0 0 80px!important;max-width:80px!important;min-width:80px!important;width:80px!important}.merge .logo img{margin:0 30px}.merge .logo .logo-title{display:none;height:30px;overflow:hidden}",""]),e.exports=t},"69f1":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrap"},[e.$route.meta.name?n("div",{staticClass:"wrap-title"},[n("span",{staticClass:"wrap-title-text"},[e._t("title",[e._v(e._s(e.title))])],2)]):e._e(),n("div",{staticClass:"wrap-header"},[e._t("header"),e._t("button")],2),n("div",{staticClass:"wrap-cont"},[n("div",{staticClass:"wrap-cont-cover"},[n("div",{staticClass:"wrap-container"},[e._t("default")],2)])]),n("div",{staticClass:"wrap-footer bg-white"},[e._t("footer")],2)])},o=[],r=(n("b0c0"),{name:"content-view",data:function(){return{title:"",footerStyle:!1}},watch:{$route:function(e){this.title=e.meta.title||e.meta.name}},computed:{},mounted:function(){this.title=this.$route.meta.title||this.$route.meta.name}}),i=r,s=(n("40d1"),n("2877")),c=Object(s["a"])(i,a,o,!1,null,null,null);t["default"]=c.exports},"6e33":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".alarm .ant-form-item-label{text-align:left}.wrap{display:flex;flex-direction:column;flex:1;position:relative}.wrap-title{background:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 0 20px 24px;font-size:18px}.wrap-title-text{font-weight:700;flex:1}.wrap-header{background:#fff;border-bottom:1px solid #e1e1e1}.wrap-cont{padding:0 24px}.wrap-cont,.wrap-cont-cover{display:flex;flex-direction:column;flex:1}.wrap-cont-cover{padding:24px 0}.wrap-container{flex:1;position:relative;display:flex;flex-direction:column;overflow-x:auto;background-color:#fff}.wrap-container>div{padding:24px;overflow-x:hidden}.wrap-footer{position:fixed;left:0;bottom:0;padding-left:256px;width:100%;text-align:center;z-index:2}.wrap .table{background:#fff;margin:8px 20px;min-height:calc(100vh - 190px);padding:20px}",""]),e.exports=t},"739d":function(e,t,n){var a={"./http/http-api.js":"2a8b","./http/http-node-api.js":"f4ed"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id="739d"},"7a48":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,"/*! minireset.css v0.0.3 | MIT License | github.com/jgthms/minireset.css */blockquote,body,dd,dl,dt,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,html,iframe,legend,li,ol,p,pre,textarea,ul{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:400}ul{list-style:none}button,input,select,textarea{margin:0}body,html{font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,SimSun,sans-serif}html{box-sizing:border-box}*,:after,:before{box-sizing:inherit}audio,embed,iframe,img,object,video{height:auto;max-width:100%}iframe{border:0}table{border-collapse:collapse;border-spacing:0}td,th{padding:0;text-align:left}a{text-decoration:none}input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #fff inset!important}input[type=number]::-webkit-inner-spin-button{display:none}",""]),e.exports=t},"86a3":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".alarm .ant-form-item-label{text-align:left}",""]),e.exports=t},"96a4":function(e,t,n){var a=n("24fb"),o=n("7a48");t=a(!1),t.i(o),t.push([e.i,'.alarm .ant-form-item-label{text-align:left}.w40{width:40px!important}.w48{width:48px!important}.w56{width:56px!important}.w64{width:64px!important}.w72{width:72px!important}.w80{width:80px!important}.w88{width:88px!important}.w96{width:96px!important}.w104{width:104px!important}.w112{width:112px!important}.w120{width:120px!important}.w128{width:128px!important}.w136{width:136px!important}.w144{width:144px!important}.w152{width:152px!important}.w160{width:160px!important}.w168{width:168px!important}.w176{width:176px!important}.w184{width:184px!important}.w192{width:192px!important}.w200{width:200px!important}.w208{width:208px!important}.w216{width:216px!important}.w224{width:224px!important}.w232{width:232px!important}.w240{width:240px!important}.w248{width:248px!important}.w256{width:256px!important}.w264{width:264px!important}.w272{width:272px!important}.w280{width:280px!important}.w288{width:288px!important}.w296{width:296px!important}.w304{width:304px!important}.w312{width:312px!important}.w320{width:320px!important}.w328{width:328px!important}.w336{width:336px!important}.w344{width:344px!important}.w352{width:352px!important}.w360{width:360px!important}.w368{width:368px!important}.w376{width:376px!important}.w384{width:384px!important}.w392{width:392px!important}.w400{width:400px!important}.w408{width:408px!important}.w416{width:416px!important}.w424{width:424px!important}.w432{width:432px!important}.w440{width:440px!important}.w448{width:448px!important}.w456{width:456px!important}.w464{width:464px!important}.w472{width:472px!important}.w480{width:480px!important}.ml8{margin-left:8px}.mr8{margin-right:8px}.mt8{margin-top:8px}.mb8{margin-bottom:8px}.pl8{padding-left:8px}.pr8{padding-right:8px}.pt8{padding-top:8px}.pb8{padding-bottom:8px}.ml16{margin-left:16px}.mr16{margin-right:16px}.mt16{margin-top:16px}.mb16{margin-bottom:16px}.pl16{padding-left:16px}.pr16{padding-right:16px}.pt16{padding-top:16px}.pb16{padding-bottom:16px}.ml24{margin-left:24px}.mr24{margin-right:24px}.mt24{margin-top:24px}.mb24{margin-bottom:24px}.pl24{padding-left:24px}.pr24{padding-right:24px}.pt24{padding-top:24px}.pb24{padding-bottom:24px}.ml32{margin-left:32px}.mr32{margin-right:32px}.mt32{margin-top:32px}.mb32{margin-bottom:32px}.pl32{padding-left:32px}.pr32{padding-right:32px}.pt32{padding-top:32px}.pb32{padding-bottom:32px}.ml40{margin-left:40px}.mr40{margin-right:40px}.mt40{margin-top:40px}.mb40{margin-bottom:40px}.pl40{padding-left:40px}.pr40{padding-right:40px}.pt40{padding-top:40px}.pb40{padding-bottom:40px}.ml48{margin-left:48px}.mr48{margin-right:48px}.mt48{margin-top:48px}.mb48{margin-bottom:48px}.pl48{padding-left:48px}.pr48{padding-right:48px}.pt48{padding-top:48px}.pb48{padding-bottom:48px}.ml56{margin-left:56px}.mr56{margin-right:56px}.mt56{margin-top:56px}.mb56{margin-bottom:56px}.pl56{padding-left:56px}.pr56{padding-right:56px}.pt56{padding-top:56px}.pb56{padding-bottom:56px}.ml64{margin-left:64px}.mr64{margin-right:64px}.mt64{margin-top:64px}.mb64{margin-bottom:64px}.pl64{padding-left:64px}.pr64{padding-right:64px}.pt64{padding-top:64px}.pb64{padding-bottom:64px}.ml72{margin-left:72px}.mr72{margin-right:72px}.mt72{margin-top:72px}.mb72{margin-bottom:72px}.pl72{padding-left:72px}.pr72{padding-right:72px}.pt72{padding-top:72px}.pb72{padding-bottom:72px}.ml80{margin-left:80px}.mr80{margin-right:80px}.mt80{margin-top:80px}.mb80{margin-bottom:80px}.pl80{padding-left:80px}.pr80{padding-right:80px}.pt80{padding-top:80px}.pb80{padding-bottom:80px}.bg-white{background-color:#fff}.no-margin{margin:0!important}.no-margin-bottom{margin-bottom:0!important}.no-margin-top{margin-top:0!important}.no-margin-left{margin-left:0!important}.no-margin-right{margin-right:0!important}.no-padding{padding:0!important}.bq{border:1px solid #e9e9e9}.bl{border-left:1px solid #e9e9e9}.bt{border-top:1px solid #e9e9e9}.br{border-right:1px solid #e9e9e9}.bb{border-bottom:1px solid #e9e9e9}.flex{display:flex;align-items:center;justify-content:center;flex-flow:row nowrap}.flex-column{flex-flow:column nowrap}.flex-wrap{flex-wrap:wrap}.flex-start{justify-content:flex-start}.flex-end{justify-content:flex-end}.flex-space-around{justify-content:space-around}.flex-space-between{justify-content:space-between}.flex-align-start{align-items:flex-start}.flex-align-end{align-items:flex-end}.flex-align-center{align-items:center}.flex-none{flex:none}.flex-extensible{flex:1}.inline-block{display:inline-block}.inline-block+.inline-block{vertical-align:bottom}.inline-block_top{display:inline-block}.inline-block+.inline-block_top{vertical-align:top}.relative{position:relative}.relative .absolute{position:absolute}.float-left{float:left}.float-right{float:right}.float-clear:after{content:"";clear:both;display:block}.table-form{width:100%;table-layout:fixed}.table-form tr:last-of-type td{padding-bottom:0}.table-form tr td{padding-bottom:16px}.table-form tr td>div{width:100%}.table-form tr td:nth-child(odd){text-align:left}.table-form tr td:nth-child(odd) label:after{content:":";margin:0 8px 0 2px;position:relative;top:-.5px}.table-form tr td:nth-child(2n){padding-right:32px}.table-form_full{width:100%}',""]),e.exports=t},aad6:function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".alarm .ant-form-item-label{text-align:left}.header{background:#fff;display:flex;align-items:center;justify-content:space-between;height:64px;box-shadow:0 2px 5px rgba(0,21,41,.15);position:fixed;top:0;width:calc(100% - 270px);z-index:999}.header-left .trigger{font-size:18px;line-height:64px;padding:0 24px;cursor:pointer;transition:color .3s}.header-right{display:flex;align-items:flex-start;padding-right:20px}.header-right-circle{width:24px;height:24px;border-radius:50%;background-color:#fff;margin-right:8px;cursor:pointer}.collapsed-header{width:calc(100% - 80px)}",""]),e.exports=t},b94e:function(e,t,n){"use strict";n.r(t);var a=function(e,t){var n=t._c;return n("a-sub-menu",t._g({key:t.data.attrs.menuInfo.name},t.listeners),[n("span",{attrs:{slot:"title"},slot:"title"},[n("a-icon",{attrs:{type:t.data.attrs.menuInfo.meta.icon}}),n("span",[t._v(t._s(t.data.attrs.menuInfo.meta.name))])],1),t._l(t.data.attrs.menuInfo.children,(function(e){return[e.meta.unfold?t._e():n("a-menu-item",{key:e.name},[n("span",[t._v(t._s(e.meta.name))])]),e.meta.unfold?n("aside-item",{key:e.name,attrs:{menuInfo:e}}):t._e()]}))],2)},o=[],r={name:"aside-item",components:{},data:function(){return{}},methods:{},mounted:function(){}},i=r,s=n("2877"),c=Object(s["a"])(i,a,o,!0,null,null,null);t["default"]=c.exports},c777:function(e,t,n){var a=n("2aec");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=n("499e").default;o("12dfb7ec",a,!0,{sourceMap:!1,shadowMode:!1})},d8dc:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["header",e.collapsed?"collapsed-header":""]},[n("div",{staticClass:"header-left"},[n("a-layout-header",{staticStyle:{background:"#fff",padding:"0"}},[n("a-icon",{staticClass:"trigger",attrs:{type:e.collapsed?"menu-unfold":"menu-fold"},on:{click:e.collapsedFlag}})],1)],1),n("div",{staticClass:"header-right"},[n("div",{staticClass:"header-top-right-circle",on:{click:function(t){e.visible=!e.visible}}}),n("a-badge",{attrs:{count:e.count},on:{click:e.openPlc}},[n("a-icon",{staticStyle:{"font-size":"20px",cursor:"pointer"},attrs:{type:"bell"}})],1),n("a-popover",{attrs:{id:"popover",placement:"bottom",trigger:"click"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[n("a",{staticStyle:{margin:"0 10px"},attrs:{href:"javascript:;"}},[e._v(" "+e._s(e.userInfo.name?e.userInfo.name:"userName")+" ")]),n("div",{staticClass:"flex flex-column",style:{"min-width":"78px"},attrs:{slot:"content"},slot:"content"},[n("a",{staticClass:"block mb16",attrs:{href:"javascript:;"},on:{click:function(t){e.visible=!1,e.$router.push({name:"center"})}}},[e._v("个人中心")]),n("a",{attrs:{href:"javascript:;"},on:{click:e.logout}},[e._v("退出登录")])])])],1)])},o=[],r=n("5530"),i=n("2f62"),s={name:"PageHeader",computed:Object(r["a"])(Object(r["a"])({},Object(i["mapState"])(["aside_collapsed","userInfo"])),Object(i["mapGetters"])(["getAside_collapsed"])),watch:{getAside_collapsed:function(e){console.log(e),this.collapsed=e}},data:function(){return{visible:!1,collapsed:!1,count:0}},mounted:function(){this.getplcStatus();var e=this;setInterval((function(){e.getplcStatus()}),5e3)},methods:Object(r["a"])(Object(r["a"])({},Object(i["mapMutations"])(["setState"])),{},{logout:function(){this.visible=!1,localStorage.clear(),sessionStorage.clear(),this.$axios({url:"/app/userCenter",method:"GET"}).then((function(e){window.open(e.data.url+"?action=logout","_self")})).catch((function(e){}))},collapsedFlag:function(){this.collapsed=!this.collapsed,this.$store.commit("aside_collapsed",this.collapsed)},getplcStatus:function(){var e=this;this.$axios({url:"/plc/plcStatus",method:"GET"}).then((function(t){200==t.code&&(e.count=t.data)})).catch((function(e){console.log(e)}))},openPlc:function(){this.$router.push({name:"plcStatus"})}})},c=s,l=(n("f016"),n("2877")),d=Object(l["a"])(c,a,o,!1,null,null,null);t["default"]=d.exports},dfb3:function(e,t,n){var a=n("6e33");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=n("499e").default;o("5dda7116",a,!0,{sourceMap:!1,shadowMode:!1})},f016:function(e,t,n){"use strict";var a=n("04b4"),o=n.n(a);o.a},f4ed:function(e,t,n){"use strict";n.r(t),t["default"]={updateStylesAPI:{url:"/node/antv-styles/update",name:"更新标题菜单样式",method:"POST"},getStylesAPI:{url:"/node/default_css.json",name:"获取标题菜单样式",method:"GET"},getStockRowColumnAPI:{url:"/node/stock/getStockRowColumn",name:"获取盘点颜色状态",method:"GET"},getStockRowColumnNesInfo:{url:"/node/stock/getStockRowColumnNesInfo",name:"如果是人工复合错误,那么就需要取stock_log里的关联的最新的信息",method:"GET"},viewVideoAPI:{url:"/node/hk_video/view_video",name:"唤醒VSplay,查看海康视频",method:"GET"}}}}); \ No newline at end of file diff --git a/js/app.5e4a98cf.js b/js/app.5e4a98cf.js deleted file mode 100644 index a66955a..0000000 --- a/js/app.5e4a98cf.js +++ /dev/null @@ -1 +0,0 @@ -(function(e){function t(t){for(var a,i,s=t[0],c=t[1],l=t[2],d=0,p=[];d0&&t(n[a].children)},o=0;o3?this.selectedKeys=[this.$route.matched[2].name]:this.selectedKeys=[this.$route.matched[this.$route.matched.length-1].name]:this.selectedKeys=[this.$route.matched[1].name],console.log("selectedKeys",this.selectedKeys),this.$route.matched[1].meta.unfold?this.openKeys.push(this.$route.matched[1].name):this.openKeys=[""],this.$forceUpdate()},menuItemHover:function(e){this.mouseItemKey=e.key},menuItemOut:function(){this.mouseItemKey=""}},mounted:function(){var e=this;this.$nextTick((function(){e.setRoute()}))}},c=s,l=(n("017d"),n("2877")),d=Object(l["a"])(c,a,o,!1,null,null,null);t["default"]=d.exports},"34ab":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrap"},[e.$route.meta.name?n("div",{staticClass:"wrap-title"},[n("span",{staticClass:"wrap-title-text"},[e._t("title",[e._v(e._s(e.title))])],2)]):e._e(),n("keep-alive",{attrs:{include:["checkManage"]}},[n("router-view",{staticClass:"table"})],1),n("div",{staticClass:"wrap-footer bg-white"},[e._t("footer")],2)],1)},o=[],r=(n("b0c0"),{name:"PageContent",data:function(){return{title:"",footerStyle:!1}},watch:{$route:function(e){this.title=e.meta.title||e.meta.name}},computed:{},mounted:function(){this.title=this.$route.meta.title||this.$route.meta.name}}),i=r,s=(n("5187"),n("2877")),c=Object(s["a"])(i,a,o,!1,null,null,null);t["default"]=c.exports},"40d1":function(e,t,n){"use strict";var a=n("1bf5"),o=n.n(a);o.a},4678:function(e,t,n){var a={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id="4678"},5187:function(e,t,n){"use strict";var a=n("dfb3"),o=n.n(a);o.a},5491:function(e,t,n){var a={"./AsideMenu.vue":"2f7f","./Breadcrumb.vue":"5670","./PageContent.vue":"34ab","./PageHeader.vue":"d8dc"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id="5491"},5670:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-breadcrumb",{staticClass:"breadcrumb"},e._l(e.breadList,(function(t,a){return n("a-breadcrumb-item",{key:t.name},[t.name!==e.name&&1!==a?n("router-link",{attrs:{to:{path:""===t.path?"/":t.path}}},[e._v(e._s(t.meta.name))]):e.breadList.length>2?n("span",[e._v(e._s(t.meta.name))]):e._e()],1)})),1)},o=[],r=(n("4160"),n("b0c0"),n("159b"),{name:"Breadcrumb",data:function(){return{name:"",breadList:[]}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var e=this;this.breadList=[],this.name=this.$route.name,console.log(this.$route.matched),this.$route.matched.forEach((function(t){e.breadList.push(t)}))}},watch:{$route:function(){this.getBreadcrumb()}}}),i=r,s=(n("2a5c"),n("2877")),c=Object(s["a"])(i,a,o,!1,null,"73ecb21a",null);t["default"]=c.exports},"568d":function(e,t,n){var a={"./aside-item.vue":"b94e","./content-view.vue":"69f1","./reset-search.vue":"0359"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id="568d"},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79df");var a=n("2b0e"),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-config-provider",{attrs:{locale:e.locale}},[n("div",{attrs:{id:"app"}},[e.isRouterAlive?n("router-view"):e._e()],1)])},r=[],i=(n("45fc"),n("5530")),s=n("677e"),c=n.n(s),l=n("c1df"),d=n.n(l),u=(n("5c3a"),n("2f62"));d.a.locale("zh-cn");var p={name:"App",data:function(){return{isRouterAlive:!0,locale:c.a}},provide:function(){return{reload:this.reload}},methods:Object(i["a"])(Object(i["a"])({},Object(u["mapActions"])(["getStyles"])),{},{reload:function(){this.isRouterAlive=!1,this.$nextTick((function(){this.isRouterAlive=!0}))}}),mounted:function(){var e=this;this.getStyles(),window.onmessage=function(t){if(t.data.id)if(sessionStorage.setItem("postMessage",t.data.id),t.data.userInfo&&t.data.userInfo.id){if(t.data.userInfo.permissionList.some((function(e){return"duojiSystem"===e.rights}))){var n=e.$utils.translateDataToTree(t.data.userInfo.permissionList,"duojiSystem");t.data.userInfo.permissionList=e.$utils.treeToArray(n)}else t.data.userInfo.permissionList=[];localStorage.setItem("userInfo",JSON.stringify(t.data.userInfo))}else localStorage.clear()}}},f=p,m=(n("5c0b"),n("2877")),h=Object(m["a"])(f,o,r,!1,null,null,null),g=h.exports,b=(n("d3b7"),n("8c4f"));a["default"].use(b["a"]);var x=b["a"].prototype.push;b["a"].prototype.push=function(e){return x.call(this,e).catch((function(e){return e}))};var v=[{path:"/",redirect:{name:"realTimeMonitoring"},component:function(){return n.e("chunk-e205a644").then(n.bind(null,"1e4b"))},children:[{path:"realTimeMonitoring",name:"realTimeMonitoring",meta:{icon:"desktop",name:"实时视频流"},component:function(){return n.e("chunk-5314eafa").then(n.bind(null,"d7ad"))}},{path:"realTimeMonitoring/model",name:"realTimeMonitoringModel",meta:{name:"实时视频流(全屏)"},component:function(){return Promise.all([n.e("chunk-7140b3ea"),n.e("chunk-e0f9bdd0")]).then(n.bind(null,"5949"))}},{path:"historyMonitoring",name:"historyMonitoring",meta:{icon:"line-chart",name:"历史数据"},component:function(){return n.e("chunk-33953752").then(n.bind(null,"2bf9"))}},{path:"alarmLog",name:"alarmLog",meta:{icon:"exception",name:"告警日志"},component:function(){return n.e("chunk-50c80e87").then(n.bind(null,"f9bc"))}},{path:"checkManage",name:"checkManage",meta:{icon:"form",name:"盘点管理"},component:function(){return n.e("chunk-7f9ca11f").then(n.bind(null,"1b63"))}},{path:"checkOperation",name:"checkOperation",meta:{name:"盘点操作"},component:function(){return n.e("chunk-47777934").then(n.bind(null,"02d3"))}},{path:"roadwayManage",name:"roadwayManage",meta:{icon:"build",name:"巷道管理"},component:function(){return n.e("chunk-c884d4ae").then(n.bind(null,"dff9"))}},{path:"cameraManage",name:"cameraManage",meta:{icon:"video-camera",name:"球机管理"},component:function(){return Promise.all([n.e("chunk-7140b3ea"),n.e("chunk-190db7ae"),n.e("chunk-35ca11da")]).then(n.bind(null,"9543"))}},{path:"cameraManage/model",name:"cameraManageModel",meta:{name:"球机管理测试or配置"},component:function(){return Promise.all([n.e("chunk-7140b3ea"),n.e("chunk-190db7ae")]).then(n.bind(null,"9545"))}},{path:"productSpecManage",name:"productSpecManage",meta:{icon:"pushpin",name:"品规管理"},component:function(){return n.e("chunk-0a0877f0").then(n.bind(null,"98e8"))}},{path:"repertoryManage",name:"repertoryManage",meta:{icon:"wallet",name:"库存管理"},component:function(){return n.e("chunk-2a036b42").then(n.bind(null,"0b85"))}},{path:"cameraManage/ioTable",name:"ioTable",meta:{name:"IO表配置"},component:function(){return n.e("chunk-1e8ac3a9").then(n.bind(null,"4999"))}},{path:"center",name:"center",meta:{name:"个人中心"},component:function(){return n.e("chunk-c4503cf6").then(n.bind(null,"97b0"))}},{path:"plcStatus",name:"plcStatus",meta:{name:"PLC状态"},component:function(){return n.e("chunk-f2934902").then(n.bind(null,"7433"))}}]},{path:"/login",name:"login",component:function(){return n.e("chunk-66821f00").then(n.bind(null,"dd7b"))}},{path:"/guide",name:"guide",component:function(){return n.e("chunk-d8c3b5aa").then(n.bind(null,"1761"))}},{path:"/updateStyles",name:"修改样式",component:function(){return n.e("chunk-1b79387a").then(n.bind(null,"d3fe"))}},{path:"*",name:"404",component:function(){return n.e("chunk-2d0e95df").then(n.bind(null,"8cdb"))}}],w=new b["a"]({routes:v});w.beforeEach((function(e,t,n){n()}));var j=w,y=(n("96cf"),n("1da1")),k=(n("4160"),n("c975"),n("d81d"),n("b64b"),n("ac1f"),n("466d"),n("5319"),n("159b"),n("ddb0"),n("07ac"),n("841c"),n("bc3a")),O=n.n(k),S=O.a.create({baseURL:"/api",timeout:6e4,headers:{"Content-Type":"application/json;charset=UTF-8"},withCredentials:!0});window.once=0;var _=["/stock/export","/category/export/model","/stock/export/model"];S.interceptors.request.use((function(e){var t=e,n=/\{(.+?)\}/g;return n.test(t.url)&&(t.url=t.url.replace(n,Object.values(t.path)[0])),localStorage.getItem("userInfo")&&(t.headers.token=JSON.parse(localStorage.getItem("userInfo")).token),_.indexOf(e.url)>-1&&(e.responseType="blob"),t}),(function(e){return Promise.reject(e)})),S.interceptors.response.use((function(e){if(_.some((function(t){return e.config.url.indexOf(t)>-1})))return e.data;var t=e.data;return 200!==t.code&&0!==t.code?(a["default"].prototype.$message.error(t.message),401===t.code&&(0!=window.once||location.search||(a["default"].prototype.$message.error(t.message),a["default"].prototype.$axios({url:"/app/userCenter",method:"GET"}).then((function(e){window.open(e.data.url+"?redirect="+location.origin,"_self")})).catch((function(e){}))),++window.once),Promise.reject(t.message)):t}),(function(e){return Promise.reject(e)})),a["default"].prototype.$axios=S;var T=S,C=function(e){var t=e;return Object.keys(t).forEach((function(e){var n=Object(i["a"])({},t[e]);t[e]=function(e){return T(Object(i["a"])({method:n.method,url:n.url},e))}})),t},I=n("739d"),M={};function $(e){var t=/-([a-z])/g;return e.replace(t,(function(e,t){return t.toUpperCase()}))}I.keys().map((function(e){var t=$(e.match(/.*\/.*\/(.*\..*)/)[1]).indexOf(".js"),n=$(e.match(/.*\/.*\/(.*\..*)/)[1]).substring(0,t);return M[n]=I(e).default,C(M[n])}));var P=M,E=n("1f94"),L=n.n(E),z=Object(i["a"])(Object(i["a"])({},L.a),{},{async:!1,env:"production"}),A=function(e){console.log(z,e),z.modifyVars({"@primary-color":e,"@link-color":e,"@btn-primary-bg":e}).then((function(){console.log("antd主题颜色成功")})).catch((function(e){console.error("antd主题颜色失败"),console.error(e)}))},K=(new a["default"],P.httpNodeApi),R={state:{data:{theme:{"primary-color":"rgba(184, 68, 13, 1)"},title:{text:"ROBO垛机视觉系统",style:{color:"rgba(255, 255, 255, 1)","background-color":"rgba(163, 60, 12, 1)","font-size":"24px"}},menu:{default:{color:"rgba(230, 224, 224, 1)","background-color":"rgba(163, 60, 12, 1)"},select:{color:"rgba(255, 255, 255, 1)","background-color":"rgba(184, 68, 13, 1)"}}}},mutations:{UPDATE_STYLES:function(e,t){e.data=t,A(t.theme["primary-color"])}},actions:{updateStyles:function(e,t){return Object(y["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.commit,console.log(a["default"].prototype.$api),n.next=4,K.updateStylesAPI({data:t});case 4:case"end":return n.stop()}}),n)})))()},getStyles:function(e){return Object(y["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.commit,console.log("获取样式"),t.next=4,O.a.get("/api/node/default_css.json");case 4:a=t.sent,n("UPDATE_STYLES",a.data);case 6:case"end":return t.stop()}}),t)})))()}}},U=R,G=n("2784");a["default"].use(u["default"]);var N=new u["default"].Store({state:{aside_collapsed:!1,userInfo:JSON.parse(localStorage.getItem("userInfo")||"{}")},getters:{styles:function(e){return e.styles.data},getAside_collapsed:function(e){return e.aside_collapsed}},mutations:{setState:function(e,t){for(var n in t)e[n]=t[n]},aside_collapsed:function(e,t){e.aside_collapsed=t}},actions:{},modules:{styles:U},plugins:[Object(G["a"])()]}),D=(n("3aed"),n("8592")),F=n("98c5"),H=n("4df5"),B=n("dfae"),J=n("b558"),q=n("09d9"),W=n("ccb9"),Y=n("0020"),V=n("de1b"),Q=n("55f1"),X=n("3af3"),Z=n("5efb"),ee=n("2fc4"),te=n("0c63"),ne=n("d865"),ae=n("f23d"),oe=n("ed3b"),re=n("681b"),ie=n("9a63"),se=n("e32c"),ce=n("9839"),le=n("768f"),de=n("f933"),ue=n("7571"),pe=n("9571"),fe=n("a79d"),me=n("0bb7"),he=n("39ab"),ge=n("59a5"),be=n("a071"),xe=n("fa07"),ve=n("f64c");a["default"].use(D["a"]),a["default"].use(F["a"]),a["default"].use(H["b"]),a["default"].use(B["a"]),a["default"].use(J["a"]),a["default"].use(q["a"]),a["default"].use(W["a"]),a["default"].use(Y["a"]),a["default"].use(V["a"]),a["default"].use(Q["a"]),a["default"].use(X["a"]),a["default"].use(Z["a"]),a["default"].use(ee["a"]),a["default"].use(te["a"]),a["default"].use(ne["a"]);try{a["default"].use(ae["result"])}catch(Ce){console.log(Ce)}a["default"].use(oe["a"]),a["default"].use(re["a"]),a["default"].use(ie["a"]),a["default"].use(se["a"]),a["default"].use(ce["d"]),a["default"].use(le["a"]),a["default"].use(de["a"]),a["default"].use(ue["a"]),a["default"].use(pe["a"]),a["default"].use(fe["a"]),a["default"].use(me["a"]),a["default"].use(he["a"]),a["default"].use(ge["a"]),a["default"].use(be["a"]),a["default"].use(xe["a"]),a["default"].prototype.$form=X["a"],a["default"].prototype.$message=ve["a"],a["default"].prototype.$info=oe["a"].info,a["default"].prototype.$success=oe["a"].success,a["default"].prototype.$confirm=oe["a"].confirm,a["default"].prototype.$error=oe["a"].error;var we=n("5c96");n("0fae");a["default"].use(we["ColorPicker"]),a["default"].use(we["Form"]),a["default"].use(we["FormItem"]);n("b0c0");var je=n("568d");je.keys().map((function(e){var t=je(e).default;return a["default"].component(t.name,t)}));var ye=n("5491");ye.keys().map((function(e){var t=ye(e).default;return a["default"].component(t.name,t)}));n("4de4"),n("7db0"),n("a434"),n("25f0"),n("3ca3"),n("1276"),n("2b3d");var ke={format:function(e){var t=parseInt(e/864e5),n=parseInt(e%864e5/36e5),a=parseInt(e%36e5/6e4),o=e%6e4/1e3;return t+" 天 "+n+" 小时 "+a+" 分钟 "+o+" 秒 "},timerFormat:function(){var e=new Date,t=e.getFullYear(),n=e.getMonth()+1,a=e.getDate(),o=e.getHours()<10?"0"+e.getHours():e.getHours(),r=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),i=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return t+"年"+n+"月"+a+"日 "+o+":"+r+":"+i},computedStrLen:function(e){for(var t=0,n=0;n=1&&a<=126||65376<=a&&a<=65439?t++:t+=2}return t},deepClone:function(e){var t,n=this.getType(e);if("array"===n)t=[];else{if("object"!==n)return e;t={}}if("array"===n)for(var a=0,o=e.length;a1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach((function(e){var a=e.children;if(a&&(delete e.children,a.length))return n.push(e),t.treeToArray(a,n);n.push(e)})),n},translateDataToTree:function(e,t){var n=e.filter((function(e){return 0===e.parentId})),a=e.filter((function(e){return 0!==e.parentId})),o=function e(t,n){t&&t.forEach((function(t){n&&n.forEach((function(a,o){if(a.parentId===t.id){var r=JSON.parse(JSON.stringify(n));r.splice(o,1),t.children&&t.children.length?t.children.push(a):t.children=[a],e([a],r)}}))}))};return o(n,a),n=n.filter((function(e){return e.rights===t})),n&&n.length&&n[0].children}},Oe=n("6db4"),Se=(n("14d3"),n("0808"),n("6944")),_e=n.n(Se);a["default"].config.productionTip=!1,a["default"].prototype.$utils=ke,a["default"].prototype.$api=P,a["default"].component("happy-scroll",Oe["HappyScroll"]),a["default"].use(_e.a),new a["default"]({router:j,store:N,render:function(e){return e(g)}}).$mount("#app");var Te=n("2f62");console.log(Te)},"57cd":function(e,t,n){var a=n("6532");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=n("499e").default;o("66ea037e",a,!0,{sourceMap:!1,shadowMode:!1})},"5c0b":function(e,t,n){"use strict";var a=n("0554"),o=n.n(a);o.a},6532:function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".alarm .ant-form-item-label{text-align:left}.aside{flex:0 0 270px!important;max-width:270px!important;min-width:270px!important;width:270px!important;height:100vh;color:#fff;position:fixed;top:0;left:0;box-shadow:2px 0 6px 0 rgba(0,21,41,.35);z-index:1000}.aside .logo{width:100%;height:64px;overflow:hidden;line-height:64px;font-size:18px;font-weight:600;color:#fff}.aside .logo img{width:24px;height:24px;margin:10px 10px 10px 15px}.aside .logo .logo-title{transition-delay:.5s;margin-left:25px}.aside .ant-menu-inline{width:100%;height:100%}.aside .ant-menu-inline-collapsed{width:80px}.merge{flex:0 0 80px!important;max-width:80px!important;min-width:80px!important;width:80px!important}.merge .logo img{margin:0 30px}.merge .logo .logo-title{display:none;height:30px;overflow:hidden}",""]),e.exports=t},"69f1":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrap"},[e.$route.meta.name?n("div",{staticClass:"wrap-title"},[n("span",{staticClass:"wrap-title-text"},[e._t("title",[e._v(e._s(e.title))])],2)]):e._e(),n("div",{staticClass:"wrap-header"},[e._t("header"),e._t("button")],2),n("div",{staticClass:"wrap-cont"},[n("div",{staticClass:"wrap-cont-cover"},[n("div",{staticClass:"wrap-container"},[e._t("default")],2)])]),n("div",{staticClass:"wrap-footer bg-white"},[e._t("footer")],2)])},o=[],r=(n("b0c0"),{name:"content-view",data:function(){return{title:"",footerStyle:!1}},watch:{$route:function(e){this.title=e.meta.title||e.meta.name}},computed:{},mounted:function(){this.title=this.$route.meta.title||this.$route.meta.name}}),i=r,s=(n("40d1"),n("2877")),c=Object(s["a"])(i,a,o,!1,null,null,null);t["default"]=c.exports},"6e33":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".alarm .ant-form-item-label{text-align:left}.wrap{display:flex;flex-direction:column;flex:1;position:relative}.wrap-title{background:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 0 20px 24px;font-size:18px}.wrap-title-text{font-weight:700;flex:1}.wrap-header{background:#fff;border-bottom:1px solid #e1e1e1}.wrap-cont{padding:0 24px}.wrap-cont,.wrap-cont-cover{display:flex;flex-direction:column;flex:1}.wrap-cont-cover{padding:24px 0}.wrap-container{flex:1;position:relative;display:flex;flex-direction:column;overflow-x:auto;background-color:#fff}.wrap-container>div{padding:24px;overflow-x:hidden}.wrap-footer{position:fixed;left:0;bottom:0;padding-left:256px;width:100%;text-align:center;z-index:2}.wrap .table{background:#fff;margin:8px 20px;min-height:calc(100vh - 190px);padding:20px}",""]),e.exports=t},"739d":function(e,t,n){var a={"./http/http-api.js":"2a8b","./http/http-node-api.js":"f4ed"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id="739d"},"7a48":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,"/*! minireset.css v0.0.3 | MIT License | github.com/jgthms/minireset.css */blockquote,body,dd,dl,dt,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,html,iframe,legend,li,ol,p,pre,textarea,ul{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:400}ul{list-style:none}button,input,select,textarea{margin:0}body,html{font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,SimSun,sans-serif}html{box-sizing:border-box}*,:after,:before{box-sizing:inherit}audio,embed,iframe,img,object,video{height:auto;max-width:100%}iframe{border:0}table{border-collapse:collapse;border-spacing:0}td,th{padding:0;text-align:left}a{text-decoration:none}input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #fff inset!important}input[type=number]::-webkit-inner-spin-button{display:none}",""]),e.exports=t},"86a3":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".alarm .ant-form-item-label{text-align:left}",""]),e.exports=t},"96a4":function(e,t,n){var a=n("24fb"),o=n("7a48");t=a(!1),t.i(o),t.push([e.i,'.alarm .ant-form-item-label{text-align:left}.w40{width:40px!important}.w48{width:48px!important}.w56{width:56px!important}.w64{width:64px!important}.w72{width:72px!important}.w80{width:80px!important}.w88{width:88px!important}.w96{width:96px!important}.w104{width:104px!important}.w112{width:112px!important}.w120{width:120px!important}.w128{width:128px!important}.w136{width:136px!important}.w144{width:144px!important}.w152{width:152px!important}.w160{width:160px!important}.w168{width:168px!important}.w176{width:176px!important}.w184{width:184px!important}.w192{width:192px!important}.w200{width:200px!important}.w208{width:208px!important}.w216{width:216px!important}.w224{width:224px!important}.w232{width:232px!important}.w240{width:240px!important}.w248{width:248px!important}.w256{width:256px!important}.w264{width:264px!important}.w272{width:272px!important}.w280{width:280px!important}.w288{width:288px!important}.w296{width:296px!important}.w304{width:304px!important}.w312{width:312px!important}.w320{width:320px!important}.w328{width:328px!important}.w336{width:336px!important}.w344{width:344px!important}.w352{width:352px!important}.w360{width:360px!important}.w368{width:368px!important}.w376{width:376px!important}.w384{width:384px!important}.w392{width:392px!important}.w400{width:400px!important}.w408{width:408px!important}.w416{width:416px!important}.w424{width:424px!important}.w432{width:432px!important}.w440{width:440px!important}.w448{width:448px!important}.w456{width:456px!important}.w464{width:464px!important}.w472{width:472px!important}.w480{width:480px!important}.ml8{margin-left:8px}.mr8{margin-right:8px}.mt8{margin-top:8px}.mb8{margin-bottom:8px}.pl8{padding-left:8px}.pr8{padding-right:8px}.pt8{padding-top:8px}.pb8{padding-bottom:8px}.ml16{margin-left:16px}.mr16{margin-right:16px}.mt16{margin-top:16px}.mb16{margin-bottom:16px}.pl16{padding-left:16px}.pr16{padding-right:16px}.pt16{padding-top:16px}.pb16{padding-bottom:16px}.ml24{margin-left:24px}.mr24{margin-right:24px}.mt24{margin-top:24px}.mb24{margin-bottom:24px}.pl24{padding-left:24px}.pr24{padding-right:24px}.pt24{padding-top:24px}.pb24{padding-bottom:24px}.ml32{margin-left:32px}.mr32{margin-right:32px}.mt32{margin-top:32px}.mb32{margin-bottom:32px}.pl32{padding-left:32px}.pr32{padding-right:32px}.pt32{padding-top:32px}.pb32{padding-bottom:32px}.ml40{margin-left:40px}.mr40{margin-right:40px}.mt40{margin-top:40px}.mb40{margin-bottom:40px}.pl40{padding-left:40px}.pr40{padding-right:40px}.pt40{padding-top:40px}.pb40{padding-bottom:40px}.ml48{margin-left:48px}.mr48{margin-right:48px}.mt48{margin-top:48px}.mb48{margin-bottom:48px}.pl48{padding-left:48px}.pr48{padding-right:48px}.pt48{padding-top:48px}.pb48{padding-bottom:48px}.ml56{margin-left:56px}.mr56{margin-right:56px}.mt56{margin-top:56px}.mb56{margin-bottom:56px}.pl56{padding-left:56px}.pr56{padding-right:56px}.pt56{padding-top:56px}.pb56{padding-bottom:56px}.ml64{margin-left:64px}.mr64{margin-right:64px}.mt64{margin-top:64px}.mb64{margin-bottom:64px}.pl64{padding-left:64px}.pr64{padding-right:64px}.pt64{padding-top:64px}.pb64{padding-bottom:64px}.ml72{margin-left:72px}.mr72{margin-right:72px}.mt72{margin-top:72px}.mb72{margin-bottom:72px}.pl72{padding-left:72px}.pr72{padding-right:72px}.pt72{padding-top:72px}.pb72{padding-bottom:72px}.ml80{margin-left:80px}.mr80{margin-right:80px}.mt80{margin-top:80px}.mb80{margin-bottom:80px}.pl80{padding-left:80px}.pr80{padding-right:80px}.pt80{padding-top:80px}.pb80{padding-bottom:80px}.bg-white{background-color:#fff}.no-margin{margin:0!important}.no-margin-bottom{margin-bottom:0!important}.no-margin-top{margin-top:0!important}.no-margin-left{margin-left:0!important}.no-margin-right{margin-right:0!important}.no-padding{padding:0!important}.bq{border:1px solid #e9e9e9}.bl{border-left:1px solid #e9e9e9}.bt{border-top:1px solid #e9e9e9}.br{border-right:1px solid #e9e9e9}.bb{border-bottom:1px solid #e9e9e9}.flex{display:flex;align-items:center;justify-content:center;flex-flow:row nowrap}.flex-column{flex-flow:column nowrap}.flex-wrap{flex-wrap:wrap}.flex-start{justify-content:flex-start}.flex-end{justify-content:flex-end}.flex-space-around{justify-content:space-around}.flex-space-between{justify-content:space-between}.flex-align-start{align-items:flex-start}.flex-align-end{align-items:flex-end}.flex-align-center{align-items:center}.flex-none{flex:none}.flex-extensible{flex:1}.inline-block{display:inline-block}.inline-block+.inline-block{vertical-align:bottom}.inline-block_top{display:inline-block}.inline-block+.inline-block_top{vertical-align:top}.relative{position:relative}.relative .absolute{position:absolute}.float-left{float:left}.float-right{float:right}.float-clear:after{content:"";clear:both;display:block}.table-form{width:100%;table-layout:fixed}.table-form tr:last-of-type td{padding-bottom:0}.table-form tr td{padding-bottom:16px}.table-form tr td>div{width:100%}.table-form tr td:nth-child(odd){text-align:left}.table-form tr td:nth-child(odd) label:after{content:":";margin:0 8px 0 2px;position:relative;top:-.5px}.table-form tr td:nth-child(2n){padding-right:32px}.table-form_full{width:100%}',""]),e.exports=t},aad6:function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".alarm .ant-form-item-label{text-align:left}.header{background:#fff;display:flex;align-items:center;justify-content:space-between;height:64px;box-shadow:0 2px 5px rgba(0,21,41,.15);position:fixed;top:0;width:calc(100% - 270px);z-index:999}.header-left .trigger{font-size:18px;line-height:64px;padding:0 24px;cursor:pointer;transition:color .3s}.header-right{display:flex;align-items:flex-start;padding-right:20px}.header-right-circle{width:24px;height:24px;border-radius:50%;background-color:#fff;margin-right:8px;cursor:pointer}.collapsed-header{width:calc(100% - 80px)}",""]),e.exports=t},b94e:function(e,t,n){"use strict";n.r(t);var a=function(e,t){var n=t._c;return n("a-sub-menu",t._g({key:t.data.attrs.menuInfo.name},t.listeners),[n("span",{attrs:{slot:"title"},slot:"title"},[n("a-icon",{attrs:{type:t.data.attrs.menuInfo.meta.icon}}),n("span",[t._v(t._s(t.data.attrs.menuInfo.meta.name))])],1),t._l(t.data.attrs.menuInfo.children,(function(e){return[e.meta.unfold?t._e():n("a-menu-item",{key:e.name},[n("span",[t._v(t._s(e.meta.name))])]),e.meta.unfold?n("aside-item",{key:e.name,attrs:{menuInfo:e}}):t._e()]}))],2)},o=[],r={name:"aside-item",components:{},data:function(){return{}},methods:{},mounted:function(){}},i=r,s=n("2877"),c=Object(s["a"])(i,a,o,!0,null,null,null);t["default"]=c.exports},c777:function(e,t,n){var a=n("2aec");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=n("499e").default;o("12dfb7ec",a,!0,{sourceMap:!1,shadowMode:!1})},d8dc:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["header",e.collapsed?"collapsed-header":""]},[n("div",{staticClass:"header-left"},[n("a-layout-header",{staticStyle:{background:"#fff",padding:"0"}},[n("a-icon",{staticClass:"trigger",attrs:{type:e.collapsed?"menu-unfold":"menu-fold"},on:{click:e.collapsedFlag}})],1)],1),n("div",{staticClass:"header-right"},[n("div",{staticClass:"header-top-right-circle",on:{click:function(t){e.visible=!e.visible}}}),n("a-badge",{attrs:{count:e.count},on:{click:e.openPlc}},[n("a-icon",{staticStyle:{"font-size":"20px",cursor:"pointer"},attrs:{type:"bell"}})],1),n("a-popover",{attrs:{id:"popover",placement:"bottom",trigger:"click"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[n("a",{staticStyle:{margin:"0 10px"},attrs:{href:"javascript:;"}},[e._v(" "+e._s(e.userInfo.name?e.userInfo.name:"userName")+" ")]),n("div",{staticClass:"flex flex-column",style:{"min-width":"78px"},attrs:{slot:"content"},slot:"content"},[n("a",{staticClass:"block mb16",attrs:{href:"javascript:;"},on:{click:function(t){e.visible=!1,e.$router.push({name:"center"})}}},[e._v("个人中心")]),n("a",{attrs:{href:"javascript:;"},on:{click:e.logout}},[e._v("退出登录")])])])],1)])},o=[],r=n("5530"),i=n("2f62"),s={name:"PageHeader",computed:Object(r["a"])(Object(r["a"])({},Object(i["mapState"])(["aside_collapsed","userInfo"])),Object(i["mapGetters"])(["getAside_collapsed"])),watch:{getAside_collapsed:function(e){console.log(e),this.collapsed=e}},data:function(){return{visible:!1,collapsed:!1,count:0}},mounted:function(){this.getplcStatus();var e=this;setInterval((function(){e.getplcStatus()}),5e3)},methods:Object(r["a"])(Object(r["a"])({},Object(i["mapMutations"])(["setState"])),{},{logout:function(){this.visible=!1,localStorage.clear(),sessionStorage.clear(),this.$axios({url:"/app/userCenter",method:"GET"}).then((function(e){window.open(e.data.url+"?action=logout","_self")})).catch((function(e){}))},collapsedFlag:function(){this.collapsed=!this.collapsed,this.$store.commit("aside_collapsed",this.collapsed)},getplcStatus:function(){var e=this;this.$axios({url:"/plc/plcStatus",method:"GET"}).then((function(t){200==t.code&&(e.count=t.data)})).catch((function(e){console.log(e)}))},openPlc:function(){this.$router.push({name:"plcStatus"})}})},c=s,l=(n("f016"),n("2877")),d=Object(l["a"])(c,a,o,!1,null,null,null);t["default"]=d.exports},dfb3:function(e,t,n){var a=n("6e33");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=n("499e").default;o("5dda7116",a,!0,{sourceMap:!1,shadowMode:!1})},f016:function(e,t,n){"use strict";var a=n("04b4"),o=n.n(a);o.a},f4ed:function(e,t,n){"use strict";n.r(t),t["default"]={updateStylesAPI:{url:"/node/antv-styles/update",name:"更新标题菜单样式",method:"POST"},getStylesAPI:{url:"/node/default_css.json",name:"获取标题菜单样式",method:"GET"},getStockRowColumnAPI:{url:"/node/stock/getStockRowColumn",name:"获取盘点颜色状态",method:"GET"},getStockRowColumnNesInfo:{url:"/node/stock/getStockRowColumnNesInfo",name:"如果是人工复合错误,那么就需要取stock_log里的关联的最新的信息",method:"GET"},viewVideoAPI:{url:"/node/hk_video/view_video",name:"唤醒VSplay,查看海康视频",method:"GET"}}}}); \ No newline at end of file diff --git a/js/chunk-0a0877f0.4c1c293c.js b/js/chunk-0a0877f0.4c1c293c.js deleted file mode 100644 index 2f5189a..0000000 --- a/js/chunk-0a0877f0.4c1c293c.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0a0877f0"],{"16fd":function(t,e,a){"use strict";var o=a("407b"),i=a.n(o);i.a},"1b19":function(t,e,a){var o=a("24fb");e=o(!1),e.push([t.i,".alarm .ant-form-item-label[data-v-250e4480]{text-align:left}.p-model .across-layout[data-v-250e4480]{display:flex}.p-model .ant-divider-horizontal[data-v-250e4480]{margin:6px 0}.video-mask[data-v-250e4480]{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.5);z-index:1000}.video-mask[data-v-250e4480],.video-mask .video-close[data-v-250e4480]{display:flex;align-items:center;justify-content:center}.video-mask .video-close[data-v-250e4480]{position:absolute;right:20px;top:20px;color:#fff;font-size:24px;width:32px;height:32px;background:rgba(0,0,0,.5);border-radius:50%;cursor:pointer;z-index:10}.video-mask .operation-list[data-v-250e4480]{position:absolute;right:200px;bottom:20px;z-index:10}.video-mask .operation-list .operation-item img[data-v-250e4480]{width:42px}.video-mask .operation-list .operation-item span[data-v-250e4480]{padding:5px 10px;background:rgba(0,0,0,.5);font-size:18px;color:#fff}.video-mask .direction-list[data-v-250e4480]{position:absolute;right:30px;bottom:20px;width:150px;z-index:10}.video-mask .direction-list .direction-item[data-v-250e4480]{display:flex;align-items:center;justify-content:space-between}.video-mask .direction-list .direction-item img[data-v-250e4480]{width:42px}.video-mask img[data-v-250e4480]{cursor:pointer}",""]),t.exports=e},2e3:function(t,e,a){"use strict";a.d(e,"c",(function(){return o})),a.d(e,"b",(function(){return i})),a.d(e,"d",(function(){return n})),a.d(e,"a",(function(){return s})),a.d(e,"e",(function(){return r}));var o="/api/camera/config/import",i="/api/category/import",n="/api/stock/import",s="/api/pic/",r="/api/mp4/"},2844:function(t,e,a){"use strict";var o=a("8612"),i=a.n(o);i.a},"407b":function(t,e,a){var o=a("8823");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=a("499e").default;i("0b7e28e2",o,!0,{sourceMap:!1,shadowMode:!1})},8612:function(t,e,a){var o=a("1b19");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=a("499e").default;i("60b2fbc6",o,!0,{sourceMap:!1,shadowMode:!1})},8823:function(t,e,a){var o=a("24fb");e=o(!1),e.push([t.i,".alarm .ant-form-item-label[data-v-602cc69a]{text-align:left}.button-box[data-v-602cc69a]{position:absolute;top:0;right:20px;display:flex;align-items:center;justify-content:center}.button-box .add[data-v-602cc69a]{margin-right:15px}",""]),t.exports=e},"98e8":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"button-box"},[a("a-button",{staticClass:"add",attrs:{type:"primary"},on:{click:function(e){return t.showModel("add","")}}},[t._v(" 新增 ")]),a("a-upload",{ref:"table",staticStyle:{"margin-right":"15px"},attrs:{name:"file",multiple:!0,accept:".xlsx",action:t.uploadProps.action,showUploadList:!1},on:{change:t.handleChange}},[a("a-button",{attrs:{type:"primary"}},[t._v(" 导入 ")])],1),a("a-button",{attrs:{type:""},on:{click:t.categoryExportModel}},[t._v(" 模板下载 ")])],1),a("a-table",{attrs:{columns:t.columns,"row-key":function(t){return t.id},"data-source":t.data,pagination:t.pagination},on:{change:t.handleGetCameraIoList},scopedSlots:t._u([{key:"action",fn:function(e,o){return a("span",{},[a("a-divider",{attrs:{type:"vertical"}}),a("a",{on:{click:function(e){return t.showModel("edit",o)}}},[t._v(" 编辑 ")]),a("a-divider",{attrs:{type:"vertical"}}),a("a-popconfirm",{attrs:{title:"是否删除?"},on:{confirm:function(){return t.delDosage(o)}}},[a("a",[t._v("删除")])])],1)}}])}),a("Model",{attrs:{visible:t.visible,modelType:t.modelType,modelData:t.modelData},on:{"update:visible":function(e){t.visible=e},"update:modelData":function(e){t.modelData=e},"update:model-data":function(e){t.modelData=e},sure:t.submit,close:t.closeModel}})],1)},i=[],n=(a("4160"),a("159b"),a("5530")),s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.isShow?a("div",["add"==t.type||"edit"==t.type?[a("a-modal",{staticClass:"p-model",attrs:{title:["add"==t.type?"新增品规":"编辑品规"],closable:t.closable,"ok-text":"确认","cancel-text":"取消"},on:{ok:t.handleOk,cancel:t.handleCancel},model:{value:t.isShow,callback:function(e){t.isShow=e},expression:"isShow"}},[a("a-form",{attrs:{form:t.form,"wrapper-col":t.formItemAcrossLayout.wrapperCol}},[a("a-form-item",{attrs:{label:"名称","label-col":t.formItemVerticalLayout.labelCol,help:"说明:请按A - AA-AAA 的模式输入内容"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,message:"请输入品规名称!"}]}],expression:"['name', { rules: [{ required: true, message: '请输入品规名称!' }] }]"}]})],1)],1)],1)]:t._e()],2):t._e()},r=[],l=(a("b0c0"),{labelCol:{span:8},wrapperCol:{span:14}}),c={labelCol:{span:4},wrapperCol:{span:8,offset:4}},d={props:["visible","modelType","modelData"],watch:{visible:function(t){this.isShow=t},modelType:function(t){this.type=t},modelData:function(t){var e=this;this.mdata=t,console.log(this.type),t.id&&"edit"==this.type&&(this.id=t.id,this.$nextTick((function(){e.form.setFieldsValue({name:t.name,ip:t.ip,rtsp:t.rtsp})})))}},data:function(){return{isShow:!1,type:"",title:"",closable:!1,formItemAcrossLayout:l,formItemVerticalLayout:c,confirmLoading:!1,form:this.$form.createForm(this,{name:"dynamic_rule"}),id:"",mdata:[]}},mounted:function(){console.log("mounted执行了")},methods:{handleOk:function(){var t=this;this.confirmLoading=!0,setTimeout((function(){t.form.validateFields((function(e,a){console.log(a),e||(console.log(t.title),"add"==t.type?t.$api.httpApi.addCategory({data:a}).then((function(e){200==e.code&&(t.$emit("sure",!1),t.$message.success("新增品规成功"))})).catch((function(t){})):"edit"==t.type&&(a.id=t.id,t.$api.httpApi.editCategory({data:a}).then((function(e){200==e.code&&(t.$emit("sure",!1),t.$message.success("编辑品规成功"))})).catch((function(t){}))))})),t.confirmLoading=!1}),500)},handleCancel:function(){console.log("Clicked cancel button"),console.log(this.title),this.$emit("close",!1,{})}}},p=d,u=(a("2844"),a("2877")),m=Object(u["a"])(p,s,r,!1,null,"250e4480",null),f=m.exports,h=a("2000"),g=[{title:"序号",customRender:function(t,e,a){return 10*(e.pageNumber-1)+a+1}},{title:"品类",dataIndex:"name"},{title:"修改时间",dataIndex:"updateTime"},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"}}],v={data:function(){var t=this;return{pageNum:1,pageSize:10,data:[],pagination:{total:0,current:1,defaultPageSize:10,showTotal:function(t){return"共 ".concat(t," 条数据")},showSizeChanger:!0,pageSizeOptions:["10","20","30"],onShowSizeChange:function(e,a){return t.pageSize=a}},loading:!1,columns:g,visible:!1,modelType:"",modelData:[]}},computed:{uploadProps:function(){return{action:h["b"]}}},mounted:function(){this.handleGetCameraIoList()},methods:{handleChange:function(t){console.log(t),"done"==t.file.status?(this.$message.success(t.file.response.message),this.handleGetCameraIoList()):"error"==t.file.status&&this.$message.error(t.file.response.message)},handleGetCameraIoList:function(t){console.log(t),t&&(this.pagination.current=t.current,this.pagination.pageSize=t.pageSize,this.pageNum=t.current,this.pageSize=t.pageSize),this.request()},request:function(){var t=this;this.$api.httpApi.categoryList({data:{pageNum:this.pageNum,pageSize:this.pageSize}}).then((function(e){var a=Object(n["a"])({},t.pagination);a.total=e.data.total,t.data=e.data.list,t.pagination=a,e.data.list.forEach((function(e,a){e.pageNumber=t.pagination.current}))})).catch((function(t){}))},categoryExportModel:function(){var t=this;this.$api.httpApi.categoryExportModel({params:{}}).then((function(e){var a=new Blob([e],{type:"application/vnd.ms-excel"});t.$utils.downloadFile("品规模板.xls",a)})).catch((function(t){}))},showModel:function(t,e){this.visible=!0,console.log(t),this.modelType=t,this.modelData=e},submit:function(t){this.visible=t,this.handleGetCameraIoList()},closeModel:function(t,e){this.visible=t,this.modelData=e},delDosage:function(t){var e=this;console.log(t.id);var a=t.id;this.$axios.delete("/category/"+a,{data:{}}).then((function(t){200==t.code&&(e.$message.success("删除分类成功"),e.handleGetCameraIoList())})).catch((function(t){}))}},components:{Model:f}},b=v,x=(a("16fd"),Object(u["a"])(b,o,i,!1,null,"602cc69a",null));e["default"]=x.exports}}]); \ No newline at end of file diff --git a/js/chunk-0ab3aab0.5a54350c.js b/js/chunk-0ab3aab0.5a54350c.js new file mode 100644 index 0000000..3c4cddb --- /dev/null +++ b/js/chunk-0ab3aab0.5a54350c.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0ab3aab0"],{"0b85":function(t,a,e){"use strict";e.r(a);var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("div",{staticClass:"button-box"},[e("a-upload",{ref:"table",attrs:{name:"file",multiple:!0,accept:".xlsx",action:t.uploadProps.action,showUploadList:!1},on:{change:t.handleChange}},[e("a-button",{staticStyle:{"margin-right":"15px"},attrs:{type:"primary"}},[t._v(" 导入 ")]),e("a-button",{attrs:{type:""},on:{click:t.stockExportModel}},[t._v(" 模板下载 ")])],1)],1),e("a-table",{staticStyle:{"margin-top":"40px"},attrs:{columns:t.columns,"row-key":function(t){return t.id},"data-source":t.data,pagination:t.pagination},on:{change:t.handleGetCameraIoList},scopedSlots:t._u([{key:"actions",fn:function(a){return e("span",{},[[e("span",[t._v(t._s(a.shelveId)+" "+t._s(a.column)+"列"+t._s(a.row)+"行")])]],2)}}])})],1)},i=[],o=(e("4160"),e("159b"),e("5530")),s=e("2000"),r=[{title:"序号",customRender:function(t,a,e){return 10*(a.pageNumber-1)+e+1}},{title:"条码",dataIndex:"code"},{title:"货位",scopedSlots:{customRender:"actions"}},{title:"导入时间",dataIndex:"exportTime"}],c={data:function(){var t=this;return{pageNum:1,pageSize:10,data:[],pagination:{total:0,current:1,defaultPageSize:10,showTotal:function(t){return"共 ".concat(t," 条数据")},showSizeChanger:!0,pageSizeOptions:["10","20","30"],onShowSizeChange:function(a,e){return t.pageSize=e}},loading:!1,columns:r,visible:!1,modelType:"",modelData:[]}},computed:{uploadProps:function(){return{action:s["d"]}}},mounted:function(){this.handleGetCameraIoList()},methods:{handleChange:function(t){console.log(t),"done"==t.file.status?(this.$message.success(t.file.response.message),this.handleGetCameraIoList()):"error"==t.file.status&&this.$message.error(t.file.response.message)},handleGetCameraIoList:function(t){console.log(t),t&&(this.pagination.current=t.current,this.pagination.pageSize=t.pageSize,this.pageNum=t.current,this.pageSize=t.pageSize),this.request()},request:function(){var t=this;this.$api.httpApi.getStockpage({data:{pageNum:this.pageNum,pageSize:this.pageSize}}).then((function(a){var e=Object(o["a"])({},t.pagination);e.total=a.data.total,t.data=a.data.list,t.pagination=e,a.data.list.forEach((function(a,e){a.pageNumber=t.pagination.current}))})).catch((function(t){}))},stockExportModel:function(){var t=this;this.$api.httpApi.stockExportModel({params:{}}).then((function(a){var e=new Blob([a],{type:"application/vnd.ms-excel"});t.$utils.downloadFile("库存模板.xls",e)})).catch((function(t){}))}},components:{}},u=c,p=(e("516d"),e("2877")),l=Object(p["a"])(u,n,i,!1,null,"2729c605",null);a["default"]=l.exports},2e3:function(t,a,e){"use strict";e.d(a,"c",(function(){return n})),e.d(a,"b",(function(){return i})),e.d(a,"d",(function(){return o})),e.d(a,"a",(function(){return s})),e.d(a,"e",(function(){return r}));var n="/api/camera/config/import",i="/api/category/import",o="/api/stock/import",s="/api/pic/",r="/api/mp4/"},"516d":function(t,a,e){"use strict";var n=e("fab2"),i=e.n(n);i.a},a3b8:function(t,a,e){var n=e("24fb");a=n(!1),a.push([t.i,".alarm .ant-form-item-label[data-v-2729c605]{text-align:left}.button-box[data-v-2729c605]{position:absolute;top:20px;right:40px;display:flex;align-items:center;justify-content:center}.button-box .add[data-v-2729c605]{margin-right:20px}",""]),t.exports=a},fab2:function(t,a,e){var n=e("a3b8");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=e("499e").default;i("645a4d86",n,!0,{sourceMap:!1,shadowMode:!1})}}]); \ No newline at end of file diff --git a/js/chunk-0e4de15d.e25b36f7.js b/js/chunk-0e4de15d.e25b36f7.js new file mode 100644 index 0000000..a27a685 --- /dev/null +++ b/js/chunk-0e4de15d.e25b36f7.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0e4de15d"],{1204:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".alarm .ant-form-item-label[data-v-e842d0f6]{text-align:left}.history[data-v-e842d0f6]{padding:24px}.ant-drawer-content-wrapper[data-v-e842d0f6]{height:auto!important}.ant-drawer-body[data-v-e842d0f6]{text-align:center}.ant-advanced-search-form .ant-form-item[data-v-e842d0f6]{display:flex;width:100%}.historyImg[data-v-e842d0f6]{width:80px;height:auto;margin:5px}",""]),t.exports=e},2e3:function(t,e,a){"use strict";a.d(e,"c",(function(){return i})),a.d(e,"b",(function(){return o})),a.d(e,"d",(function(){return s})),a.d(e,"a",(function(){return n})),a.d(e,"e",(function(){return r}));var i="/api/camera/config/import",o="/api/category/import",s="/api/stock/import",n="/api/pic/",r="/api/mp4/"},"2bf9":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"history bg-white"},[a("div",{staticClass:"ant-advanced-search-form"},[a("a-form",{attrs:{layout:"inline",form:t.queryParam}},[a("a-row",{attrs:{gutter:24}},[a("a-col",{staticStyle:{"text-align":"left"},attrs:{span:6}},[a("a-form-item",{attrs:{label:"工单号"}},[a("a-input",{staticStyle:{width:"270px"},attrs:{placeholder:"请输入"},model:{value:t.queryParam.orderNum,callback:function(e){t.$set(t.queryParam,"orderNum",e)},expression:"queryParam.orderNum"}})],1)],1),a("a-col",{attrs:{span:8}},[a("a-form-item",{staticClass:"ageInput",attrs:{label:"时间"}},[a("a-range-picker",{attrs:{format:"YYYY-MM-DD HH:mm","show-time":{defaultValue:[t.moment("00:00","HH:mm"),t.moment("23:59","HH:mm")]}},on:{change:t.onTimeChange},model:{value:t.time,callback:function(e){t.time=e},expression:"time"}},[a("a-icon",{attrs:{slot:"suffixIcon",type:"calendar"},slot:"suffixIcon"})],1)],1)],1),a("a-col",{staticStyle:{"text-align":"right"},attrs:{span:10}},[a("a-button",{attrs:{type:"primary"},on:{click:t.handleSearch}},[t._v("搜索")]),a("a-button",{staticStyle:{"margin-left":"15px"},on:{click:t.reset}},[t._v("重置")])],1)],1)],1)],1),a("a-table",{attrs:{columns:t.columns,"row-key":function(t){return t.id},"data-source":t.data,pagination:t.pagination},on:{change:t.handleGetHistoryList},scopedSlots:t._u([{key:"streetType",fn:function(e){return a("span",{},[t._v(" "+t._s(null===e?"-":0===e?"单伸":"双伸")+" ")])}},{key:"pics",fn:function(e){return a("span",{staticStyle:{width:"auto"}},[[e.pics?a("span",{staticStyle:{height:"100%"}},[a("happy-scroll",{staticClass:"scroll-box",staticStyle:{width:"320px",height:"90px"},attrs:{color:"rgba(100,100,100,0.5)",size:"8"}},[a("viewer",{attrs:{images:e.pics}},t._l(e.pics,(function(e,i){return a("img",{key:i,staticClass:"historyImg",attrs:{src:t.imgUrl+e}})})),0)],1)],1):a("span",[t._v(" 暂无图片 ")])]],2)}},{key:"status",fn:function(e){return a("span",{},[a("span",{style:1==e.status?" color:red":""},[t._v(" "+t._s(null==e.status?" ":0==e.status?"正常":"告警")+" ")])])}},{key:"videoPath1",fn:function(e){return a("span",{},[a("a-button",{attrs:{type:"link"},on:{click:function(a){return t.showModel(e)}}},[t._v(" 查看视频 ")])],1)}}])}),a("Model",{attrs:{visible:t.visible,vid1:t.vid1,vid2:t.vid2},on:{"update:visible":function(e){t.visible=e},"update:vid1":function(e){t.vid1=e},"update:vid2":function(e){t.vid2=e},close:t.closeModel}})],1)},o=[],s=a("5530"),n=a("2000"),r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.isShow?a("div",[a("a-modal",{staticClass:"video-model",attrs:{footer:null,maskClosable:!1,bodyStyle:{padding:0},centered:!0},on:{cancel:t.handleCancel},model:{value:t.isShow,callback:function(e){t.isShow=e},expression:"isShow"}},[a("div",{attrs:{slot:"closeIcon"},slot:"closeIcon"},[a("div",{staticClass:"video-close"},[t._v(" ╳ ")])]),a("div",{staticClass:"test_two_box"},[a("video",{staticClass:"video-js",attrs:{autoplay:!0,controls:""}},[a("source",{attrs:{src:t.video1,type:"video/mp4"}})]),a("video",{staticClass:"video-js",attrs:{autoplay:!0,controls:""}},[a("source",{attrs:{src:t.video2,type:"video/mp4"}})])])])],1):t._e()},c=[],l={props:["visible","vid1","vid2"],watch:{visible:function(t){this.isShow=t},vid1:function(t){this.video1=t,console.log(this.video1),this.$nextTick((function(){}))},vid2:function(t){this.video2=t,console.log(this.video2),this.$nextTick((function(){}))}},data:function(){return{isShow:!1,confirmLoading:!1,video1:"",video2:""}},mounted:function(){},methods:{handleCancel:function(){this.$emit("close",!1,"")}}},d=l,u=(a("4ce6"),a("2877")),m=Object(u["a"])(d,r,c,!1,null,"76f9cdca",null),p=m.exports,h=a("c1df"),f=a.n(h),v={name:"historyMonitoring",data:function(){var t=this;return{queryParam:{orderNum:""},time:[],pageNum:1,pageSize:10,data:[],pagination:{total:0,defaultPageSize:10,showTotal:function(t){return"共 ".concat(t," 条数据")},showSizeChanger:!0,pageSizeOptions:["10","20","30"],onShowSizeChange:function(e,a){return t.pageSize=a}},loading:!1,imgUrl:n["a"],columns:[{title:"工单号",dataIndex:"orderNum"},{title:"巷道",dataIndex:"streetName",width:90},{title:"货架类型",dataIndex:"streetType",scopedSlots:{customRender:"streetType"}},{title:"货位",dataIndex:"goodsLocation"},{title:"时间",dataIndex:"startTime"},{title:"照片",scopedSlots:{customRender:"pics"},width:320},{title:"视频状态",scopedSlots:{customRender:"status"},width:90},{title:"工单时长",dataIndex:"timeLength"},{title:"视频录像",scopedSlots:{customRender:"videoPath1"}}],visible:!1,vid1:"",vid2:""}},mounted:function(){this.handleGetHistoryList(),console.log(this.imgUrl),this.$route.params.orderNum&&(console.log(this.$route.params.orderNum),this.queryParam.orderNum=this.$route.params.orderNum)},methods:{moment:f.a,range:function(t,e){for(var a=[],i=t;i2)if(c=v(c),t=c.charCodeAt(0),43===t||45===t){if(a=c.charCodeAt(2),88===a||120===a)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:r=2,l=49;break;case 79:case 111:r=8,l=55;break;default:return+c}for(o=c.slice(2),i=o.length,s=0;sl)return NaN;return parseInt(o,r)}return+c};if(o(g,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var C,N=function(e){var t=arguments.length<1?0:e,a=this;return a instanceof N&&(y?u((function(){I.valueOf.call(a)})):n(a)!=g)?c(new b(S(t)),a,N):S(t)},w=r?p(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),T=0;w.length>T;T++)s(b,C=w[T])&&!s(N,C)&&h(N,C,f(b,C));N.prototype=I,I.constructor=N,i(l,g,N)}},dff9:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("a-button",{staticClass:"add",attrs:{type:"primary"},on:{click:function(t){return e.showModel("add","")}}},[e._v(" 新增巷道 ")]),a("a-table",{staticStyle:{"margin-top":"40px"},attrs:{columns:e.columns,"row-key":function(e){return e.id},"data-source":e.data,pagination:e.pagination},on:{change:e.handleGetStreetList},scopedSlots:e._u([{key:"leftType",fn:function(t){return a("span",{},[e._v(" "+e._s(null===t?"-":0===t?"单伸":"双伸")+" ")])}},{key:"rightType",fn:function(t){return a("span",{},[e._v(" "+e._s(null===t?"-":0===t?"单伸":"双伸")+" ")])}},{key:"actions",fn:function(t){return a("span",{},[[t.camera1Name&&t.camera2Name?a("span",[e._v(e._s(t.camera1Name)+" 、"+e._s(t.camera2Name))]):a("span",[t.camera1Name?a("span",[e._v(e._s(t.camera1Name))]):e._e(),t.camera2Name?a("span",[e._v(e._s(t.camera2Name))]):e._e()])]],2)}},{key:"action",fn:function(t,r){return a("span",{},[a("a",{on:{click:function(t){return e.showModel("edit",r)}}},[e._v(" 编辑 ")]),a("a-divider",{attrs:{type:"vertical"}}),a("a-popconfirm",{attrs:{title:"是否删除?"},on:{confirm:function(){return e.delDosage(r)}}},[a("a",[e._v("删除")])])],1)}}])}),a("Model",{attrs:{visible:e.visible,modelTitle:e.modelTitle,modelData:e.modelData},on:{"update:visible":function(t){e.visible=t},"update:modelData":function(t){e.modelData=t},"update:model-data":function(t){e.modelData=t},sure:e.submit,close:e.closeModel}})],1)},l=[],o=a("5530"),i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.isShow?a("div",[a("a-modal",{staticClass:"p-model",attrs:{title:e.title,closable:e.closable,"ok-text":"确认","cancel-text":"取消"},on:{ok:e.handleOk,cancel:e.handleCancel},model:{value:e.isShow,callback:function(t){e.isShow=t},expression:"isShow"}},[a("a-form",{attrs:{form:e.form,"wrapper-col":e.formItemAcrossLayout.wrapperCol}},[a("div",{staticClass:"across-layout"},[a("a-form-item",{attrs:{label:"巷道名称","label-col":e.formItemAcrossLayout.labelCol}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,message:"请输入巷道名称!"}]}],expression:"['name', { rules: [{ required: true, message: '请输入巷道名称!' }] }]"}]})],1),a("a-form-item",{attrs:{label:"PLC-ID","label-col":e.formItemAcrossLayout.labelCol}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["plcId",{rules:[{required:!0,message:"请输入PLC-ID!"}]}],expression:"['plcId', { rules: [{ required: true, message: '请输入PLC-ID!' }] }]"}]})],1)],1),a("div",{staticClass:"across-layout"},[a("a-form-item",{attrs:{label:"PLC IP地址","label-col":e.formItemAcrossLayout.labelCol}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["plcIp",{rules:[{required:!0,message:"请输入PLC IP地址!"}]}],expression:"['plcIp', { rules: [{ required: true, message: '请输入PLC IP地址!' }] }]"}]})],1),a("a-form-item",{attrs:{label:"端口","label-col":e.formItemAcrossLayout.labelCol}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["plcPort",{rules:[{required:!0,message:"请输入端口!"}]}],expression:"['plcPort', { rules: [{ required: true, message: '请输入端口!' }] }]"}]})],1)],1),a("a-divider"),a("div",{staticClass:"leftType"},[a("h3",[e._v("左货架")]),a("a-form-item",{attrs:{label:"类型","label-col":e.formItemVerticalLayout.labelCol}},[a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["leftType",{rules:[{required:!0,message:"请选择类型!"}]}],expression:"[\n 'leftType',\n { rules: [{ required: true, message: '请选择类型!' }] },\n ]"}],attrs:{placeholder:"选择类型"},on:{change:e.handleSelectChangeLeft}},[a("a-select-option",{attrs:{value:"0"}},[e._v(" 单伸 ")]),a("a-select-option",{attrs:{value:"1"}},[e._v(" 双伸 ")])],1)],1),a("div",{staticClass:"across-layout"},[a("a-form-item",{attrs:{label:"货架规格","label-col":{span:7}}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["leftRow",{rules:[{required:!0,message:"请输入行数!"}]}],expression:"['leftRow', { rules: [{ required: true, message: '请输入行数!' }] }]"}],attrs:{suffix:"行"}})],1),a("a-form-item",{attrs:{label:"","wrapper-col":{span:20}}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["leftColumn",{rules:[{required:!0,message:"请输入列数!"}]}],expression:"['leftColumn', { rules: [{ required: true, message: '请输入列数!' }] }]"}],attrs:{suffix:"列"}})],1)],1),"0"==e.leftType?a("div",{staticClass:"across-layout"},[a("a-form-item",{attrs:{label:"货架号","label-col":e.formItemAcrossLayout.labelCol}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["leftShelveId",{rules:[{required:!0,message:"请输入货架号!"}]}],expression:"['leftShelveId', { rules: [{ required: true, message: '请输入货架号!' }] }]"}]})],1)],1):e._e(),"1"==e.leftType?a("div",{staticClass:"across-layout"},[a("a-form-item",{attrs:{label:"内货架号","label-col":e.formItemAcrossLayout.labelCol}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["leftInsideShelveId",{rules:[{required:!0,message:"请输入内货架号!"}]}],expression:"['leftInsideShelveId', { rules: [{ required: true, message: '请输入内货架号!' }] }]"}]})],1),a("a-form-item",{attrs:{label:"外货架号","label-col":e.formItemAcrossLayout.labelCol}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["leftOutsideShelveId",{rules:[{required:!0,message:"请输入外货架号!"}]}],expression:"['leftOutsideShelveId', { rules: [{ required: true, message: '请输入外货架号!' }] }]"}]})],1)],1):e._e(),a("a-divider")],1),a("div",{staticClass:"leftType"},[a("h3",[e._v("右货架")]),a("a-form-item",{attrs:{label:"类型","label-col":e.formItemVerticalLayout.labelCol}},[a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["rightType",{rules:[{required:!0,message:"请选择类型!"}]}],expression:"[\n 'rightType',\n { rules: [{ required: true, message: '请选择类型!' }] },\n ]"}],attrs:{placeholder:"选择类型"},on:{change:e.handleSelectChangeRight}},[a("a-select-option",{attrs:{value:"0"}},[e._v(" 单伸 ")]),a("a-select-option",{attrs:{value:"1"}},[e._v(" 双伸 ")])],1)],1),a("div",{staticClass:"across-layout"},[a("a-form-item",{attrs:{label:"货架规格","label-col":{span:7}}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["rightRow",{rules:[{required:!0,message:"请输入行!"}]}],expression:"['rightRow', { rules: [{ required: true, message: '请输入行!' }] }]"}],attrs:{suffix:"行"}})],1),a("a-form-item",{attrs:{label:"","wrapper-col":{span:20}}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["rightColumn",{rules:[{required:!0,message:"请输入列!"}]}],expression:"['rightColumn', { rules: [{ required: true, message: '请输入列!' }] }]"}],attrs:{suffix:"列"}})],1)],1),"0"==e.rightType?a("div",{staticClass:"across-layout"},[a("a-form-item",{attrs:{label:"货架号","label-col":e.formItemAcrossLayout.labelCol}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["rightShelveId",{rules:[{required:!0,message:"请输入货架号!"}]}],expression:"['rightShelveId', { rules: [{ required: true, message: '请输入货架号!' }] }]"}]})],1)],1):e._e(),"1"==e.rightType?a("div",{staticClass:"across-layout"},[a("a-form-item",{attrs:{label:"内货架号","label-col":e.formItemAcrossLayout.labelCol}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["rightInsideShelveId",{rules:[{required:!0,message:"请输入内货架号!"}]}],expression:"['rightInsideShelveId', { rules: [{ required: true, message: '请输入内货架号!' }] }]"}]})],1),a("a-form-item",{attrs:{label:"外货架号","label-col":e.formItemAcrossLayout.labelCol}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["rightOutsideShelveId",{rules:[{required:!0,message:"请输入外货架号!"}]}],expression:"['rightOutsideShelveId', { rules: [{ required: true, message: '请输入外货架号!' }] }]"}]})],1)],1):e._e(),a("a-divider")],1),e.cameraList.length>0?a("div",[a("a-form-item",{attrs:{label:"球机1","label-col":e.formItemVerticalLayout.labelCol}},[a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["camera1Id"],expression:"[\n 'camera1Id',\n ]"}],attrs:{placeholder:"选择球机"},on:{dropdownVisibleChange:e.handleSelectCamera}},e._l(e.cameraList,(function(t){return a("a-select-option",{key:t.id,attrs:{value:t.id}},[e._v(" "+e._s(t.name)+" ")])})),1)],1),a("a-form-item",{attrs:{label:"球机2","label-col":e.formItemVerticalLayout.labelCol}},[a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["camera2Id"],expression:"[\n 'camera2Id',\n ]"}],attrs:{placeholder:"选择球机"}},e._l(e.cameraList,(function(t){return a("a-select-option",{key:t.id,attrs:{value:t.id}},[e._v(" "+e._s(t.name)+" ")])})),1)],1)],1):a("div",[a("a-form-item",{attrs:{label:"球机1","label-col":e.formItemVerticalLayout.labelCol}},[a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["camera1Name"],expression:"[\n 'camera1Name',\n ]"}],attrs:{placeholder:"选择球机"},on:{dropdownVisibleChange:e.handleSelectCamera}},e._l(e.cameraList,(function(t){return a("a-select-option",{key:t.id,attrs:{value:t.id}},[e._v(" "+e._s(t.name)+" ")])})),1)],1),a("a-form-item",{attrs:{label:"球机2","label-col":e.formItemVerticalLayout.labelCol}},[a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["camera2Name"],expression:"[\n 'camera2Name',\n ]"}],attrs:{placeholder:"选择球机"}},e._l(e.cameraList,(function(t){return a("a-select-option",{key:t.id,attrs:{value:t.id}},[e._v(" "+e._s(t.name)+" ")])})),1)],1)],1)],1)],1)],1):e._e()},s=[],n=(a("b0c0"),a("a9e3"),{labelCol:{span:8},wrapperCol:{span:14}}),c={labelCol:{span:4},wrapperCol:{span:8,offset:4}},d={props:["visible","modelTitle","modelData"],watch:{visible:function(e){this.isShow=e},modelTitle:function(e){this.title=e},modelData:function(e){var t=this;console.log(e),e.id&&(this.mdata=e,this.leftType=e.leftType,this.rightType=e.rightType,this.id=e.id,this.$nextTick((function(){t.form.setFieldsValue({name:e.name,plcId:e.plcId,plcIp:e.plcIp,plcPort:e.plcPort,leftType:null===e.leftType?"":0===e.leftType?"单伸":"双伸",leftRow:e.leftRow,leftColumn:e.leftColumn,leftShelveId:e.leftShelveId,leftInsideShelveId:e.leftInsideShelveId,leftOutsideShelveId:e.leftOutsideShelveId,rightType:null===e.rightType?"":0===e.rightType?"单伸":"双伸",rightRow:e.rightRow,rightColumn:e.rightColumn,rightShelveId:e.rightShelveId,rightInsideShelveId:e.rightInsideShelveId,rightOutsideShelveId:e.rightOutsideShelveId,camera1Id:e.camera1Name,camera2Id:e.camera2Name,camera1Name:e.camera1Name,camera2Name:e.camera2Name})})))}},data:function(){return{isShow:!1,title:"",closable:!1,formItemAcrossLayout:n,formItemVerticalLayout:c,confirmLoading:!1,form:this.$form.createForm(this,{name:"dynamic_rule"}),leftType:"",rightType:"",id:"",cameraList:[],mdata:[]}},mounted:function(){console.log("mounted执行了")},methods:{handleOk:function(){var e=this;this.confirmLoading=!0,setTimeout((function(){e.form.validateFields((function(t,a){if(console.log(a),a.leftColumn=Number(a.leftColumn),a.leftRow=Number(a.leftRow),a.leftType=Number(a.leftType),a.plcPort=Number(a.plcPort),a.rightColumn=Number(a.rightColumn),a.rightRow=Number(a.rightRow),a.rightType=Number(a.rightType),!t)if(console.log(e.title),"新增巷道"==e.title)e.$api.httpApi.addStreet({data:a}).then((function(t){200==t.code&&(e.$emit("sure",!1),e.$message.success("新增巷道成功"))})).catch((function(e){}));else if("编辑巷道"==e.title){switch(a.id=e.id,a.leftType){case"单伸":a.leftType="0";break;case"双伸":a.leftType="1";break}switch(a.rightType){case"单伸":a.rightType="0";break;case"双伸":a.rightType="1";break}!e.cameraList.length>0&&(a.camera1Id=e.mdata.camera1Id,a.camera2Id=e.mdata.camera2Id),e.$api.httpApi.editStreet({data:a}).then((function(t){200==t.code&&(e.$emit("sure",!1),e.$message.success("编辑巷道成功"))})).catch((function(e){}))}})),e.confirmLoading=!1}),500)},handleCancel:function(){console.log("Clicked cancel button"),console.log(this.title),this.$emit("close",!1,{})},handleSelectChangeLeft:function(e){console.log(e),this.form.setFieldsValue({leftInsideShelveId:"",leftOutsideShelveId:"",leftShelveId:""}),this.leftType=e},handleSelectChangeRight:function(e){this.form.setFieldsValue({rightInsideShelveId:"",rightOutsideShelveId:"",rightShelveId:""}),this.rightType=e},handleSelectCamera:function(){var e=this;this.$api.httpApi.getCameraList({data:{pageNum:0,pageSize:0}}).then((function(t){e.cameraList=t.data.list})).catch((function(e){}))}}},u=d,m=(a("e259"),a("2877")),p=Object(m["a"])(u,i,s,!1,null,"570d88e0",null),f=p.exports,h=[{title:"巷道名称",dataIndex:"name"},{title:"PLC-ID",dataIndex:"plcId"},{title:"左货架类型",dataIndex:"leftType",scopedSlots:{customRender:"leftType"}},{title:"右货架类型",dataIndex:"rightType",scopedSlots:{customRender:"rightType"}},{title:"对应球机",scopedSlots:{customRender:"actions"}},{title:"修改时间",dataIndex:"updateTime"},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"}}],v={data:function(){var e=this;return{pageNum:1,pageSize:10,data:[],pagination:{total:0,defaultPageSize:10,showTotal:function(e){return"共 ".concat(e," 条数据")},showSizeChanger:!0,pageSizeOptions:["10","20","30"],onShowSizeChange:function(t,a){return e.pageSize=a}},loading:!1,columns:h,visible:!1,modelTitle:"",modelData:[]}},mounted:function(){this.handleGetStreetList()},methods:{handleGetStreetList:function(e){console.log(e),e&&(this.pagination.current=e.current,this.pagination.pageSize=e.pageSize,this.pageNum=e.current,this.pageSize=e.pageSize),this.request()},request:function(){var e=this;this.$api.httpApi.getStreetList({data:{pageNum:this.pageNum,pageSize:this.pageSize}}).then((function(t){var a=Object(o["a"])({},e.pagination);a.total=t.data.total,e.data=t.data.list,e.pagination=a})).catch((function(e){}))},showModel:function(e,t){this.visible=!0,console.log(e),"add"==e?this.modelTitle="新增巷道":"edit"==e&&(this.modelTitle="编辑巷道",this.modelData=t)},submit:function(e){this.visible=e,this.handleGetStreetList()},closeModel:function(e,t){this.visible=e,this.modelData=t},delDosage:function(e){var t=this;console.log(e.id);var a=e.id;this.$axios.delete("/street/"+a,{data:{}}).then((function(e){200==e.code&&(t.$message.success("删除巷道成功"),t.handleGetStreetList())})).catch((function(e){}))}},components:{Model:f}},g=v,b=(a("60db"),Object(m["a"])(g,r,l,!1,null,"06f8031c",null));t["default"]=b.exports},e259:function(e,t,a){"use strict";var r=a("42dc"),l=a.n(r);l.a}}]); \ No newline at end of file diff --git a/js/chunk-190db7ae.0805adaa.js b/js/chunk-190db7ae.0805adaa.js deleted file mode 100644 index 4ea2282..0000000 --- a/js/chunk-190db7ae.0805adaa.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-190db7ae"],{"10d5":function(t,o,i){"use strict";var e=i("6936"),a=i.n(e);a.a},"2a63":function(t,o,i){var e=i("24fb");o=e(!1),o.push([t.i,".alarm .ant-form-item-label[data-v-a404d3dc]{text-align:left}.add-edit-model .across-layout[data-v-a404d3dc]{display:flex}.add-edit-model .ant-divider-horizontal[data-v-a404d3dc]{margin:6px 0}.test-model[data-v-a404d3dc]{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.5);z-index:1000;display:flex;align-items:center;justify-content:center}.test-model #video-test[data-v-a404d3dc]{width:100%;height:100%}.test-model .video-close[data-v-a404d3dc]{position:absolute;right:20px;top:20px;color:#fff;font-size:24px;width:32px;height:32px;background:rgba(0,0,0,.5);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:10}.test-model .operation-list[data-v-a404d3dc]{position:absolute;right:200px;bottom:20px;z-index:10}.test-model .operation-list .operation-item img[data-v-a404d3dc]{width:42px}.test-model .operation-list .operation-item span[data-v-a404d3dc]{padding:5px 10px;background:rgba(0,0,0,.5);font-size:18px;color:#fff}.test-model .direction-list[data-v-a404d3dc]{position:absolute;right:30px;bottom:20px;width:150px;z-index:10}.test-model .direction-list .direction-item[data-v-a404d3dc]{display:flex;align-items:center;justify-content:space-between}.test-model .direction-list .direction-item img[data-v-a404d3dc]{width:42px}.test-model img[data-v-a404d3dc]{cursor:pointer}.config-model[data-v-a404d3dc]{display:flex;align-items:center;justify-content:center}.config-model .operation-list[data-v-a404d3dc]{position:absolute;right:1000px;bottom:20px;z-index:10}.config-model .operation-list .operation-item img[data-v-a404d3dc]{width:32px}.config-model .operation-list .operation-item span[data-v-a404d3dc]{padding:3px 6px;background:rgba(0,0,0,.5);font-size:16px;color:#fff}.config-model .direction-list[data-v-a404d3dc]{position:absolute;right:830px;bottom:20px;width:150px;z-index:10}.config-model .direction-list .direction-item[data-v-a404d3dc]{display:flex;align-items:center;justify-content:space-between}.config-model .direction-list .direction-item img[data-v-a404d3dc]{width:32px}.config-model img[data-v-a404d3dc]{cursor:pointer}.config-model .config-table[data-v-a404d3dc]{width:800px;height:450px;overflow:hidden}.config-model .config-table h2[data-v-a404d3dc]{padding:15px;font-size:20px;background:#fafafa;margin:0}.vxgplayer[data-v-a404d3dc]{border:none;margin:0;display:block}.ant-btn[data-v-a404d3dc]{white-space:inherit;text-align:left}",""]),t.exports=o},6936:function(t,o,i){var e=i("2a63");"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var a=i("499e").default;a("ba6df668",e,!0,{sourceMap:!1,shadowMode:!1})},9545:function(t,o,i){"use strict";i.r(o);var e=function(){var t=this,o=t.$createElement,i=t._self._c||o;return t.isShow?i("div",["add"==t.type||"edit"==t.type?[i("a-modal",{staticClass:"add-edit-model",attrs:{title:["add"==t.type?"新增球机":"编辑球机"],closable:t.closable,"ok-text":"确认","cancel-text":"取消"},on:{ok:t.handleOk,cancel:t.handleCancel},model:{value:t.isShow,callback:function(o){t.isShow=o},expression:"isShow"}},[i("a-form",{attrs:{form:t.form,"wrapper-col":t.formItemAcrossLayout.wrapperCol}},[i("a-form-item",{attrs:{label:"球机名称","label-col":t.formItemVerticalLayout.labelCol}},[i("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,message:"请输入球机名称!"}]}],expression:"['name', { rules: [{ required: true, message: '请输入球机名称!' }] }]"}]})],1),i("a-form-item",{attrs:{label:"球机IP","label-col":t.formItemVerticalLayout.labelCol}},[i("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["ip",{rules:[{required:!0,message:"请输入球机ip!"}]}],expression:"['ip', { rules: [{ required: true, message: '请输入球机ip!' }] }]"}]})],1),i("a-form-item",{attrs:{label:"rtsp流地址","label-col":t.formItemVerticalLayout.labelCol}},[i("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["rtsp",{rules:[{required:!0,message:"请输入rtsp流地址!"}]}],expression:"['rtsp', { rules: [{ required: true, message: '请输入rtsp流地址!' }] }]"}]})],1)],1)],1)]:"test"==t.type?[i("div",{staticClass:"test-model"},[t._m(0),i("div",{staticClass:"video-close",on:{click:t.handleCancel}},[t._v(" ╳ ")]),i("div",{staticClass:"operation-list"},[i("div",{staticClass:"operation-item"},[i("img",{attrs:{src:t.zoomSubUrl,alt:""},on:{mousedown:t.zoomDecStart,mouseup:t.zoomDecStop}}),i("span",[t._v("变倍")]),i("img",{attrs:{src:t.zoomAddUrl,alt:""},on:{mousedown:t.zoomAddStart,mouseup:t.zoomAddStop}})]),i("div",{staticClass:"operation-item"},[i("img",{attrs:{src:t.focusSubUrl,alt:""},on:{mousedown:t.focusDecStart,mouseup:t.focusDecStop}}),i("span",[t._v("变焦")]),i("img",{attrs:{src:t.focusAddUrl,alt:""},on:{mousedown:t.focusAddStart,mouseup:t.focusAddStop}})]),i("div",{staticClass:"operation-item"},[i("img",{attrs:{src:t.irisSubUrl,alt:""},on:{mousedown:t.irisDecStart,mouseup:t.irisDecStop}}),i("span",[t._v("光圈")]),i("img",{attrs:{src:t.irisAddUrl,alt:""},on:{mousedown:t.irisAddStart,mouseup:t.irisAddStop}})])]),i("div",{staticClass:"direction-list"},[i("div",{staticClass:"direction-item"},[i("img",{attrs:{src:t.leftUpUrl,alt:""},on:{mousedown:t.leftUpStart,mouseup:t.leftUpStop}}),i("img",{attrs:{src:t.upUrl,alt:""},on:{mousedown:t.upStart,mouseup:t.upStop}}),i("img",{attrs:{src:t.rightUpUrl,alt:""},on:{mousedown:t.rightUpStart,mouseup:t.rightUpStop}})]),i("div",{staticClass:"direction-item"},[i("img",{attrs:{src:t.leftUrl,alt:""},on:{mousedown:t.leftStart,mouseup:t.leftStop}}),i("img",{attrs:{src:t.rightUrl,alt:""},on:{mousedown:t.rightStart,mouseup:t.rightStop}})]),i("div",{staticClass:"direction-item"},[i("img",{attrs:{src:t.leftDownUrl,alt:""},on:{mousedown:t.leftDownStart,mouseup:t.leftDownStop}}),i("img",{attrs:{src:t.downUrl,alt:""},on:{mousedown:t.downStart,mouseup:t.downStop}}),i("img",{attrs:{src:t.rightDownUrl,alt:""},on:{mousedown:t.rightDownStart,mouseup:t.rightDownStop}})])])])]:"config"==t.type?[i("a-modal",{staticClass:"config-model",attrs:{footer:null,maskClosable:!1,width:"1600px",bodyStyle:{padding:0,display:"flex"},centered:!0},on:{cancel:t.handleCancel},model:{value:t.isShow,callback:function(o){t.isShow=o},expression:"isShow"}},[i("object",{attrs:{id:"video-config",type:"application/x-vlc-plugin",events:"True",width:"800",height:"450",pluginspage:"http://www.videolan.org",codebase:"http://downloads.videolan.org/pub/videolan/vlc-webplugins/2.0.6/npapi-vlc-2.0.6.tar.xz"}},[i("param",{attrs:{name:"controls",value:"false"}}),i("param",{attrs:{name:"text",value:"正在加载视频中..."}}),i("param",{attrs:{name:"branding",value:"false"}}),i("param",{attrs:{name:"windowless",value:"true"}}),i("param",{attrs:{name:"fullscreen",value:"false"}}),i("embed",{attrs:{type:"application/x-google-vlc-plugin"}})]),i("div",{staticClass:"operation-list"},[i("div",{staticClass:"operation-item"},[i("img",{attrs:{src:t.zoomSubUrl,alt:""},on:{mousedown:t.zoomDecStart,mouseup:t.zoomDecStop}}),i("span",[t._v("变倍")]),i("img",{attrs:{src:t.zoomAddUrl,alt:""},on:{mousedown:t.zoomAddStart,mouseup:t.zoomAddStop}})]),i("div",{staticClass:"operation-item"},[i("img",{attrs:{src:t.focusSubUrl,alt:""},on:{mousedown:t.focusDecStart,mouseup:t.focusDecStop}}),i("span",[t._v("变焦")]),i("img",{attrs:{src:t.focusAddUrl,alt:""},on:{mousedown:t.focusAddStart,mouseup:t.focusAddStop}})]),i("div",{staticClass:"operation-item"},[i("img",{attrs:{src:t.irisSubUrl,alt:""},on:{mousedown:t.irisDecStart,mouseup:t.irisDecStop}}),i("span",[t._v("光圈")]),i("img",{attrs:{src:t.irisAddUrl,alt:""},on:{mousedown:t.irisAddStart,mouseup:t.irisAddStop}})])]),i("div",{staticClass:"direction-list"},[i("div",{staticClass:"direction-item"},[i("img",{attrs:{src:t.leftUpUrl,alt:""},on:{mousedown:t.leftUpStart,mouseup:t.leftUpStop}}),i("img",{attrs:{src:t.upUrl,alt:""},on:{mousedown:t.upStart,mouseup:t.upStop}}),i("img",{attrs:{src:t.rightUpUrl,alt:""},on:{mousedown:t.rightUpStart,mouseup:t.rightUpStop}})]),i("div",{staticClass:"direction-item"},[i("img",{attrs:{src:t.leftUrl,alt:""},on:{mousedown:t.leftStart,mouseup:t.leftStop}}),i("img",{attrs:{src:t.rightUrl,alt:""},on:{mousedown:t.rightStart,mouseup:t.rightStop}})]),i("div",{staticClass:"direction-item"},[i("img",{attrs:{src:t.leftDownUrl,alt:""},on:{mousedown:t.leftDownStart,mouseup:t.leftDownStop}}),i("img",{attrs:{src:t.downUrl,alt:""},on:{mousedown:t.downStart,mouseup:t.downStop}}),i("img",{attrs:{src:t.rightDownUrl,alt:""},on:{mousedown:t.rightDownStart,mouseup:t.rightDownStop}})])]),i("div",{staticClass:"config-table"},[i("h2",[t._v("球机配置")]),i("a-table",{attrs:{columns:t.columns,"row-key":function(t){return t.name},"data-source":t.configData,bordered:"",pagination:!1,scroll:{y:335}},on:{change:t.getConfigIoList},scopedSlots:t._u([{key:"name",fn:function(o,e){return i("span",{},[i("a-button",{attrs:{type:"link"},on:{click:function(o){return t.toPtz(e)}}},[t._v(t._s(o))])],1)}},{key:"position",fn:function(o,e){return i("span",{},[o?i("div",[t._v(" 已写入 "),i("a-button",{staticClass:"plc",attrs:{type:"link"},on:{click:function(o){return t.coverage(0,e)}}},[t._v(" 覆盖 ")])],1):i("a-button",{staticClass:"plc",attrs:{type:"primary"},on:{click:function(o){return t.writeIn(0,e)}}},[t._v(" 写入 ")])],1)}},{key:"focusing",fn:function(o,e){return i("span",{},[o?i("div",[t._v(" 已写入 "),i("a-button",{staticClass:"plc",attrs:{type:"link"},on:{click:function(o){return t.coverage(1,e)}}},[t._v(" 覆盖 ")])],1):i("a-button",{staticClass:"plc",attrs:{type:"primary"},on:{click:function(o){return t.writeIn(1,e)}}},[t._v(" 写入 ")])],1)}},{key:"multiple",fn:function(o,e){return i("span",{},[o?i("div",[t._v(" 已写入 "),i("a-button",{staticClass:"plc",attrs:{type:"link"},on:{click:function(o){return t.coverage(2,e)}}},[t._v(" 覆盖 ")])],1):i("a-button",{staticClass:"plc",attrs:{type:"primary"},on:{click:function(o){return t.writeIn(2,e)}}},[t._v(" 写入 ")])],1)}},{key:"aperture",fn:function(o,e){return i("span",{},[o?i("div",[t._v(" 已写入 "),i("a-button",{staticClass:"plc",attrs:{type:"link"},on:{click:function(o){return t.coverage(3,e)}}},[t._v(" 覆盖 ")])],1):i("a-button",{staticClass:"plc",attrs:{type:"primary"},on:{click:function(o){return t.writeIn(3,e)}}},[t._v(" 写入 ")])],1)}}],null,!1,21348119)})],1)])]:t._e()],2):t._e()},a=[function(){var t=this,o=t.$createElement,i=t._self._c||o;return i("object",{attrs:{id:"video-test",type:"application/x-vlc-plugin",events:"True",width:"100%",height:"100%",pluginspage:"http://www.videolan.org",codebase:"http://downloads.videolan.org/pub/videolan/vlc-webplugins/2.0.6/npapi-vlc-2.0.6.tar.xz"}},[i("param",{attrs:{name:"controls",value:"false"}}),i("param",{attrs:{name:"text",value:"正在加载视频中..."}}),i("param",{attrs:{name:"branding",value:"false"}}),i("param",{attrs:{name:"windowless",value:"true"}}),i("embed",{attrs:{type:"application/x-google-vlc-plugin"}})])}],n=(i("b0c0"),{labelCol:{span:8},wrapperCol:{span:14}}),s={labelCol:{span:4},wrapperCol:{span:8,offset:4}},c=[{title:"PLC IO指令",dataIndex:"name",scopedSlots:{customRender:"name"}},{title:"位置",dataIndex:"position",scopedSlots:{customRender:"position"}},{title:"对焦",dataIndex:"focusing",scopedSlots:{customRender:"focusing"}},{title:"倍数",dataIndex:"multiple",scopedSlots:{customRender:"multiple"}},{title:"光圈",dataIndex:"aperture",scopedSlots:{customRender:"aperture"}}],r={props:["visible","modelType","modelData"],watch:{visible:function(t){this.isShow=t},modelType:function(t){this.type=t},modelData:function(t){var o=this;this.mdata=t,console.log(this.type),t.id&&"edit"==this.type?(this.id=t.id,this.$nextTick((function(){o.form.setFieldsValue({name:t.name,ip:t.ip,rtsp:t.rtsp})}))):t.id&&"config"==this.type&&(this.id=t.id,this.mdata=t,console.log(t),this.$nextTick((function(){console.log(t.rtsp),o.getConfigVideo(t.rtsp),o.getConfigIoList()})))}},data:function(){return{isShow:!1,type:"",title:"",closable:!1,formItemAcrossLayout:n,formItemVerticalLayout:s,confirmLoading:!1,form:this.$form.createForm(this,{name:"dynamic_rule"}),id:"",mdata:[],zoomSubUrl:i("a49c"),zoomAddUrl:i("42f5"),focusSubUrl:i("a49c"),focusAddUrl:i("42f5"),irisSubUrl:i("a49c"),irisAddUrl:i("42f5"),leftUpUrl:i("6dc0"),upUrl:i("90e6"),rightUpUrl:i("298d"),leftUrl:i("cce0"),rightUrl:i("cd76"),leftDownUrl:i("30fb"),downUrl:i("5046"),rightDownUrl:i("883f"),columns:c,configData:[]}},mounted:function(){console.log("mounted执行了"),"test"==this.$route.query.modelType?(this.isShow=!0,this.id=this.$route.query.modelData.id,this.type=this.$route.query.modelType,this.mdata=this.$route.query.modelData,this.getTestVideo(this.$route.query.modelData.rtsp)):"config"==this.$route.query.modelType&&(this.isShow=!0,this.id=this.$route.query.modelData.id,this.type=this.$route.query.modelType,this.mdata=this.$route.query.modelData,this.getConfigVideo(this.$route.query.modelData.rtsp),this.getConfigIoList())},methods:{handleOk:function(){var t=this;this.confirmLoading=!0,setTimeout((function(){t.form.validateFields((function(o,i){console.log(i),o||(console.log(t.title),"add"==t.type?t.$api.httpApi.addCamera({data:i}).then((function(o){200==o.code&&(t.$emit("sure",!1),t.$message.success("新增球机成功"))})).catch((function(t){})):"edit"==t.type&&(i.id=t.id,t.$api.httpApi.editCamera({data:i}).then((function(o){200==o.code&&(t.$emit("sure",!1),t.$message.success("编辑球机成功"))})).catch((function(t){}))))})),t.confirmLoading=!1}),500)},handleCancel:function(){if(console.log("Clicked cancel button"),this.$emit("close",!1,{}),"test"==this.type){this.$router.go(-1);var t=document.getElementById("video-test");t.playlist.items.clear()}else if("config"==this.type){this.$router.go(-1);t=document.getElementById("video-config");t.playlist.items.clear()}},getTestVideo:function(t){this.$nextTick((function(){var o=document.getElementById("video-test"),i=new Array(":network-caching=100"),e=o.playlist.add("".concat(t),"vedio",i);o.playlist.playItem(e)}))},getConfigVideo:function(t){this.$nextTick((function(){var o=document.getElementById("video-config"),i=new Array(":network-caching=100"),e=o.playlist.add("".concat(t),"vedio",i);o.playlist.playItem(e)}))},getConfigIoList:function(){var t=this;this.$axios.post("/camera/"+this.id+"/io/list",{data:{}}).then((function(o){console.log(o),200==o.code&&(t.configData=o.data)})).catch((function(t){}))},writeIn:function(t,o){var i=this;console.log(this.id),console.log(o.id),console.log(t),this.$api.httpApi.writeInCameraIoptz({data:{cameraId:this.id,cameraIOId:o.id,name:o.name,code:o.code,type:t}}).then((function(t){console.log(t),i.getConfigIoList()})).catch((function(t){}))},coverage:function(t,o){var i=this;console.log(this.id),console.log(o.id),console.log(t),this.$api.httpApi.writeInCameraIoptz({data:{cameraId:this.id,cameraIOId:o.id,name:o.name,code:o.code,type:t}}).then((function(t){console.log(t),i.getConfigIoList()})).catch((function(t){}))},toPtz:function(t){this.$api.httpApi.cameraIoToPtz({data:{cameraId:this.id,cameraIOId:t.id,name:t.name}}).then((function(t){console.log(t)})).catch((function(t){}))},zoomDecStart:function(){console.log("变倍-按下"),this.zoomSubUrl=i("3b7d"),this.$axios.post("/camera/control/zoomDec/start/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},zoomDecStop:function(){console.log("变倍-抬起"),this.zoomSubUrl=i("a49c"),this.$axios.post("/camera/control/zoomDec/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},zoomAddStart:function(){console.log("变倍+按下"),this.zoomAddUrl=i("f88c"),this.$axios.post("/camera/control/zoomAdd/start/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},zoomAddStop:function(){console.log("变倍+抬起"),this.zoomAddUrl=i("42f5"),this.$axios.post("/camera/control/zoomAdd/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},focusDecStart:function(){console.log("变焦-按下"),this.focusSubUrl=i("3b7d"),this.$axios.post("/camera/control/focusDec/start/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},focusDecStop:function(){console.log("变焦-抬起"),this.focusSubUrl=i("a49c"),this.$axios.post("/camera/control/focusDec/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},focusAddStart:function(){console.log("变焦+按下"),this.focusAddUrl=i("f88c"),this.$axios.post("/camera/control/focusAdd/start/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},focusAddStop:function(){console.log("变焦+抬起"),this.focusAddUrl=i("42f5"),this.$axios.post("/camera/control/focusAdd/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},irisDecStart:function(){console.log("光圈-按下"),this.irisSubUrl=i("3b7d"),this.$axios.post("/camera/control/irisDec/start/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},irisDecStop:function(){console.log("光圈-抬起"),this.irisSubUrl=i("a49c"),this.$axios.post("/camera/control/irisDec/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},irisAddStart:function(){console.log("光圈+按下"),this.irisAddUrl=i("f88c"),this.$axios.post("/camera/control/irisAdd/start/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},irisAddStop:function(){console.log("光圈+抬起"),this.irisAddUrl=i("42f5"),this.$axios.post("/camera/control/irisAdd/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},leftUpStart:function(){console.log("左上鼠标按下"),this.leftUpUrl=i("13fc"),this.$axios.post("/camera/control/leftUp/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},leftUpStop:function(){console.log("左上鼠标抬起"),this.leftUpUrl=i("6dc0"),this.$axios.post("/camera/control/leftUp/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},upStart:function(){console.log("上鼠标按下"),this.upUrl=i("ad2e"),this.$axios.post("/camera/control/up/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},upStop:function(){console.log("上鼠标抬起"),this.upUrl=i("90e6"),this.$axios.post("/camera/control/up/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},rightUpStart:function(){console.log("右上鼠标按下"),this.rightUpUrl=i("5bc3"),this.$axios.post("/camera/control/rightUp/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},rightUpStop:function(){console.log("右上鼠标抬起"),this.rightUpUrl=i("298d"),this.$axios.post("/camera/control/rightUp/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},leftStart:function(){console.log("左转鼠标按下"),this.leftUrl=i("2216"),this.$axios.post("/camera/control/left/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},leftStop:function(){this.leftUrl=i("cce0"),console.log("左转鼠标抬起"),this.$axios.post("/camera/control/left/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},rightStart:function(){console.log("右转鼠标按下"),this.rightUrl=i("b241"),this.$axios.post("/camera/control/right/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},rightStop:function(){console.log("右转鼠标抬起"),this.rightUrl=i("cd76"),this.$axios.post("/camera/control/right/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},leftDownStart:function(){console.log("左下鼠标按下"),this.leftDownUrl=i("1e74"),this.$axios.post("/camera/control/leftDown/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},leftDownStop:function(){console.log("左下鼠标抬起"),this.leftDownUrl=i("30fb"),this.$axios.post("/camera/control/leftDown/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},downStart:function(){console.log("下鼠标按下"),this.downUrl=i("3c12"),this.$axios.post("/camera/control/down/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},downStop:function(){console.log("下鼠标抬起"),this.downUrl=i("5046"),this.$axios.post("/camera/control/down/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},rightDownStart:function(){console.log("右下鼠标按下"),this.rightDownUrl=i("5cf9"),this.$axios.post("/camera/control/rightDown/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},rightDownStop:function(){console.log("右下鼠标抬起"),this.rightDownUrl=i("883f"),this.$axios.post("/camera/control/rightDown/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))}}},l=r,d=(i("10d5"),i("2877")),u=Object(d["a"])(l,e,a,!1,null,"a404d3dc",null);o["default"]=u.exports}}]); \ No newline at end of file diff --git a/js/chunk-1b79387a.12212f7d.js b/js/chunk-1b79387a.12212f7d.js deleted file mode 100644 index 7606952..0000000 --- a/js/chunk-1b79387a.12212f7d.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1b79387a"],{"09e3":function(t,e,o){"use strict";var r=o("0bfc"),a=o.n(r);a.a},"0bfc":function(t,e,o){var r=o("79f6");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var a=o("499e").default;a("1991df1e",r,!0,{sourceMap:!1,shadowMode:!1})},"13ba":function(t,e,o){var r=o("24fb");e=r(!1),e.push([t.i,".alarm .ant-form-item-label[data-v-9b39daf6]{text-align:left}",""]),t.exports=e},1847:function(t,e,o){var r=o("9626");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var a=o("499e").default;a("7483113e",r,!0,{sourceMap:!1,shadowMode:!1})},"53ca":function(t,e,o){"use strict";o.d(e,"a",(function(){return r}));o("a4d3"),o("e01a"),o("d28b"),o("d3b7"),o("3ca3"),o("ddb0");function r(t){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}},5481:function(t,e,o){var r=o("8a5c");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var a=o("499e").default;a("d533fd54",r,!0,{sourceMap:!1,shadowMode:!1})},"65e9":function(t,e,o){"use strict";var r=o("ccd3"),a=o.n(r);a.a},"79f6":function(t,e,o){var r=o("24fb");e=r(!1),e.push([t.i,".alarm .ant-form-item-label[data-v-f5d80f30]{text-align:left}",""]),t.exports=e},8128:function(t,e,o){"use strict";var r=o("ff78"),a=o.n(r);a.a},"8a5c":function(t,e,o){var r=o("24fb");e=r(!1),e.push([t.i,".alarm .ant-form-item-label[data-v-5815eb7a]{text-align:left}",""]),t.exports=e},9626:function(t,e,o){var r=o("24fb");e=r(!1),e.push([t.i,".alarm .ant-form-item-label[data-v-226741a9]{text-align:left}",""]),t.exports=e},a704:function(t,e,o){var r=o("24fb");e=r(!1),e.push([t.i,".alarm .ant-form-item-label[data-v-4e3b27e9]{text-align:left}.index[data-v-4e3b27e9] {width:70%;margin:auto}.index[data-v-4e3b27e9] .ant-form-item{margin-bottom:10px}.index[data-v-4e3b27e9] .jsoneditor-menu{display:none}",""]),t.exports=e},b85d:function(t,e,o){"use strict";var r=o("5481"),a=o.n(r);a.a},ccd3:function(t,e,o){var r=o("a704");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var a=o("499e").default;a("591146c1",r,!0,{sourceMap:!1,shadowMode:!1})},d28b:function(t,e,o){var r=o("746f");r("iterator")},d3fe:function(t,e,o){"use strict";o.r(e);var r=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"index"},[o("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.formData,"label-width":"100px"}},[o("a-collapse",{model:{value:t.activeKey,callback:function(e){t.activeKey=e},expression:"activeKey"}},[o("a-collapse-panel",{key:"0",attrs:{header:"主题"}},[o("styles-theme",{attrs:{form:t.formData.theme},on:{"update:form":function(e){return t.$set(t.formData,"theme",e)}}})],1),o("a-collapse-panel",{key:"1",attrs:{header:"标题"}},[o("styles-title",{attrs:{form:t.formData.title},on:{"update:form":function(e){return t.$set(t.formData,"title",e)}}})],1),o("a-collapse-panel",{key:"2",attrs:{header:"菜单"}},[o("styles-menu",{attrs:{form:t.formData.menu},on:{"update:form":function(e){return t.$set(t.formData,"menu",e)}}})],1)],1),o("el-form-item",[o("span",{staticStyle:{float:"right"}},[o("a-button",{staticStyle:{"margin-right":"10px"},attrs:{type:"primary"},on:{click:function(e){return t.handleSubmit()}}},[t._v(" 保存 ")]),o("a-button",{attrs:{type:"info"},on:{click:function(e){return t.init()}}},[t._v(" 重置 ")])],1)])],1)],1)},a=[],n=o("5530"),l=o("2f62"),c=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"styles-title"},[o("el-form-item",{attrs:{label:"标题文字",prop:"title.text",rules:{required:!0,message:"请输入标题",trigger:["blur","change"]}}},[o("a-input",{model:{value:t.form.text,callback:function(e){t.$set(t.form,"text",e)},expression:"form.text"}})],1),o("el-form-item",{attrs:{label:"字体颜色"}},[o("select-color",{model:{value:t.form.style.color,callback:function(e){t.$set(t.form.style,"color",e)},expression:"form.style.color"}})],1),o("el-form-item",{attrs:{label:"背景颜色"}},[o("select-color",{model:{value:t.form.style["background-color"],callback:function(e){t.$set(t.form.style,"background-color",e)},expression:"form.style['background-color']"}})],1)],1)},s=[],i=o("53ca"),f=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("el-color-picker",{attrs:{"show-alpha":"",size:"medium",value:t.color,predefine:t.predefineColors},on:{change:function(e){return t.$emit("change",e)}}})},u=[],m={name:"SelectColor",components:{},props:{color:{type:String}},computed:{},watch:{},model:{prop:"color",event:"change"},data:function(){return{predefineColors:["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","rgba(255, 69, 0, 0.68)","rgb(255, 120, 0)","hsv(51, 100, 98)","hsva(120, 40, 94, 0.5)","hsl(181, 100%, 37%)","hsla(209, 100%, 56%, 0.73)","#c7158577"]}},mounted:function(){},created:function(){},destroyed:function(){},methods:{}},d=m,p=(o("b85d"),o("2877")),b=Object(p["a"])(d,f,u,!1,null,"5815eb7a",null),y=b.exports,v={name:"StylesTitle",components:{SelectColor:y},props:{form:{}},computed:{},watch:{},data:function(){return{}},mounted:function(){},created:function(){},destroyed:function(){},methods:{onJsonChange:function(t){"object"===Object(i["a"])(t)&&(this.form.style=t)},onError:function(t){}}},h=v,g=(o("f5a4"),Object(p["a"])(h,c,s,!1,null,"226741a9",null)),x=g.exports,S=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"StylesMenu"},[o("p",[t._v("默认")]),o("el-form-item",{attrs:{label:"字体颜色"}},[o("select-color",{model:{value:t.form.default.color,callback:function(e){t.$set(t.form.default,"color",e)},expression:"form.default.color"}})],1),o("el-form-item",{attrs:{label:"背景颜色"}},[o("select-color",{model:{value:t.form.default["background-color"],callback:function(e){t.$set(t.form.default,"background-color",e)},expression:"form.default['background-color']"}})],1),o("p",[t._v("选中后")]),o("el-form-item",{attrs:{label:"字体颜色"}},[o("select-color",{model:{value:t.form.select.color,callback:function(e){t.$set(t.form.select,"color",e)},expression:"form.select.color"}})],1),o("el-form-item",{attrs:{label:"背景颜色"}},[o("select-color",{model:{value:t.form.select["background-color"],callback:function(e){t.$set(t.form.select,"background-color",e)},expression:"form.select['background-color']"}})],1)],1)},k=[],w={name:"StylesMenu",components:{SelectColor:y},props:{form:{}},computed:{},watch:{},data:function(){return{}},mounted:function(){},created:function(){},destroyed:function(){},methods:{}},$=w,O=(o("8128"),Object(p["a"])($,S,k,!1,null,"9b39daf6",null)),j=O.exports,_=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"StylesTheme"},[o("el-form-item",{attrs:{label:"主题颜色"}},[o("select-color",{model:{value:t.form["primary-color"],callback:function(e){t.$set(t.form,"primary-color",e)},expression:"form['primary-color']"}})],1)],1)},M=[],C={name:"StylesTheme",components:{SelectColor:y},props:{form:{}},computed:{},watch:{},data:function(){return{}},mounted:function(){},created:function(){},destroyed:function(){},methods:{}},D=C,E=(o("09e3"),Object(p["a"])(D,_,M,!1,null,"f5d80f30",null)),J=E.exports,T={name:"index",components:{StylesTheme:J,StylesMenu:j,StylesTitle:x},props:{},computed:Object(n["a"])(Object(n["a"])({},Object(l["mapGetters"])(["styles"])),{},{watchStyles:function(){return JSON.stringify(this.styles)}}),watch:{watchStyles:function(){this.init()}},data:function(){return{activeKey:["0","1","2"],formData:{}}},mounted:function(){},created:function(){console.log(this.styles),this.init()},destroyed:function(){},methods:Object(n["a"])(Object(n["a"])({},Object(l["mapActions"])(["updateStyles"])),{},{init:function(){console.log("init"),this.formData=JSON.parse(JSON.stringify(this.styles))},handleSubmit:function(){var t=this;this.$refs.ruleForm.validate((function(e){if(!e)return console.log("error submit!!"),!1;t.updateStyles(t.formData),t.$message.success("刷新后生效")}))}})},K=T,F=(o("65e9"),Object(p["a"])(K,r,a,!1,null,"4e3b27e9",null));e["default"]=F.exports},e01a:function(t,e,o){"use strict";var r=o("23e7"),a=o("83ab"),n=o("da84"),l=o("5135"),c=o("861d"),s=o("9bf2").f,i=o("e893"),f=n.Symbol;if(a&&"function"==typeof f&&(!("description"in f.prototype)||void 0!==f().description)){var u={},m=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof m?new f(t):void 0===t?f():f(t);return""===t&&(u[e]=!0),e};i(m,f);var d=m.prototype=f.prototype;d.constructor=m;var p=d.toString,b="Symbol(test)"==String(f("test")),y=/^Symbol\((.*)\)[^)]+$/;s(d,"description",{configurable:!0,get:function(){var t=c(this)?this.valueOf():this,e=p.call(t);if(l(u,t))return"";var o=b?e.slice(7,-1):e.replace(y,"$1");return""===o?void 0:o}}),r({global:!0,forced:!0},{Symbol:m})}},f5a4:function(t,e,o){"use strict";var r=o("1847"),a=o.n(r);a.a},ff78:function(t,e,o){var r=o("13ba");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var a=o("499e").default;a("ea8696ec",r,!0,{sourceMap:!1,shadowMode:!1})}}]); \ No newline at end of file diff --git a/js/chunk-1e8ac3a9.a340a104.js b/js/chunk-1e8ac3a9.34967a32.js similarity index 100% rename from js/chunk-1e8ac3a9.a340a104.js rename to js/chunk-1e8ac3a9.34967a32.js diff --git a/js/chunk-2258ecde.0174de11.js b/js/chunk-2258ecde.0174de11.js new file mode 100644 index 0000000..63340d8 --- /dev/null +++ b/js/chunk-2258ecde.0174de11.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2258ecde"],{"0174":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".alarm .ant-form-item-label[data-v-62c24b27]{text-align:left}.subsection[data-v-62c24b27] {width:100%;height:360px;overflow:hidden}.subsection[data-v-62c24b27] .ant-tabs-nav .ant-tabs-tab{margin-right:0}.subsection[data-v-62c24b27] .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled){background:#40a9ff;border-color:#40a9ff;box-shadow:-1px 0 0 0 #40a9ff}.subsection[data-v-62c24b27] .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover{background:#40a9ff;border-color:#40a9ff}.subsection[data-v-62c24b27] .ant-radio-button-wrapper-checked{box-shadow:-1px 0 0 0 #40a9ff}.subsection[data-v-62c24b27] .radio-button-cell{width:100px;text-align:center}.subsection[data-v-62c24b27] .ant-layout-sider{height:100%}.subsection[data-v-62c24b27] .ant-layout-sider .ant-tabs{height:300px}.subsection[data-v-62c24b27] .ant-layout-sider .ant-tabs-tab{padding:8px;margin-bottom:5px;width:104px}.subsection[data-v-62c24b27] .ant-layout-footer{padding:0 0 0 110px}.subsection[data-v-62c24b27] .ant-layout-footer .ant-tabs-bottom-bar{margin-top:0}.subsection[data-v-62c24b27] .ant-layout,.subsection[data-v-62c24b27] .ant-layout-footer,.subsection[data-v-62c24b27] .ant-layout-sider{background-color:#fff}.subsection[data-v-62c24b27] roadway-buttom{padding:5px 0;width:100%}.subsection[data-v-62c24b27] .roadway-box{transform:rotateX(180deg);padding:10px 10px 0 0}.subsection[data-v-62c24b27] .roadway-box .line{display:flex;transform:rotateX(180deg)}.subsection[data-v-62c24b27] .roadway-box .line .el{width:46px;height:25px;line-height:25px;margin:2px;font-size:12px;text-align:center;border-radius:4px;cursor:pointer;position:relative}.subsection[data-v-62c24b27] .roadway-box .line .el .default{position:absolute;top:0;left:0;right:0;bottom:0}",""]),t.exports=e},"1b63":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"check-page"},[a("a-button",{staticClass:"export-all",attrs:{type:"primary"},on:{click:t.exportStock}},[t._v(" 导出全部巷道 ")]),a("div",{staticClass:"title-info"},[a("span",{staticClass:"explain"},[t._v("颜色说明:")]),a("span",{staticClass:"info-text"},[a("a-tag",{staticStyle:{width:"30px",height:"20px","margin-right":"6px"},attrs:{color:"#d81e06"}}),t._v(" 盘点错误 ")],1),a("span",{staticClass:"info-text"},[a("a-tag",{staticStyle:{width:"30px",height:"20px","margin-right":"6px"},attrs:{color:"#1afa29"}}),t._v(" 盘点正确 ")],1),a("span",{staticClass:"info-text"},[a("a-tag",{staticStyle:{width:"30px",height:"20px","margin-right":"6px"},attrs:{color:"#bfbfbf"}}),t._v(" 未盘点 ")],1)]),a("div",{staticStyle:{"margin-top":"10px"}},[t.data[0]?a("a-select",{staticClass:"select-roadway",attrs:{"default-value":t.data[0].name},on:{change:t.handleChange}},t._l(t.data,(function(e){return a("a-select-option",{key:e.name,attrs:{value:e.id}},[t._v(" "+t._s(e.name)+" ")])})),1):t._e()],1),a("div",{staticClass:"center-box"},[a("span",{staticClass:"shelf-number"},[t._v(" 左货架号: "+t._s(t.leftShelveId.shelveId)+" ")]),t.streetDetail.leftInsideShelveId&&t.streetDetail.leftOutsideShelveId?a("a-radio-group",{staticStyle:{margin:"10px 0"},on:{change:t.getStockRowColumn},model:{value:t.size,callback:function(e){t.size=e},expression:"size"}},[a("a-radio-button",{attrs:{value:"leftOutsideShelveId"}},[t._v(" 外 ")]),a("a-radio-button",{attrs:{value:"leftInsideShelveId"}},[t._v(" 内 ")])],1):t._e()],1),t._l(t.data,(function(e){return a("div",{key:e.id,staticClass:"check-content"},[e.id==t.select?a("subsection",{attrs:{total:{row:e.leftRow,column:e.leftColumn},shelveId:t.leftShelveId.shelveId,streetId:e.id,streetName:e.name,type:"left",inOut:t.leftShelveId.shelveType}}):t._e()],1)})),a("div",{staticClass:"center-box"},[a("span",{staticClass:"shelf-number"},[t._v(" 右货架号: "+t._s(t.rightShelveId.shelveId)+" ")]),t.streetDetail.rightInsideShelveId&&t.streetDetail.rightOutsideShelveId?a("a-radio-group",{staticStyle:{margin:"10px 0"},on:{change:t.getStockRowColumn},model:{value:t.size2,callback:function(e){t.size2=e},expression:"size2"}},[a("a-radio-button",{attrs:{value:"rightOutsideShelveId"}},[t._v(" 外 ")]),a("a-radio-button",{attrs:{value:"rightInsideShelveId"}},[t._v(" 内 ")])],1):t._e()],1),t._l(t.data,(function(e){return a("div",{key:e.name,staticClass:"check-content"},[e.id==t.select?a("subsection",{attrs:{total:{row:e.leftRow,column:e.leftColumn},shelveId:t.rightShelveId.shelveId,streetId:e.id,streetName:e.name,type:"right",inOut:t.rightShelveId.shelveType}}):t._e()],1)}))],2)},i=[],o=(a("96cf"),a("1da1")),r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"subsection"},[a("a-layout",{staticStyle:{width:"900px"}},[a("a-layout",{staticStyle:{width:"100%",height:"310px"}},[a("a-layout-sider",{attrs:{width:"110px"}},[t.total.column>t.nums.column?a("a-tabs",{attrs:{"default-active-key":"1","tab-position":"left"},on:{change:t.changeTabLeft}},t._l(t.latticeColumn,(function(e){return a("a-tab-pane",{key:e},[a("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(t.getRandom(e,t.latticeColumn,t.nums.column,t.total.column))+" "),1===t.status.column[e]?a("a-icon",{staticStyle:{color:"#d81e06"},attrs:{type:"close-circle"}}):2===t.status.column[e]?a("a-icon",{staticStyle:{color:"#1afa29"},attrs:{type:"check-circle"}}):a("a-icon",{staticStyle:{color:"#909399"},attrs:{type:"exclamation-circle"}})],1)])})),1):t._e()],1),a("a-layout-content",[a("div",{staticClass:"roadway-buttom"},[a("div",{staticClass:"roadway-box"},t._l(t.total.column,(function(e,n){return e>=t.random.column[0]&&e<=t.random.column[1]?a("div",{key:n,staticClass:"line"},t._l(t.total.row,(function(n,i){return n>=t.random.row[0]&&n<=t.random.row[1]?a("div",{key:i,staticClass:"el"},[a("span",{staticClass:"default",attrs:{id:t.shelveId+"-"+n+"-"+e},on:{click:function(a){return t.tocheckPage(n,e)}}},[t._v(" "+t._s(n)+"-"+t._s(e)+" ")])]):t._e()})),0):t._e()})),0)])])],1),a("a-layout-footer",[t.total.row>t.nums.row?a("a-tabs",{attrs:{"default-active-key":"1","tab-position":"bottom"},on:{change:t.changeTab}},t._l(t.latticeRow,(function(e){return a("a-tab-pane",{key:e},[a("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(t.getRandom(e,t.latticeRow,t.nums.row,t.total.row))+" "),1===t.status.row[e]?a("a-icon",{staticStyle:{color:"#d81e06"},attrs:{type:"close-circle"}}):2===t.status.row[e]?a("a-icon",{staticStyle:{color:"#1afa29"},attrs:{type:"check-circle"}}):a("a-icon",{staticStyle:{color:"#909399"},attrs:{type:"exclamation-circle"}})],1)])})),1):t._e()],1)],1)],1)},s=[],c=(a("99af"),a("d81d"),a("a9e3"),a("ac1f"),a("1276"),a("b85c")),l={name:"Subsection",components:{},props:{select:{type:Object,default:function(){return{row:1,column:1}}},total:{type:Object,default:function(){return{}}},nums:{type:Object,default:function(){return{row:15,column:10}}},shelveId:{type:String,default:function(){return{}}},streetId:{type:Number,default:function(){return{}}},streetName:{type:String,default:function(){return{}}},type:{type:String,default:function(){return{}}},inOut:{type:String,default:function(){return{}}}},computed:{latticeRow:function(){return parseInt(this.total.row/this.nums.row)+(this.total.row%this.nums.row>0?1:0)},latticeColumn:function(){return parseInt(this.total.column/this.nums.column)+(this.total.column%this.nums.column>0?1:0)},random:function(){return{row:this.getRandomRow(this.select.row),column:this.getRandomColumn(this.select.column)}},watchShelveIdInfo:function(){return this.shelveId}},watch:{watchShelveIdInfo:function(){this.getStatus()},immediate:!0},data:function(){return{status:{row:{},column:{}}}},mounted:function(){this.$nextTick((function(){}))},created:function(){this.getStatus()},destroyed:function(){},methods:{changeTab:function(t){this.select.row=t,this.getStatus()},changeTabLeft:function(t){this.select.column=t,this.getStatus()},getRandom:function(t,e,a,n){return t!==e?"".concat((t-1)*a+1," - ").concat(t*a):"".concat((t-1)*a+1," - ").concat(n)},getRandomRow:function(t){return this.getRandom(t,this.latticeRow,this.nums.row,this.total.row).split(" - ").map((function(t){return Number(t)}))},getRandomColumn:function(t){return this.getRandom(t,this.latticeColumn,this.nums.column,this.total.column).split(" - ").map((function(t){return Number(t)}))},getStatusBg:function(t,e,a){var n=document.getElementById(this.shelveId+"-"+t+"-"+e),i=1==a?"#d81e06":2==a?"#1afa29":"#bfbfbf";n.style.background=i},getStatusTab:function(t,e,a){var n=document.getElementById(this.shelveId+"-"+a+"-"+t);console.log(n),console.log(this.shelveId+"-"+a+"-"+t),n.style.type="close-circle";var i=1==e?"#d81e06":2==e?"#1afa29":"#bfbfbf";n.style.color=i,console.log(n)},getStatus:function(){var t=this;if("{}"!=JSON.stringify(this.shelveId)){for(var e=[],a=1;a<=this.latticeColumn;a++){var n=this.getRandom(a,this.latticeColumn,this.nums.column,this.total.column);e.push(n)}for(var i=[],o=1;o<=this.latticeRow;o++){var r=this.getRandom(o,this.latticeRow,this.nums.row,this.total.row);i.push(r)}this.$api.httpApi.getStatusByRowColumn({data:{columnStart:this.random.column[0],columnEnd:this.random.column[1],rowStart:this.random.row[0],rowEnd:this.random.row[1],shelveId:this.shelveId,rowTabs:i,columnTabs:e}}).then((function(e){if(200==e.code){if(e.data.stocks){var a,n=Object(c["a"])(e.data.stocks);try{for(n.s();!(a=n.n()).done;){var i=a.value;t.getStatusBg(i.row,i.column,i.status)}}catch(u){n.e(u)}finally{n.f()}}var o=1;for(var r in e.data.columnTabStatus)t.status.column[o]=e.data.columnTabStatus[r],o++;var s=1;for(var l in e.data.rowTabStatus)t.status.row[s]=e.data.rowTabStatus[l],s++;console.log(t.status)}})).catch((function(t){}))}},tocheckPage:function(t,e){this.$router.push({name:"checkOperation",query:{row:t,column:e,shelveId:this.shelveId,id:this.streetId,name:this.streetName,type:this.type,type2:this.inOut}})}}},u=l,d=(a("bac8"),a("2877")),h=Object(d["a"])(u,r,s,!1,null,"62c24b27",null),f=h.exports,p={name:"checkManage",data:function(){return{size:"leftOutsideShelveId",size2:"rightOutsideShelveId",data:[],select:"",streetId:0,streetDetail:{},checkList:[],stockInfo:{left:{},right:{}},timer:null,shelveId:"",leftShelveId:{},rightShelveId:{}}},computed:{},mounted:function(){this.request()},activated:function(){this.request()},beforeRouteLeave:function(t,e,a){this.timer&&clearInterval(this.timer),a()},methods:{request:function(){var t=this;this.$api.httpApi.getStreetList({data:{pageNum:1,pageSize:50}}).then((function(e){t.data=e.data.list,t.select=e.data.list[0].id,t.getStreetDetail(e.data.list[0].id)})).catch((function(t){}))},getStockRowColumn:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.rightShelveChange(),t.leftShelveChange();case 2:case"end":return e.stop()}}),e)})))()},rightShelveChange:function(){var t,e="none";this.streetDetail.rightShelveId?t=this.streetDetail.rightShelveId:this.streetDetail.rightInsideShelveId&&"rightInsideShelveId"==this.size2?(t=this.streetDetail.rightInsideShelveId,e="inside"):this.streetDetail.rightOutsideShelveId&&"rightOutsideShelveId"==this.size2&&(t=this.streetDetail.rightOutsideShelveId,e="out"),this.rightShelveId.shelveId=t,this.rightShelveId.shelveType=e},leftShelveChange:function(){var t,e="none";this.streetDetail.leftShelveId?t=this.streetDetail.leftShelveId:this.streetDetail.leftInsideShelveId&&"leftInsideShelveId"==this.size?(t=this.streetDetail.leftInsideShelveId,e="inside"):this.streetDetail.leftOutsideShelveId&&"leftOutsideShelveId"==this.size&&(t=this.streetDetail.leftOutsideShelveId,e="out"),this.leftShelveId.shelveId=t,this.leftShelveId.shelveType=e},getStatus:function(t,e){return(t[e]||{}).status},getStatusBg:function(t,e){var a=this.getStatus(t,e);return 1==a?"#d81e06":2==a?"#1afa29":"#bfbfbf"},getStreetDetail:function(t){var e=this;this.$axios.get("/street/"+t,{data:{}}).then((function(t){e.streetDetail=t.data,e.leftShelveChange(),e.rightShelveChange()})).catch((function(t){}))},handleChange:function(t){this.select=t,this.getStreetDetail(t),this.leftShelveChange(),this.rightShelveChange()},tocheckOperation:function(t,e){console.log(t),console.log(e),this.$router.push({name:"checkOperation",query:{checkObj:t,item:e}})},exportStock:function(){var t=this;this.$api.httpApi.exportStock({params:{streetId:this.select}}).then((function(e){var a=new Blob([e],{type:"application/vnd.ms-excel"});t.$utils.downloadFile("巷道列表.xls",a)})).catch((function(t){}))}},components:{Subsection:f}},v=p,b=(a("a8c4"),Object(d["a"])(v,n,i,!1,null,"e44914aa",null));e["default"]=b.exports},"38e9":function(t,e,a){var n=a("a7bb");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("499e").default;i("2f41dd22",n,!0,{sourceMap:!1,shadowMode:!1})},5899:function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(t,e,a){var n=a("1d80"),i=a("5899"),o="["+i+"]",r=RegExp("^"+o+o+"*"),s=RegExp(o+o+"*$"),c=function(t){return function(e){var a=String(n(e));return 1&t&&(a=a.replace(r,"")),2&t&&(a=a.replace(s,"")),a}};t.exports={start:c(1),end:c(2),trim:c(3)}},7156:function(t,e,a){var n=a("861d"),i=a("d2bb");t.exports=function(t,e,a){var o,r;return i&&"function"==typeof(o=e.constructor)&&o!==a&&n(r=o.prototype)&&r!==a.prototype&&i(t,r),t}},"99af":function(t,e,a){"use strict";var n=a("23e7"),i=a("d039"),o=a("e8b5"),r=a("861d"),s=a("7b0b"),c=a("50c4"),l=a("8418"),u=a("65f0"),d=a("1dde"),h=a("b622"),f=a("2d00"),p=h("isConcatSpreadable"),v=9007199254740991,b="Maximum allowed index exceeded",g=f>=51||!i((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),m=d("concat"),y=function(t){if(!r(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)},S=!g||!m;n({target:"Array",proto:!0,forced:S},{concat:function(t){var e,a,n,i,o,r=s(this),d=u(r,0),h=0;for(e=-1,n=arguments.length;ev)throw TypeError(b);for(a=0;a=v)throw TypeError(b);l(d,h++,o)}return d.length=h,d}})},a630:function(t,e,a){var n=a("23e7"),i=a("4df4"),o=a("1c7e"),r=!o((function(t){Array.from(t)}));n({target:"Array",stat:!0,forced:r},{from:i})},a7bb:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".alarm .ant-form-item-label[data-v-e44914aa]{text-align:left}.check-page[data-v-e44914aa]{position:relative}.check-page .title-info[data-v-e44914aa]{display:flex;align-items:center;justify-content:start}.check-page .title-info .explain[data-v-e44914aa]{font-weight:600}.check-page .title-info .info-text[data-v-e44914aa]{display:flex;align-items:center;justify-content:center;margin-right:15px}.check-page .ant-tag[data-v-e44914aa]{margin-right:0;display:block;line-height:25px;text-align:center;cursor:pointer}.check-page .roadway-top[data-v-e44914aa],.check-page roadway-buttom[data-v-e44914aa]{padding:5px 0;width:100%}.check-page .roadway-box[data-v-e44914aa]{transform:rotateX(180deg);padding:10px 10px 0 0}.check-page .roadway-box .line[data-v-e44914aa]{display:flex;transform:rotateX(180deg)}.check-page .roadway-box .line .el[data-v-e44914aa]{width:46px;height:25px;line-height:25px;margin:2px;font-size:12px;text-align:center;border-radius:4px;cursor:pointer;position:relative}.check-page .roadway-box .line .el .default[data-v-e44914aa]{position:absolute;top:0;left:0;right:0;bottom:0}.check-page .center-box[data-v-e44914aa]{width:500px;height:52px;line-height:52px}.check-page .center-box .shelf-number[data-v-e44914aa]{display:inline-block;width:200px}.check-page .export-all[data-v-e44914aa]{position:absolute;right:20px}",""]),t.exports=e},a8c4:function(t,e,a){"use strict";var n=a("38e9"),i=a.n(n);i.a},a9e3:function(t,e,a){"use strict";var n=a("83ab"),i=a("da84"),o=a("94ca"),r=a("6eeb"),s=a("5135"),c=a("c6b6"),l=a("7156"),u=a("c04e"),d=a("d039"),h=a("7c73"),f=a("241c").f,p=a("06cf").f,v=a("9bf2").f,b=a("58a8").trim,g="Number",m=i[g],y=m.prototype,S=c(h(y))==g,w=function(t){var e,a,n,i,o,r,s,c,l=u(t,!1);if("string"==typeof l&&l.length>2)if(l=b(l),e=l.charCodeAt(0),43===e||45===e){if(a=l.charCodeAt(2),88===a||120===a)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+l}for(o=l.slice(2),r=o.length,s=0;si)return NaN;return parseInt(o,n)}return+l};if(o(g,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var x,I=function(t){var e=arguments.length<1?0:t,a=this;return a instanceof I&&(S?d((function(){y.valueOf.call(a)})):c(a)!=g)?l(new m(w(e)),a,I):w(e)},k=n?f(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),C=0;k.length>C;C++)s(m,x=k[C])&&!s(I,x)&&v(I,x,p(m,x));I.prototype=y,y.constructor=I,r(i,g,I)}},b85c:function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));a("a4d3"),a("e01a"),a("d28b"),a("d3b7"),a("3ca3"),a("ddb0"),a("a630"),a("fb6a"),a("b0c0"),a("25f0");function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,c=!1;return{s:function(){a=t[Symbol.iterator]()},n:function(){var t=a.next();return s=t.done,t},e:function(t){c=!0,r=t},f:function(){try{s||null==a["return"]||a["return"]()}finally{if(c)throw r}}}}},bac8:function(t,e,a){"use strict";var n=a("dcce"),i=a.n(n);i.a},d28b:function(t,e,a){var n=a("746f");n("iterator")},dcce:function(t,e,a){var n=a("0174");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("499e").default;i("80004b20",n,!0,{sourceMap:!1,shadowMode:!1})},e01a:function(t,e,a){"use strict";var n=a("23e7"),i=a("83ab"),o=a("da84"),r=a("5135"),s=a("861d"),c=a("9bf2").f,l=a("e893"),u=o.Symbol;if(i&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var d={},h=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof h?new u(t):void 0===t?u():u(t);return""===t&&(d[e]=!0),e};l(h,u);var f=h.prototype=u.prototype;f.constructor=h;var p=f.toString,v="Symbol(test)"==String(u("test")),b=/^Symbol\((.*)\)[^)]+$/;c(f,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=p.call(t);if(r(d,t))return"";var a=v?e.slice(7,-1):e.replace(b,"$1");return""===a?void 0:a}}),n({global:!0,forced:!0},{Symbol:h})}},fb6a:function(t,e,a){"use strict";var n=a("23e7"),i=a("861d"),o=a("e8b5"),r=a("23cb"),s=a("50c4"),c=a("fc6a"),l=a("8418"),u=a("b622"),d=a("1dde"),h=a("ae40"),f=d("slice"),p=h("slice",{ACCESSORS:!0,0:0,1:2}),v=u("species"),b=[].slice,g=Math.max;n({target:"Array",proto:!0,forced:!f||!p},{slice:function(t,e){var a,n,u,d=c(this),h=s(d.length),f=r(t,h),p=r(void 0===e?h:e,h);if(o(d)&&(a=d.constructor,"function"!=typeof a||a!==Array&&!o(a.prototype)?i(a)&&(a=a[v],null===a&&(a=void 0)):a=void 0,a===Array||void 0===a))return b.call(d,f,p);for(n=new(void 0===a?Array:a)(g(p-f,0)),u=0;f=0&&t<=100}function o(){var t=100,e=3,n=0,o=100,s=0,a=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!i(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!==typeof t)throw new TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return o},set:function(t){if(!i(t))throw new Error("RegionAnchorX must be between 0 and 100.");o=t}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(t){if(!i(t))throw new Error("RegionAnchorY must be between 0 and 100.");n=t}},viewportAnchorY:{enumerable:!0,get:function(){return a},set:function(t){if(!i(t))throw new Error("ViewportAnchorY must be between 0 and 100.");a=t}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(t){if(!i(t))throw new Error("ViewportAnchorX must be between 0 and 100.");s=t}},scroll:{enumerable:!0,get:function(){return l},set:function(t){var e=r(t);if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");l=e}}})}t.exports=o},6081:function(t,e,n){"use strict";var r=n("d302"),i=n.n(r);i.a},6767:function(t,e,n){ -/** - * @license - * Video.js 6.12.1 - * Copyright Brightcove, Inc. - * Available under Apache License Version 2.0 - * - * - * Includes vtt.js - * Available under Apache License Version 2.0 - * - */ -function r(t){return t&&"object"===typeof t&&"default"in t?t["default"]:t}var i=r(n("ecdc")),o=r(n("0335")),s=r(n("1f90")),a=r(n("0630")),l=r(n("eaf9")),c=r(n("edcb")),u="6.12.1",h=i.navigator&&i.navigator.userAgent||"",p=/AppleWebKit\/([\d.]+)/i.exec(h),d=p?parseFloat(p.pop()):null,f=/iPad/i.test(h),v=/iPhone/i.test(h)&&!f,y=/iPod/i.test(h),g=v||f||y,m=function(){var t=h.match(/OS (\d+)_/i);return t&&t[1]?t[1]:null}(),_=/Android/i.test(h),b=function(){var t=h.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;var e=t[1]&&parseFloat(t[1]),n=t[2]&&parseFloat(t[2]);return e&&n?parseFloat(t[1]+"."+t[2]):e||null}(),T=_&&/webkit/i.test(h)&&b<2.3,C=_&&b<5&&d<537,k=/Firefox/i.test(h),w=/Edge/i.test(h),E=!w&&(/Chrome/i.test(h)||/CriOS/i.test(h)),S=function(){var t=h.match(/(Chrome|CriOS)\/(\d+)/);return t&&t[2]?parseFloat(t[2]):null}(),j=/MSIE\s8\.0/.test(h),x=function(){var t=/MSIE\s(\d+)\.\d/.exec(h),e=t&&parseFloat(t[1]);return!e&&/Trident\/7.0/i.test(h)&&/rv:11.0/.test(h)&&(e=11),e}(),P=/Safari/i.test(h)&&!E&&!_&&!w,A=(P||g)&&!E,O=nt()&&("ontouchstart"in i||i.navigator.maxTouchPoints||i.DocumentTouch&&i.document instanceof i.DocumentTouch),M=nt()&&"backgroundSize"in i.document.createElement("video").style,N=(Object.freeze||Object)({IS_IPAD:f,IS_IPHONE:v,IS_IPOD:y,IS_IOS:g,IOS_VERSION:m,IS_ANDROID:_,ANDROID_VERSION:b,IS_OLD_ANDROID:T,IS_NATIVE_ANDROID:C,IS_FIREFOX:k,IS_EDGE:w,IS_CHROME:E,CHROME_VERSION:S,IS_IE8:j,IE_VERSION:x,IS_SAFARI:P,IS_ANY_SAFARI:A,TOUCH_ENABLED:O,BACKGROUND_SIZE_SUPPORTED:M}),I="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},R=function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},L=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e},B=function(t,e){return t.raw=e,t},F=Object.prototype.toString,H=function(t){return U(t)?Object.keys(t):[]};function V(t,e){H(t).forEach((function(n){return e(t[n],n)}))}function z(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return H(t).reduce((function(n,r){return e(n,t[r],r)}),n)}function W(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:!!x&&x<11,r=X.levels[K],o=new RegExp("^("+r+")$");if("log"!==t&&e.unshift(t.toUpperCase()+":"),q&&q.push([].concat(e)),e.unshift("VIDEOJS:"),i.console){var s=i.console[t];s||"debug"!==t||(s=i.console.info||i.console.log),s&&r&&o.test(t)&&(n&&(e=e.map((function(t){if(U(t)||Array.isArray(t))try{return JSON.stringify(t)}catch(e){return String(t)}return String(t)})).join(" ")),s.apply?s[Array.isArray(e)?"apply":"call"](i.console,e):s(e))}};X=function(){for(var t=arguments.length,e=Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:"div",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments[3],i=o.createElement(t);return Object.getOwnPropertyNames(e).forEach((function(t){var n=e[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(G.warn(s(Q,t,n)),i.setAttribute(t,n)):"textContent"===t?at(i,n):i[t]=n})),Object.getOwnPropertyNames(n).forEach((function(t){i.setAttribute(t,n[t])})),r&&St(i,r),i}function at(t,e){return"undefined"===typeof t.textContent?t.innerText=e:t.textContent=e,t}function lt(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function ct(t,e){return tt(e),t.classList?t.classList.contains(e):et(e).test(t.className)}function ut(t,e){return t.classList?t.classList.add(e):ct(t,e)||(t.className=(t.className+" "+e).trim()),t}function ht(t,e){return t.classList?t.classList.remove(e):(tt(e),t.className=t.className.split(/\s+/).filter((function(t){return t!==e})).join(" ")),t}function pt(t,e,n){var r=ct(t,e);if("function"===typeof n&&(n=n(t,e)),"boolean"!==typeof n&&(n=!r),n!==r)return n?ut(t,e):ht(t,e),t}function dt(t,e){Object.getOwnPropertyNames(e).forEach((function(n){var r=e[n];null===r||"undefined"===typeof r||!1===r?t.removeAttribute(n):t.setAttribute(n,!0===r?"":r)}))}function ft(t){var e={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(t&&t.attributes&&t.attributes.length>0)for(var r=t.attributes,i=r.length-1;i>=0;i--){var o=r[i].name,s=r[i].value;"boolean"!==typeof t[o]&&-1===n.indexOf(","+o+",")||(s=null!==s),e[o]=s}return e}function vt(t,e){return t.getAttribute(e)}function yt(t,e,n){t.setAttribute(e,n)}function gt(t,e){t.removeAttribute(e)}function mt(){o.body.focus(),o.onselectstart=function(){return!1}}function _t(){o.onselectstart=function(){return!0}}function bt(t){if(t&&t.getBoundingClientRect&&t.parentNode){var e=t.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach((function(t){void 0!==e[t]&&(n[t]=e[t])})),n.height||(n.height=parseFloat(J(t,"height"))),n.width||(n.width=parseFloat(J(t,"width"))),n}}function Tt(t){var e=void 0;if(t.getBoundingClientRect&&t.parentNode&&(e=t.getBoundingClientRect()),!e)return{left:0,top:0};var n=o.documentElement,r=o.body,s=n.clientLeft||r.clientLeft||0,a=i.pageXOffset||r.scrollLeft,l=e.left+a-s,c=n.clientTop||r.clientTop||0,u=i.pageYOffset||r.scrollTop,h=e.top+u-c;return{left:Math.round(l),top:Math.round(h)}}function Ct(t,e){var n={},r=Tt(t),i=t.offsetWidth,o=t.offsetHeight,s=r.top,a=r.left,l=e.pageY,c=e.pageX;return e.changedTouches&&(c=e.changedTouches[0].pageX,l=e.changedTouches[0].pageY),n.y=Math.max(0,Math.min(1,(s-l+o)/o)),n.x=Math.max(0,Math.min(1,(c-a)/i)),n}function kt(t){return U(t)&&3===t.nodeType}function wt(t){while(t.firstChild)t.removeChild(t.firstChild);return t}function Et(t){return"function"===typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map((function(t){return"function"===typeof t&&(t=t()),rt(t)||kt(t)?t:"string"===typeof t&&/\S/.test(t)?o.createTextNode(t):void 0})).filter((function(t){return t}))}function St(t,e){return Et(e).forEach((function(e){return t.appendChild(e)})),t}function jt(t,e){return St(wt(t),e)}function xt(t){return void 0===t.button&&void 0===t.buttons||(0===t.button&&void 0===t.buttons||(9===x||0===t.button&&1===t.buttons))}var Pt=ot("querySelector"),At=ot("querySelectorAll"),Ot=(Object.freeze||Object)({isReal:nt,isEl:rt,isInFrame:it,createEl:st,textContent:at,prependTo:lt,hasClass:ct,addClass:ut,removeClass:ht,toggleClass:pt,setAttributes:dt,getAttributes:ft,getAttribute:vt,setAttribute:yt,removeAttribute:gt,blockTextSelection:mt,unblockTextSelection:_t,getBoundingClientRect:bt,findPosition:Tt,getPointerPosition:Ct,isTextNode:kt,emptyEl:wt,normalizeContent:Et,appendContent:St,insertContent:jt,isSingleLeftClick:xt,$:Pt,$$:At}),Mt=1;function Nt(){return Mt++}var It={},Dt="vdata"+(new Date).getTime();function Rt(t){var e=t[Dt];return e||(e=t[Dt]=Nt()),It[e]||(It[e]={}),It[e]}function Lt(t){var e=t[Dt];return!!e&&!!Object.getOwnPropertyNames(It[e]).length}function Bt(t){var e=t[Dt];if(e){delete It[e];try{delete t[Dt]}catch(n){t.removeAttribute?t.removeAttribute(Dt):t[Dt]=null}}}function Ft(t,e){var n=Rt(t);0===n.handlers[e].length&&(delete n.handlers[e],t.removeEventListener?t.removeEventListener(e,n.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+e,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&Bt(t)}function Ht(t,e,n,r){n.forEach((function(n){t(e,n,r)}))}function Vt(t){function e(){return!0}function n(){return!1}if(!t||!t.isPropagationStopped){var r=t||i.event;for(var s in t={},r)"layerX"!==s&&"layerY"!==s&&"keyLocation"!==s&&"webkitMovementX"!==s&&"webkitMovementY"!==s&&("returnValue"===s&&r.preventDefault||(t[s]=r[s]));if(t.target||(t.target=t.srcElement||o),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){r.preventDefault&&r.preventDefault(),t.returnValue=!1,r.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){r.stopPropagation&&r.stopPropagation(),t.cancelBubble=!0,r.cancelBubble=!0,t.isPropagationStopped=e},t.isPropagationStopped=n,t.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation(),t.isImmediatePropagationStopped=e,t.stopPropagation()},t.isImmediatePropagationStopped=n,null!==t.clientX&&void 0!==t.clientX){var a=o.documentElement,l=o.body;t.pageX=t.clientX+(a&&a.scrollLeft||l&&l.scrollLeft||0)-(a&&a.clientLeft||l&&l.clientLeft||0),t.pageY=t.clientY+(a&&a.scrollTop||l&&l.scrollTop||0)-(a&&a.clientTop||l&&l.clientTop||0)}t.which=t.charCode||t.keyCode,null!==t.button&&void 0!==t.button&&(t.button=1&t.button?0:4&t.button?1:2&t.button?2:0)}return t}var zt=!1;(function(){try{var t=Object.defineProperty({},"passive",{get:function(){zt=!0}});i.addEventListener("test",null,t),i.removeEventListener("test",null,t)}catch(e){}})();var Wt=["touchstart","touchmove"];function Ut(t,e,n){if(Array.isArray(e))return Ht(Ut,t,e,n);var r=Rt(t);if(r.handlers||(r.handlers={}),r.handlers[e]||(r.handlers[e]=[]),n.guid||(n.guid=Nt()),r.handlers[e].push(n),r.dispatcher||(r.disabled=!1,r.dispatcher=function(e,n){if(!r.disabled){e=Vt(e);var i=r.handlers[e.type];if(i)for(var o=i.slice(0),s=0,a=o.length;s-1&&(i={passive:!0}),t.addEventListener(e,r.dispatcher,i)}else t.attachEvent&&t.attachEvent("on"+e,r.dispatcher)}function $t(t,e,n){if(Lt(t)){var r=Rt(t);if(r.handlers){if(Array.isArray(e))return Ht($t,t,e,n);var i=function(t,e){r.handlers[e]=[],Ft(t,e)};if(void 0!==e){var o=r.handlers[e];if(o)if(n){if(n.guid)for(var s=0;s0)for(var i=0,s=t.length;i0)for(var a=0,l=e.length;a0)for(var c=0,u=n.length;c0)for(var h=0,p=r.length;h=e&&(t.apply(void 0,arguments),n=r)};return r},re=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i,o=void 0;return function(){var i=this,s=arguments,a=function(){o=null,a=null,n||t.apply(i,s)};!o&&n&&t.apply(i,s),r.clearTimeout(o),o=r.setTimeout(a,e)}},ie=function(){};ie.prototype.allowedEvents_={},ie.prototype.on=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},Ut(this,t,e),this.addEventListener=n},ie.prototype.addEventListener=ie.prototype.on,ie.prototype.off=function(t,e){$t(this,t,e)},ie.prototype.removeEventListener=ie.prototype.off,ie.prototype.one=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},Kt(this,t,e),this.addEventListener=n},ie.prototype.trigger=function(t){var e=t.type||t;"string"===typeof t&&(t={type:e}),t=Vt(t),this.allowedEvents_[e]&&this["on"+e]&&this["on"+e](t),Xt(this,t)},ie.prototype.dispatchEvent=ie.prototype.trigger;var oe=function(t){return t instanceof ie||!!t.eventBusEl_&&["on","one","off","trigger"].every((function(e){return"function"===typeof t[e]}))},se=function(t){return"string"===typeof t&&/\S/.test(t)||Array.isArray(t)&&!!t.length},ae=function(t){if(!t.nodeName&&!oe(t))throw new Error("Invalid target; must be a DOM node or evented object.")},le=function(t){if(!se(t))throw new Error("Invalid event type; must be a non-empty string or array.")},ce=function(t){if("function"!==typeof t)throw new Error("Invalid listener; must be a function.")},ue=function(t,e){var n=e.length<3||e[0]===t||e[0]===t.eventBusEl_,r=void 0,i=void 0,o=void 0;return n?(r=t.eventBusEl_,e.length>=3&&e.shift(),i=e[0],o=e[1]):(r=e[0],i=e[1],o=e[2]),ae(r),le(i),ce(o),o=ee(t,o),{isTargetingSelf:n,target:r,type:i,listener:o}},he=function(t,e,n,r){ae(t),t.nodeName?qt[e](t,n,r):t[e](n,r)},pe={on:function(){for(var t=this,e=arguments.length,n=Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=e.eventBusKey;if(n){if(!t[n].nodeName)throw new Error('The eventBusKey "'+n+'" does not refer to an element.');t.eventBusEl_=t[n]}else t.eventBusEl_=st("span",{className:"vjs-event-bus"});return W(t,pe),t.on("dispose",(function(){t.off(),i.setTimeout((function(){t.eventBusEl_=null}),0)})),t}var fe={state:{},setState:function(t){var e=this;"function"===typeof t&&(t=t());var n=void 0;return V(t,(function(t,r){e.state[r]!==t&&(n=n||{},n[r]={from:e.state[r],to:t}),e.state[r]=t})),n&&oe(this)&&this.trigger({changes:n,type:"statechanged"}),n}};function ve(t,e){return W(t,fe),t.state=W({},t.state,e),"function"===typeof t.handleStateChanged&&oe(t)&&t.on("statechanged",t.handleStateChanged),t}function ye(t){return"string"!==typeof t?t:t.charAt(0).toUpperCase()+t.slice(1)}function ge(t,e){return ye(t)===ye(e)}function me(){for(var t={},e=arguments.length,n=Array(e),r=0;r=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),Bt(this.el_),this.el_=null),this.player_=null},t.prototype.player=function(){return this.player_},t.prototype.options=function(t){return G.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t?(this.options_=me(this.options_,t),this.options_):this.options_},t.prototype.el=function(){return this.el_},t.prototype.createEl=function(t,e,n){return st(t,e,n)},t.prototype.localize=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=this.player_.language&&this.player_.language(),i=this.player_.languages&&this.player_.languages(),o=i&&i[r],s=r&&r.split("-")[0],a=i&&i[s],l=n;return o&&o[t]?l=o[t]:a&&a[t]&&(l=a[t]),e&&(l=l.replace(/\{(\d+)\}/g,(function(t,n){var r=e[n-1],i=r;return"undefined"===typeof r&&(i=t),i}))),l},t.prototype.contentEl=function(){return this.contentEl_||this.el_},t.prototype.id=function(){return this.id_},t.prototype.name=function(){return this.name_},t.prototype.children=function(){return this.children_},t.prototype.getChildById=function(t){return this.childIndex_[t]},t.prototype.getChild=function(t){if(t)return t=ye(t),this.childNameIndex_[t]},t.prototype.addChild=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.children_.length,i=void 0,o=void 0;if("string"===typeof e){o=ye(e);var s=n.componentClass||o;n.name=o;var a=t.getComponent(s);if(!a)throw new Error("Component "+s+" does not exist");if("function"!==typeof a)return null;i=new a(this.player_||this,n)}else i=e;if(this.children_.splice(r,0,i),"function"===typeof i.id&&(this.childIndex_[i.id()]=i),o=o||i.name&&ye(i.name()),o&&(this.childNameIndex_[o]=i),"function"===typeof i.el&&i.el()){var l=this.contentEl().children,c=l[r]||null;this.contentEl().insertBefore(i.el(),c)}return i},t.prototype.removeChild=function(t){if("string"===typeof t&&(t=this.getChild(t)),t&&this.children_){for(var e=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===t){e=!0,this.children_.splice(n,1);break}if(e){this.childIndex_[t.id()]=null,this.childNameIndex_[t.name()]=null;var r=t.el();r&&r.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},t.prototype.initChildren=function(){var e=this,n=this.options_.children;if(n){var r=this.options_,i=function(t){var n=t.name,i=t.opts;if(void 0!==r[n]&&(i=r[n]),!1!==i){!0===i&&(i={}),i.playerOptions=e.options_.playerOptions;var o=e.addChild(n,i);o&&(e[n]=o)}},o=void 0,s=t.getComponent("Tech");o=Array.isArray(n)?n:Object.keys(n),o.concat(Object.keys(this.options_).filter((function(t){return!o.some((function(e){return"string"===typeof e?t===e:t===e.name}))}))).map((function(t){var r=void 0,i=void 0;return"string"===typeof t?(r=t,i=n[r]||e.options_[r]||{}):(r=t.name,i=t),{name:r,opts:i}})).filter((function(e){var n=t.getComponent(e.opts.componentClass||ye(e.name));return n&&!s.isTech(n)})).forEach(i)}},t.prototype.buildCSSClass=function(){return""},t.prototype.ready=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return this.isReady_?void(e?t.call(this):this.setTimeout(t,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(t))},t.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var t=this.readyQueue_;this.readyQueue_=[],t&&t.length>0&&t.forEach((function(t){t.call(this)}),this),this.trigger("ready")}),1)},t.prototype.$=function(t,e){return Pt(t,e||this.contentEl())},t.prototype.$$=function(t,e){return At(t,e||this.contentEl())},t.prototype.hasClass=function(t){return ct(this.el_,t)},t.prototype.addClass=function(t){ut(this.el_,t)},t.prototype.removeClass=function(t){ht(this.el_,t)},t.prototype.toggleClass=function(t,e){pt(this.el_,t,e)},t.prototype.show=function(){this.removeClass("vjs-hidden")},t.prototype.hide=function(){this.addClass("vjs-hidden")},t.prototype.lockShowing=function(){this.addClass("vjs-lock-showing")},t.prototype.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.prototype.getAttribute=function(t){return vt(this.el_,t)},t.prototype.setAttribute=function(t,e){yt(this.el_,t,e)},t.prototype.removeAttribute=function(t){gt(this.el_,t)},t.prototype.width=function(t,e){return this.dimension("width",t,e)},t.prototype.height=function(t,e){return this.dimension("height",t,e)},t.prototype.dimensions=function(t,e){this.width(t,!0),this.height(e)},t.prototype.dimension=function(t,e,n){if(void 0!==e)return null!==e&&e===e||(e=0),-1!==(""+e).indexOf("%")||-1!==(""+e).indexOf("px")?this.el_.style[t]=e:this.el_.style[t]="auto"===e?"":e+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var r=this.el_.style[t],i=r.indexOf("px");return-1!==i?parseInt(r.slice(0,i),10):parseInt(this.el_["offset"+ye(t)],10)},t.prototype.currentDimension=function(t){var e=0;if("width"!==t&&"height"!==t)throw new Error("currentDimension only accepts width or height value");if("function"===typeof i.getComputedStyle){var n=i.getComputedStyle(this.el_);e=n.getPropertyValue(t)||n[t]}if(e=parseFloat(e),0===e){var r="offset"+ye(t);e=this.el_[r]}return e},t.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.prototype.currentWidth=function(){return this.currentDimension("width")},t.prototype.currentHeight=function(){return this.currentDimension("height")},t.prototype.focus=function(){this.el_.focus()},t.prototype.blur=function(){this.el_.blur()},t.prototype.emitTapEvents=function(){var t=0,e=null,n=10,r=200,i=void 0;this.on("touchstart",(function(n){1===n.touches.length&&(e={pageX:n.touches[0].pageX,pageY:n.touches[0].pageY},t=(new Date).getTime(),i=!0)})),this.on("touchmove",(function(t){if(t.touches.length>1)i=!1;else if(e){var r=t.touches[0].pageX-e.pageX,o=t.touches[0].pageY-e.pageY,s=Math.sqrt(r*r+o*o);s>n&&(i=!1)}}));var o=function(){i=!1};this.on("touchleave",o),this.on("touchcancel",o),this.on("touchend",(function(n){if(e=null,!0===i){var o=(new Date).getTime()-t;o0&&c.map((function(t){return l[t]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return t.components_[e]=n,n},t.getComponent=function(e){if(e)return e=ye(e),t.components_&&t.components_[e]?t.components_[e]:void 0},t}();function be(t,e,n){if("number"!==typeof e||e<0||e>n)throw new Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+e+") is non-numeric or out of bounds (0-"+n+").")}function Te(t,e,n,r){return be(t,r,n.length-1),n[r][e]}function Ce(t){return void 0===t||0===t.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:t.length,start:Te.bind(null,"start",0,t),end:Te.bind(null,"end",1,t)}}function ke(t,e){return Array.isArray(t)?Ce(t):void 0===t||void 0===e?Ce():Ce([[t,e]])}function we(t,e){var n=0,r=void 0,i=void 0;if(!e)return 0;t&&t.length||(t=ke(0,0));for(var o=0;oe&&(i=e),n+=i-r;return n/e}_e.prototype.supportsRaf_="function"===typeof i.requestAnimationFrame&&"function"===typeof i.cancelAnimationFrame,_e.registerComponent("Component",_e);for(var Ee={},Se=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],je=Se[0],xe=void 0,Pe=0;Pe0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;D(this,e);var s=L(this,t.call(this));if(!i&&(i=s,j))for(var a in i=o.createElement("custom"),e.prototype)"constructor"!==a&&(i[a]=e.prototype[a]);i.tracks_=[],Object.defineProperty(i,"length",{get:function(){return this.tracks_.length}});for(var l=0;l0&&void 0!==arguments[0]?arguments[0]:[];D(this,e);for(var s=void 0,a=i.length-1;a>=0;a--)if(i[a].enabled){Ue(i,i[a]);break}if(j){for(var l in s=o.createElement("custom"),ze.prototype)"constructor"!==l&&(s[l]=ze.prototype[l]);for(var c in e.prototype)"constructor"!==c&&(s[c]=e.prototype[c])}return n=L(this,t.call(this,i,s)),s=n,s.changing_=!1,r=s,L(n,r)}return R(e,t),e.prototype.addTrack=function(e){var n=this;e.enabled&&Ue(this,e),t.prototype.addTrack.call(this,e),e.addEventListener&&e.addEventListener("enabledchange",(function(){n.changing_||(n.changing_=!0,Ue(n,e),n.changing_=!1,n.trigger("change"))}))},e}(ze),Xe=function(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[];D(this,e);for(var s=void 0,a=i.length-1;a>=0;a--)if(i[a].selected){Xe(i,i[a]);break}if(j){for(var l in s=o.createElement("custom"),ze.prototype)"constructor"!==l&&(s[l]=ze.prototype[l]);for(var c in e.prototype)"constructor"!==c&&(s[c]=e.prototype[c])}return n=L(this,t.call(this,i,s)),s=n,s.changing_=!1,Object.defineProperty(s,"selectedIndex",{get:function(){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:[];D(this,e);var s=void 0;if(j){for(var a in s=o.createElement("custom"),ze.prototype)"constructor"!==a&&(s[a]=ze.prototype[a]);for(var l in e.prototype)"constructor"!==l&&(s[l]=e.prototype[l])}return n=L(this,t.call(this,i,s)),s=n,r=s,L(n,r)}return R(e,t),e.prototype.addTrack=function(e){t.prototype.addTrack.call(this,e),e.addEventListener("modechange",ee(this,(function(){this.trigger("change")})));var n=["metadata","chapters"];-1===n.indexOf(e.kind)&&e.addEventListener("modechange",ee(this,(function(){this.trigger("selectedlanguagechange")})))},e}(ze),Ye=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];D(this,t);var n=this;if(j)for(var r in n=o.createElement("custom"),t.prototype)"constructor"!==r&&(n[r]=t.prototype[r]);n.trackElements_=[],Object.defineProperty(n,"length",{get:function(){return this.trackElements_.length}});for(var i=0,s=e.length;i0&&void 0!==arguments[0]?arguments[0]:{};D(this,e);var i=L(this,t.call(this)),s=i;if(j)for(var a in s=o.createElement("custom"),e.prototype)"constructor"!==a&&(s[a]=e.prototype[a]);var l={id:r.id||"vjs_track_"+Nt(),kind:r.kind||"",label:r.label||"",language:r.language||""},c=function(t){Object.defineProperty(s,t,{get:function(){return l[t]},set:function(){}})};for(var u in l)c(u);return n=s,L(i,n)}return R(e,t),e}(ie),nn=function(t){var e=["protocol","hostname","port","pathname","search","hash","host"],n=o.createElement("a");n.href=t;var r=""===n.host&&"file:"!==n.protocol,s=void 0;r&&(s=o.createElement("div"),s.innerHTML='',n=s.firstChild,s.setAttribute("style","display:none; position:absolute;"),o.body.appendChild(s));for(var a={},l=0;lx',t=e.firstChild.href}return t},on=function(t){if("string"===typeof t){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i,n=e.exec(t);if(n)return n.pop().toLowerCase()}return""},sn=function(t){var e=i.location,n=nn(t),r=":"===n.protocol?e.protocol:n.protocol,o=r+n.host!==e.protocol+e.host;return o},an=(Object.freeze||Object)({parseUrl:nn,getAbsoluteURL:rn,getFileExtension:on,isCrossOrigin:sn}),ln=function(t,e){var n=new i.WebVTT.Parser(i,i.vttjs,i.WebVTT.StringDecoder()),r=[];n.oncue=function(t){e.addCue(t)},n.onparsingerror=function(t){r.push(t)},n.onflush=function(){e.trigger({type:"loadeddata",target:e})},n.parse(t),r.length>0&&(i.console&&i.console.groupCollapsed&&i.console.groupCollapsed("Text Track parsing errors for "+e.src),r.forEach((function(t){return G.error(t)})),i.console&&i.console.groupEnd&&i.console.groupEnd()),n.flush()},cn=function(t,e){var n={uri:t},r=sn(t);r&&(n.cors=r),l(n,ee(this,(function(t,n,r){if(t)return G.error(t,n);if(e.loaded_=!0,"function"!==typeof i.WebVTT){if(e.tech_){var o=function(){return ln(r,e)};e.tech_.on("vttjsloaded",o),e.tech_.on("vttjserror",(function(){G.error("vttjs failed to load, stopping trying to process "+e.src),e.tech_.off("vttjsloaded",o)}))}}else ln(r,e)})))},un=function(t){function e(){var n,r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(D(this,e),!i.tech)throw new Error("A tech was not provided.");var o=me(i,{kind:Ze[i.kind]||"subtitles",language:i.language||i.srclang||""}),s=tn[o.mode]||"disabled",a=o["default"];"metadata"!==o.kind&&"chapters"!==o.kind||(s="hidden");var l=(n=L(this,t.call(this,o)),n);if(l.tech_=o.tech,j)for(var c in e.prototype)"constructor"!==c&&(l[c]=e.prototype[c]);l.cues_=[],l.activeCues_=[];var u=new Ge(l.cues_),h=new Ge(l.activeCues_),p=!1,d=ee(l,(function(){this.activeCues=this.activeCues,p&&(this.trigger("cuechange"),p=!1)}));return"disabled"!==s&&l.tech_.ready((function(){l.tech_.on("timeupdate",d)}),!0),Object.defineProperty(l,"default",{get:function(){return a},set:function(){}}),Object.defineProperty(l,"mode",{get:function(){return s},set:function(t){var e=this;tn[t]&&(s=t,"showing"===s&&this.tech_.ready((function(){e.tech_.on("timeupdate",d)}),!0),this.trigger("modechange"))}}),Object.defineProperty(l,"cues",{get:function(){return this.loaded_?u:null},set:function(){}}),Object.defineProperty(l,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return h;for(var t=this.tech_.currentTime(),e=[],n=0,r=this.cues.length;n=t||i.startTime===i.endTime&&i.startTime<=t&&i.startTime+.5>=t)&&e.push(i)}if(p=!1,e.length!==this.activeCues_.length)p=!0;else for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:{};D(this,e);var o=me(i,{kind:Qe[i.kind]||""}),s=(n=L(this,t.call(this,o)),n),a=!1;if(j)for(var l in e.prototype)"constructor"!==l&&(s[l]=e.prototype[l]);return Object.defineProperty(s,"enabled",{get:function(){return a},set:function(t){"boolean"===typeof t&&t!==a&&(a=t,this.trigger("enabledchange"))}}),o.enabled&&(s.enabled=o.enabled),s.loaded_=!0,r=s,L(n,r)}return R(e,t),e}(en),pn=function(t){function e(){var n,r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};D(this,e);var o=me(i,{kind:Je[i.kind]||""}),s=(n=L(this,t.call(this,o)),n),a=!1;if(j)for(var l in e.prototype)"constructor"!==l&&(s[l]=e.prototype[l]);return Object.defineProperty(s,"selected",{get:function(){return a},set:function(t){"boolean"===typeof t&&t!==a&&(a=t,this.trigger("selectedchange"))}}),o.selected&&(s.selected=o.selected),r=s,L(n,r)}return R(e,t),e}(en),dn=0,fn=1,vn=2,yn=3,gn=function(t){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};D(this,e);var r=L(this,t.call(this)),i=void 0,s=r;if(j)for(var a in s=o.createElement("custom"),e.prototype)"constructor"!==a&&(s[a]=e.prototype[a]);var l,c=new un(n);return s.kind=c.kind,s.src=c.src,s.srclang=c.language,s.label=c.label,s["default"]=c["default"],Object.defineProperty(s,"readyState",{get:function(){return i}}),Object.defineProperty(s,"track",{get:function(){return c}}),i=dn,c.addEventListener("loadeddata",(function(){i=vn,s.trigger({type:"load",target:s})})),j?(l=s,L(r,l)):r}return R(e,t),e}(ie);gn.prototype.allowedEvents_={load:"load"},gn.NONE=dn,gn.LOADING=fn,gn.LOADED=vn,gn.ERROR=yn;var mn={audio:{ListClass:$e,TrackClass:hn,capitalName:"Audio"},video:{ListClass:Ke,TrackClass:pn,capitalName:"Video"},text:{ListClass:qe,TrackClass:un,capitalName:"Text"}};Object.keys(mn).forEach((function(t){mn[t].getterName=t+"Tracks",mn[t].privateName=t+"Tracks_"}));var _n={remoteText:{ListClass:qe,TrackClass:un,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:Ye,TrackClass:gn,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},bn=me(mn,_n);function Tn(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=t.textTracks();i.kind=e,n&&(i.label=n),r&&(i.language=r),i.tech=t;var s=new bn.text.TrackClass(i);return o.addTrack(s),s}_n.names=Object.keys(_n),mn.names=Object.keys(mn),bn.names=[].concat(_n.names).concat(mn.names);var Cn=function(t){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};D(this,e),n.reportTouchActivity=!1;var i=L(this,t.call(this,null,n,r));return i.hasStarted_=!1,i.on("playing",(function(){this.hasStarted_=!0})),i.on("loadstart",(function(){this.hasStarted_=!1})),bn.names.forEach((function(t){var e=bn[t];n&&n[e.getterName]&&(i[e.privateName]=n[e.getterName])})),i.featuresProgressEvents||i.manualProgressOn(),i.featuresTimeupdateEvents||i.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach((function(t){!1===n["native"+t+"Tracks"]&&(i["featuresNative"+t+"Tracks"]=!1)})),!1===n.nativeCaptions||!1===n.nativeTextTracks?i.featuresNativeTextTracks=!1:!0!==n.nativeCaptions&&!0!==n.nativeTextTracks||(i.featuresNativeTextTracks=!0),i.featuresNativeTextTracks||i.emulateTextTracks(),i.autoRemoteTextTracks_=new bn.text.ListClass,i.initTrackListeners(),n.nativeControlsForTouch||i.emitTapEvents(),i.constructor&&(i.name_=i.constructor.name||"Unknown Tech"),i}return R(e,t),e.prototype.triggerSourceset=function(t){var e=this;this.isReady_||this.one("ready",(function(){return e.setTimeout((function(){return e.triggerSourceset(t)}),1)})),this.trigger({src:t,type:"sourceset"})},e.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},e.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},e.prototype.trackProgress=function(t){this.stopTrackingProgress(),this.progressInterval=this.setInterval(ee(this,(function(){var t=this.bufferedPercent();this.bufferedPercent_!==t&&this.trigger("progress"),this.bufferedPercent_=t,1===t&&this.stopTrackingProgress()})),500)},e.prototype.onDurationChange=function(t){this.duration_=this.duration()},e.prototype.buffered=function(){return ke(0,0)},e.prototype.bufferedPercent=function(){return we(this.buffered(),this.duration_)},e.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},e.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},e.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},e.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)},e.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.prototype.dispose=function(){this.clearTracks(mn.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),t.prototype.dispose.call(this)},e.prototype.clearTracks=function(t){var e=this;t=[].concat(t),t.forEach((function(t){var n=e[t+"Tracks"]()||[],r=n.length;while(r--){var i=n[r];"text"===t&&e.removeRemoteTextTrack(i),n.removeTrack(i)}}))},e.prototype.cleanupAutoTextTracks=function(){var t=this.autoRemoteTextTracks_||[],e=t.length;while(e--){var n=t[e];this.removeRemoteTextTrack(n)}},e.prototype.reset=function(){},e.prototype.error=function(t){return void 0!==t&&(this.error_=new Oe(t),this.trigger("error")),this.error_},e.prototype.played=function(){return this.hasStarted_?ke(0,0):ke()},e.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.prototype.initTrackListeners=function(){var t=this;mn.names.forEach((function(e){var n=mn[e],r=function(){t.trigger(e+"trackchange")},i=t[n.getterName]();i.addEventListener("removetrack",r),i.addEventListener("addtrack",r),t.on("dispose",(function(){i.removeEventListener("removetrack",r),i.removeEventListener("addtrack",r)}))}))},e.prototype.addWebVttScript_=function(){var t=this;if(!i.WebVTT)if(o.body.contains(this.el())){if(!this.options_["vtt.js"]&&$(c)&&Object.keys(c).length>0)return void this.trigger("vttjsloaded");var e=o.createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",e.onload=function(){t.trigger("vttjsloaded")},e.onerror=function(){t.trigger("vttjserror")},this.on("dispose",(function(){e.onload=null,e.onerror=null})),i.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)},e.prototype.emulateTextTracks=function(){var t=this,e=this.textTracks(),n=this.remoteTextTracks(),r=function(t){return e.addTrack(t.track)},i=function(t){return e.removeTrack(t.track)};n.on("addtrack",r),n.on("removetrack",i),this.addWebVttScript_();var o=function(){return t.trigger("texttrackchange")},s=function(){o();for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1],r=this.createRemoteTextTrack(e);return!0!==n&&!1!==n&&(G.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),n=!0),this.remoteTextTrackEls().addTrackElement_(r),this.remoteTextTracks().addTrack(r.track),!0!==n&&this.ready((function(){return t.autoRemoteTextTracks_.addTrack(r.track)})),r},e.prototype.removeRemoteTextTrack=function(t){var e=this.remoteTextTrackEls().getTrackElementByTrack_(t);this.remoteTextTrackEls().removeTrackElement_(e),this.remoteTextTracks().removeTrack(t),this.autoRemoteTextTracks_.removeTrack(t)},e.prototype.getVideoPlaybackQuality=function(){return{}},e.prototype.setPoster=function(){},e.prototype.playsinline=function(){},e.prototype.setPlaysinline=function(){},e.prototype.canPlayType=function(){return""},e.canPlayType=function(){return""},e.canPlaySource=function(t,n){return e.canPlayType(t.type)},e.isTech=function(t){return t.prototype instanceof e||t instanceof e||t===e},e.registerTech=function(t,n){if(e.techs_||(e.techs_={}),!e.isTech(n))throw new Error("Tech "+t+" must be a Tech");if(!e.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!e.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return t=ye(t),e.techs_[t]=n,"Tech"!==t&&e.defaultTechOrder_.push(t),n},e.getTech=function(t){if(t)return t=ye(t),e.techs_&&e.techs_[t]?e.techs_[t]:i&&i.videojs&&i.videojs[t]?(G.warn("The "+t+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),i.videojs[t]):void 0},e}(_e);bn.names.forEach((function(t){var e=bn[t];Cn.prototype[e.getterName]=function(){return this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName]}})),Cn.prototype.featuresVolumeControl=!0,Cn.prototype.featuresMuteControl=!0,Cn.prototype.featuresFullscreenResize=!1,Cn.prototype.featuresPlaybackRate=!1,Cn.prototype.featuresProgressEvents=!1,Cn.prototype.featuresSourceset=!1,Cn.prototype.featuresTimeupdateEvents=!1,Cn.prototype.featuresNativeTextTracks=!1,Cn.withSourceHandlers=function(t){t.registerSourceHandler=function(e,n){var r=t.sourceHandlers;r||(r=t.sourceHandlers=[]),void 0===n&&(n=r.length),r.splice(n,0,e)},t.canPlayType=function(e){for(var n=t.sourceHandlers||[],r=void 0,i=0;i3&&void 0!==arguments[3]?arguments[3]:null,i="call"+ye(n),o=t.reduce(Dn(i),r),s=o===En,a=s?null:e[n](o);return Rn(t,n,a,s),a}var Mn={buffered:1,currentTime:1,duration:1,seekable:1,played:1,paused:1},Nn={setCurrentTime:1},In={play:1,pause:1};function Dn(t){return function(e,n){return e===En?En:n[t]?n[t](e):e}}function Rn(t,e,n,r){for(var i=t.length-1;i>=0;i--){var o=t[i];o[e]&&o[e](r,n)}}function Ln(t){wn[t.id()]=null}function Bn(t,e){var n=wn[t.id()],r=null;if(void 0===n||null===n)return r=e(t),wn[t.id()]=[[e,r]],r;for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments[2],r=arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=e[0],a=e.slice(1);if("string"===typeof s)Fn(t,kn[s],n,r,i,o);else if(s){var l=Bn(r,s);if(!l.setSource)return i.push(l),Fn(t,a,n,r,i,o);l.setSource(W({},t),(function(e,s){if(e)return Fn(t,a,n,r,i,o);i.push(l),Fn(s,t.type===s.type?a:kn[s.type],n,r,i,o)}))}else a.length?Fn(t,a,n,r,i,o):o?n(t,i):Fn(t,kn["*"],n,r,i,!0)}var Hn={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",mp3:"audio/mpeg",aac:"audio/aac",oga:"audio/ogg",m3u8:"application/x-mpegURL"},Vn=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=on(t),n=Hn[e.toLowerCase()];return n||""},zn=function(t,e){if(!e)return"";if(t.cache_.source.src===e&&t.cache_.source.type)return t.cache_.source.type;var n=t.cache_.sources.filter((function(t){return t.src===e}));if(n.length)return n[0].type;for(var r=t.$$("source"),i=0;i0&&void 0!==arguments[0]?arguments[0]:"div",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=W({innerHTML:'',className:this.buildCSSClass(),tabIndex:0},n),"button"===e&&G.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),r=W({role:"button"},r),this.tabIndex_=n.tabIndex;var i=t.prototype.createEl.call(this,e,n,r);return this.createControlTextEl(i),i},e.prototype.dispose=function(){this.controlTextEl_=null,t.prototype.dispose.call(this)},e.prototype.createControlTextEl=function(t){return this.controlTextEl_=st("span",{className:"vjs-control-text"},{"aria-live":"polite"}),t&&t.appendChild(this.controlTextEl_),this.controlText(this.controlText_,t),this.controlTextEl_},e.prototype.controlText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.el();if(void 0===t)return this.controlText_||"Need Text";var n=this.localize(t);this.controlText_=t,at(this.controlTextEl_,n),this.nonIconControl||e.setAttribute("title",n)},e.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+t.prototype.buildCSSClass.call(this)},e.prototype.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),"undefined"!==typeof this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur))},e.prototype.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),"undefined"!==typeof this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur)},e.prototype.handleClick=function(t){},e.prototype.handleFocus=function(t){Ut(o,"keydown",ee(this,this.handleKeyPress))},e.prototype.handleKeyPress=function(e){32===e.which||13===e.which?(e.preventDefault(),this.trigger("click")):t.prototype.handleKeyPress&&t.prototype.handleKeyPress.call(this,e)},e.prototype.handleBlur=function(t){$t(o,"keydown",ee(this,this.handleKeyPress))},e}(_e);_e.registerComponent("ClickableComponent",Xn);var Kn=function(t){function e(n,r){D(this,e);var i=L(this,t.call(this,n,r));return i.update(),n.on("posterchange",ee(i,i.update)),i}return R(e,t),e.prototype.dispose=function(){this.player().off("posterchange",this.update),t.prototype.dispose.call(this)},e.prototype.createEl=function(){var t=st("div",{className:"vjs-poster",tabIndex:-1});return M||(this.fallbackImg_=st("img"),t.appendChild(this.fallbackImg_)),t},e.prototype.update=function(t){var e=this.player().poster();this.setSrc(e),e?this.show():this.hide()},e.prototype.setSrc=function(t){if(this.fallbackImg_)this.fallbackImg_.src=t;else{var e="";t&&(e='url("'+t+'")'),this.el_.style.backgroundImage=e}},e.prototype.handleClick=function(t){this.player_.controls()&&(this.player_.paused()?Ie(this.player_.play()):this.player_.pause())},e}(Xn);_e.registerComponent("PosterImage",Kn);var qn="#222",Yn="#ccc",Gn={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function Jn(t,e){var n=void 0;if(4===t.length)n=t[1]+t[1]+t[2]+t[2]+t[3]+t[3];else{if(7!==t.length)throw new Error("Invalid color code provided, "+t+"; must be formatted as e.g. #f0e or #f604e2.");n=t.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+e+")"}function Qn(t,e,n){try{t.style[e]=n}catch(r){return}}var Zn=function(t){function e(n,r,i){D(this,e);var o=L(this,t.call(this,n,r,i));return n.on("loadstart",ee(o,o.toggleDisplay)),n.on("texttrackchange",ee(o,o.updateDisplay)),n.on("loadstart",ee(o,o.preselectTrack)),n.ready(ee(o,(function(){if(n.tech_&&n.tech_.featuresNativeTextTracks)this.hide();else{n.on("fullscreenchange",ee(this,this.updateDisplay));for(var t=this.options_.playerOptions.tracks||[],e=0;e1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t="button",e=W({innerHTML:'',className:this.buildCSSClass()},e),n=W({type:"button"},n);var r=_e.prototype.createEl.call(this,t,e,n);return this.createControlTextEl(r),r},e.prototype.addChild=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.constructor.name;return G.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),_e.prototype.addChild.call(this,t,e)},e.prototype.enable=function(){t.prototype.enable.call(this),this.el_.removeAttribute("disabled")},e.prototype.disable=function(){t.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},e.prototype.handleKeyPress=function(e){32!==e.which&&13!==e.which&&t.prototype.handleKeyPress.call(this,e)},e}(Xn);_e.registerComponent("Button",er);var nr=function(t){function e(n,r){D(this,e);var i=L(this,t.call(this,n,r));return i.mouseused_=!1,i.on("mousedown",i.handleMouseDown),i}return R(e,t),e.prototype.buildCSSClass=function(){return"vjs-big-play-button"},e.prototype.handleClick=function(t){var e=this.player_.play();if(this.mouseused_&&t.clientX&&t.clientY)Ie(e);else{var n=this.player_.getChild("controlBar"),r=n&&n.getChild("playToggle");if(r){var i=function(){return r.focus()};Ne(e)?e.then(i,(function(){})):this.setTimeout(i,1)}else this.player_.focus()}},e.prototype.handleKeyPress=function(e){this.mouseused_=!1,t.prototype.handleKeyPress.call(this,e)},e.prototype.handleMouseDown=function(t){this.mouseused_=!0},e}(er);nr.prototype.controlText_="Play Video",_e.registerComponent("BigPlayButton",nr);var rr=function(t){function e(n,r){D(this,e);var i=L(this,t.call(this,n,r));return i.controlText(r&&r.controlText||i.localize("Close")),i}return R(e,t),e.prototype.buildCSSClass=function(){return"vjs-close-button "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(t){this.trigger({type:"close",bubbles:!1})},e}(er);_e.registerComponent("CloseButton",rr);var ir=function(t){function e(n,r){D(this,e);var i=L(this,t.call(this,n,r));return i.on(n,"play",i.handlePlay),i.on(n,"pause",i.handlePause),i.on(n,"ended",i.handleEnded),i}return R(e,t),e.prototype.buildCSSClass=function(){return"vjs-play-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},e.prototype.handleSeeked=function(t){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(t):this.handlePlay(t)},e.prototype.handlePlay=function(t){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},e.prototype.handlePause=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},e.prototype.handleEnded=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},e}(er);ir.prototype.controlText_="Play",_e.registerComponent("PlayToggle",ir);var or=function(t,e){t=t<0?0:t;var n=Math.floor(t%60),r=Math.floor(t/60%60),i=Math.floor(t/3600),o=Math.floor(e/60%60),s=Math.floor(e/3600);return(isNaN(t)||t===1/0)&&(i=r=n="-"),i=i>0||s>0?i+":":"",r=((i||o>=10)&&r<10?"0"+r:r)+":",n=n<10?"0"+n:n,i+r+n},sr=or;function ar(t){sr=t}function lr(){sr=or}var cr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return sr(t,e)},ur=function(t){function e(n,r){D(this,e);var i=L(this,t.call(this,n,r));return i.throttledUpdateContent=ne(ee(i,i.updateContent),25),i.on(n,"timeupdate",i.throttledUpdateContent),i}return R(e,t),e.prototype.createEl=function(e){var n=this.buildCSSClass(),r=t.prototype.createEl.call(this,"div",{className:n+" vjs-time-control vjs-control",innerHTML:''+this.localize(this.labelText_)+" "});return this.contentEl_=st("span",{className:n+"-display"},{"aria-live":"off"}),this.updateTextNode_(),r.appendChild(this.contentEl_),r},e.prototype.dispose=function(){this.contentEl_=null,this.textNode_=null,t.prototype.dispose.call(this)},e.prototype.updateTextNode_=function(){if(this.contentEl_){while(this.contentEl_.firstChild)this.contentEl_.removeChild(this.contentEl_.firstChild);this.textNode_=o.createTextNode(this.formattedTime_||this.formatTime_(0)),this.contentEl_.appendChild(this.textNode_)}},e.prototype.formatTime_=function(t){return cr(t)},e.prototype.updateFormattedTime_=function(t){var e=this.formatTime_(t);e!==this.formattedTime_&&(this.formattedTime_=e,this.requestAnimationFrame(this.updateTextNode_))},e.prototype.updateContent=function(t){},e}(_e);ur.prototype.labelText_="Time",ur.prototype.controlText_="Time",_e.registerComponent("TimeDisplay",ur);var hr=function(t){function e(n,r){D(this,e);var i=L(this,t.call(this,n,r));return i.on(n,"ended",i.handleEnded),i}return R(e,t),e.prototype.buildCSSClass=function(){return"vjs-current-time"},e.prototype.updateContent=function(t){var e=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(e)},e.prototype.handleEnded=function(t){this.player_.duration()&&this.updateFormattedTime_(this.player_.duration())},e}(ur);hr.prototype.labelText_="Current Time",hr.prototype.controlText_="Current Time",_e.registerComponent("CurrentTimeDisplay",hr);var pr=function(t){function e(n,r){D(this,e);var i=L(this,t.call(this,n,r));return i.on(n,"durationchange",i.updateContent),i.on(n,"loadedmetadata",i.throttledUpdateContent),i}return R(e,t),e.prototype.buildCSSClass=function(){return"vjs-duration"},e.prototype.updateContent=function(t){var e=this.player_.duration();e&&this.duration_!==e&&(this.duration_=e,this.updateFormattedTime_(e))},e}(ur);pr.prototype.labelText_="Duration",pr.prototype.controlText_="Duration",_e.registerComponent("DurationDisplay",pr);var dr=function(t){function e(){return D(this,e),L(this,t.apply(this,arguments))}return R(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"
/
"})},e}(_e);_e.registerComponent("TimeDivider",dr);var fr=function(t){function e(n,r){D(this,e);var i=L(this,t.call(this,n,r));return i.on(n,"durationchange",i.throttledUpdateContent),i.on(n,"ended",i.handleEnded),i}return R(e,t),e.prototype.buildCSSClass=function(){return"vjs-remaining-time"},e.prototype.formatTime_=function(e){return"-"+t.prototype.formatTime_.call(this,e)},e.prototype.updateContent=function(t){this.player_.duration()&&(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},e.prototype.handleEnded=function(t){this.player_.duration()&&this.updateFormattedTime_(0)},e}(ur);fr.prototype.labelText_="Remaining Time",fr.prototype.controlText_="Remaining Time",_e.registerComponent("RemainingTimeDisplay",fr);var vr=function(t){function e(n,r){D(this,e);var i=L(this,t.call(this,n,r));return i.updateShowing(),i.on(i.player(),"durationchange",i.updateShowing),i}return R(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=st("div",{className:"vjs-live-display",innerHTML:''+this.localize("Stream Type")+" "+this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.dispose=function(){this.contentEl_=null,t.prototype.dispose.call(this)},e.prototype.updateShowing=function(t){this.player().duration()===1/0?this.show():this.hide()},e}(_e);_e.registerComponent("LiveDisplay",vr);var yr=function(t){function e(n,r){D(this,e);var i=L(this,t.call(this,n,r));return i.bar=i.getChild(i.options_.barName),i.vertical(!!i.options_.vertical),i.enable(),i}return R(e,t),e.prototype.enabled=function(){return this.enabled_},e.prototype.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this.on("click",this.handleClick),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},e.prototype.disable=function(){if(this.enabled()){var t=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},e.prototype.createEl=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.className=n.className+" vjs-slider",n=W({tabIndex:0},n),r=W({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},r),t.prototype.createEl.call(this,e,n,r)},e.prototype.handleMouseDown=function(t){var e=this.bar.el_.ownerDocument;"mousedown"===t.type&&t.preventDefault(),"touchstart"!==t.type||E||t.preventDefault(),mt(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(e,"mousemove",this.handleMouseMove),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchmove",this.handleMouseMove),this.on(e,"touchend",this.handleMouseUp),this.handleMouseMove(t)},e.prototype.handleMouseMove=function(t){},e.prototype.handleMouseUp=function(){var t=this.bar.el_.ownerDocument;_t(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),this.update()},e.prototype.update=function(){if(this.el_){var t=this.getPercent(),e=this.bar;if(e){("number"!==typeof t||t!==t||t<0||t===1/0)&&(t=0);var n=(100*t).toFixed(2)+"%",r=e.el().style;return this.vertical()?r.height=n:r.width=n,t}}},e.prototype.calculateDistance=function(t){var e=Ct(this.el_,t);return this.vertical()?e.y:e.x},e.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},e.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepBack()):38!==t.which&&39!==t.which||(t.preventDefault(),this.stepForward())},e.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},e.prototype.handleClick=function(t){t.stopImmediatePropagation(),t.preventDefault()},e.prototype.vertical=function(t){if(void 0===t)return this.vertical_||!1;this.vertical_=!!t,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},e}(_e);_e.registerComponent("Slider",yr);var gr=function(t){function e(n,r){D(this,e);var i=L(this,t.call(this,n,r));return i.partEls_=[],i.on(n,"progress",i.update),i}return R(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:''+this.localize("Loaded")+": 0%"})},e.prototype.dispose=function(){this.partEls_=null,t.prototype.dispose.call(this)},e.prototype.update=function(t){var e=this.player_.buffered(),n=this.player_.duration(),r=this.player_.bufferedEnd(),i=this.partEls_,o=function(t,e){var n=t/e||0;return 100*(n>=1?1:n)+"%"};this.el_.style.width=o(r,n);for(var s=0;se.length;u--)this.el_.removeChild(i[u-1]);i.length=e.length},e}(_e);_e.registerComponent("LoadProgressBar",gr);var mr=function(t){function e(){return D(this,e),L(this,t.apply(this,arguments))}return R(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"})},e.prototype.update=function(t,e,n){var r=bt(this.el_),i=bt(this.player_.el()),o=t.width*e;if(i&&r){var s=t.left-i.left+o,a=t.width-o+(i.right-t.right),l=r.width/2;sr.width&&(l=r.width),this.el_.style.right="-"+l+"px",at(this.el_,n)}},e}(_e);_e.registerComponent("TimeTooltip",mr);var _r=function(t){function e(){return D(this,e),L(this,t.apply(this,arguments))}return R(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:''+this.localize("Progress")+": 0%"})},e.prototype.update=function(t,e){var n=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame((function(){var r=n.player_.scrubbing()?n.player_.getCache().currentTime:n.player_.currentTime(),i=cr(r,n.player_.duration()),o=n.getChild("timeTooltip");o&&o.update(t,e,i)}))},e}(_e);_r.prototype.options_={children:[]},x&&!(x>8)||g||_||_r.prototype.options_.children.push("timeTooltip"),_e.registerComponent("PlayProgressBar",_r);var br=function(t){function e(n,r){D(this,e);var i=L(this,t.call(this,n,r));return i.update=ne(ee(i,i.update),25),i}return R(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},e.prototype.update=function(t,e){var n=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame((function(){var r=n.player_.duration(),i=cr(e*r,r);n.el_.style.left=t.width*e+"px",n.getChild("timeTooltip").update(t,e,i)}))},e}(_e);br.prototype.options_={children:["timeTooltip"]},_e.registerComponent("MouseTimeDisplay",br);var Tr=5,Cr=30,kr=function(t){function e(n,r){D(this,e);var i=L(this,t.call(this,n,r));return i.setEventHandlers_(),i}return R(e,t),e.prototype.setEventHandlers_=function(){var t=this;this.update=ne(ee(this,this.update),Cr),this.on(this.player_,"timeupdate",this.update),this.on(this.player_,"ended",this.handleEnded),this.updateInterval=null,this.on(this.player_,["playing"],(function(){t.clearInterval(t.updateInterval),t.updateInterval=t.setInterval((function(){t.requestAnimationFrame((function(){t.update()}))}),Cr)})),this.on(this.player_,["ended","pause","waiting"],(function(){t.clearInterval(t.updateInterval)})),this.on(this.player_,["timeupdate","ended"],this.update)},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},e.prototype.update_=function(t,e){var n=this.player_.duration();this.el_.setAttribute("aria-valuenow",(100*e).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[cr(t,n),cr(n,n)],"{1} of {2}")),this.bar.update(bt(this.el_),e)},e.prototype.update=function(e){var n=t.prototype.update.call(this);return this.update_(this.getCurrentTime_(),n),n},e.prototype.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},e.prototype.handleEnded=function(t){this.update_(this.player_.duration(),1)},e.prototype.getPercent=function(){var t=this.getCurrentTime_()/this.player_.duration();return t>=1?1:t},e.prototype.handleMouseDown=function(e){xt(e)&&(e.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),t.prototype.handleMouseDown.call(this,e))},e.prototype.handleMouseMove=function(t){if(xt(t)){var e=this.calculateDistance(t)*this.player_.duration();e===this.player_.duration()&&(e-=.1),this.player_.currentTime(e)}},e.prototype.enable=function(){t.prototype.enable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.show()},e.prototype.disable=function(){t.prototype.disable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.hide()},e.prototype.handleMouseUp=function(e){t.prototype.handleMouseUp.call(this,e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying&&Ie(this.player_.play())},e.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+Tr)},e.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-Tr)},e.prototype.handleAction=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},e.prototype.handleKeyPress=function(e){32===e.which||13===e.which?(e.preventDefault(),this.handleAction(e)):t.prototype.handleKeyPress&&t.prototype.handleKeyPress.call(this,e)},e}(yr);kr.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},x&&!(x>8)||g||_||kr.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),kr.prototype.playerEvent="timeupdate",_e.registerComponent("SeekBar",kr);var wr=function(t){function e(n,r){D(this,e);var i=L(this,t.call(this,n,r));return i.handleMouseMove=ne(ee(i,i.handleMouseMove),25),i.throttledHandleMouseSeek=ne(ee(i,i.handleMouseSeek),25),i.enable(),i}return R(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},e.prototype.handleMouseMove=function(t){var e=this.getChild("seekBar");if(e){var n=e.getChild("mouseTimeDisplay"),r=e.el(),i=bt(r),o=Ct(r,t).x;o>1?o=1:o<0&&(o=0),n&&n.update(i,o)}},e.prototype.handleMouseSeek=function(t){var e=this.getChild("seekBar");e&&e.handleMouseMove(t)},e.prototype.enabled=function(){return this.enabled_},e.prototype.disable=function(){this.children().forEach((function(t){return t.disable&&t.disable()})),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},e.prototype.enable=function(){this.children().forEach((function(t){return t.enable&&t.enable()})),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},e.prototype.handleMouseDown=function(t){var e=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(t),this.on(e,"mousemove",this.throttledHandleMouseSeek),this.on(e,"touchmove",this.throttledHandleMouseSeek),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchend",this.handleMouseUp)},e.prototype.handleMouseUp=function(t){var e=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseUp(t),this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchend",this.handleMouseUp)},e}(_e);wr.prototype.options_={children:["seekBar"]},_e.registerComponent("ProgressControl",wr);var Er=function(t){function e(n,r){D(this,e);var i=L(this,t.call(this,n,r));return i.on(n,"fullscreenchange",i.handleFullscreenChange),!1===o[Ee.fullscreenEnabled]&&i.disable(),i}return R(e,t),e.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleFullscreenChange=function(t){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},e.prototype.handleClick=function(t){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},e}(er);Er.prototype.controlText_="Fullscreen",_e.registerComponent("FullscreenToggle",Er);var Sr=function(t,e){e.tech_&&!e.tech_.featuresVolumeControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",(function(){e.tech_.featuresVolumeControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")}))},jr=function(t){function e(){return D(this,e),L(this,t.apply(this,arguments))}return R(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:''})},e}(_e);_e.registerComponent("VolumeLevel",jr);var xr=function(t){function e(n,r){D(this,e);var i=L(this,t.call(this,n,r));return i.on("slideractive",i.updateLastVolume_),i.on(n,"volumechange",i.updateARIAAttributes),n.ready((function(){return i.updateARIAAttributes()})),i}return R(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},e.prototype.handleMouseDown=function(e){xt(e)&&t.prototype.handleMouseDown.call(this,e)},e.prototype.handleMouseMove=function(t){xt(t)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(t)))},e.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},e.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},e.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},e.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},e.prototype.updateARIAAttributes=function(t){var e=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",e),this.el_.setAttribute("aria-valuetext",e+"%")},e.prototype.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},e.prototype.updateLastVolume_=function(){var t=this,e=this.player_.volume();this.one("sliderinactive",(function(){0===t.player_.volume()&&t.player_.lastVolume_(e)}))},e}(yr);xr.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},xr.prototype.playerEvent="volumechange",_e.registerComponent("VolumeBar",xr);var Pr=function(t){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};D(this,e),r.vertical=r.vertical||!1,("undefined"===typeof r.volumeBar||$(r.volumeBar))&&(r.volumeBar=r.volumeBar||{},r.volumeBar.vertical=r.vertical);var i=L(this,t.call(this,n,r));return Sr(i,n),i.throttledHandleMouseMove=ne(ee(i,i.handleMouseMove),25),i.on("mousedown",i.handleMouseDown),i.on("touchstart",i.handleMouseDown),i.on(i.volumeBar,["focus","slideractive"],(function(){i.volumeBar.addClass("vjs-slider-active"),i.addClass("vjs-slider-active"),i.trigger("slideractive")})),i.on(i.volumeBar,["blur","sliderinactive"],(function(){i.volumeBar.removeClass("vjs-slider-active"),i.removeClass("vjs-slider-active"),i.trigger("sliderinactive")})),i}return R(e,t),e.prototype.createEl=function(){var e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+e})},e.prototype.handleMouseDown=function(t){var e=this.el_.ownerDocument;this.on(e,"mousemove",this.throttledHandleMouseMove),this.on(e,"touchmove",this.throttledHandleMouseMove),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchend",this.handleMouseUp)},e.prototype.handleMouseUp=function(t){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseMove),this.off(e,"touchmove",this.throttledHandleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchend",this.handleMouseUp)},e.prototype.handleMouseMove=function(t){this.volumeBar.handleMouseMove(t)},e}(_e);Pr.prototype.options_={children:["volumeBar"]},_e.registerComponent("VolumeControl",Pr);var Ar=function(t,e){e.tech_&&!e.tech_.featuresMuteControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",(function(){e.tech_.featuresMuteControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")}))},Or=function(t){function e(n,r){D(this,e);var i=L(this,t.call(this,n,r));return Ar(i,n),i.on(n,["loadstart","volumechange"],i.update),i}return R(e,t),e.prototype.buildCSSClass=function(){return"vjs-mute-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(t){var e=this.player_.volume(),n=this.player_.lastVolume_();if(0===e){var r=n<.1?.1:n;this.player_.volume(r),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},e.prototype.update=function(t){this.updateIcon_(),this.updateControlText_()},e.prototype.updateIcon_=function(){var t=this.player_.volume(),e=3;g&&this.player_.muted(this.player_.tech_.el_.muted),0===t||this.player_.muted()?e=0:t<.33?e=1:t<.67&&(e=2);for(var n=0;n<4;n++)ht(this.el_,"vjs-vol-"+n);ut(this.el_,"vjs-vol-"+e)},e.prototype.updateControlText_=function(){var t=this.player_.muted()||0===this.player_.volume(),e=t?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)},e}(er);Or.prototype.controlText_="Mute",_e.registerComponent("MuteToggle",Or);var Mr=function(t){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};D(this,e),"undefined"!==typeof r.inline?r.inline=r.inline:r.inline=!0,("undefined"===typeof r.volumeControl||$(r.volumeControl))&&(r.volumeControl=r.volumeControl||{},r.volumeControl.vertical=!r.inline);var i=L(this,t.call(this,n,r));return i.on(n,["loadstart"],i.volumePanelState_),i.on(i.volumeControl,["slideractive"],i.sliderActive_),i.on(i.volumeControl,["sliderinactive"],i.sliderInactive_),i}return R(e,t),e.prototype.sliderActive_=function(){this.addClass("vjs-slider-active")},e.prototype.sliderInactive_=function(){this.removeClass("vjs-slider-active")},e.prototype.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},e.prototype.createEl=function(){var e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),t.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+e})},e}(_e);Mr.prototype.options_={children:["muteToggle","volumeControl"]},_e.registerComponent("VolumePanel",Mr);var Nr=function(t){function e(n,r){D(this,e);var i=L(this,t.call(this,n,r));return r&&(i.menuButton_=r.menuButton),i.focusedChild_=-1,i.on("keydown",i.handleKeyPress),i}return R(e,t),e.prototype.addItem=function(t){this.addChild(t),t.on("click",ee(this,(function(e){this.menuButton_&&(this.menuButton_.unpressButton(),"CaptionSettingsMenuItem"!==t.name()&&this.menuButton_.focus())})))},e.prototype.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=st(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=t.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),Ut(n,"click",(function(t){t.preventDefault(),t.stopImmediatePropagation()})),n},e.prototype.dispose=function(){this.contentEl_=null,t.prototype.dispose.call(this)},e.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepForward()):38!==t.which&&39!==t.which||(t.preventDefault(),this.stepBack())},e.prototype.stepForward=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_+1),this.focus(t)},e.prototype.stepBack=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_-1),this.focus(t)},e.prototype.focus=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=this.children().slice(),n=e.length&&e[0].className&&/vjs-menu-title/.test(e[0].className);n&&e.shift(),e.length>0&&(t<0?t=0:t>=e.length&&(t=e.length-1),this.focusedChild_=t,e[t].el_.focus())},e}(_e);_e.registerComponent("Menu",Nr);var Ir=function(t){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};D(this,e);var i=L(this,t.call(this,n,r));i.menuButton_=new er(n,r),i.menuButton_.controlText(i.controlText_),i.menuButton_.el_.setAttribute("aria-haspopup","true");var o=er.prototype.buildCSSClass();return i.menuButton_.el_.className=i.buildCSSClass()+" "+o,i.menuButton_.removeClass("vjs-control"),i.addChild(i.menuButton_),i.update(),i.enabled_=!0,i.on(i.menuButton_,"tap",i.handleClick),i.on(i.menuButton_,"click",i.handleClick),i.on(i.menuButton_,"focus",i.handleFocus),i.on(i.menuButton_,"blur",i.handleBlur),i.on("keydown",i.handleSubmenuKeyPress),i}return R(e,t),e.prototype.update=function(){var t=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=t,this.addChild(t),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},e.prototype.createMenu=function(){var t=new Nr(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var e=st("li",{className:"vjs-menu-title",innerHTML:ye(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,t.children_.unshift(e),lt(e,t.contentEl())}if(this.items=this.createItems(),this.items)for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:this.menuButton_.el();return this.menuButton_.controlText(t,e)},e.prototype.handleClick=function(t){this.one(this.menu.contentEl(),"mouseleave",ee(this,(function(t){this.unpressButton(),this.el_.blur()}))),this.buttonPressed_?this.unpressButton():this.pressButton()},e.prototype.focus=function(){this.menuButton_.focus()},e.prototype.blur=function(){this.menuButton_.blur()},e.prototype.handleFocus=function(){Ut(o,"keydown",ee(this,this.handleKeyPress))},e.prototype.handleBlur=function(){$t(o,"keydown",ee(this,this.handleKeyPress))},e.prototype.handleKeyPress=function(t){27===t.which||9===t.which?(this.buttonPressed_&&this.unpressButton(),9!==t.which&&(t.preventDefault(),this.menuButton_.el_.focus())):38!==t.which&&40!==t.which||this.buttonPressed_||(this.pressButton(),t.preventDefault())},e.prototype.handleSubmenuKeyPress=function(t){27!==t.which&&9!==t.which||(this.buttonPressed_&&this.unpressButton(),9!==t.which&&(t.preventDefault(),this.menuButton_.el_.focus()))},e.prototype.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),g&&it())return;this.menu.focus()}},e.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},e.prototype.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},e.prototype.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},e}(_e);_e.registerComponent("MenuButton",Ir);var Dr=function(t){function e(n,r){D(this,e);var i=r.tracks,o=L(this,t.call(this,n,r));if(o.items.length<=1&&o.hide(),!i)return L(o);var s=ee(o,o.update);return i.addEventListener("removetrack",s),i.addEventListener("addtrack",s),o.player_.on("ready",s),o.player_.on("dispose",(function(){i.removeEventListener("removetrack",s),i.removeEventListener("addtrack",s)})),o}return R(e,t),e}(Ir);_e.registerComponent("TrackButton",Dr);var Rr=function(t){function e(n,r){D(this,e);var i=L(this,t.call(this,n,r));return i.selectable=r.selectable,i.isSelected_=r.selected||!1,i.multiSelectable=r.multiSelectable,i.selected(i.isSelected_),i.selectable?i.multiSelectable?i.el_.setAttribute("role","menuitemcheckbox"):i.el_.setAttribute("role","menuitemradio"):i.el_.setAttribute("role","menuitem"),i}return R(e,t),e.prototype.createEl=function(e,n,r){return this.nonIconControl=!0,t.prototype.createEl.call(this,"li",W({className:"vjs-menu-item",innerHTML:''+this.localize(this.options_.label)+"",tabIndex:-1},n),r)},e.prototype.handleClick=function(t){this.selected(!0)},e.prototype.selected=function(t){this.selectable&&(t?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},e}(Xn);_e.registerComponent("MenuItem",Rr);var Lr=function(t){function e(n,r){D(this,e);var s=r.track,a=n.textTracks();r.label=s.label||s.language||"Unknown",r.selected="showing"===s.mode;var l=L(this,t.call(this,n,r));l.track=s;var c=function(){for(var t=arguments.length,e=Array(t),n=0;n-1?"showing"!==s.mode&&(s.mode="showing"):"disabled"!==s.mode&&(s.mode="disabled")}},e.prototype.handleTracksChange=function(t){var e="showing"===this.track.mode;e!==this.isSelected_&&this.selected(e)},e.prototype.handleSelectedLanguageChange=function(t){if("showing"===this.track.mode){var e=this.player_.cache_.selectedLanguage;if(e&&e.enabled&&e.language===this.track.language&&e.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},e.prototype.dispose=function(){this.track=null,t.prototype.dispose.call(this)},e}(Rr);_e.registerComponent("TextTrackMenuItem",Lr);var Br=function(t){function e(n,r){return D(this,e),r.track={player:n,kind:r.kind,kinds:r.kinds,default:!1,mode:"disabled"},r.kinds||(r.kinds=[r.kind]),r.label?r.track.label=r.label:r.track.label=r.kinds.join(" and ")+" off",r.selectable=!0,r.multiSelectable=!1,L(this,t.call(this,n,r))}return R(e,t),e.prototype.handleTracksChange=function(t){for(var e=this.player().textTracks(),n=!0,r=0,i=e.length;r-1&&"showing"===o.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},e.prototype.handleSelectedLanguageChange=function(t){for(var e=this.player().textTracks(),n=!0,r=0,i=e.length;r-1&&"showing"===o.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},e}(Lr);_e.registerComponent("OffTextTrackMenuItem",Br);var Fr=function(t){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return D(this,e),r.tracks=n.textTracks(),L(this,t.call(this,n,r))}return R(e,t),e.prototype.createItems=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Lr,n=void 0;this.label_&&(n=this.label_+" off"),t.push(new Br(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var r=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var i=0;i-1){var s=new e(this.player_,{track:o,selectable:!0,multiSelectable:!1});s.addClass("vjs-"+o.kind+"-menu-item"),t.push(s)}}return t},e}(Dr);_e.registerComponent("TextTrackButton",Fr);var Hr=function(t){function e(n,r){D(this,e);var i=r.track,o=r.cue,s=n.currentTime();r.selectable=!0,r.multiSelectable=!1,r.label=o.text,r.selected=o.startTime<=s&&s=0;e--){var n=t[e];if(n.kind===this.kind_)return n}},e.prototype.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(ye(this.kind_))},e.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),t.prototype.createMenu.call(this)},e.prototype.createItems=function(){var t=[];if(!this.track_)return t;var e=this.track_.cues;if(!e)return t;for(var n=0,r=e.length;n