(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-bee21f12"],{
/***/"01ec":
/***/function(e,t,a){"use strict";
/* harmony import */a("fe21");
/* harmony import */},
/***/"478a":
/***/function(e,t,a){"use strict";
/* harmony import */a("edaa");
/* harmony import */},
/***/"88d3":
/***/function(e,t,a){"use strict";
// ESM COMPAT FLAG
a.r(t);
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"411544a2-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/pages/ISMDisPlay/pageViewLogin.vue?vue&type=template&id=7125e70e
var i=a("ade3"),n=a("5530"),o=(a("7db0"),a("caad"),a("a15b"),a("14d9"),a("b64b"),a("d3b7"),a("4d63"),a("c607"),a("ac1f"),a("2c3e"),a("25f0"),a("2532"),a("5319"),a("9911"),a("0643"),a("fffc"),a("4e3e"),a("159b"),a("cf45")),s=a("6c65"),r=a("4360"),c=a("2f62"),l=a("e5d9"),d=a("a026"),u=a("1d40"),g=a("3e2f"),p=a("4d3f"),f=a("5728"),v=a("b775"),h=a("600d"),D=a("c67c"),m=a.n(D),S=a("fb13"),C="updatable";d.default.use(l.a);
/* harmony default export */var U={name:"ISMRenderLogin",extends:s.a,i18n:a("89fe"),components:{},props:{showUuid:{type:String,required:!0},showDeviceUuid:{type:String,required:!0}},watch:{showUuid:{handler:function(e,t){if(""!=e){var a=this,i={pageType:1,displayUUID:e,pageUuid:this.showPageUUID};a.chargePage=!0,this.$message.loading({content:"Loading...",loadingKey:C,duration:0}),this.selectDisplayPageDataStruct({page:i,callback:function(){a.$message.destroy(),a.chargePage=!1}}),this.showUuid=e}},deep:!0},fullScreen:{handler:function(e,t){var a=this;0==e&&(document.getElementById("popContainer").style.overflow="visible");1==this.configData.layer.autoSize&&setTimeout((function(){a.setScale()}),1e3)},deep:!0}},computed:Object(n.a)(Object(n.a)(Object(n.a)(Object(n.a)({},Object(c.e)("setting",["langList","isMobile","lang"])),Object(c.c)("account",["user"])),Object(c.e)({selectedValue:function(e){return r.a.state.ISMDisPlayEditorTool.selectedValue},configData:function(e){return r.a.state.ISMDisPlayEditorTool.LayerData},PopUpConfigData:function(e){return r.a.state.ISMDisPlayEditorTool.PopUpConfigData}})),{},{layerStyle:function(){var e=["transform:scale(".concat(1,")")];return this.configData.layer.backColor&&e.push("background-color: ".concat(this.configData.layer.backColor)),this.configData.layer.backgroundImage&&(e.push('background-image: url("'.concat(this.configData.layer.backgroundImage,'")')),e.push("background-size:100% 100%")),this.configData.layer.width>0&&e.push("width: ".concat(this.configData.layer.width,"px")),this.configData.layer.height>0&&e.push("height: ".concat(this.configData.layer.height,"px")),e.join(";")}}),data:function(){return{tempAutoSize:0,tempAutoPadding:0,SelectCurrentNodeData:null,ISMPopUpRunningContainer:null,ISMRuningLoginCavasContainer:null,chargePage:!1,Zoom:100,clickTimer:null,linkInfoExternal:{url:"",width:1024,height:768},chargePagePopUp:!1,isExternUrl:!1,isPopUpOpen:!1,SelectDeviceUuid:"",showPageUUID:"",showAppUUID:"",deviceUuid:"",SetPassword:"",AutoSetValue:"",setDataUuid:"",settingVisible:!1,settingLoading:!1,SetForm:this.$form.createForm(this),SetFormPassword:this.$form.createForm(this),fullScreen:!1}},created:function(){this.addListener(),""!=this.showUuid&&(this.chargePage=!0),this.getDisplayLoginPage()},methods:Object(n.a)(Object(n.a)(Object(n.a)(Object(n.a)({},Object(c.d)("ISMDisPlayEditorTool",["setlayerZoom"])),Object(c.d)("account",["setUser","setPermissions","setRoles"])),Object(c.b)("ISMDisPlayEditorTool",["getLoginLayerDataStruct"])),{},{RunLoginCavasContainerInit:function(e,t){var a=this,i=this,n=1==e,o=1==t;null!=this.ISMRuningLoginCavasContainer&&(this.ISMRuningLoginCavasContainer.dispose(),this.ISMRuningLoginCavasContainer=null),Object(g.a)({shape:"view-ism-group-node",width:100,height:100,component:p.a,data:{locked:!1,UpdateNodeFlag:!0,editMode:!0,showDeviceUuid:"",IsToolBox:!1,detail:p.a}}),this.ISMRuningLoginCavasContainer=new f.d({container:this.$refs.ISMRunningLoginContainer,width:i.configData.layer.width,height:i.configData.layer.height,panning:o,mousewheel:o,autoResize:n,grid:!1,connecting:{router:"manhattan",connector:{name:"rounded",args:{radius:8}},anchor:"center",connectionPoint:"anchor",allowBlank:!1,snap:!1},background:{color:i.configData.layer.backColor,
// 背景底色（可选）
image:i.configData.layer.backgroundImage,size:"cover",repeat:"no-repeat",quality:1},interacting:function(e){return{nodeMovable:!1,magnetConnectable:!1,
// 禁止节点移动
edgeMovable:!1,
// 禁止边移动
edgeLabelMovable:!1,
// 禁止箭头移动
arrowheadMovable:!1,
// 禁止顶点移动
vertexMovable:!1,
// 禁止添加顶点
vertexAddable:!1,
// 禁止删除顶点
vertexDeletable:!1}}}),this.ISMRuningLoginCavasContainer.off("node:click"),this.ISMRuningLoginCavasContainer.off("node:dblclick"),this.ISMRuningLoginCavasContainer.off("node:mousedown"),this.ISMRuningLoginCavasContainer.off("node:mouseup"),this.ISMRuningLoginCavasContainer.off("node:mouseenter"),this.ISMRuningLoginCavasContainer.off("node:mouseleave"),this.ISMRuningLoginCavasContainer.off("render:done"),this.ISMRuningLoginCavasContainer.off("blank:contextmenu"),this.ISMRuningLoginCavasContainer.off("cell:contextmenu"),this.ISMRuningLoginCavasContainer.off("scale"),window.removeEventListener("resize",this.setScale),window.addEventListener("resize",this.setScale),this.ISMRuningLoginCavasContainer.on("scale",(function(e){})),
this.ISMRuningLoginCavasContainer.on("node:click",(function(e){e.e,e.x,e.y;var t=e.node,a=(e.view,t.prop().data.detail);i.SelectCurrentNodeData=a,i.doComponentAction(a,"click")})),this.ISMRuningLoginCavasContainer.on("node:dblclick",(function(e){e.e,e.x,e.y;var t=e.node,a=(e.view,t.prop().data.detail);i.SelectCurrentNodeData=a,i.doComponentAction(a,"dblclick")})),this.ISMRuningLoginCavasContainer.on("node:mousedown",(function(e){e.e,e.x,e.y;var t=e.node,a=(e.view,t.prop().data.detail);i.SelectCurrentNodeData=a,i.doComponentAction(a,"mousedown")})),this.ISMRuningLoginCavasContainer.on("node:mouseup",(function(e){e.e,e.x,e.y;var t=e.node,a=(e.view,t.prop().data.detail);i.SelectCurrentNodeData=a,i.doComponentAction(a,"mouseup")})),this.ISMRuningLoginCavasContainer.on("node:mouseenter",(function(e){e.e,e.x,e.y;var t=e.node,a=(e.view,t.prop().data.detail);i.SelectCurrentNodeData=a,i.doComponentAction(a,"mouseenter")})),this.ISMRuningLoginCavasContainer.on("node:mouseleave",(function(e){e.e,e.x,e.y;var t=e.node,a=(e.view,t.prop().data.detail);i.SelectCurrentNodeData=a,i.doComponentAction(a,"mouseleave")})),
//页面空白处右键菜单
this.ISMRuningLoginCavasContainer.on("blank:contextmenu",(function(e){var t=e.e;e.x,e.y,e.cell,e.view;a.onContextLayerMenu(t)})),this.ISMRuningLoginCavasContainer.on("cell:contextmenu",(function(e){var t=e.e;e.x,e.y,e.cell,e.view;a.onContextLayerMenu(t)})),
//==============================
//监听页面是否渲染完成，完成后就发广播给节点，告诉节点是在编辑模式
this.ISMRuningLoginCavasContainer.on("render:done",(function(){a.tempAutoSize=a.configData.layer.autoSize,a.setScale(),a.$EventBus.$emit("cell-editMode",{edit:!1,toolbox:!1}),a.$EventBus.$emit("cell-vuex",{PMapState:c.e,PMapActions:c.b,PMapMutations:c.d,PStore:a.$store,loginUuid:a.showUuid,PRouter:a.$router})}));try{i.ISMRuningLoginCavasContainer.fromJSON(i.configData.components)}catch(e){i.$message.error(i.$t("Render.GetPageError"))}},formatDateTime:function(e){var t=new Date(e);return Object(o.a)(t,"yyyy-MM-dd hh:mm:ss")},loadPager:function(){var e=this;""!=this.showUuid&&(""!=this.showToken?(this.chargePage=!0,this.$message.loading({content:"Loading...",loadingKey:C,duration:0}),this.CurrentRealUUIDList=[],this.CurrentModelUUIDList=[],this.getLayerDataStructByTokenData({pageType:this.isMobile,token:this.showToken,uuid:this.showUuid,cb:function(t,a,i,n,o,s){if(document.title=e.configData.AppName,e.$message.destroy(),e.chargePage=!1,0==t)Object(v.h)({token:a},v.a.AUTH1),Object(v.h)({token:n,expireAt:i}),Object(v.h)({token:e.showToken},v.a.AUTH3);else{if(-5==t)return document.title=e.$t("displayConfig.Properties.NoAuth"),void e.$message.warn(e.$t("displayConfig.Properties.NoAuth"));if(-4==t)return document.title=e.$t("displayConfig.Properties.NoToken"),void e.$message.warn(e.$t("displayConfig.Properties.NoToken"))}e.RunCavasContainerInit(e.configData.layer.autoSize,e.configData.layer.Padding),setTimeout((function(){for(var t=[],a=0;a<o.length;a++)void 0!==o[a]&&o[a].length>0&&t.push(o[a]);for(var i=[],n=0;n<s.length;n++)void 0!==s[n]&&s[n].length>0&&i.push(s[n]);Object(h.l)({uuid:t,devices:i}).then((function(t){if(e.settingLoading=!1,0==t.data.code)for(var a=0;a<t.data.realData.length;a++)if(""!=t.data.realData[a].value){var i={DeviceUuid:t.data.realData[a].duid,ProjectUuid:t.data.realData[a].project_uuid,Cmd:"RealData",Data:[]};e.CurrentRealUUIDList.push(t.data.realData[a].uuid),e.CurrentModelUUIDList.push(t.data.realData[a].mduid);var n={Uuid:t.data.realData[a].uuid,ModelDataUuid:t.data.realData[a].mduid,Value:t.data.realData[a].value};i.Data.push(n),e.$EventBus.$emit("readDataPush",i)}}))}),300)}})):(this.$message.loading({content:"Loading...",loadingKey:C,duration:0}),this.CurrentRealUUIDList=[],this.CurrentModelUUIDList=[],this.getLayerDataStruct({pageType:this.isMobile,uuid:this.showUuid,cb:function(t,a,i,n){document.title=e.configData.AppName,0==t?Object(v.c)(v.a.AUTH1)||Object(v.h)({token:a},v.a.AUTH1):e.$router.push("/login"),e.$message.destroy(),e.RunCavasContainerInit(e.configData.layer.autoSize,e.configData.layer.Padding),setTimeout((function(){for(var t=[],a=0;a<i.length;a++)void 0!==i[a]&&i[a].length>0&&t.push(i[a]);for(var o=[],s=0;s<n.length;s++)void 0!==n[s]&&n[s].length>0&&o.push(n[s]);Object(h.l)({uuid:t,devices:o}).then((function(t){if(e.settingLoading=!1,0==t.data.code)for(var a=0;a<t.data.realData.length;a++)if(""!=t.data.realData[a].value){var i={DeviceUuid:t.data.realData[a].duid,ProjectUuid:t.data.realData[a].project_uuid,Cmd:"RealData",Data:[]};e.CurrentRealUUIDList.push(t.data.realData[a].uuid),e.CurrentModelUUIDList.push(t.data.realData[a].mduid);var n={Uuid:t.data.realData[a].uuid,ModelDataUuid:t.data.realData[a].mduid,Value:t.data.realData[a].value};i.Data.push(n),e.$EventBus.$emit("readDataPush",i)}}))}),300)}})))},onKeyPress:function(e){"{enter}"!==e&&"{close}"!==e||this.closekeyboard()},
// inpuit获取焦点显示虚拟键盘
onInputFocus:function(e){this.showKeyboard=!0,this.changeIpt=e,
// 父组件调用子组件的方法
this.$refs.SimpleKeyboard.onKeyPress("{clear}")},
// 给输入框赋值
onChangeKeyboard:function(e){"SetPassword"==this.changeIpt?this.SetPasswordFormValue=e:"SetValue"==this.changeIpt?this.SetValueFormValue=e:"SetAutoPassword"==this.changeIpt?this.SetAutoPasswordFormValue=e:"SetActionPassword"==this.changeIpt&&(this.ActionPasswordValue=e)},
// 点击关闭隐藏键盘
closekeyboard:function(){this.showKeyboard=!1},onContextLayerMenu:function(e){var t=this,a=this;if(!this.isCommentRightClick)return this.$contextmenu({items:[{label:a.$t("Render.FullScreen"),icon:"el-icon-full-screen",onClick:function(){a.inFullScreen()}},{label:a.$t("Render.ExitFullScreen"),icon:"el-icon-tuichuquanping",onClick:function(){a.outFullScreen()}},{label:a.$t("Render.Reload"),icon:"el-icon-lunxun",onClick:function(){a.loadPager()}},{label:a.tempAutoSize?a.$t("Render.ScreenUndo"):a.$t("Render.AutoSize"),icon:"el-icon-agora_zishiyingshipinfenbianshuai",onClick:function(){a.tempAutoSize=!a.tempAutoSize,a.setScale()}},{label:a.tempAutoPadding?a.$t("Render.NodeDragDisable"):a.$t("Render.NodeDragEnable"),icon:a.tempAutoPadding?"el-icon-jinzhi":"el-icon-tuodong",onClick:function(){a.tempAutoPadding=!a.tempAutoPadding,t.ISMRuningLoginCavasContainer.togglePanning(a.tempAutoPadding),t.ISMRuningLoginCavasContainer.toggleMouseWheel(a.tempAutoPadding)}}],event:e,
// 鼠标事件信息
divided:!0,customClass:"custom-class",
// 自定义菜单 class
zIndex:1e4,
// 菜单样式 z-index
minWidth:230}),!1},alarmSoundSpeech:function(){var e=new SpeechSynthesisUtterance;return{start:function(t,a){var i=localStorage.getItem("Speech");if("null"==i||null==i||""==i?((i={}).enable=!0,i.speed=1):i=JSON.parse(i),i.enable){void 0===t.Lang||t.Lang;""!=a&&(e.text=a,e.lang="zh-CN",e.pitch=2,e.rate=i.speed,speechSynthesis.speak(e))}}}},inFullScreen:function(){var e=document.body;return document.getElementById("popContainer").style.overflow="auto",e.requestFullscreen?(e.requestFullscreen(),!0):e.webkitRequestFullScreen?(e.webkitRequestFullScreen(),!0):e.mozRequestFullScreen?(e.mozRequestFullScreen(),!0):e.msRequestFullscreen?(e.msRequestFullscreen(),!0):(this.$message.warn("对不起，您的浏览器不支持全屏模式"),!1)},outFullScreen:function(){var e=document.body;document.getElementById("popContainer").style.overflow="visible",e.exitFullscreen?e.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen(),this.$refs.ismrender.classList.remove("beauty-scroll")},addListener:function(){document.addEventListener("fullscreenchange",this.fullScreenListener),document.addEventListener("webkitfullscreenchange",this.fullScreenListener),document.addEventListener("mozfullscreenchange",this.fullScreenListener),document.addEventListener("msfullscreenchange",this.fullScreenListener)},removeListener:function(){document.removeEventListener("fullscreenchange",this.fullScreenListener),document.removeEventListener("webkitfullscreenchange",this.fullScreenListener),document.removeEventListener("mozfullscreenchange",this.fullScreenListener),document.removeEventListener("msfullscreenchange",this.fullScreenListener)},fullScreenListener:function(e){(
// const el = document.body
this.fullScreen=document.body.fullScreen||document.mozFullScreen||document.webkitIsFullScreen,this.fullScreen)||(document.getElementById("popContainer").style.overflow="visible")},componentRightClick:function(e){
//this.$refs.componentMenu.showContextMenu($event.pageX,$event.pageY)
},componentRightDialogClick:function(e){
//this.$refs.componentMenuDialog.showContextMenu($event.pageX,$event.pageY)
},setScreenUndoDialog:function(){var e=this.$refs.ismrender1,t=this.getScale();t[0]=1,t[1]=1,e.style.transform="scale("+t[0]+","+t[1]+")"},
// 设置比例
setScale:function(){if(1==this.tempAutoSize){this.ISMRuningLoginCavasContainer.resize(window.innerWidth,window.innerHeight);var e=window.innerWidth/this.configData.layer.width,t=window.innerHeight/this.configData.layer.height;this.ISMRuningLoginCavasContainer.scale(e,t)}else this.ISMRuningLoginCavasContainer.resize(this.configData.layer.width,this.configData.layer.height),this.ISMRuningLoginCavasContainer.scale(1,1)},ActionSoundSpeech:function(){var e=new SpeechSynthesisUtterance;return{start:function(t,a){var i=localStorage.getItem("Speech");if("null"==i||null==i||""==i?((i={}).enable=!0,i.speed=1):i=JSON.parse(i),i.enable){void 0===t.Lang||t.Lang;""!=a&&(e.text=a,e.lang="zh-CN",e.pitch=2,e.rate=i.speed,speechSynthesis.speak(e))}}}},setScaleDialog:function(){var e=this.$refs.ismrender1,t=this.getScale();e.style.transform="scale("+t[0]+","+t[1]+")"},getScale:function(){return[window.innerWidth/this.configData.layer.width,window.innerHeight/this.configData.layer.height]},doComponentAction:function(e,t){var a=this,i=this;if("click"==t)return clearTimeout(this.clickTimer),void(//首先清除计时器
this.clickTimer=setTimeout((function(){if(void 0!==e.action&&e.action.length)for(var n=0,o=e.action.length;n<o;n++){var s=e.action[n];s.type==t&&(void 0!==s.actionVoice&&s.actionVoice.length&&a.ActionSoundSpeech().start({container:"#ActionSppekContent",Lang:a.$i18n.locale,rate:1},s.actionVoice),a.handleComponentAction(e,s))}else if(void 0!==e.active&&e.active.length&&"click"==t)for(var r=function(){var t=e.active[c];1==t.isSwitch&&(void 0!==t.condition.actionVoice&&t.condition.actionVoice.length&&a.ActionSoundSpeech().start({container:"#ActionSppekContent",Lang:a.$i18n.locale,rate:1},t.condition.actionVoice),i.$confirm({title:i.$t("displayConfig.Properties.SecondConfirm"),content:i.$t("displayConfig.Properties.SecondConfirmContent"),onOk:function(){i.handleComponentSwitchActive(t)},onCancel:function(){},class:"test"}))},c=0,l=e.active.length;c<l;c++)r()}),300));if("dblclick"==t&&clearTimeout(this.clickTimer),void 0!==e.action&&e.action.length)for(var n=0,o=e.action.length;n<o;n++){var s=e.action[n];s.type==t&&(void 0!==s.actionVoice&&s.actionVoice.length&&this.ActionSoundSpeech().start({container:"#ActionSppekContent",Lang:this.$i18n.locale,rate:1},s.actionVoice),this.handleComponentAction(e,s))}else if(void 0!==e.active&&e.active.length&&"click"==t)for(var r=function(){var t=e.active[c];1==t.isSwitch&&(void 0!==t.condition.actionVoice&&t.condition.actionVoice.length&&a.ActionSoundSpeech().start({container:"#ActionSppekContent",Lang:a.$i18n.locale,rate:1},t.condition.actionVoice),i.$confirm({title:i.$t("displayConfig.Properties.SecondConfirm"),content:i.$t("displayConfig.Properties.SecondConfirmContent"),onOk:function(){i.handleComponentSwitchActive(t)},onCancel:function(){},class:"test"}))},c=0;c<e.active.length;c++)r()},handleComponentSwitchActive:function(e){var t=this;try{if(""==this.showToken)if(void 0!==this.user.Role&&"Admin"!=this.user.Role)if(void 0!==e.condition.actionAuth&&e.condition.actionAuth.length>0)if(e.condition.actionAuth.find((function(e){return e===t.user.Role}))!=this.user.Role)return void this.$message.error(this.$t("displayModel.NoAuthentication"),3)}catch(e){return void this.$message.error(this.$t("displayModel.NoAuthentication"),3)}var a=e.condition;if(a.isBandDevice?this.deviceUuid=a.deviceSN:this.deviceUuid=this.SelectDeviceUuid,this.setDataUuid=a.dataID,a.IsManual)this.SetPasswordFormValue="",this.settingDialog=!0,this.settingVisible=!0;else{var i=0;if(void 0!==a.AutoSet&&a.AutoSet.length<=0)return void this.$message.error(this.$t("component.public.ParamsConfigError"));for(var n=0,o=a.AutoSet.length;n<o;n++)if(e.result==a.AutoSet[n].value){a.AutoSetValue=0==n?a.AutoSet[1].value:a.AutoSet[0].value,i=1,this.AutoSetValue=a.AutoSetValue,void 0===a.SetPassword||""==a.SetPassword?this.AutoSetData(a.AutoSetValue):(this.SetPassword=a.SetPassword,this.SetAutoPasswordFormValue="",this.setPasswordDialog=!0);break}i||(a.AutoSetValue=a.AutoSet[0].value,this.AutoSetValue=a.AutoSetValue,void 0===a.SetPassword||""==a.SetPassword?this.AutoSetData(a.AutoSetValue):(this.SetPassword=a.SetPassword,this.SetAutoPasswordFormValue="",this.setPasswordDialog=!0))}},ClosePopDialog:function(){this.PopUpDialog=!1,null!=this.ISMPopUpRunningContainer&&(this.ISMPopUpRunningContainer.dispose(),this.ISMPopUpRunningContainer=null)},PopUpDialogClick:function(){this.IsAutoClose&&(this.PopUpDialog=!1,null!=this.ISMPopUpRunningContainer&&(this.ISMPopUpRunningContainer.dispose(),this.ISMPopUpRunningContainer=null))},doLoopSetValue:function(e,t,a){var i=this,n=t[e];void 0!==n&&(void 0!==n.isBandDevice&&n.isBandDevice?this.deviceUuid=n.deviceSN:this.deviceUuid=this.SelectDeviceUuid,this.setDataUuid=n.dataID,this.SetPassword=n.SetPassword?n.SetPassword:"",n.IsManual?(this.SetPasswordFormValue="",this.settingDialog=!0,this.settingVisible=!0):(this.AutoSetValue=n.AutoSetValue,void 0===n.SetPassword||""==n.SetPassword?i.AutoSetData(n.AutoSetValue):(this.SetAutoPasswordFormValue="",this.setPasswordDialog=!0)),e<t.length&&setTimeout((function(){i.doLoopSetValue(e+1,t,a)}),a))},handleComponentAction:function(e,t){var a=this;if(void 0!==t.action){var i=this;try{if(""==this.showToken)if(void 0!==this.user.Role&&"Admin"!=this.user.Role)if(void 0!==t.actionAuth&&t.actionAuth.length>0)if(t.actionAuth.find((function(e){return e===a.user.Role}))!=this.user.Role)return void this.$message.error(this.$t("displayModel.NoAuthentication"),3)}catch(e){return void this.$message.error(this.$t("displayModel.NoAuthentication"),3)}if(void 0===t.ActionPassword||""==t.ActionPassword)if("visible"==t.action)t.showItems.length>0&&t.showItems.forEach((function(e){i.showComponent(e,!0)})),t.hideItems.length>0&&t.hideItems.forEach((function(e){i.showComponent(e,!1)}));else if("RestApi"==t.action){var n="<div>".concat(t.RestApi.Params,"</div>"),o=m.a.render(n,{data:{msg:"hello"}}).outerHTML,s=new RegExp("<div>","g"),r=new RegExp("</div>","g");o=(o=o.replace(s,"")).replace(r,""),void 0!==t.actionConfirm&&t.actionConfirm?i.$confirm({title:i.$t("displayConfig.Properties.SecondConfirm"),content:i.$t("displayConfig.Properties.SecondConfirmContent"),onOk:function(){Object(S.a)(t.RestApi.Type,t.RestApi.Url,t.RestApi.Params).then((function(e){})).catch((function(){}))},onCancel:function(){},class:"test"}):Object(S.a)(t.RestApi.Type,t.RestApi.Url,t.RestApi.Params).then((function(e){})).catch((function(){}))}else if("link"==t.action)void 0!==t.actionConfirm&&t.actionConfirm?i.$confirm({title:i.$t("displayConfig.Properties.SecondConfirm"),content:i.$t("displayConfig.Properties.SecondConfirmContent"),onOk:function(){i.showPage(t.link)},onCancel:function(){},class:"test"}):i.showPage(t.link);else if("SetValue"==t.action)(void 0===t.SetDelay||""==t.SetDelay)&&(t.SetDelay=1e3),void 0!==t.actionConfirm&&t.actionConfirm?i.$confirm({title:i.$t("displayConfig.Properties.SecondConfirm"),content:i.$t("displayConfig.Properties.SecondConfirmContent"),onOk:function(){i.doLoopSetValue(0,t.setValue,t.SetDelay)},onCancel:function(){},class:"test"}):i.doLoopSetValue(0,t.setValue,t.SetDelay);else if("DeviceView"==t.action){var c={key:t.DeviceView.key,showUUID:t.DeviceView.showUUID,showPageUUID:t.DeviceView.showPageUUID,type:t.DeviceView.type,isPopUp:t.DeviceView.isPopUp?t.DeviceView.isPopUp:null,selectKey:t.DeviceView.key,isContainer:t.DeviceView.isContainer};this.PopUpDialog=!1,void 0!==t.actionConfirm&&t.actionConfirm?i.$confirm({title:i.$t("displayConfig.Properties.SecondConfirm"),content:i.$t("displayConfig.Properties.SecondConfirmContent"),onOk:function(){"undefined"!=c.isContainer&&c.isContainer?i.$EventBus.$emit("onContainerSelectDevice",c):i.$EventBus.$emit("onSelectDevice",c)},onCancel:function(){},class:"test"}):"undefined"!=c.isContainer&&c.isContainer?i.$EventBus.$emit("onContainerSelectDevice",c):i.$EventBus.$emit("onSelectDevice",c)}else"SysScript"==t.action?void 0!==t.actionConfirm&&t.actionConfirm?i.$confirm({title:i.$t("displayConfig.Properties.SecondConfirm"),content:i.$t("displayConfig.Properties.SecondConfirmContent"),onOk:function(){i.doSysScript(t.ScriptList)},onCancel:function(){},class:"test"}):i.doSysScript(t.ScriptList):"Animation"==t.action&&("start"==t.animationStatus?this.$EventBus.$emit(e.identifier+"animateEvent",1):this.$EventBus.$emit(e.identifier+"animateEvent",0));else this.ActionComponent=e,this.ActionEvent=t,this.ActionPasswordSet=t.ActionPassword,this.ActionPasswordValue="",this.actionPasswordDialog=!0}},doSysScript:function(e){var t=this,a={Script:e};Object(u.c)(a).then((function(e){t.settingLoading=!1,0==e.data.code?(t.$message.success(t.$t(e.data.msg)),t.settingVisible=!1):t.$message.error(t.$t(e.data.msg))})).catch((function(e){t.settingLoading=!1,t.$message.error(t.$t("readData.SetFailed"))})).finally((function(e){t.settingLoading=!1}))},ManualSetData:function(){var e=this;if(this.showKeyboard=!1,""==this.SetPassword||this.SetPasswordFormValue==this.SetPassword){var t={deviceUuid:e.deviceUuid,dataUuid:e.setDataUuid,value:e.SetValueFormValue};e.IsConfirm?e.$confirm({title:e.$t("displayConfig.Properties.SecondConfirm"),content:e.$t("displayConfig.Properties.SecondConfirmContent"),onOk:function(){e.settingLoading=!0,Object(h.n)(t).then((function(t){e.settingLoading=!1,0==t.data.code?(e.$message.success(e.$t("readData.SetSuccess")),e.settingVisible=!1,e.settingDialog=!1):e.$message.error(e.$t("readData.SetFailed"))})).catch((function(t){e.settingLoading=!1,e.$message.error(e.$t("readData.SetFailed"))})).finally((function(t){e.settingLoading=!1}))},onCancel:function(){},class:"test"}):(e.settingLoading=!0,Object(h.n)(t).then((function(t){e.settingLoading=!1,0==t.data.code?(e.$message.success(e.$t("readData.SetSuccess")),e.settingVisible=!1,e.settingDialog=!1):e.$message.error(e.$t("readData.SetFailed"))})).catch((function(t){e.settingLoading=!1,e.$message.error(e.$t("readData.SetFailed"))})).finally((function(t){e.settingLoading=!1})))}else e.$message.error(e.$t("readData.SetPasswordError"))},PasswordSetAction:function(){var e=this,t=this;if(this.ActionPasswordSet==this.ActionPasswordValue){var a=this.ActionEvent,i=this.ActionComponent;if(this.actionPasswordDialog=!1,this.ActionEvent=null,this.ActionComponent=null,"visible"==a.action)a.showItems.length>0&&a.showItems.forEach((function(e){t.showComponent(e,!0)})),a.hideItems.length>0&&a.hideItems.forEach((function(e){t.showComponent(e,!1)}));else if("RestApi"==a.action){var n="<div>".concat(a.RestApi.Params,"</div>"),o=m.a.render(n,{data:{msg:"hello"}}).outerHTML,s=new RegExp("<div>","g"),r=new RegExp("</div>","g");o=(o=o.replace(s,"")).replace(r,""),void 0!==a.actionConfirm&&a.actionConfirm?t.$confirm({title:t.$t("displayConfig.Properties.SecondConfirm"),content:t.$t("displayConfig.Properties.SecondConfirmContent"),onOk:function(){Object(S.a)(a.RestApi.Type,a.RestApi.Url,a.RestApi.Params).then((function(e){})).catch((function(){}))},onCancel:function(){},class:"test"}):Object(S.a)(a.RestApi.Type,a.RestApi.Url,a.RestApi.Params).then((function(e){})).catch((function(){}))}else if("link"==a.action)void 0!==a.actionConfirm&&a.actionConfirm?t.$confirm({title:t.$t("displayConfig.Properties.SecondConfirm"),content:t.$t("displayConfig.Properties.SecondConfirmContent"),onOk:function(){t.showPage(a.link)},onCancel:function(){},class:"test"}):t.showPage(a.link);else if("SetValue"==a.action)for(var c=function(){var i=a.setValue[l];i.isBandDevice?e.deviceUuid=i.deviceSN:e.deviceUuid=e.SelectDeviceUuid,void 0!==a.actionConfirm&&a.actionConfirm?e.IsConfirm=!0:e.IsConfirm=!1,e.setDataUuid=i.dataID,e.SetPassword=i.SetPassword?i.SetPassword:"",i.IsManual?(e.SetPasswordFormValue="",e.settingDialog=!0,e.settingVisible=!0):(e.AutoSetValue=i.AutoSetValue,void 0===i.SetPassword||""==i.SetPassword?void 0!==a.actionConfirm&&a.actionConfirm?t.$confirm({title:t.$t("displayConfig.Properties.SecondConfirm"),content:t.$t("displayConfig.Properties.SecondConfirmContent"),onOk:function(){t.AutoSetData(i.AutoSetValue)},onCancel:function(){},class:"test"}):t.AutoSetData(i.AutoSetValue):(e.SetAutoPasswordFormValue="",e.setPasswordDialog=!0))},l=0,d=a.setValue.length;l<d;l++)c();else if("DeviceView"==a.action){var u={key:a.DeviceView.key,showUUID:a.DeviceView.showUUID,showPageUUID:a.DeviceView.showPageUUID,type:a.DeviceView.type,isPopUp:a.DeviceView.isPopUp?a.DeviceView.isPopUp:null,selectKey:a.DeviceView.key,isContainer:a.DeviceView.isContainer};this.PopUpDialog=!1,void 0!==a.actionConfirm&&a.actionConfirm?t.$confirm({title:t.$t("displayConfig.Properties.SecondConfirm"),content:t.$t("displayConfig.Properties.SecondConfirmContent"),onOk:function(){"undefined"!=u.isContainer&&u.isContainer?t.$EventBus.$emit("onContainerSelectDevice",u):t.$EventBus.$emit("onSelectDevice",u)},onCancel:function(){},class:"test"}):"undefined"!=u.isContainer&&u.isContainer?t.$EventBus.$emit("onContainerSelectDevice",u):t.$EventBus.$emit("onSelectDevice",u)}else"SysScript"==a.action?void 0!==a.actionConfirm&&a.actionConfirm?t.$confirm({title:t.$t("displayConfig.Properties.SecondConfirm"),content:t.$t("displayConfig.Properties.SecondConfirmContent"),onOk:function(){t.doSysScript(a.ScriptList)},onCancel:function(){},class:"test"}):t.doSysScript(a.ScriptList):"Animation"==a.action&&("start"==a.animationStatus?this.$EventBus.$emit(i.identifier+"animateEvent",1):this.$EventBus.$emit(i.identifier+"animateEvent",0))}else this.$message.error(this.$t("displayModel.NoAuthentication"),3)},PasswordSetData:function(){var e=this;if(this.showKeyboard=!1,this.SetAutoPasswordFormValue==this.SetPassword){var t={deviceUuid:e.deviceUuid,dataUuid:e.setDataUuid,value:this.AutoSetValue.toString()};e.IsConfirm?e.$confirm({title:e.$t("displayConfig.Properties.SecondConfirm"),content:e.$t("displayConfig.Properties.SecondConfirmContent"),onOk:function(){e.settingLoading=!0,Object(h.n)(t).then((function(t){e.settingLoading=!1,0==t.data.code?(e.$message.success(e.$t("readData.SetSuccess")),e.settingVisible=!1,e.setPasswordDialog=!1):e.$message.error(e.$t("readData.SetFailed"))})).catch((function(t){e.settingLoading=!1,e.$message.error(e.$t("readData.SetFailed"))})).finally((function(t){e.settingLoading=!1}))},onCancel:function(){},class:"test"}):(e.settingLoading=!0,Object(h.n)(t).then((function(t){e.settingLoading=!1,0==t.data.code?(e.$message.success(e.$t("readData.SetSuccess")),e.settingVisible=!1,e.setPasswordDialog=!1):e.$message.error(e.$t("readData.SetFailed"))})).catch((function(t){e.settingLoading=!1,e.$message.error(e.$t("readData.SetFailed"))})).finally((function(t){e.settingLoading=!1})))}else e.$message.error(e.$t("readData.SetPasswordError"))},AutoSetData:function(e){var t=this;this.settingLoading=!0;var a={deviceUuid:t.deviceUuid,dataUuid:t.setDataUuid,value:e.toString()};t.$message.loading({content:"Loading..."}),Object(h.n)(a).then((function(e){t.settingLoading=!1,0==e.data.code?(t.$message.success(t.$t("readData.SetSuccess")),t.settingVisible=!1):t.$message.error(t.$t("readData.SetFailed"))})).catch((function(e){t.settingLoading=!1,t.$message.error(t.$t("readData.SetFailed"))})).finally((function(e){t.settingLoading=!1,setTimeout((function(){t.$message.destroy()}),500)}))},DealWithUpdateData:function(e){for(var t=this,a=0,i=e.Data.length;a<i;a++)if(-1!=t.CurrentRealUUIDList.indexOf(e.Data[a].Uuid)||-1!=t.CurrentModelUUIDList.indexOf(e.Data[a].ModelDataUuid))for(var n=0,o=t.configData.components.cells.length;n<o;n++){if(void 0!==t.configData.components.cells[n].data.detail.animate&&void 0!==t.configData.components.cells[n].data.detail.animate.condition){var s=t.configData.components.cells[n].data.detail.animate.condition,r=t.configData.components.cells[n].data.detail.animate.selected,c=t.configData.components.cells[n].data.detail.animate.isExpression;
//动画
if(s.isBandDevice){var l=!1;if(e.DeviceUuid==s.deviceSN&&(s.dataID==e.Data[a].ModelDataUuid||s.dataID==e.Data[a].Uuid)){var d=parseFloat(e.Data[a].Value);if(c){var u=parseFloat(s.OperatorValue);switch(s.operator){case"==":l=d==u;break;case">":l=d>u;break;case">=":l=d>=u;break;case"<":l=d<u;break;case"<=":l=d<=u;break;case"!=":l=d!=u;break;case"<>":var g=parseFloat(s.OperatorMaxValue);l=d>=u&&d<=g;break;case"<!>":var p=parseFloat(s.OperatorMaxValue);l=d<=u||d>=p}r.includes("visible")&&(t.configData.components.cells[n].data.detail.style.visible=!!l),this.$EventBus.$emit(t.configData.components.cells[n].data.detail.identifier+"animateEvent",l)}}}else if(e.DeviceUuid==t.SelectDeviceUuid){var f=!1;if(s.dataID==e.Data[a].ModelDataUuid||s.dataID==e.Data[a].Uuid){var v=parseFloat(e.Data[a].Value);if(c){var h=parseFloat(s.OperatorValue);switch(s.operator){case"==":f=v==h;break;case">":f=v>h;break;case">=":f=v>=h;break;case"<":f=v<h;break;case"<=":f=v<=h;break;case"!=":f=v!=h;break;case"<>":var D=parseFloat(s.OperatorMaxValue);f=v>=h&&v<=D;break;case"<!>":var m=parseFloat(s.OperatorMaxValue);f=v<=h||v>=m}r.includes("visible")&&(t.configData.components.cells[n].data.detail.style.visible=!!f),this.$EventBus.$emit(t.configData.components.cells[n].data.detail.identifier+"animateEvent",f)}}}}
//位移动画
if(void 0!==t.configData.components.cells[n].data.detail.animate&&void 0!==t.configData.components.cells[n].data.detail.animate.move&&t.configData.components.cells[n].data.detail.animate.selected.includes("animateMove")){var S=t.configData.components.cells[n].data.detail.animate.move.x,C=t.configData.components.cells[n].data.detail.animate.move.y;
//动画
if(S.isBandDevice){if(e.DeviceUuid==S.deviceSN&&(S.dataID==e.Data[a].ModelDataUuid||S.dataID==e.Data[a].Uuid)){var U=parseFloat(e.Data[a].Value),P={ID:"animateMoveX",DeviceSN:S.deviceSN,dataID:S.dataID,result:U};t.configData.components.cells[n].data.detail.style.position.x=U,this.$EventBus.$emit(t.configData.components.cells[n].data.detail.identifier+"animateMove",P)}}else if(e.DeviceUuid==t.SelectDeviceUuid&&(S.dataID==e.Data[a].ModelDataUuid||S.dataID==e.Data[a].Uuid)){var y=parseFloat(e.Data[a].Value),I={ID:"animateMoveX",DeviceSN:S.deviceSN,dataID:S.dataID,result:y};t.configData.components.cells[n].data.detail.style.position.x=y,this.$EventBus.$emit(t.configData.components.cells[n].data.detail.identifier+"animateMove",I)}
//动画
if(C.isBandDevice){if(e.DeviceUuid==C.deviceSN&&(C.dataID==e.Data[a].ModelDataUuid||C.dataID==e.Data[a].Uuid)){var w=parseFloat(e.Data[a].Value),$={ID:"animateMoveY",DeviceSN:C.deviceSN,dataID:C.dataID,result:w};t.configData.components.cells[n].data.detail.style.position.y=w,this.$EventBus.$emit(t.configData.components.cells[n].data.detail.identifier+"animateMove",$)}}else if(e.DeviceUuid==t.SelectDeviceUuid&&(C.dataID==e.Data[a].ModelDataUuid||C.dataID==e.Data[a].Uuid)){var b=parseFloat(e.Data[a].Value),k={ID:"animateMoveY",DeviceSN:C.deviceSN,dataID:C.dataID,result:b};t.configData.components.cells[n].data.detail.style.position.y=b,this.$EventBus.$emit(t.configData.components.cells[n].data.detail.identifier+"animateMove",k)}}if(void 0!==t.configData.components.cells[n].data.detail.active)for(var L=t.configData.components.cells[n].data.detail.active,M="",A=0
//动作
;A<L.length;A++)if(L[A].condition.isBandDevice){if(e.DeviceUuid==L[A].condition.deviceSN&&(L[A].condition.dataID==e.Data[a].ModelDataUuid||L[A].condition.dataID==e.Data[a].Uuid)){if(void 0!==L[A].isExpression&&L[A].isExpression){var V=parseFloat(e.Data[a].Value),R=parseFloat(L[A].condition.OperatorValue);switch(L[A].condition.operator){case"==":M=V==R;break;case">":M=V>R;break;case">=":M=V>=R;break;case"<":M=V<R;break;case"<=":M=V<=R;break;case"!=":M=V!=R;break;case"<>":var E=parseFloat(L[A].condition.OperatorMaxValue);M=V>=R&&V<=E;break;case"<!>":var F=parseFloat(L[A].condition.OperatorMaxValue);M=V<=R||V>=F}}else M=e.Data[a].Value;L[A].result=M;var x={ID:L[A].id,DeviceSN:L[A].condition.deviceSN,dataID:L[A].condition.dataID,index:A,result:M},O=t.ISMRuningLoginCavasContainer.getCellById(t.configData.components.cells[n].id);if(O.isEdge()){var N="";"Forward"==x.ID&&x.result&&(N="ant-line-forward 30s infinite linear"),"Reverse"==x.ID&&x.result&&(N="ant-line-inverse 30s infinite linear"),O.setAttrs({line:{style:{animation:N}}})}else t.$EventBus.$emit(t.configData.components.cells[n].data.detail.identifier+"activeEvent",x)}}else if(e.DeviceUuid==t.SelectDeviceUuid&&(L[A].condition.dataID==e.Data[a].ModelDataUuid||L[A].condition.dataID==e.Data[a].Uuid)){if(void 0!==L[A].isExpression&&L[A].isExpression){var B=parseFloat(e.Data[a].Value),T=parseFloat(L[A].condition.OperatorValue);switch(L[A].condition.operator){case"==":M=B==T;break;case">":M=B>T;break;case">=":M=B>=T;break;case"<":M=B<T;break;case"<=":M=B<=T;break;case"!=":M=B!=T;break;case"<>":var j=parseFloat(L[A].condition.OperatorMaxValue);M=B>=T&&B<=j;break;case"<!>":var z=parseFloat(L[A].condition.OperatorMaxValue);M=B<=T||B>=z}}else M=e.Data[a].Value;L[A].result=M;var K={ID:L[A].id,DeviceSN:L[A].condition.deviceSN,dataID:L[A].condition.dataID,index:A,result:M},q=t.ISMRuningLoginCavasContainer.getCellById(t.configData.components.cells[n].id);if(q.isEdge()){var _="";"Forward"==K.ID&&K.result&&(_="ant-line-forward 30s infinite linear"),"Reverse"==K.ID&&K.result&&(_="ant-line-inverse 30s infinite linear"),q.setAttrs({line:{style:{animation:_}}})}else t.$EventBus.$emit(t.configData.components.cells[n].data.detail.identifier+"activeEvent",K)}}if(!t.chargePagePopUp&&t.PopUpDialog)for(var H=0,W=e.Data.length;H<W;H++)if(-1!=t.CurrentPopRealUUIDList.indexOf(e.Data[H].Uuid)||-1!=t.CurrentPopModelUUIDList.indexOf(e.Data[H].ModelDataUuid))for(var J=0,X=t.PopUpConfigData.components.cells.length;J<X;J++){if(void 0!==t.PopUpConfigData.components.cells[J].data.detail.animate&&void 0!==t.PopUpConfigData.components.cells[J].data.detail.animate.condition){var Y=t.PopUpConfigData.components.cells[J].data.detail.animate.condition,Z=t.PopUpConfigData.components.cells[J].data.detail.animate.selected,G=t.PopUpConfigData.components.cells[J].data.detail.animate.isExpression;
//动画
if(Y.isBandDevice){var Q=!1;if(e.DeviceUuid==Y.deviceSN&&(Y.dataID==e.Data[H].ModelDataUuid||Y.dataID==e.Data[H].Uuid)){var ee=parseFloat(e.Data[H].Value);if(G){var te=parseFloat(Y.OperatorValue);switch(Y.operator){case"==":Q=ee==te;break;case">":Q=ee>te;break;case">=":Q=ee>=te;break;case"<":Q=ee<te;break;case"<=":Q=ee<=te;break;case"!=":Q=ee!=te;break;case"<>":var ae=parseFloat(Y.OperatorMaxValue);Q=ee>=te&&ee<=ae;break;case"<!>":var ie=parseFloat(Y.OperatorMaxValue);Q=ee<=te||ee>=ie}Z.includes("visible")&&(t.PopUpConfigData.components.cells[J].data.detail.style.visible=!!Q),t.$EventBus.$emit(t.PopUpConfigData.components.cells[J].data.detail.identifier+"animateEvent",Q)}}}else if(e.DeviceUuid==t.SelectDeviceUuid){var ne=!1;if(Y.dataID==e.Data[H].ModelDataUuid||Y.dataID==e.Data[H].Uuid){var oe=parseFloat(e.Data[H].Value);if(G){var se=parseFloat(Y.OperatorValue);switch(Y.operator){case"==":ne=oe==se;break;case">":ne=oe>se;break;case">=":ne=oe>=se;break;case"<":ne=oe<se;break;case"<=":ne=oe<=se;break;case"!=":ne=oe!=se;break;case"<>":var re=parseFloat(Y.OperatorMaxValue);ne=oe>=se&&oe<=re;break;case"<!>":var ce=parseFloat(Y.OperatorMaxValue);ne=oe<=se||oe>=ce}Z.includes("visible")&&(t.PopUpConfigData.components.cells[J].data.detail.style.visible=!!ne),t.$EventBus.$emit(t.PopUpConfigData.components.cells[J].data.detail.identifier+"animateEvent",ne)}}}}
//位移动画
if(void 0!==t.PopUpConfigData.components.cells[J].data.detail.animate&&void 0!==t.PopUpConfigData.components.cells[J].data.detail.animate.move&&t.PopUpConfigData.components.cells[J].data.detail.animate.selected.includes("animateMove")){var le=t.PopUpConfigData.components.cells[J].data.detail.animate.move.x,de=t.PopUpConfigData.components.cells[J].data.detail.animate.move.y;
//动画
if(le.isBandDevice){if(e.DeviceUuid==le.deviceSN&&(le.dataID==e.Data[H].ModelDataUuid||le.dataID==e.Data[H].Uuid)){var ue=parseFloat(e.Data[H].Value),ge={ID:"animateMoveX",DeviceSN:le.deviceSN,dataID:le.dataID,result:ue};t.configData.components.cells[J].data.detail.style.position.x=ue,this.$EventBus.$emit(t.PopUpConfigData.components.cells[J].data.detail.identifier+"animateMove",ge)}}else if(e.DeviceUuid==t.SelectDeviceUuid&&(le.dataID==e.Data[H].ModelDataUuid||le.dataID==e.Data[H].Uuid)){var pe=parseFloat(e.Data[H].Value),fe={ID:"animateMoveX",DeviceSN:le.deviceSN,dataID:le.dataID,result:pe};t.configData.components.cells[J].data.detail.style.position.x=pe,this.$EventBus.$emit(t.PopUpConfigData.components.cells[J].data.detail.identifier+"animateMove",fe)}
//动画
if(de.isBandDevice){if(e.DeviceUuid==de.deviceSN&&(de.dataID==e.Data[H].ModelDataUuid||de.dataID==e.Data[H].Uuid)){var ve=parseFloat(e.Data[H].Value),he={ID:"animateMoveY",DeviceSN:de.deviceSN,dataID:de.dataID,result:ve};t.PopUpConfigData.components.cells[J].data.detail.style.position.y=ve,this.$EventBus.$emit(t.PopUpConfigData.components.cells[J].data.detail.identifier+"animateMove",he)}}else if(e.DeviceUuid==t.SelectDeviceUuid&&(de.dataID==e.Data[H].ModelDataUuid||de.dataID==e.Data[H].Uuid)){var De=parseFloat(e.Data[H].Value),me={ID:"animateMoveY",DeviceSN:de.deviceSN,dataID:de.dataID,result:De};t.PopUpConfigData.components.cells[J].data.detail.style.position.y=De,this.$EventBus.$emit(t.configData.components.cells[J].data.detail.identifier+"animateMove",me)}}if(void 0!==t.PopUpConfigData.components.cells[J].data.detail.active)for(var Se=t.PopUpConfigData.components.cells[J].data.detail.active,Ce="",Ue=0;Ue<Se.length;Ue++)if(Se[Ue].condition.isBandDevice){if(e.DeviceUuid==Se[Ue].condition.deviceSN&&(Se[Ue].condition.dataID==e.Data[H].ModelDataUuid||Se[Ue].condition.dataID==e.Data[H].Uuid)){if(void 0!==Se[Ue].isExpression&&Se[Ue].isExpression){var Pe=parseFloat(e.Data[H].Value),ye=parseFloat(Se[Ue].condition.OperatorValue);switch(Se[Ue].condition.operator){case"==":Ce=Pe==ye;break;case">":Ce=Pe>ye;break;case">=":Ce=Pe>=ye;break;case"<":Ce=Pe<ye;break;case"<=":Ce=Pe<=ye;break;case"!=":Ce=Pe!=ye;break;case"<>":var Ie=parseFloat(Se[Ue].condition.OperatorMaxValue);Ce=Pe>=ye&&Pe<=Ie;break;case"<!>":var we=parseFloat(Se[Ue].condition.OperatorMaxValue);Ce=Pe<=ye||Pe>=we}}else Ce=e.Data[H].Value;Se[Ue].result=Ce;var $e={ID:Se[Ue].id,DeviceSN:Se[Ue].condition.deviceSN,dataID:Se[Ue].condition.dataID,index:Ue,result:Ce},be=t.ISMRuningLoginCavasContainer.getCellById(t.configData.components.cells[J].id);if(be.isEdge()){var ke="";"Forward"==$e.ID&&$e.result&&(ke="ant-line-forward 30s infinite linear"),"Reverse"==$e.ID&&$e.result&&(ke="ant-line-inverse 30s infinite linear"),be.setAttrs({line:{style:{animation:ke}}})}else t.$EventBus.$emit(t.PopUpConfigData.components.cells[J].data.detail.identifier+"activeEvent",$e)}}else if(e.DeviceUuid==t.SelectDeviceUuid&&(Se[Ue].condition.dataID==e.Data[H].ModelDataUuid||Se[Ue].condition.dataID==e.Data[H].Uuid)){if(void 0!==Se[Ue].isExpression&&Se[Ue].isExpression){var Le=parseFloat(e.Data[H].Value),Me=parseFloat(Se[Ue].condition.OperatorValue);switch(Se[Ue].condition.operator){case"==":Ce=Le==Me;break;case">":Ce=Le>Me;break;case">=":Ce=Le>=Me;break;case"<":Ce=Le<Me;break;case"<=":Ce=Le<=Me;break;case"!=":Ce=Le!=Me;break;case"<>":var Ae=parseFloat(Se[Ue].condition.OperatorMaxValue);Ce=Le>=Me&&Le<=Ae;break;case"<!>":var Ve=parseFloat(Se[Ue].condition.OperatorMaxValue);Ce=Le<=Me||Le>=Ve}}else Ce=e.Data[H].Value;Se[Ue].result=Ce;var Re={ID:Se[Ue].id,DeviceSN:Se[Ue].condition.deviceSN,dataID:Se[Ue].condition.dataID,index:Ue,result:Ce},Ee=t.ISMRuningLoginCavasContainer.getCellById(t.configData.components.cells[J].id);if(Ee.isEdge()){var Fe="";"Forward"==Re.ID&&Re.result&&(Fe="ant-line-forward 30s infinite linear"),"Reverse"==Re.ID&&Re.result&&(Fe="ant-line-inverse 30s infinite linear"),Ee.setAttrs({line:{style:{animation:Fe}}})}else t.$EventBus.$emit(t.PopUpConfigData.components.cells[J].data.detail.identifier+"activeEvent",Re)}}t.$EventBus.$emit("DealWithRealDataFinish",!0)},showComponent:function(e,t){for(var a=this.$refs.spirit,i=0,n=a.length;i<n;i++){var o=a[i];o.detail.groupID==e&&(o.detail.style.visible=t)}},showPage:function(e){
//  this.PopUpDialog = false
if(void 0!==e.isPopUp&&1==e.isPopUp){var t=this;if(this.IsAutoClose=e.autoClose,"Inside"==e.linkType){var a={pageType:1,displayUUID:e.Inside.displayUUID,pageUuid:e.Inside.pageUUID};t.isExternUrl=!1,t.chargePagePopUp=!0,this.CurrentPopRealUUIDList=[],this.CurrentPopModelUUIDList=[],
// this.$message.loading({content: 'Loading...', loadingKey, duration: 0});
this.selectPopUpDisplayPageDataStruct({page:a,callback:function(e,a,i){0==e?(t.$message.destroy(),t.chargePagePopUp=!1,t.PopUpDialog=!0,t.$message.loading({content:"Loading...",loadingKey:C,duration:0}),setTimeout((function(){t.$message.destroy(),t.RunPopUpCavasContainerInit(t.PopUpConfigData.layer.autoSize,t.PopUpConfigData.layer.Padding)}),500),
// _t.PopUpDialog.center()
setTimeout((function(){if(a.length>0){for(var e=[],n=0;n<a.length;n++)void 0!==a[n]&&a[n].length>0&&e.push(a[n]);for(var o=[],s=0;s<i.length;s++)void 0!==i[s]&&i[s].length>0&&o.push(i[s]);Object(h.l)({uuid:e,devices:o}).then((function(e){if(t.settingLoading=!1,0==e.data.code)for(var a=0,i=e.data.realData.length;a<i;a++){var n={DeviceUuid:e.data.realData[a].duid,ProjectUuid:e.data.realData[a].project_uuid,Cmd:"RealData",Data:[]};t.CurrentPopRealUUIDList.push(e.data.realData[a].uuid),t.CurrentPopModelUUIDList.push(e.data.realData[a].mduid);var o={Uuid:e.data.realData[a].uuid,ModelDataUuid:e.data.realData[a].mduid,Value:e.data.realData[a].value};n.Data.push(o),t.$EventBus.$emit("readDataPush",n)}}))}}),300)):(t.$message.error(t.$t("readData.NotFindPage")),setTimeout((function(){t.$message.destroy()}),1e3))}})}else t.chargePagePopUp=!1,t.isExternUrl=!0,t.linkInfoExternal.width=e.width,t.linkInfoExternal.height=e.height,t.linkInfoExternal.url=e.External,
// _t.$refs.PopUpDialog.vcenter()
t.PopUpDialog=!0,void 0!==e.title?""==e.title?this.PopUpConfigData.PageName="外部网页":this.PopUpConfigData.PageName=e.title:this.PopUpConfigData.PageName="外部网页"}else if("Inside"==e.linkType){var i=this,n={pageType:1,displayUUID:e.Inside.displayUUID,pageUuid:e.Inside.pageUUID};i.CurrentRealUUIDList=[],i.CurrentModelUUIDList=[],
// this.$message.loading({content: 'Loading...', loadingKey, duration: 0});
this.selectDisplayPageDataStruct({page:n,callback:function(e,t){i.$message.destroy(),i.RunCavasContainerInit(i.configData.layer.autoSize,i.configData.layer.Padding),setTimeout((function(){if(e.length>0){for(var a=[],n=0;n<e.length;n++)void 0!==e[n]&&e[n].length>0&&a.push(e[n]);for(var o=[],s=0;s<t.length;s++)void 0!==t[s]&&t[s].length>0&&o.push(t[s]);Object(h.l)({uuid:a,devices:o}).then((function(e){if(i.settingLoading=!1,0==e.data.code)for(var t=0,a=e.data.realData.length;t<a;t++){var n={DeviceUuid:e.data.realData[t].duid,ProjectUuid:e.data.realData[t].project_uuid,Cmd:"RealData",Data:[]};i.CurrentRealUUIDList.push(e.data.realData[t].uuid),i.CurrentModelUUIDList.push(e.data.realData[t].mduid);var o={Uuid:e.data.realData[t].uuid,ModelDataUuid:e.data.realData[t].mduid,Value:e.data.realData[t].value};n.Data.push(o),i.$EventBus.$emit("readDataPush",n)}}))}}),500)}})}else"External"==e.linkType&&(void 0===e.OpenExternalType?window.open(e.External,"_blank"):"self"==e.OpenExternalType?window.open(e.External,"_self"):"new"==e.OpenExternalType&&window.open(e.External,"_blank"))},getDisplayLoginPage:function(){var e=this;this.getLoginLayerDataStruct({pageType:this.isMobile?0:1,uuid:this.showUuid,cb:function(t,a){0!=t?e.$router.push("/login"):(e.RunLoginCavasContainerInit(e.configData.layer.autoSize,e.configData.layer.Padding),document.title=e.configData.AppName),e.$message.destroy(),e.chargePage=!1}})}}),mounted:function(){var e=this;e.$EventBus.$off("AppLoginSuccess"),e.$EventBus.$on("AppLoginSuccess",(function(t){e.setUser(t.user),e.setRoles(t.roles)}))}},P=(a("478a"),a("2877")),y={name:"AppRun",components:{ISMRenderLogin:Object(P.a)(U,(function(){var e=this._self._c;return e("div",[e("div",{staticClass:"run-login-graph-container",class:Object(i.a)({animated:!0},"".concat(this.configData.layer.animate),!0)},[e("div",{ref:"ISMRunningLoginContainer"})])])}),[],!1,null,null,null)
/* harmony default export */.exports},methods:{},created:function(){},mounted:function(){}},I=(a("01ec"),Object(P.a)(y,(function(){var e=this._self._c;return e("div",{staticClass:"ism-pageview"},[e("ISMRenderLogin",{attrs:{showUuid:this.$route.params.uid,showDeviceUuid:""}})],1)}),[],!1,null,null,null)
/* harmony default export */);
// CONCATENATED MODULE: ./src/pages/ISMDisPlay/ISMRenderLogin.vue?vue&type=script&lang=js
/* harmony default export */t.default=I.exports},
/***/edaa:
/***/function(e,t,a){
// extracted by mini-css-extract-plugin
/***/},
/***/fe21:
/***/function(e,t,a){
// extracted by mini-css-extract-plugin
/***/}}]);