chunk-3c619af9.01a296b3.js 124 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3c619af9"],{"0653":function(e,t,n){"use strict";n("68ef"),n("5c56")},"072c":function(e,t,n){"use strict";n("735b")},"0970":function(e,t,n){"use strict";n("60f5")},"0d45":function(e,t,n){},1196:function(e,t,n){"use strict";n("eaf7")},"11ec":function(e,t,n){"use strict";n("e56d")},1554:function(e,t,n){"use strict";n("4f0c")},"248c":function(e,t,n){},"25df":function(e,t,n){"use strict";n("b991")},2821:function(e,t,n){"use strict";n("90c5")},"282c":function(e,t,n){},2927:function(e,t,n){e.exports={menuBg:"#fff",menuText:"#162b64",menuActiveText:"#435ebe"}},"2d4b":function(e,t,n){"use strict";n("2927")},3228:function(e,t,n){},"34e9":function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n("c199"),c=n("7a23"),o=n("fe7e"),r=n("f691"),i=n("b1d2");const[l,s]=Object(o["a"])("cell-group"),u={title:String,inset:Boolean,border:r["g"]};var d=Object(c["defineComponent"])({name:l,inheritAttrs:!1,props:u,setup(e,{slots:t,attrs:n}){const a=()=>{var a;return Object(c["createVNode"])("div",Object(c["mergeProps"])({class:[s({inset:e.inset}),{[i["d"]]:e.border&&!e.inset}]},n),[null==(a=t.default)?void 0:a.call(t)])},o=()=>Object(c["createVNode"])("div",{class:s("title",{inset:e.inset})},[t.title?t.title():e.title]);return()=>e.title||t.title?Object(c["createVNode"])(c["Fragment"],null,[o(),a()]):a()}});const m=Object(a["a"])(d);var p=m},3699:function(e,t,n){"use strict";n("4af6")},"38d5":function(e,t,n){"use strict";n("68ef")},"3eb9":function(e,t,n){"use strict";n("e3c7")},"419e":function(e,t,n){},"49f8":function(e,t,n){"use strict";n("0d45")},"4af6":function(e,t,n){e.exports={menuBg:"#fff",menuText:"#162b64",menuActiveText:"#435ebe"}},"4f0c":function(e,t,n){e.exports={menuBg:"#fff",menuText:"#162b64",menuActiveText:"#435ebe"}},"5c56":function(e,t,n){},"60f5":function(e,t,n){},"66b9":function(e,t,n){"use strict";n("68ef"),n("cb51"),n("3743"),n("e3b3"),n("bc1b")},"67fc":function(e,t,n){"use strict";n("b601")},"735b":function(e,t,n){},"772a":function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n("c199"),c=n("7a23"),o=n("fe7e"),r=n("f691"),i=n("b1d2"),l=n("4a89"),s=n("f465"),u=n("4eda");const[d,m]=Object(o["a"])("form"),p={colon:Boolean,disabled:Boolean,readonly:Boolean,showError:Boolean,labelWidth:r["f"],labelAlign:String,inputAlign:String,scrollToError:Boolean,validateFirst:Boolean,submitOnEnter:r["g"],validateTrigger:Object(r["e"])("onBlur"),showErrorMessage:r["g"],errorMessageAlign:String};var f=Object(c["defineComponent"])({name:d,props:p,emits:["submit","failed"],setup(e,{emit:t,slots:n}){const{children:a,linkChildren:o}=Object(s["f"])(i["f"]),r=e=>e?a.filter(t=>e.includes(t.name)):a,d=e=>new Promise((t,n)=>{const a=[],c=r(e);c.reduce((e,t)=>e.then(()=>{if(!a.length)return t.validate().then(e=>{e&&a.push(e)})}),Promise.resolve()).then(()=>{a.length?n(a):t()})}),p=e=>new Promise((t,n)=>{const a=r(e);Promise.all(a.map(e=>e.validate())).then(e=>{e=e.filter(Boolean),e.length?n(e):t()})}),f=e=>{const t=a.find(t=>t.name===e);return t?new Promise((e,n)=>{t.validate().then(t=>{t?n(t):e()})}):Promise.reject()},b=t=>"string"===typeof t?f(t):e.validateFirst?d(t):p(t),g=e=>{"string"===typeof e&&(e=[e]);const t=r(e);t.forEach(e=>{e.resetValidation()})},v=(e,t)=>{a.some(n=>n.name===e&&(n.$el.scrollIntoView(t),!0))},O=()=>a.reduce((e,t)=>(e[t.name]=t.formValue.value,e),{}),j=()=>{const n=O();b().then(()=>t("submit",n)).catch(a=>{t("failed",{values:n,errors:a}),e.scrollToError&&a[0].name&&v(a[0].name)})},h=e=>{Object(l["e"])(e),j()};return o({props:e}),Object(u["a"])({submit:j,validate:b,scrollToField:v,resetValidation:g}),()=>{var e;return Object(c["createVNode"])("form",{class:m(),onSubmit:h},[null==(e=n.default)?void 0:e.call(n)])}}});const b=Object(a["a"])(f);var g=b},"7c22":function(e,t,n){"use strict";n("3228")},"7f3f":function(e,t,n){"use strict";n.r(t);n("b0c0");var a=n("7a23"),c=function(e){return Object(a["pushScopeId"])("data-v-7be73583"),e=e(),Object(a["popScopeId"])(),e},o={class:"main-left"},r={class:"left-top"},i=["src"],l=["src"],s={class:"left-time"},u={class:"weather"},d=["src"],m=["src"],p=c((function(){return Object(a["createElementVNode"])("span",null," 联系客服",-1)})),f={class:"left-space"},b={class:"text"},g={key:0},v=["src"],O=["src"],j={key:2},h={key:3},T={class:"space-info"},I={class:"space-temp"},k=["src"],S=c((function(){return Object(a["createElementVNode"])("span",{class:"temp-text"},"温度",-1)})),x={key:0,class:"temp-num"},y=c((function(){return Object(a["createElementVNode"])("sup",null,"℃",-1)})),C={class:"space-env"},w=["onClick"],D=["src"],N={class:"env-text"},E={key:0,class:"fotter"},V=["onClick"],B=["src"],A=["src"],L=["src"],W=c((function(){return Object(a["createElementVNode"])("span",null,"…",-1)})),M={class:"main-right"},F={key:0,class:"work-btn"};function U(e,t,n,c,U,_){var P=Object(a["resolveComponent"])("work-config"),q=Object(a["resolveComponent"])("scenario-config"),R=Object(a["resolveComponent"])("Air"),H=Object(a["resolveComponent"])("Light"),z=Object(a["resolveComponent"])("Curtain"),J=Object(a["resolveComponent"])("work-overtime"),Y=Object(a["resolveComponent"])("van-popup"),G=Object(a["resolveComponent"])("scenario-dailog"),X=Object(a["resolveComponent"])("detail"),K=Object(a["resolveComponent"])("com-map"),$=Object(a["resolveComponent"])("contact");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:"main",style:Object(a["normalizeStyle"])({backgroundImage:"linear-gradient(0deg, rgba(69, 33, 0, 0.2), rgba(69, 33, 0, 0.2)), url("+e.padBgImg+")","background-repeat":"no-repeat"})},[Object(a["createElementVNode"])("div",o,[Object(a["createElementVNode"])("div",r,[Object(a["createElementVNode"])("div",{class:"logo-box",onTouchstart:t[0]||(t[0]=function(t){return e.gtouchstart(t)}),onTouchmove:t[1]||(t[1]=function(t){return e.gtouchmove()}),onTouchend:t[2]||(t[2]=function(){return e.showDeleteButton&&e.showDeleteButton.apply(e,arguments)})},[e.logImg?(Object(a["openBlock"])(),Object(a["createElementBlock"])("img",{key:0,class:"logo-icon",src:e.logImg,alt:""},null,8,i)):(Object(a["openBlock"])(),Object(a["createElementBlock"])("img",{key:1,class:"logo-icon",src:e.parseImgUrl("ipdImages","shangeyun_logo.svg"),alt:""},null,8,l))],32),Object(a["createElementVNode"])("div",s,[Object(a["createElementVNode"])("span",null,Object(a["toDisplayString"])(e.nowDate),1),Object(a["createElementVNode"])("span",null,Object(a["toDisplayString"])(e.nowWeek),1)]),Object(a["createElementVNode"])("div",u,[Object(a["withDirectives"])(Object(a["createElementVNode"])("img",{src:e.outWeather.imgname,class:"weather-icon",alt:""},null,8,d),[[a["vShow"],e.outWeather.imgname]]),Object(a["createElementVNode"])("span",null,Object(a["toDisplayString"])(e.outWeather.temperature?e.outWeather.temperature:"--")+"℃",1)]),Object(a["createElementVNode"])("div",{class:"weixiin",onClick:t[3]||(t[3]=function(){return e.showContact&&e.showContact.apply(e,arguments)})},[Object(a["createElementVNode"])("img",{src:e.parseImgUrl("ipdImages","weixin.svg")},null,8,m),p])]),Object(a["createElementVNode"])("div",f,[Object(a["createElementVNode"])("div",b,[Object(a["createElementVNode"])("div",null,Object(a["toDisplayString"])(e.officeData.localName),1),!0===e.officeData.isPassengerPass||!1===e.officeData.isPassengerPass?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",g,[e.officeData.isPassengerPass?(Object(a["openBlock"])(),Object(a["createElementBlock"])("img",{key:0,src:e.parseImgUrl("ipdImages","vector-active.svg")},null,8,v)):Object(a["createCommentVNode"])("",!0),e.officeData.isPassengerPass?Object(a["createCommentVNode"])("",!0):(Object(a["openBlock"])(),Object(a["createElementBlock"])("img",{key:1,src:e.parseImgUrl("ipdImages","vector.svg")},null,8,O)),e.officeData.isPassengerPass?(Object(a["openBlock"])(),Object(a["createElementBlock"])("span",j,"有人")):Object(a["createCommentVNode"])("",!0),e.officeData.isPassengerPass?Object(a["createCommentVNode"])("",!0):(Object(a["openBlock"])(),Object(a["createElementBlock"])("span",h,"无人"))])):Object(a["createCommentVNode"])("",!0)]),Object(a["createElementVNode"])("div",T,[Object(a["createElementVNode"])("div",I,[Object(a["createElementVNode"])("img",{src:e.parseImgUrl("ipdImages","template-icon.svg"),alt:""},null,8,k),S,e.officeData.temperature?(Object(a["openBlock"])(),Object(a["createElementBlock"])("span",x,[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.officeData.temperature),1),y])):Object(a["createCommentVNode"])("",!0)])]),Object(a["createElementVNode"])("div",C,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.envlist,(function(t,n){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:Object(a["normalizeClass"])(["env-item",[1==n?"env-color":"",t.bgColor?"env-item-radius":""]]),style:Object(a["normalizeStyle"])([{background:t.bgColor?t.bgColor:""},{opacity:t.bgColor?.8:""}]),key:"env"+n,onClick:function(n){return e.handleDetail(t)}},[Object(a["createElementVNode"])("div",null,[Object(a["createElementVNode"])("img",{src:e.parseImgUrl("ipdImages",t.img),alt:""},null,8,D),Object(a["createElementVNode"])("span",null,Object(a["toDisplayString"])(t.name),1)]),Object(a["createElementVNode"])("div",N,[Object(a["createTextVNode"])(Object(a["toDisplayString"])(t.num)+" ",1),Object(a["createElementVNode"])("sup",null,Object(a["toDisplayString"])(t.unit),1)])],14,w)})),128))])]),e.spaceData&&e.spaceData.length>1?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",E,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.spaceData,(function(t,n){return Object(a["openBlock"])(),Object(a["createElementBlock"])(a["Fragment"],null,[n<3?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:Object(a["normalizeClass"])(["fotter-item",t.active?"fotter-item-active":""]),key:n+"nav",onClick:function(n){return e.changeSpace(t)}},[t.active?(Object(a["openBlock"])(),Object(a["createElementBlock"])("img",{key:0,src:e.parseImgUrl("ipdImages","rectangle-active.svg")},null,8,B)):(Object(a["openBlock"])(),Object(a["createElementBlock"])("img",{key:1,src:e.parseImgUrl("ipdImages","rectangle1.svg")},null,8,A)),Object(a["createElementVNode"])("span",null,Object(a["toDisplayString"])(t.spaceName),1)],10,V)):Object(a["createCommentVNode"])("",!0)],64)})),256)),e.spaceData&&e.spaceData.length>3?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{key:0,class:"fotter-item-end",onClick:t[4]||(t[4]=function(){return e.moreSpace&&e.moreSpace.apply(e,arguments)})},[Object(a["createElementVNode"])("img",{src:e.parseImgUrl("ipdImages","rectangle-fotter.svg")},null,8,L),W])):Object(a["createCommentVNode"])("",!0)])):Object(a["createCommentVNode"])("",!0)]),Object(a["createElementVNode"])("div",M,["开放"===e.roomType&&e.isWork||"会议室"===e.roomType&&e.scenarioArr&&e.scenarioArr.length?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",F,["开放"===e.roomType&&e.isWork?(Object(a["openBlock"])(),Object(a["createBlock"])(P,{key:0,scenarioArr:e.scenarioArr,workkArr:e.workkArr,onTriggerWork:e.triggerWork,onSetForceOverTimeFlag:e.setForceOverTimeFlag},null,8,["scenarioArr","workkArr","onTriggerWork","onSetForceOverTimeFlag"])):Object(a["createCommentVNode"])("",!0),"会议室"===e.roomType&&e.scenarioArr&&e.scenarioArr.length?(Object(a["openBlock"])(),Object(a["createBlock"])(q,{key:1,activeType:e.activeType,scenarioArr:e.scenarioArr,spaceId:e.spaceInfo.spaceId,projectId:e.projectId,onSetHeadScene:e.setHeadScene},null,8,["activeType","scenarioArr","spaceId","projectId","onSetHeadScene"])):Object(a["createCommentVNode"])("",!0)])):Object(a["createCommentVNode"])("",!0),e.officeData.temperature||e.spaceExistenceDevice.airConditioner?(Object(a["openBlock"])(),Object(a["createBlock"])(R,{id:"airId",key:"airId",onTriggerWork:e.triggerWork,forceOverTimeFlag:e.forceOverTimeFlag,onUpdateAirTemp:e.updateAirTemp,hasAir:e.spaceExistenceDevice.airConditioner,airVolumes:e.officeData.airVolumes,temperature:e.officeData.temperature,spaceId:e.spaceInfo.spaceId,projectId:e.projectId,isACATVA:e.isACATVA,userIsControl:e.userIsControl},null,8,["onTriggerWork","forceOverTimeFlag","onUpdateAirTemp","hasAir","airVolumes","temperature","spaceId","projectId","isACATVA","userIsControl"])):Object(a["createCommentVNode"])("",!0),e.spaceExistenceDevice.light?(Object(a["openBlock"])(),Object(a["createBlock"])(H,{forceOverTimeFlag:e.forceOverTimeFlag,onTriggerWork:e.triggerWork,id:"lightId",key:"lightId",userIsControl:e.userIsControl,spaceId:e.spaceInfo.spaceId,projectId:e.projectId},null,8,["forceOverTimeFlag","onTriggerWork","userIsControl","spaceId","projectId"])):Object(a["createCommentVNode"])("",!0),e.spaceExistenceDevice.curtain?(Object(a["openBlock"])(),Object(a["createBlock"])(z,{spaceId:e.spaceInfo.spaceId,id:"curtainId",key:"curtainId",userIsControl:e.userIsControl,projectId:e.projectId},null,8,["spaceId","userIsControl","projectId"])):Object(a["createCommentVNode"])("",!0)]),Object(a["createVNode"])(Y,{show:e.isShowWork,"onUpdate:show":t[5]||(t[5]=function(t){return e.isShowWork=t}),position:"right",class:"popup-content",teleport:"#app"},{default:Object(a["withCtx"])((function(){return[e.isShowWork?(Object(a["openBlock"])(),Object(a["createBlock"])(J,{key:0,spaceInfo:e.spaceInfo,onCloseWork:e.closeWork,projectId:e.projectId,workkArr:e.workkArr},null,8,["spaceInfo","onCloseWork","projectId","workkArr"])):Object(a["createCommentVNode"])("",!0)]})),_:1},8,["show"]),Object(a["createVNode"])(Y,{show:e.isShowMetting,"onUpdate:show":t[6]||(t[6]=function(t){return e.isShowMetting=t}),position:"right","close-on-click-overlay":!1,class:"popup-content",teleport:"#app"},{default:Object(a["withCtx"])((function(){return[Object(a["createVNode"])(G,{secenaroStatus:e.secenaroStatus,onCloseDailog:e.closeDailog},null,8,["secenaroStatus","onCloseDailog"])]})),_:1},8,["show"]),Object(a["createVNode"])(Y,{show:e.isShowDetail,"onUpdate:show":t[7]||(t[7]=function(t){return e.isShowDetail=t}),position:"right","close-on-click-overlay":!0,class:"popup-content",teleport:"#app"},{default:Object(a["withCtx"])((function(){return[e.isShowDetail?(Object(a["openBlock"])(),Object(a["createBlock"])(X,{key:0,query:e.detailQuery},null,8,["query"])):Object(a["createCommentVNode"])("",!0)]})),_:1},8,["show"]),Object(a["createVNode"])(Y,{show:e.isShowMap,"onUpdate:show":t[8]||(t[8]=function(t){return e.isShowMap=t}),class:"map-popup",position:"bottom",style:{width:"100%",height:"70%"},"close-on-click-overlay":!0,teleport:"#app"},{default:Object(a["withCtx"])((function(){return[e.defaultSpace.spaceId&&e.isShowMap?(Object(a["openBlock"])(),Object(a["createBlock"])(K,{key:0,spaceData:e.copySpaceData,spaceInfo:e.defaultSpace,projectId:e.projectId,floorId:e.defaultSpace.floorId,buildingId:e.defaultSpace.buildingId,onChangeSpace:e.changeSpace},null,8,["spaceData","spaceInfo","projectId","floorId","buildingId","onChangeSpace"])):Object(a["createCommentVNode"])("",!0)]})),_:1},8,["show"]),Object(a["createVNode"])($,{isShowContact:e.isShowContact,onCloseDailog:e.closeContactDailog},null,8,["isShowContact","onCloseDailog"])],4)}n("99af"),n("c740"),n("c975"),n("d81d"),n("fb6a"),n("a9e3"),n("b680"),n("d3b7"),n("ac1f"),n("25f0"),n("5319"),n("1276");var _=n("5530"),P=n("2909"),q=(n("96cf"),n("1da1")),R=n("ade3"),H=function(e){return Object(a["pushScopeId"])("data-v-8cbaae9a"),e=e(),Object(a["popScopeId"])(),e},z={class:"work-content"},J={class:"work-space"},Y={class:"space-title"},G=H((function(){return Object(a["createElementVNode"])("div",{class:"device-tip"},"延时期间,空间相关设备会开启",-1)})),X={class:"add-time",id:"addTimeId"},K={key:0,class:"date_box"},$=["onClick"],Q={class:"sliders-list",id:"sliderListId"},Z={class:"sliders"},ee=["onClick","data-index"],te=H((function(){return Object(a["createElementVNode"])("div",{class:"start",id:"startId"},null,-1)})),ne=H((function(){return Object(a["createElementVNode"])("div",{class:"end-box",id:"endBoxId"},[Object(a["createElementVNode"])("div",{class:"end",id:"endId"}),Object(a["createElementVNode"])("div",{class:"end-radio",id:"endRadioId"})],-1)})),ae=[te,ne],ce={class:"add-time-btn"};function oe(e,t,n,c,o,r){var i=Object(a["resolveComponent"])("van-loading");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",z,[Object(a["createElementVNode"])("div",J,[Object(a["createElementVNode"])("div",Y,Object(a["toDisplayString"])(e.spaceInfo.spaceName)+" 申请延时",1),G]),Object(a["createElementVNode"])("div",X,[e.dateArr&&e.dateArr.length?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",K,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.dateArr,(function(t,n){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:Object(a["normalizeClass"])(["date-item",t.isActive?"date-item-active":""]),onClick:Object(a["withModifiers"])((function(a){return e.checkDate(t,n)}),["stop"]),key:"date"+n},[Object(a["createElementVNode"])("span",null,Object(a["toDisplayString"])(t.week),1),Object(a["createElementVNode"])("span",null,Object(a["toDisplayString"])(t.day),1)],10,$)})),128))])):Object(a["createCommentVNode"])("",!0),Object(a["createElementVNode"])("div",Q,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.nowTimerArr,(function(t,n){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{key:"slider"+n,class:"sliders-wrapper",id:"slidersWrapperId"},[Object(a["createElementVNode"])("div",Z,[Object(a["withDirectives"])(Object(a["createElementVNode"])("div",{class:"label"},Object(a["toDisplayString"])(t.timer),513),[[a["vShow"],0===n||n%2===0]]),Object(a["createElementVNode"])("div",{class:"slider-box",onClick:function(a){return e.checkSlider(t,n)},"data-index":n},null,8,ee)])])})),128)),Object(a["createElementVNode"])("div",{class:"slider-btn",id:"sliderBtnId",onClick:t[0]||(t[0]=function(){return e.triggerDelTime&&e.triggerDelTime.apply(e,arguments)})},ae)])]),Object(a["createElementVNode"])("div",ce,[Object(a["createElementVNode"])("div",{class:"cancel-btn",onClick:t[1]||(t[1]=function(){return e.closeWorkTimer&&e.closeWorkTimer.apply(e,arguments)})},"取消"),Object(a["createElementVNode"])("div",{class:Object(a["normalizeClass"])(["comfirm-btn",e.formBtn?"comfirm-btn-diabled":""]),onClick:t[2]||(t[2]=function(){return e.addWorkTimer&&e.addWorkTimer.apply(e,arguments)})}," 提交申请 ",2)]),e.showLoading?(Object(a["openBlock"])(),Object(a["createBlock"])(i,{key:0,class:"temp-loading"})):Object(a["createCommentVNode"])("",!0)])}var re=n("2241"),ie=(n("e17f"),n("c199")),le=n("fe7e"),se=n("f691"),ue=n("8405"),de=n("4a89"),me=n("f465"),pe=n("cdd8");const[fe,be]=Object(le["a"])("slider"),ge={min:Object(se["c"])(0),max:Object(se["c"])(100),step:Object(se["c"])(1),range:Boolean,reverse:Boolean,disabled:Boolean,readonly:Boolean,vertical:Boolean,barHeight:se["f"],buttonSize:se["f"],activeColor:String,inactiveColor:String,modelValue:{type:[Number,Array],default:0}};var ve=Object(a["defineComponent"])({name:fe,props:ge,emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:t,slots:n}){let c,o,r;const i=Object(a["ref"])(),l=Object(a["ref"])(),s=Object(pe["a"])(),u=Object(a["computed"])(()=>Number(e.max)-Number(e.min)),d=Object(a["computed"])(()=>{const t=e.vertical?"width":"height";return{background:e.inactiveColor,[t]:Object(ue["b"])(e.barHeight)}}),m=t=>e.range&&Array.isArray(t),p=()=>{const{modelValue:t,min:n}=e;return m(t)?100*(t[1]-t[0])/u.value+"%":100*(t-Number(n))/u.value+"%"},f=()=>{const{modelValue:t,min:n}=e;return m(t)?100*(t[0]-Number(n))/u.value+"%":"0%"},b=Object(a["computed"])(()=>{const t=e.vertical?"height":"width",n={[t]:p(),background:e.activeColor};l.value&&(n.transition="none");const a=()=>e.vertical?e.reverse?"bottom":"top":e.reverse?"right":"left";return n[a()]=f(),n}),g=t=>{const n=+e.min,a=+e.max,c=+e.step;t=Object(ue["d"])(t,n,a);const o=Math.round((t-n)/c)*c;return Object(ue["a"])(n,o)},v=(e,t)=>JSON.stringify(e)===JSON.stringify(t),O=t=>{var n,a;const c=null!=(n=t[0])?n:Number(e.min),o=null!=(a=t[1])?a:Number(e.max);return c>o?[o,c]:[c,o]},j=(n,a)=>{n=m(n)?O(n).map(g):g(n),v(n,e.modelValue)||t("update:modelValue",n),a&&!v(n,r)&&t("change",n)},h=t=>{if(t.stopPropagation(),e.disabled||e.readonly)return;const{min:n,reverse:a,vertical:c,modelValue:o}=e,r=Object(me["l"])(i),l=()=>c?a?r.bottom-t.clientY:t.clientY-r.top:a?r.right-t.clientX:t.clientX-r.left,s=c?r.height:r.width,d=Number(n)+l()/s*u.value;if(m(o)){const[e,t]=o,n=(e+t)/2;j(d<=n?[d,t]:[e,d],!0)}else j(d,!0)},T=t=>{e.disabled||e.readonly||(s.start(t),o=e.modelValue,r=m(o)?o.map(g):g(o),l.value="start")},I=n=>{if(e.disabled||e.readonly)return;"start"===l.value&&t("drag-start",n),Object(de["e"])(n,!0),s.move(n),l.value="dragging";const a=Object(me["l"])(i),d=e.vertical?s.deltaY.value:s.deltaX.value,p=e.vertical?a.height:a.width;let f=d/p*u.value;if(e.reverse&&(f=-f),m(r)){const t=e.reverse?1-c:c;o[t]=r[t]+f}else o=r+f;j(o)},k=n=>{e.disabled||e.readonly||("dragging"===l.value&&(j(o,!0),t("drag-end",n)),l.value="")},S=t=>{if("number"===typeof t){const e=["left","right"];return be("button-wrapper",e[t])}return be("button-wrapper",e.reverse?"left":"right")},x=(t,c)=>{if("number"===typeof c){const e=n[0===c?"left-button":"right-button"];if(e)return e({value:t})}return n.button?n.button({value:t}):Object(a["createVNode"])("div",{class:be("button"),style:Object(ue["f"])(e.buttonSize)},null)},y=t=>{const n="number"===typeof t?e.modelValue[t]:e.modelValue;return Object(a["createVNode"])("div",{role:"slider",class:S(t),tabindex:e.disabled?void 0:0,"aria-valuemin":e.min,"aria-valuenow":n,"aria-valuemax":e.max,"aria-disabled":e.disabled||void 0,"aria-readonly":e.readonly||void 0,"aria-orientation":e.vertical?"vertical":"horizontal",onTouchstart:e=>{"number"===typeof t&&(c=t),T(e)},onTouchmove:I,onTouchend:k,onTouchcancel:k,onClick:de["i"]},[x(n,t)])};return j(e.modelValue),Object(me["h"])(()=>e.modelValue),()=>Object(a["createVNode"])("div",{ref:i,style:d.value,class:be({vertical:e.vertical,disabled:e.disabled}),onClick:h},[Object(a["createVNode"])("div",{class:be("bar"),style:b.value},[e.range?[y(0),y(1)]:y()])])}});const Oe=Object(ie["a"])(ve);var je=Oe;n("68ef"),n("9617"),n("ac1e");function he(e,t){var n=!1,a=0,c=0,o=0,r=0,i=0,l=0,s=function(){},u={swipeLeft:s,swipeRight:s,swipeDown:s,swipeUp:s,drag:s};Object.assign(u,t),e.addEventListener("touchstart",(function(e){a=e.touches[0].pageX,c=e.touches[0].pageY,i=0,l=0}),{passive:!0}),e.addEventListener("touchmove",(function(t){if(n=!0,o=t.touches[0].pageX,r=t.touches[0].pageY,t.mation={startX:a,startY:c,moveX:o,moveY:r,disX:i,disY:l},u.drag.call(e,t),n){var s=Math.abs(o-a),d=Math.abs(r-c);s>d?o-a>0?u.swipeRight.call(e,t):u.swipeLeft.call(e,t):r-a>0?u.swipeDown.call(e,t):u.swipeUp.call(e,t)}}),{passive:!0}),e.addEventListener("touchend",(function(e){n=!1}))}var Te=n("d257"),Ie=n("459d"),ke=Object(a["defineComponent"])({components:{VanSlider:je},props:{workkArr:{type:Array,default:function(){return[]}},projectId:{type:String,default:function(){return""}},spaceInfo:{type:Object,default:function(){}}},setup:function(e,t){var n=Object(a["getCurrentInstance"])(),c={screenWidth:0,screenHeight:0},o=[],r=[],i=Object(Te["q"])(),l=[],s={},u="".concat(Object(Te["x"])("ipdImages","time-check.svg")),d="linear-gradient(0deg, rgba(255, 0, 0, 0.2), rgba(255, 0, 0, 0.2)), url(".concat(u,")"),m=Object(Te["s"])(),p=Object(a["reactive"])({userInfo:m,isEvent:!1,screenInfo:c,projectId:e.projectId,workkArr:e.workkArr,bgRed:d,startIndex:0,endIndex:0,nowData:s,nowTimerArr:l,timerArr:i,startLen:0,formBtn:!1,showLoading:!1,setScreennWidth:function(){var e=document.querySelector("#addTimeId");p.screenInfo.screenWidth=e.offsetWidth},getNowIndex:function(){var e=Object(Te["k"])()[1];return e},getTomorrowIndex:function(){var e=0;return"今天"===p.nowData.week&&(e=Object(Te["k"])()[1]),e},getNowPerstion:function(e){var t=p.getNowIndex(),n={nowIndex:t,len:4},a=e[t].formatTimer,c=p.parseCusStartTime(p.nowData.cusStartTime),o=p.parseCusEndTime(p.nowData.cusEndTime);return a>=c&&a<=o?e.map((function(e,t){e.formatTimer===o&&(n.nowIndex=t)})):a<c&&e.map((function(e,a){e.formatTimer===c&&(n.len=a-t,n.len>4&&(n.len=4))})),n},setOptionnalTime:function(e){var t=document.querySelector("#sliderListId"),n=document.querySelector("#slidersWrapperId"),a=n.getBoundingClientRect().width;t.style.width=a*e.length+"px";var c=p.getNowPerstion(e).nowIndex,o=p.getNowPerstion(e).len,r=a*c;r>p.screenInfo.screenWidth+p.screenInfo.screenWidth/2&&(r-=a),t.style.left=-r+"px",p.setOptionnalPerstion(c,o)},sliderSwiper:function(){var e=document.querySelector("#sliderListId"),t=(document.querySelector("#slidersWrapperId"),0),n=e.offsetWidth-p.screenInfo.screenWidth;e.addEventListener("touchstart",(function(n){t=isNaN(parseInt(e.style.left))?0:parseInt(e.style.left),t=Math.abs(t)})),he(e,{swipeLeft:function(a){if(!p.checkMoveTarget(a)){var c=isNaN(parseInt(e.style.left))?0:parseInt(e.style.left);c=Math.abs(c),e.style.left=c>=n?-n+"px":-t-Math.abs(a.mation.moveX-a.mation.startX)+"px"}},swipeRight:function(n){if(!p.checkMoveTarget(n)){var a=isNaN(parseInt(e.style.left))?0:parseInt(e.style.left);e.style.left=a>=0?"0px":-t+Math.abs(n.mation.moveX-n.mation.startX)+"px"}}})},checkMoveTarget:function(e){var t=document.querySelector("#endBoxId"),n=document.querySelector("#endId"),a=document.querySelector("#endRadioId");return e.target===t||e.target===n||e.target===a},checkPersionService:function(){for(var e=!1,t=p.startIndex;t<p.endIndex;t++)if(p.nowTimerArr[t].isServiceTime){e=!0;break}p.formBtn=e},cancelRemoveListener:function(){var e=document.querySelector("#endBoxId");e.removeEventListener("touchstart",(function(e){}),!1),e.removeEventListener("touchend",(function(e){}),!1),e.removeEventListener("touchmove",(function(e){}),!1);var t=document.querySelector("#sliderListId");t.removeEventListener("touchstart",(function(e){}),!1),t.removeEventListener("touchend",(function(e){}),!1),t.removeEventListener("touchmove",(function(e){}),!1)},endBoxSwiper:function(){var e=document.querySelector("#sliderListId"),t=document.querySelector("#endBoxId"),n=document.querySelector("#sliderBtnId"),a=document.querySelector("#startId"),c=document.querySelectorAll(".slider-box")[0],o=0,r=0,i=0,l=0,s=!1;t.addEventListener("touchstart",(function(e){s=!1,isNaN(parseInt(a.style.left))?0:parseInt(a.style.left),o=isNaN(parseInt(n.style.left))?0:parseInt(n.style.left),i=n.offsetWidth,l=c.offsetWidth})),t.addEventListener("touchend",(function(e){if(s){i=n.offsetWidth;var t=Math.ceil(i/c.offsetWidth);p.startIndex+t>=p.timerArr.length-1&&(t=p.timerArr.length-1-p.startIndex),n.style.width=c.offsetWidth*t+"px",n.style.background="rgba(0,0,0,0.2)",p.setOptionnalPerstion(p.startIndex,t),s=!1,p.checkPersionService()}})),he(t,{swipeLeft:function(t){if(p.checkMoveTarget(t)){0,s=!0;var a=Math.abs(t.mation.moveX-t.mation.startX),r=isNaN(parseInt(e.style.left))?0:parseInt(e.style.left);r=Math.abs(r);var u=c.offsetWidth;i-a<=u?n.style.width=u+"px":(n.style.width=i-a+"px",p.cancelSliderBoxColor());Object(Te["x"])("ipdImages","time-wait.svg");if(n.style.background="linear-gradient(0deg, rgba(0, 255, 163, 0.2), rgba(0, 255, 163, 0.2))",o+(i-a)-l<r){var d=r+l-(o+i-a)-r;e.style.left=d>0?"0px":d+"px"}}},swipeRight:function(t){if(p.checkMoveTarget(t)){s=!0,1;var a=Math.abs(t.mation.moveX-t.mation.startX);n.style.background="linear-gradient(0deg, rgba(0, 255, 163, 0.2), rgba(0, 255, 163, 0.2))";var l=isNaN(parseInt(e.style.left))?0:parseInt(e.style.left);l=Math.abs(l);var u=e.offsetWidth-p.screenInfo.screenWidth;if(r=l+p.screenInfo.screenWidth,o+i+a+2*c.offsetWidth>=r){var d=-l-(o+i+a+2*c.offsetWidth-r);e.style.left=d+"px",l>=u&&(e.style.left=-u+"px")}o+i+a+c.offsetWidth>=e.offsetWidth?n.style.width=e.offsetWidth-o-c.offsetWidth+"px":n.style.width=i+a+"px"}}})},cancelSliderBoxColor:function(){for(var e=document.querySelectorAll(".slider-box"),t=0;t<e.length;t++)p.nowTimerArr[t].isCheck||t>=p.startIndex&&t<p.startIndex+p.startLen&&(e[t].style.background="linear-gradient(0deg, rgba(0, 255, 163, 0.2), rgba(0, 255, 163, 0.2))")},setOptionnalPerstion:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;document.querySelector("#sliderListId");p.startIndex=e,p.startLen=t,p.endIndex=p.startIndex+t;for(var n=document.querySelector("#slidersWrapperId"),a=n.getBoundingClientRect().width,c=document.querySelector("#sliderBtnId"),o=(document.querySelector("#endBoxId"),document.querySelectorAll(".slider-box")),r=p.getTomorrowIndex(),i=0;i<o.length;i++)i>=r&&(o[i].style.background="transparent");for(var l=Object(Te["x"])("ipdImages","time-wait.svg"),s=0;s<t;s++)o[e+s].style.background="linear-gradient(0deg, rgba(0, 255, 163, 0.2), rgba(0, 255, 163, 0.2)), url(".concat(l,")");c.style.width=a*t+"px",c.style.background="rgba(0,0,0,0.2)";var u=a*e;c.style.left=u+"px",p.setCheckTimeStyle(),p.setServiceTimerStyle()},setPastTime:function(e){if("今天"===p.nowData.week)for(var t=document.querySelectorAll(".slider-box"),n=0;n<t.length;n++)n<e&&(t[n].style.background="rgba(196, 196, 196, 0.2)")},setCheckTimeStyle:function(){for(var e=p.nowTimerArr,t=document.querySelectorAll(".slider-box"),n=0;n<e.length;n++)e[n].isCheck&&(t[n].style.background=p.bgRed)},setServiceTimerStyle:function(){for(var e=p.nowTimerArr,t=document.querySelectorAll(".slider-box"),n=0;n<e.length;n++)e[n].isServiceTime&&(t[n].style.background="rgba(196, 196, 196, 0.2)")},parseCusStartTime:function(e){var t=e;if(e){var n=e/100%100;if(n){var a=e/1e4;a=parseInt(a),n<30?t=a<10?"0"+a+"3000":a+"3000":n>30&&(a+=1,t=a<10?"0"+a+"0000":a+"0000")}}return t},parseCusEndTime:function(e){var t=e;if(e){var n=e/100%100;if(n){var a=e/1e4;a=parseInt(a),n<30?t=a<10?"0"+a+"0000":a+"0000":n>30&&(t=a<10?"0"+a+"3000":a+"3000")}}return t},checkSlider:function(e,t){if(t!==p.nowTimerArr.length-1){p.formBtn=!1;var n=p.getNowIndex();if(!("今天"===p.nowData.week&&t<n)){if(p.nowData.cusStartTime&&p.nowData.cusEndTime){var a=p.nowTimerArr[t].formatTimer,c=p.parseCusStartTime(p.nowData.cusStartTime),o=p.parseCusEndTime(p.nowData.cusEndTime);if(a>=c&&a<o)return}p.setOptionnalPerstion(t)}}},dateArr:o,myTimeArr:r,setWorkTimeList:function(){p.isUpdate=!1,n.proxy.$loadinngEnd();var e=p.workkArr;p.dateArr=[];for(var t=Object(Te["a"])("YYYY-MM-DD"),a=function(n){var a,c,o=Object(Te["b"])(e[n].date),r=p.parseCusStartTime(e[n].cusStartTime),i=p.parseCusEndTime(e[n].cusEndTime),l=Object(Te["t"])(new Date(o).getDay());o===t&&(l="今天");for(var s=[],u=0;u<p.timerArr.length;u++){var d={timer:p.timerArr[u],isCheck:!1,formatTimer:p.timerArr[u].replace(/[:]/g,"")+"00"};s.push(d)}var m=null!==(a=null===(c=e[n])||void 0===c?void 0:c.customSceneList)&&void 0!==a?a:[];m.map((function(e){for(var t=0;t<s.length;t++)if(s[t].formatTimer<r){var n=p.parseCusStartTime(e.startTime),a=p.parseCusStartTime(e.endTime);s[t].formatTimer>=n&&s[t].formatTimer<a&&(s[t].isCheck=!0)}else{var c=p.parseCusEndTime(e.startTime),o=p.parseCusEndTime(e.endTime);s[t].formatTimer>=c&&s[t].formatTimer<o&&(s[t].isCheck=!0)}})),r&&i&&s.map((function(e){e.formatTimer>=r&&e.formatTimer<i?e.isServiceTime=!0:e.isServiceTime=!1})),p.dateArr.push({date:o,isActive:!1,oldDate:e[n].date,objectId:e[n].objectId,cusStartTime:e[n].cusStartTime,customSceneList:m,cusEndTime:e[n].cusEndTime,day:Object(Te["g"])(new Date(o)),week:l,timerArr:s})},c=0;c<e.length;c++)a(c);p.dateArr.map((function(e,t){t!==p.activeIndex||p.checkDate(e,t)}))},clearTimerBoxStyle:function(){p.dateArr.map((function(e){e.isActive=!1}));for(var e=p.nowTimerArr,t=document.querySelectorAll(".slider-box"),n=0;n<e.length;n++)t[n].style.background="transparent"},activeIndex:0,checkDate:function(e,t){p.clearTimerBoxStyle(),e.isActive=!0,p.activeIndex=t,p.nowTimerArr=p.dateArr[t].timerArr,p.nowData=p.dateArr[t],Object(a["nextTick"])((function(){p.setOptionnalTime(p.nowTimerArr);var e=p.getNowIndex();"今天"===p.nowData.week&&p.setPastTime(e),p.setCheckTimeStyle(),p.setServiceTimerStyle(),p.isEvent||(p.changeEl(),p.isEvent=!0)}))},flag:!1,changeEl:function(){p.setScreennWidth(),p.sliderSwiper(),p.endBoxSwiper()},formateAddTimer:function(){var e=p.nowData.customSceneList,t=p.nowData.timerArr,n=t[p.startIndex].formatTimer,a=t[p.endIndex].formatTimer,c=[];e.map((function(e,t){if(n<e.startTime){if(a<e.startTime);else if(a>=e.startTime){var o=p.formaTimeObj(e,"1",e.startTime,e.endTime);c.push(o),n=n,a=a}}else if(n>=e.startTime&&n<e.endTime){if(a<=e.endTime){var r=p.formaTimeObj(e,"1",e.startTime,e.endTime);c.push(r),n=n,a=a}else if(a>e.endTime){var i=p.formaTimeObj(e,"1",e.startTime,e.endTime);c.push(i),n=e.startTime,a=a}}else if(n>e.endTime){if(n===e.endTime){p.formaTimeObj(e,"1",e.startTime,e.endTime);n=e.startTime,a=a}}else n===e.startTime&&e.endTime}));var o=p.parseCusStartTime(p.nowData.cusStartTime),r=p.parseCusEndTime(p.nowData.cusEndTime);n<o&&a<=o?a===o&&(a=p.nowData.cusStartTime):n>=r&&n===r&&(n=p.nowData.cusEndTime);var i=Object(Te["n"])(),l="0";"今天"===p.nowData.week&&i>=n&&i<=a&&(l="2");var s=p.formaTimeObj(e[0],l,n,a);c.push(s);var u=c;return u},formaTimeObj:function(e,t,n,a){var c={projectId:p.projectId,objectId:p.nowData.objectId,sourceType:"sagacareAndtenantslink",startDate:p.nowData.oldDate,endDate:p.nowData.oldDate,startTime:n,endTime:a,type:t,userId:p.userInfo.userId,userPhone:p.userInfo.userPhone,customSceneEqType:"ALL",userName:p.userInfo.userName};return"1"===t&&(c.id=e.id),c},formateDelTimer:function(){var e=p.nowData.timerArr,t=p.endIndex>0?p.endIndex-1:0;if(e[p.startIndex].isCheck&&e[t].isCheck){var n=p.nowData.customSceneList,a=e[p.startIndex].formatTimer,c=e[p.endIndex].formatTimer,o=[],r=[];n.map((function(e,t){if(e.startTime<a){if(e.endTime<=c){var i=p.formaTimeObj(e,"1",e.startTime,e.endTime);o.push(i);var l=p.formaTimeObj(n[0],"0",e.startTime,a);r.push(l)}else if(e.endTime>c){var s=p.formaTimeObj(e,"1",e.startTime,e.endTime);o.push(s);var u=p.formaTimeObj(n[0],"0",e.startTime,a);r.push(u);var d=p.formaTimeObj(n[0],"0",c,e.endTime);r.push(d)}}else if(e.startTime===e.startTime){if(e.endTime<=c){var m=p.formaTimeObj(e,"1",e.startTime,e.endTime);o.push(m)}else if(e.endTime>c){var f=p.formaTimeObj(e,"1",e.startTime,e.endTime);o.push(f);var b=p.formaTimeObj(n[0],"0",c,e.endTime);r.push(b)}}else if(e.startTime>a)if(e.endTime<=c){var g=p.formaTimeObj(e,"1",e.startTime,e.endTime);o.push(g)}else if(e.endTime>c){var v=p.formaTimeObj(e,"1",e.startTime,e.endTime);o.push(v);var O=p.formaTimeObj(n[0],"0",c,e.endTime);r.push(O)}})),r.map((function(e){var t=Object(Te["n"])();t>=e.startTime&&t<=e.endTime&&e.type}));var i=r.concat(o);return i}return[]},closeWorkTimer:function(){p.formBtn=!1,t.emit("closeWork")},addWorkTimer:function(){var e=p.formateAddTimer();p.saveBatchCustomScene(e)},saveBatchCustomScene:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;p.showLoading=!0,p.formBtn=!0,Object(Ie["J"])(e).then((function(e){1===n?(t.emit("closeWork"),p.showLoading=!1):2===n&&(p.isUpdate=!0),p.formBtn=!1})).catch((function(){p.showLoading=!1}))},isUpdate:!1,triggerDelTime:function(){var e=p.formateDelTimer();e&&e.length&&re["a"].confirm({title:"确认",message:"确定删除当前时间吗?"}).then((function(){p.saveBatchCustomScene(e,2)})).catch((function(){}))}});return Object(a["watch"])(e,(function(e){p.workkArr=e.workkArr,p.projectId=e.projectId,p.isUpdate&&p.setWorkTimeList()})),Object(a["onMounted"])((function(){p.setWorkTimeList()})),Object(_["a"])({},Object(a["toRefs"])(p))}}),Se=(n("25df"),n("6b0d")),xe=n.n(Se);const ye=xe()(ke,[["render",oe],["__scopeId","data-v-8cbaae9a"]]);var Ce=ye,we={class:"contact-content"},De=Object(a["createElementVNode"])("div",{class:"title"},"联系我们",-1),Ne={class:"contact"},Ee={class:"code-box"},Ve=["src"],Be=Object(a["createElementVNode"])("div",{class:"title"},"客服微信二维码",-1),Ae={class:"phone-box"},Le=["src"],We={class:"title"},Me=Object(a["createElementVNode"])("div",{class:"concat-text"},"联系方式",-1),Fe=Object(a["createTextVNode"])("我知道了");function Ue(e,t,n,c,o,r){var i=Object(a["resolveComponent"])("buttons"),l=Object(a["resolveComponent"])("van-dialog");return Object(a["openBlock"])(),Object(a["createBlock"])(l,{show:e.isShowContact,"onUpdate:show":t[0]||(t[0]=function(t){return e.isShowContact=t}),"show-confirm-button":!1,class:"contact-dialog","show-cancel-button":!1},{default:Object(a["withCtx"])((function(){return[Object(a["createElementVNode"])("div",we,[De,Object(a["createElementVNode"])("div",Ne,[Object(a["createElementVNode"])("div",Ee,[Object(a["createElementVNode"])("img",{src:e.imgUrl+"&key="+e.contantDetail.wechatQrCode,alt:""},null,8,Ve),Be]),Object(a["createElementVNode"])("div",Ae,[Object(a["createElementVNode"])("img",{src:e.parseImgUrl("ipdImages","phone-icon.svg"),alt:""},null,8,Le),Object(a["createElementVNode"])("div",We,Object(a["toDisplayString"])(e.contantDetail.phone),1),Me])]),Object(a["createVNode"])(i,{class:"dailog-btn",onClick:e.closeDailog},{default:Object(a["withCtx"])((function(){return[Fe]})),_:1},8,["onClick"])])]})),_:1},8,["show"])}var _e=n("543e"),Pe=(n("e7e5"),Object(Te["s"])()),qe=Object(a["defineComponent"])({props:{isShowContact:{type:Boolean,default:function(){return!1}}},components:Object(R["a"])({VanLoading:_e["b"]},re["a"].Component.name,re["a"].Component),setup:function(e,t){var n={},c=Object(a["getCurrentInstance"])(),o=Object(a["reactive"])({parseImgUrl:Te["x"],contantDetail:n,userInfo:Pe,imgUrl:c.proxy.$imgUrl,isShowContact:e.isShowContact,closeDailog:function(){t.emit("closeDailog")},queryCustomerservice:function(){var e={criteria:{projectId:o.userInfo.projectId}};Object(Ie["G"])(e).then((function(e){var t,n=e,a=null!==(t=null===n||void 0===n?void 0:n.content)&&void 0!==t?t:[];o.contantDetail=a[0]}))}});return Object(a["watch"])(e,(function(e){o.isShowContact=e.isShowContact}),{deep:!1,immediate:!0}),Object(a["onMounted"])((function(){o.queryCustomerservice()})),Object(_["a"])({},Object(a["toRefs"])(o))}});n("3699");const Re=xe()(qe,[["render",Ue]]);var He=Re,ze=function(e){return Object(a["pushScopeId"])("data-v-45fb191f"),e=e(),Object(a["popScopeId"])(),e},Je={class:"scene-config"},Ye=["src"],Ge={class:"time-text"},Xe=["src"],Ke=ze((function(){return Object(a["createElementVNode"])("div",{class:"del-text"},[Object(a["createElementVNode"])("span",null,"我要"),Object(a["createElementVNode"])("span",null,"离开")],-1)}));function $e(e,t,n,c,o,r){var i=Object(a["resolveComponent"])("leave-dailog");return Object(a["openBlock"])(),Object(a["createElementBlock"])(a["Fragment"],null,[Object(a["createElementVNode"])("div",Je,[Object(a["createElementVNode"])("div",{class:Object(a["normalizeClass"])(["time-box",e.timerText.classColor])},[Object(a["createElementVNode"])("img",{src:e.parseImgUrl("page-officehome","work.svg"),alt:""},null,8,Ye),Object(a["createElementVNode"])("div",Ge,[Object(a["createElementVNode"])("span",null,Object(a["toDisplayString"])(e.timerText.text),1),Object(a["createElementVNode"])("span",null,Object(a["toDisplayString"])(e.timerText.timer),1)]),Object(a["createElementVNode"])("div",{class:Object(a["normalizeClass"])(["time-btn",e.timerText.showDel?"time-btn-small":""]),onClick:t[0]||(t[0]=function(){return e.triggerWork&&e.triggerWork.apply(e,arguments)})},[Object(a["createElementVNode"])("span",null,Object(a["toDisplayString"])(e.timerText.btnText),1)],2)],2),e.timerText.showDel?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{key:0,class:"time-del",onClick:t[1]||(t[1]=function(){return e.myLeaving&&e.myLeaving.apply(e,arguments)})},[Object(a["createElementVNode"])("img",{src:e.parseImgUrl("page-officehome","goOffWork.svg"),alt:""},null,8,Xe),Ke])):Object(a["createCommentVNode"])("",!0)]),e.isShowLeaveDailog?(Object(a["openBlock"])(),Object(a["createBlock"])(i,{key:0,isShowLeaveDailog:e.isShowLeaveDailog,onCloseDailog:e.closeLeavDailog},null,8,["isShowLeaveDailog","onCloseDailog"])):Object(a["createCommentVNode"])("",!0)],64)}var Qe=n("6c02"),Ze=n("0613"),et=function(e){return Object(a["pushScopeId"])("data-v-10ea159b"),e=e(),Object(a["popScopeId"])(),e},tt={class:"air-dialog-content"},nt={class:"dialog-top"},at=["src"],ct=et((function(){return Object(a["createElementVNode"])("div",{class:"leave-title"},"工作辛苦了!",-1)})),ot={class:"leave-popup-body"},rt={key:1,class:"text-status"},it={key:2,class:"text-status grey"},lt=et((function(){return Object(a["createElementVNode"])("span",null,"隐藏",-1)})),st=[lt];function ut(e,t,n,c,o,r){var i=Object(a["resolveComponent"])("van-icon"),l=Object(a["resolveComponent"])("van-dialog");return Object(a["openBlock"])(),Object(a["createBlock"])(l,{show:e.isShowLeaveDailog,"onUpdate:show":t[1]||(t[1]=function(t){return e.isShowLeaveDailog=t}),class:"dialog-width","show-confirm-button":!1,"show-cancel-button":!1},{default:Object(a["withCtx"])((function(){return[Object(a["createElementVNode"])("div",tt,[Object(a["createElementVNode"])("div",nt,[e.leaveDetail.img?(Object(a["openBlock"])(),Object(a["createElementBlock"])("img",{key:0,class:"img-yellow",src:e.parseImgUrl("page-officehome",e.leaveDetail.img),alt:""},null,8,at)):Object(a["createCommentVNode"])("",!0)]),ct,Object(a["createElementVNode"])("div",ot,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.leaveDetail.textObj,(function(e,t){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:"body-item",key:t},["ok"===e.status?(Object(a["openBlock"])(),Object(a["createBlock"])(i,{key:0,name:"passed",style:{color:"#07c160","margin-right":"8px"}})):Object(a["createCommentVNode"])("",!0),"go"===e.status?(Object(a["openBlock"])(),Object(a["createElementBlock"])("span",rt)):Object(a["createCommentVNode"])("",!0),"grey"===e.status?(Object(a["openBlock"])(),Object(a["createElementBlock"])("span",it)):Object(a["createCommentVNode"])("",!0),Object(a["createElementVNode"])("span",null,Object(a["toDisplayString"])(e.text),1)])})),128))]),Object(a["createElementVNode"])("div",{class:"dialog-btns",onClick:t[0]||(t[0]=function(){return e.closeDailog&&e.closeDailog.apply(e,arguments)})},st)])]})),_:1},8,["show"])}var dt=Object(a["defineComponent"])({props:{isShowLeaveDailog:{type:Boolean,default:function(){return!1}}},components:Object(R["a"])({VanLoading:_e["b"]},re["a"].Component.name,re["a"].Component),setup:function(e,t){var n=Object(a["reactive"])({parseImgUrl:Te["x"],isShowLeaveDailog:e.isShowLeaveDailog,leaveDetail:{textObj:[{text:"已为您取消当前的预约时间",status:"ok"},{text:"系统将自动调整设备状态",status:"ok"},{text:"感谢您的预约使用",status:"ok"}]},closeDailog:function(){t.emit("closeDailog")}});return Object(a["watch"])(e,(function(e){n.isShowLeaveDailog=e.isShowLeaveDailog}),{deep:!1,immediate:!0}),Object(a["onMounted"])((function(){})),Object(_["a"])({},Object(a["toRefs"])(n))}});n("1196");const mt=xe()(dt,[["render",ut],["__scopeId","data-v-10ea159b"]]);var pt=mt,ft=Object(a["defineComponent"])({props:{scenarioArr:{type:Array,default:function(){return[]}},workkArr:{type:Array,default:function(){return[]}}},components:{LeaveDailog:pt},setup:function(e,t){Object(a["getCurrentInstance"])();var n=Object(Qe["d"])(),c={text:"",timer:"",btnText:"",showDel:!1,classColor:"grey"},o="",r=(Object(Ze["b"])(),[]),i=[],l=Object(a["reactive"])({parseImgUrl:Te["x"],leaveBtnFlag:!1,scenarioArr:e.scenarioArr,workkArr:e.workkArr,forcedOverTimeFlag:!1,onSubmit:function(e){n.push({path:"/choice-project"})},triggerWork:function(){t.emit("triggerWork")},timerText:c,text:o,formateTimeContinuous:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,c=l.workkArr;return l.text="",Object(Te["e"])(e,t,n,a,c,l)},beforeWorkTime:function(e,t){for(var n=!0,a=0;a<e.length;a++)e[a].startTime<t&&(n=!1);return n},afterWorkTime:function(e,t){for(var n=!0,a=0;a<e.length;a++)e[a].endTime>t&&(n=!1);return n},checkWorkTime:function(e,t){var n={type:0,startTime:0,endTime:0};if(l.beforeWorkTime(e,t))n.type=1;else if(l.afterWorkTime(e,t))n.type=2;else{for(var a=!0,c=0;c<e.length;c++)if(t>=e[c].startTime&&t<=e[c].endTime){n.startTime=e[c].startTime,n.endTime=e[c].endTime,n.type=3,a=!1;break}a&&(n.type=4)}return n},delTimeArr:r,customSceneList:i,formateWorkTime:function(){for(var e=l.workkArr,n=Object(Te["a"])("YYYY-MM-DD"),a=0;a<e.length;a++){var c,o,r=Object(Te["b"])(e[a].date),i=e[a].cusStartTime,s=e[a].cusEndTime,u=null!==(c=null===(o=e[a])||void 0===o?void 0:o.customSceneList)&&void 0!==c?c:[],d=Object(Te["n"])();Object(Te["t"])(new Date(r).getDay());r===n&&"今天",r===n&&function(){l.customSceneList=u;var e="",n="";if(i&&s||u.length)if(i&&s&&!u.length)if(d>=i&&d<=s)l.timerText.text="工作时间",l.timerText.timer=Object(Te["d"])(i)+"~"+Object(Te["d"])(s),l.timerText.classColor="yellow",l.timerText.btnText="预约延时",l.timerText.showDel=!1,l.forcedOverTimeFlag=!1;else{var a=l.formateTimeContinuous(0,e,n,2);a&&a.text?(l.timerText.text="已预约(".concat(a.text,")"),l.timerText.timer=Object(Te["d"])(a.startTime)+"~"+Object(Te["d"])(a.endTime)):(l.timerText.text="请选择工作时间段",l.timerText.timer="将自动开启办公服务"),l.timerText.classColor="grey",l.timerText.btnText="预约时间",l.timerText.showDel=!1,l.forcedOverTimeFlag=!0}else if(i&&s&&d>=i&&d<=s){e=i,n=s,u.map((function(e){n===e.startTime&&(n=e.endTime)}));var c=l.formateTimeContinuous(1,e,n,1);l.timerText.text="工作时间",l.timerText.timer=Object(Te["d"])(e)+"~"+Object(Te["d"])(n),c&&c.text&&(l.timerText.text="工作时间(今日~".concat(c.text,")"),l.timerText.timer=Object(Te["d"])(c.startTime)+"~"+Object(Te["d"])(c.endTime)),l.timerText.classColor="yellow",l.timerText.btnText="预约延时",l.timerText.showDel=!1,l.forcedOverTimeFlag=!1}else{var o=l.checkWorkTime(u,d);if(3===o.type){e=o.startTime,n=o.endTime,u.map((function(t){var a=n;e===t.startTime&&t.endTime,a===t.startTime&&(n=t.endTime)})),i&&s&&d<i&&(n===i&&(n=s),u.map((function(e){n===e.startTime&&(n=e.endTime)})));var r=l.formateTimeContinuous(1,e,n,1);l.timerText.text="工作时间",l.timerText.timer=Object(Te["d"])(e)+"~"+Object(Te["d"])(n),r&&r.text&&(l.timerText.text="工作时间~".concat(r.text),l.timerText.timer=Object(Te["d"])(r.startTime)+"~"+Object(Te["d"])(r.endTime)),l.timerText.classColor="yellow",l.timerText.btnText="预约延时",l.timerText.showDel=!0,l.forcedOverTimeFlag=!1}else{var m=l.formateTimeContinuous(0,e,n,2);m&&m.text&&m.startTime&&m.endTime?(l.timerText.text="已预约(".concat(m.text,")"),l.timerText.timer=Object(Te["d"])(m.startTime)+"~"+Object(Te["d"])(m.endTime)):(l.timerText.text="请选择工作时间段",l.timerText.timer="将自动开启办公服务"),l.timerText.classColor="grey",l.timerText.btnText="预约时间",l.timerText.showDel=!1,l.forcedOverTimeFlag=!0}}else{var p=l.formateTimeContinuous(0,e,n,2);p&&p.text?(l.timerText.text="已预约(".concat(p.text,")"),l.timerText.timer=Object(Te["d"])(p.startTime)+"~"+Object(Te["d"])(p.endTime)):(l.timerText.text="请选择工作时间段",l.timerText.timer="将自动开启办公服务"),l.timerText.classColor="grey",l.timerText.btnText="预约时间",l.timerText.showDel=!1,l.forcedOverTimeFlag=!0}t.emit("setForceOverTimeFlag",l.forcedOverTimeFlag)}()}},timeJoin:function(e,t){var n=0,a=0,c=l.checkWorkTime(e,t);3===c.type?(n=c.startTime,a=c.endTime,e.map((function(e){var t=a;n===e.startTime&&e.endTime,t===e.startTime&&(a=e.endTime)})),l.timerText.text="工作时间",l.timerText.timer=Object(Te["d"])(n)+"~"+Object(Te["d"])(a),l.timerText.classColor="yellow",l.timerText.btnText="预约延时",l.timerText.showDel=!0,l.forcedOverTimeFlag=!1):(e.map((function(e){if(t<e.startTime){e.startTime<n?(n=e.startTime,a=e.endTime):a===e.startTime&&(a=e.endTime)}})),n&&a?(l.timerText.text="已预约(今日)",l.timerText.timer=Object(Te["d"])(n)+"~"+Object(Te["d"])(a),l.timerText.classColor="grey",l.timerText.btnText="预约时间",l.timerText.showDel=!1,l.forcedOverTimeFlag=!0):(l.timerText.text="请选择工作时间段",l.timerText.timer="将自动开启办公服务",l.timerText.classColor="grey",l.timerText.btnText="预约时间",l.timerText.showDel=!1,l.forcedOverTimeFlag=!0))},formatDataDel:function(){l.delTimeArr=[];var e=l.customSceneList,t=Object(Te["n"])(),n=0,a=0,c=l.checkWorkTime(e,t);3===c.type&&(n=c.startTime,a=c.endTime,e.map((function(e){var t=a;n===e.startTime&&a===e.endTime&&(e.type=1,l.delTimeArr.push(e)),t===e.startTime&&(a=e.endTime,e.type=1,l.delTimeArr.push(e))})))},myLeaving:function(){l.formatDataDel(),l.leaveBtnFlag=!0,l.saveBatchCustomScene()},saveBatchCustomScene:function(){l.openLeavDailog(),Object(Ie["J"])(l.delTimeArr).then((function(e){l.leaveBtnFlag=!1})).catch((function(){l.leaveBtnFlag=!1}))},isShowLeaveDailog:!1,openLeavDailog:function(){l.isShowLeaveDailog=!0},closeLeavDailog:function(){l.isShowLeaveDailog=!1}});return Object(a["watch"])(e,(function(e){l.scenarioArr=e.scenarioArr,l.workkArr=e.workkArr,l.workkArr&&l.workkArr.length&&l.formateWorkTime()}),{deep:!0,immediate:!0}),Object(a["onMounted"])((function(){})),Object(_["a"])({},Object(a["toRefs"])(l))}});n("2821");const bt=xe()(ft,[["render",$e],["__scopeId","data-v-45fb191f"]]);var gt=bt,vt={class:"scene-config"},Ot=["onClick"],jt=["src"];function ht(e,t,n,c,o,r){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",vt,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.scenarioArr,(function(t,n){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{key:"scene"+n,class:Object(a["normalizeClass"])(["scene-item",t.sceneType===e.activeType?"scene-active":""]),onClick:function(n){return e.handleScene(t)},style:Object(a["normalizeStyle"])({flex:e.scenarioArr.length&&2==e.scenarioArr.length&&t.sceneType===e.activeType?2:1})},[Object(a["createElementVNode"])("img",{src:t.img,alt:""},null,8,jt),Object(a["createElementVNode"])("span",null,Object(a["toDisplayString"])(t.sceneName),1)],14,Ot)})),128))])}var Tt=Object(a["defineComponent"])({props:{projectId:{type:String,default:function(){return""}},spaceId:{type:String,default:function(){return""}},scenarioArr:{type:Array,default:function(){return[]}},activeType:{type:String,default:function(){return""}}},setup:function(e,t){var n=Object(Qe["d"])(),c=(Object(Ze["b"])(),{DISCUSSING:Object(Te["x"])("ipdImages","taolun.svg"),PROJECTING:Object(Te["x"])("ipdImages","touying.svg"),ADJOURNMENT:Object(Te["x"])("ipdImages","sanhui.svg")}),o=Object(a["reactive"])({parseImgUrl:Te["x"],scenarioArr:e.scenarioArr,scenarioImgArr:c,activeType:"DISCUSSING",onSubmit:function(e){n.push({path:"/choice-project"})},formatScenarioImg:function(){o.scenarioArr.map((function(e){e.img=o.scenarioImgArr[e.sceneType],"DISCUSSING"===e.sceneType?e.order=1:"PROJECTING"===e.sceneType?e.order=2:"ADJOURNMENT"===e.sceneType?e.order=3:e.order=4})),o.scenarioArr=o.scenarioArr.sort((function(e,t){return e.order-t.order}))},handleScene:function(n){o.activeType=n.sceneType;var a=Object(Te["s"])(),c={spaceId:e.spaceId,projectId:e.projectId,type:n.sceneType,pubname:a.pubname};n.loading=!0,n.lodingText="正在切换至",t.emit("setHeadScene",n),Object(Ie["N"])(c).then((function(e){var a=e;"success"===a.result&&(n.loading=!1,n.lodingText="切换至",t.emit("setHeadScene",n))})).catch((function(){n.loading=!1,n.lodingText="",t.emit("setHeadScene",n)}))}});return Object(a["watch"])(e,(function(e){o.scenarioArr=e.scenarioArr,o.formatScenarioImg(),o.activeType=e.activeType}),{deep:!1,immediate:!0}),Object(a["onMounted"])((function(){})),Object(_["a"])({},Object(a["toRefs"])(o))}});n("c7b6");const It=xe()(Tt,[["render",ht],["__scopeId","data-v-3ed2c47e"]]);var kt=It,St=n("0500"),xt=function(e){return Object(a["pushScopeId"])("data-v-0c0f4fb6"),e=e(),Object(a["popScopeId"])(),e},yt={class:"header-content"},Ct={class:"weather"},wt=["src"],Dt={class:"weather-text"},Nt={class:"pr5"},Et=xt((function(){return Object(a["createElementVNode"])("span",null,"/",-1)})),Vt=xt((function(){return Object(a["createElementVNode"])("span",{class:"pr5"},"PM2.5",-1)})),Bt={class:"pr5"};function At(e,t,n,c,o,r){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",yt,[Object(a["createElementVNode"])("div",Ct,[Object(a["withDirectives"])(Object(a["createElementVNode"])("img",{src:e.outWeather.imgname,class:"weather-icon",alt:""},null,8,wt),[[a["vShow"],e.outWeather.imgname]]),Object(a["createElementVNode"])("div",Dt,[Object(a["createElementVNode"])("p",null,[Object(a["createElementVNode"])("span",Nt,Object(a["toDisplayString"])(e.outWeather.temperature?e.outWeather.temperature:"--")+"℃",1),Et,Vt,Object(a["createElementVNode"])("span",null,Object(a["toDisplayString"])(e.outWeather.pm25?e.outWeather.pm25:"--"),1)]),Object(a["createElementVNode"])("p",null,[Object(a["createElementVNode"])("span",Bt,Object(a["toDisplayString"])(e.outWeather.text?e.outWeather.text:"--"),1),Object(a["createElementVNode"])("span",null,Object(a["toDisplayString"])(e.outWeather.quality?e.outWeather.quality:"--"),1)])])]),Object(a["createElementVNode"])("div",{class:"set-space-btn",onClick:t[0]||(t[0]=function(){return e.setPermanentSpace&&e.setPermanentSpace.apply(e,arguments)})}," 设置常驻空间 ")])}var Lt=n("ad06"),Wt=(n("c3a6"),Object(a["defineComponent"])({props:{outWeather:{type:Object,default:function(){return{}}}},components:{VanIcon:Lt["b"]},setup:function(){var e=Object(Qe["d"])(),t=Object(a["reactive"])({goBack:function(){window.history.go(-1)},setPermanentSpace:function(){e.push({path:"/mySpace"})}});return Object(_["a"])({},Object(a["toRefs"])(t))}}));n("67fc");const Mt=xe()(Wt,[["render",At],["__scopeId","data-v-0c0f4fb6"]]);var Ft=Mt,Ut=n("3ba9"),_t=function(e){return Object(a["pushScopeId"])("data-v-7769650f"),e=e(),Object(a["popScopeId"])(),e},Pt={class:"scenario"},qt=_t((function(){return Object(a["createElementVNode"])("div",{class:"title"},"切换场景",-1)})),Rt={class:"scenario-box"},Ht=["onClick"],zt=["src"];function Jt(e,t,n,c,o,r){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",Pt,[qt,Object(a["createElementVNode"])("div",Rt,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.popList,(function(t,n){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:Object(a["normalizeClass"])(["scenario-item",t.code===e.activeIndex?"active":""]),onClick:function(a){return e.handleScene(t,n)},key:n},[Object(a["createElementVNode"])("img",{src:e.parseImgUrl("page-officehome",t.img),alt:""},null,8,zt),Object(a["createElementVNode"])("span",null,Object(a["toDisplayString"])(t.name),1)],10,Ht)})),128))])])}var Yt=n("d399"),Gt=Object(a["defineComponent"])({props:{projectId:{type:String,default:function(){return""}},spaceId:{type:String,default:function(){return""}},popList:{type:Array,default:function(){return[]}},vanPopupIndex:{type:String,default:function(){return""}}},setup:function(e,t){var n={},c=Object(a["reactive"])({parseImgUrl:Te["x"],showSecenDetailDalig:!1,sceneDetail:n,activeIndex:e.vanPopupIndex,loadingStart:function(){Yt["a"].loading({duration:0,forbidClick:!0,message:"正在切换..."})},loadinngEnd:function(){Yt["a"].clear()},handleScene:function(n,a){for(var o=e.popList,r=n.name,i=0;i<o.length;i++){var l=o[i];r===l.name&&(c.sceneDetail=JSON.parse(JSON.stringify(l)),c.sceneDetail.textObj=[],l.textObj.map((function(e,t){setTimeout((function(){c.sceneDetail.textObj.push(e)}),150*(t+1))})))}c.loadingStart(),c.activeIndex=c.sceneDetail.code,c.showSecenDetailDalig=!0;var s=Object(Te["s"])(),u={spaceId:e.spaceId,projectId:e.projectId,type:c.sceneDetail.code,pubname:s.pubname};Object(Ie["N"])(u).then((function(e){c.loadinngEnd(),t.emit("setHeadScene",c.sceneDetail.name,c.sceneDetail)})).catch((function(){c.loadinngEnd(),t.emit("setHeadScene",c.sceneDetail.name,c.sceneDetail)}))}});return Object(a["watch"])(e,(function(e){c.activeIndex=e.vanPopupIndex})),Object(_["a"])({},Object(a["toRefs"])(c))}});n("3eb9");const Xt=xe()(Gt,[["render",Jt],["__scopeId","data-v-7769650f"]]);var Kt=Xt,$t=function(e){return Object(a["pushScopeId"])("data-v-62ed2ff7"),e=e(),Object(a["popScopeId"])(),e},Qt={class:"air"},Zt={class:"air-top"},en={class:"air-desc"},tn=$t((function(){return Object(a["createElementVNode"])("p",{class:"air-title"},"空调",-1)})),nn={class:"air-temperature"},an={key:0},cn={key:0,class:"air-status"},on={key:1,class:"air-loading"},rn=["src"],ln={class:"air-right"},sn=["src"],un={key:0,class:"air-control"},dn=$t((function(){return Object(a["createElementVNode"])("div",{class:"control-title"},"温度调节",-1)})),mn={class:"btn-box"},pn=["src"],fn=["src"],bn={key:1,class:"air-control"},gn=$t((function(){return Object(a["createElementVNode"])("div",{class:"control-title"},"风量调节",-1)})),vn={class:"btn-box"},On=["src"],jn=["src"],hn={class:"air-dialog-content"},Tn={class:"dialog-top"},In=["src"],kn={class:"dialog-text"},Sn={class:"air-body-item-num"},xn={key:0,class:"air-temp-num"},yn={key:1,class:"air-temp-load"},Cn={key:0,class:"air-notice"},wn=$t((function(){return Object(a["createElementVNode"])("span",null,"确定",-1)})),Dn=[wn];function Nn(e,t,n,c,o,r){var i=Object(a["resolveComponent"])("van-loading"),l=Object(a["resolveComponent"])("Switch"),s=Object(a["resolveComponent"])("van-dialog");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",Qt,[Object(a["createElementVNode"])("div",Zt,[Object(a["createElementVNode"])("div",en,[tn,Object(a["createElementVNode"])("p",nn,[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.airData.tempSet?e.airData.tempSet:"")+" ",1),e.airData.tempSet?(Object(a["openBlock"])(),Object(a["createElementBlock"])("sup",an,"℃")):Object(a["createCommentVNode"])("",!0)]),e.hasAir?(Object(a["openBlock"])(),Object(a["createElementBlock"])("p",cn,Object(a["toDisplayString"])(e.airData.isOpen?"空调已开启":"空调已关闭"),1)):Object(a["createCommentVNode"])("",!0),e.airData.isOpen?(Object(a["openBlock"])(),Object(a["createElementBlock"])("p",on,[1==e.airData.icon||2==e.airData.icon||3==e.airData.icon?(Object(a["openBlock"])(),Object(a["createElementBlock"])("img",{key:0,src:e.airRunImg,alt:""},null,8,rn)):Object(a["createCommentVNode"])("",!0),Object(a["createElementVNode"])("span",null,Object(a["toDisplayString"])(e.airData.spaceStatus),1)])):Object(a["createCommentVNode"])("",!0)]),Object(a["createElementVNode"])("div",ln,[e.airData.airImg?(Object(a["openBlock"])(),Object(a["createElementBlock"])("img",{key:0,src:e.airData.airImg,alt:""},null,8,sn)):(Object(a["openBlock"])(),Object(a["createBlock"])(i,{key:1,style:{"padding-top":"20px"}})),e.hasAir?(Object(a["openBlock"])(),Object(a["createBlock"])(l,{key:2,class:"switch-btn",loading:e.loadingAir||e.firstLoadingAir,disabled:!e.userIsControl||e.loadingAir||e.firstLoadingAir,"inactive-color":"rgba(196, 196, 196, 0.4)",onClick:e.airChange,"model-value":e.airData.isOpen},null,8,["loading","disabled","onClick","model-value"])):Object(a["createCommentVNode"])("",!0)])]),e.userIsControl&&e.airData.isOpen?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",un,[dn,Object(a["createElementVNode"])("div",mn,[Object(a["createElementVNode"])("div",{class:"control-btn mr20",onClick:t[0]||(t[0]=Object(a["withModifiers"])((function(t){return e.changeAir(4,"temp","toCold")}),["stop"]))},[Object(a["createElementVNode"])("img",{src:e.parseImgUrl("envmonitor","arrow-top.png"),alt:""},null,8,pn)]),Object(a["createElementVNode"])("div",{class:"control-btn",onClick:t[1]||(t[1]=Object(a["withModifiers"])((function(t){return e.changeAir(2,"temp","toWarm")}),["stop"]))},[Object(a["createElementVNode"])("img",{src:e.parseImgUrl("envmonitor","arrow-down.png"),alt:""},null,8,fn)])])])):Object(a["createCommentVNode"])("",!0),e.userIsControl&&e.airData.isOpen&&e.showAirVolumeBtn?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",bn,[gn,Object(a["createElementVNode"])("div",vn,[Object(a["createElementVNode"])("div",{class:"control-btn mr20",onClick:t[2]||(t[2]=Object(a["withModifiers"])((function(t){return e.changeAir(5,"wind","toWindLow")}),["stop"]))},[Object(a["createElementVNode"])("img",{class:"temp-img",src:e.parseImgUrl("envmonitor","fengshan.png"),alt:""},null,8,On)]),Object(a["createElementVNode"])("div",{class:"control-btn",onClick:t[3]||(t[3]=Object(a["withModifiers"])((function(t){return e.changeAir(6,"wind","toWindUp")}),["stop"]))},[Object(a["createElementVNode"])("img",{class:"temp-img",src:e.parseImgUrl("envmonitor","wendu.png"),alt:""},null,8,jn)])])])):Object(a["createCommentVNode"])("",!0),Object(a["createVNode"])(s,{show:e.showDialog,"onUpdate:show":t[5]||(t[5]=function(t){return e.showDialog=t}),class:"dialog-width","show-confirm-button":!1,"show-cancel-button":!1},{default:Object(a["withCtx"])((function(){return[Object(a["createElementVNode"])("div",hn,[Object(a["createElementVNode"])("div",Tn,[Object(a["createElementVNode"])("img",{class:Object(a["normalizeClass"])(["img-greey","toCold"==e.airSetText.toWhere?"img-blue":"toWarm"==e.airSetText.toWhere?"img-red":""]),src:e.parseImgUrl("page-officehome",e.airSetText.nowImg),alt:""},null,10,In)]),Object(a["createElementVNode"])("div",kn,[Object(a["createElementVNode"])("div",Sn,[e.airSetText.notice?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",xn,Object(a["toDisplayString"])(e.airSetText.notice),1)):(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",yn,[Object(a["createVNode"])(i,{type:"spinner"})]))]),e.airSetText.remark&&e.airSetText.remark.length?(Object(a["openBlock"])(),Object(a["createElementBlock"])("p",Cn,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.airSetText.remark,(function(e,t){return Object(a["openBlock"])(),Object(a["createElementBlock"])("span",{key:"remark"+t},Object(a["toDisplayString"])(e),1)})),128))])):Object(a["createCommentVNode"])("",!0)]),Object(a["createElementVNode"])("div",{class:"dialog-btns",onClick:t[4]||(t[4]=Object(a["withModifiers"])((function(){return e.closeDialog&&e.closeDialog.apply(e,arguments)}),["stop"]))},Dn)])]})),_:1},8,["show"])])}const[En,Vn]=Object(le["a"])("switch"),Bn={size:se["f"],loading:Boolean,disabled:Boolean,modelValue:se["h"],activeColor:String,inactiveColor:String,activeValue:{type:se["h"],default:!0},inactiveValue:{type:se["h"],default:!1}};var An=Object(a["defineComponent"])({name:En,props:Bn,emits:["change","update:modelValue"],setup(e,{emit:t}){const n=()=>e.modelValue===e.activeValue,c=()=>{if(!e.disabled&&!e.loading){const a=n()?e.inactiveValue:e.activeValue;t("update:modelValue",a),t("change",a)}},o=()=>{if(e.loading){const t=n()?e.activeColor:e.inactiveColor;return Object(a["createVNode"])(_e["a"],{class:Vn("loading"),color:t},null)}};return Object(me["h"])(()=>e.modelValue),()=>{const{size:t,loading:r,disabled:i,activeColor:l,inactiveColor:s}=e,u=n(),d={fontSize:Object(ue["b"])(t),backgroundColor:u?l:s};return Object(a["createVNode"])("div",{role:"switch",class:Vn({on:u,loading:r,disabled:i}),style:d,tabindex:i?void 0:0,"aria-checked":u,onClick:c},[Object(a["createVNode"])("div",{class:Vn("node")},[o()])])}}});const Ln=Object(ie["a"])(An);var Wn,Mn=Ln,Fn=(n("e3b3"),n("d9d2"),Object(a["defineComponent"])({props:{temperature:{type:Number,default:function(){return 0}},hasAir:{type:Boolean,default:function(){return!1}},airVolumes:{type:Array,default:function(){return[]}},projectId:{type:String,default:function(){return""}},spaceId:{type:String,default:function(){return""}},userIsControl:{type:Boolean,default:function(){return!1}},forceOverTimeFlag:{type:Boolean,default:function(){return!1}}},components:(Wn={Switch:Mn},Object(R["a"])(Wn,re["a"].Component.name,re["a"].Component),Object(R["a"])(Wn,"Loading",_e["b"]),Wn),setup:function(e,t){var n=e,c={avg:"",icon:1,spaceStatus:"",notice:"",mode:0,tempSet:0,isOpen:!1},o=null,r=null,i=!1,l=Object(a["reactive"])({loadingAir:!1,temperature:e.temperature,userIsControl:e.userIsControl,forceOverTimeFlag:e.forceOverTimeFlag,firstLoadingAir:!0,domAirOpeen:i,feedbackTimer:o,parseImgUrl:Te["x"],airData:c,modeName:"",showAirVolumeBtn:!1,showDialog:!1,airTimer:r,airSetText:{notice:"",remark:[],nowImg:"",toWhere:"",designTemperature:0},formateModel:function(e){l.modeName=e?1===e?"制冷":2===e?"制热":3===e?"通风":4===e?"除湿":"":""},getEquipmentListHttp:function(){var t={spaceId:e.spaceId};l.showAirVolumeBtn=!1;var n=!0;Object(Ie["j"])(t).then((function(e){var t=e,a=t?t.data:[];if(a&&a.length){for(var c=0;c<a.length;c++){var o=a[c];if("ACATVI"===o.equipmentCategory){l.showAirVolumeBtn=!1,n=!1;break}}n&&(l.showAirVolumeBtn=!0)}}))},getAirInfoToTimer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3;l.airTimer&&clearTimeout(l.airTimer),l.airTimer=setTimeout((function(){l.getAirInfo()}),e)},getFeedbackTimer:function(e,t){clearTimeout(l.airTimer),l.airTimer=null,l.feedbackTimer=setTimeout((function(){l.getAirInfo("feedback",e,t,!1)}),3e3)},closeLoading:function(){var e=0,t=setInterval((function(){(e>15||l.domAirOpeen===l.airData.isOpen)&&(l.loadingAir=!1,clearInterval(t)),e++}),1e3)},getAirInfo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o={projectId:n.projectId,objectId:n.spaceId};"feedback"===e&&(o.id=c),Object(Ie["k"])(o).then((function(n){var o=n;"feedback"!==e&&o&&(l.airData=o,l.formateModel(l.airData.mode),t.emit("updateAirTemp",l.airData.tempSet),!l.airData.icon||7!==l.airData.icon&&8!==l.airData.icon?(l.airData.isOpen=!0,l.airData.airImg=Object(Te["x"])("page-officehome","openair.png")):(l.airData.isOpen=!1,l.airData.airImg=Object(Te["x"])("page-officehome","air_close.png"))),"feedback"===e?o.notice?(l.airSetText.notice=o.notice,o.remark&&o.remark.length&&(l.airSetText.remark=o.remark.split("*")),l.feedbackTimer&&(clearTimeout(l.feedbackTimer),l.getAirInfoToTimer())):l.getFeedbackTimer(a,c):l.getAirInfoToTimer(),l.firstLoadingAir=!1})).catch((function(){l.getAirInfoToTimer(),l.firstLoadingAir=!1,l.airData.airImg=Object(Te["x"])("page-officehome","air_close.png")}))},airChange:function(){l.userIsControl?l.loadingAir?Object(Yt["a"])("指令正在下发中,勿重复操作!"):l.airComfir():Object(Yt["a"])("您没有当前空间的控制权限!")},airComfir:function(){var e=l.airData.isOpen?"要关闭空调吗?":"要开启空调吗?",n=l.airData.isOpen?"关闭":"开启";re["a"].confirm({cancelButtonText:"取消",confirmButtonText:n,confirmButtonColor:"$elActiveColor",message:e}).then((function(){var e=!l.airData.isOpen;if(l.forceOverTimeFlag&&e)t.emit("triggerWork");else{var n=e?12:10;l.domAirOpeen=e;var a="";a=12==n?"openAir":"closeAir",l.loadingAir=!0,l.closeLoading(),l.changeAir(n,"sw",a)}})).catch((function(){}))},closeScenarioAir:function(){l.changeAir(10,"sw","closeAir")},updatAirStatus:function(e){"sw"===e&&l.getAirInfo("","","",!1)},updateAirText:function(e,t){"sw"!==e&&(l.airSetText.designTemperature=t.designTemperature,l.airSetText.toWhere=t.toWhere,"toCold"==l.airSetText.toWhere?l.airSetText.nowImg="dialog_cooling.svg":"toWarm"==l.airSetText.toWhere?l.airSetText.nowImg="dialog_warmUp.svg":l.airSetText.nowImg="icon_wind.svg")},showAirConditioning:function(e,t){if("sw"!==e){l.showDialog=!0;var n={toWhere:t,designTemperature:0};l.updateAirText(e,n)}},closeDialog:function(){l.feedbackTimer&&(clearInterval(l.feedbackTimer),l.feedbackTimer=null),l.getAirInfoToTimer(),l.showDialog=!1},changeAir:function(e,t,a){l.airSetText.notice="",l.airSetText.remark=[];var c={projectId:n.projectId,objectId:n.spaceId,valueType:1,itemId:e};l.showAirConditioning(t,a),Object(Ie["b"])(c).then((function(e){var n=e,c={toWhere:a,designTemperature:n.designTemperature};l.updateAirText(t,c),"sw"!==t&&(n.notice?(l.airSetText.notice=n.notice,n.remark&&n.remark.length&&(l.airSetText.remark=n.remark.split("*"))):l.getFeedbackTimer(t,n.id))})).catch((function(){l.loadingAir=!1}))}});Object(a["watch"])(e,(function(t){t.spaceId&&l.getAirInfoToTimer(0),l.temperature=e.temperature,l.userIsControl=t.userIsControl,l.forceOverTimeFlag=t.forceOverTimeFlag})),Object(a["onBeforeUnmount"])((function(){l.airTimer&&(clearTimeout(l.airTimer),l.airTimer=null),l.feedbackTimer&&(clearTimeout(l.feedbackTimer),l.feedbackTimer=null)})),Object(a["onMounted"])((function(){l.firstLoadingAir=!0,l.getAirInfo(),l.getEquipmentListHttp()}));var s=Object(a["computed"])((function(){var e="";switch(l.airData.icon){case 1:e=Object(Te["x"])("page-officehome","temp-keep.png");break;case 2:e=Object(Te["x"])("page-officehome","temp_cold.svg");break;case 3:e=Object(Te["x"])("page-officehome","temp_sun.png");break;default:e="";break}return e}));return Object(_["a"])({airRunImg:s},Object(a["toRefs"])(l))}}));n("fc40"),n("1554");const Un=xe()(Fn,[["render",Nn],["__scopeId","data-v-62ed2ff7"]]);var _n=Un,Pn=function(e){return Object(a["pushScopeId"])("data-v-0e4ba0da"),e=e(),Object(a["popScopeId"])(),e},qn={key:0,class:"light"},Rn={class:"light-top"},Hn={class:"light-desc"},zn={class:"light-title"},Jn=Pn((function(){return Object(a["createElementVNode"])("span",null,"显示全部",-1)})),Yn={class:"light-right"},Gn=["src"],Xn={class:"control-title"};function Kn(e,t,n,c,o,r){var i=Object(a["resolveComponent"])("van-icon"),l=Object(a["resolveComponent"])("Switch");return e.lampList&&e.lampList.length?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",qn,[Object(a["createElementVNode"])("div",Rn,[Object(a["createElementVNode"])("div",Hn,[Object(a["createElementVNode"])("p",zn,Object(a["toDisplayString"])(e.isShowChildLight?"光照":e.lampList[0].localName),1),Object(a["createElementVNode"])("p",{class:Object(a["normalizeClass"])((e.isShowChildLight,"light-status"))},Object(a["toDisplayString"])(e.lampSw?"照明已开启":"照明已关闭"),3),e.isShowChildLight?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{key:0,class:"show-all",onClick:t[0]||(t[0]=Object(a["withModifiers"])((function(){return e.showAll&&e.showAll.apply(e,arguments)}),["stop"]))},[Object(a["createVNode"])(i,{name:e.lightIcon,class:"light-icon"},null,8,["name"]),Jn])):Object(a["createCommentVNode"])("",!0)]),Object(a["createElementVNode"])("div",Yn,[Object(a["createElementVNode"])("img",{src:e.lightImg,alt:""},null,8,Gn),e.showFlag?Object(a["createCommentVNode"])("",!0):(Object(a["openBlock"])(),Object(a["createBlock"])(l,{key:0,disabled:!e.userIsControl,modelValue:e.lampSw,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.lampSw=t}),onClick:t[2]||(t[2]=function(t){return e.eqChange("allLamp","",0)}),"inactive-color":"rgba(196, 196, 196, 0.4)",class:"switch-btn"},null,8,["disabled","modelValue"]))])]),e.showFlag&&e.isShowChildLight?(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],{key:0},Object(a["renderList"])(e.lampList,(function(t,n){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:"light-control",key:t.id},[Object(a["createElementVNode"])("div",Xn,Object(a["toDisplayString"])(t.localName),1),Object(a["createVNode"])(l,{"active-color":"$elActiveColor",disabled:!e.userIsControl,modelValue:t.switch,"onUpdate:modelValue":function(e){return t.switch=e},onClick:function(a){return e.eqChange("main",t,n)},"inactive-color":"rgba(196, 196, 196, 0.2)",class:"switch-btn"},null,8,["disabled","modelValue","onUpdate:modelValue","onClick"])])})),128)):Object(a["createCommentVNode"])("",!0)])):Object(a["createCommentVNode"])("",!0)}n("4de4");var $n=Object(a["defineComponent"])({props:{projectId:{type:String,default:function(){return""}},spaceId:{type:String,default:function(){return""}},userIsControl:{type:Boolean,default:function(){return!1}},forceOverTimeFlag:{type:Boolean,default:function(){return!1}}},components:{Switch:Mn},setup:function(e,t){var n=[],c=null,o=null,r=[],i=[],l=Object(a["reactive"])({userIsControl:e.userIsControl,forceOverTimeFlag:e.forceOverTimeFlag,setStatus:!1,lightParams:i,allowSvg:"down_Arrow.svg",timeOut:o,lightIcon:"arrow-down",showFlag:!1,loadingLight:!1,initData:r,lampList:n,lightsStatusTimer:c,startCheckLightsTime:0,lightImg:Object(Te["x"])("page-officehome","lamp_close_v2.png"),lampSw:!1,showAll:function(){l.showFlag=!l.showFlag,l.lightIcon="arrow-down"},getLampList:function(){Object(Ie["m"])({spaceId:e.spaceId}).then((function(e){var t=e;if(!l.setStatus&&t&&"success"==t.result){for(var n,a=null!==(n=null===t||void 0===t?void 0:t.content)&&void 0!==n?n:[],c=!1,o=0;o<a.length;o++)a[o].type="lamp",a[o].imgOpen=Object(Te["x"])("page-officehome","lampch_open.png"),a[o].imgClose=Object(Te["x"])("page-officehome","lampch_close.png"),a[o].switch=!!a[o].runStatus,a[o].runStatus&&(c=!0),a[o].loading=!1;l.initData=JSON.parse(JSON.stringify(a)),l.lampSw=c,l.lampList=a,l.lightImg=l.lampSw?Object(Te["x"])("page-officehome","lamp_open_v2.png"):Object(Te["x"])("page-officehome","lamp_close_v2.png")}l.startLightsStatusTimer()})).catch((function(){l.startLightsStatusTimer()}))},eqChange:function(e,n,a){if(l.userIsControl)if("allLamp"===e){if(l.forceOverTimeFlag&&l.lampSw)return void t.emit("triggerWork");l.loadingLight=!0;var c=l.lampSw;l.setStatus=!0,l.updateAllLampStatus(c),l.setLamp(e,"",c,0)}else{if(l.forceOverTimeFlag&&n.switch)return void t.emit("triggerWork");n.loading=!0;var o=n.switch,r=n.id;l.setStatus=!0,l.updateLampStatus(n,o),l.setLamp(e,r,o,a)}else Object(Yt["a"])("您没有当前空间的控制权限!")},setLamp:function(e,t,n,a){var c=[];if("allLamp"===e){for(var o=0;o<l.initData.length;o++)l.initData[o].switch=n;c=l.initData}else c=[{id:t,switch:n}];l.lightParams=c,Object(Ie["M"])(c).then((function(e){var t=e;setTimeout((function(){l.setStatus=!1}),1e3),"success"===t.result||l.initLampLoading()})).catch((function(){setTimeout((function(){l.setStatus=!1}),1e3)}))},initLampLoading:function(){l.loadingLight=!1,l.lampList.map((function(e){e.loading=!1}))},updateAllLampStatus:function(e){l.lampSw=e;for(var t=0;t<l.lampList.length;t++)l.lampList[t].switch=e},updateLampStatus:function(e,t){e.switch=t},getTimeLampStatus:function(e,t,n,a,c){if(e["success"]&&e["success"].length&&("allLamp"===t?l.updateAllLampLoading(e["success"]):l.updateLampLoading(c),l.getLampList()),e["processing"]&&e["processing"].length){var o=l.lightParams,r=e["processing"],i=[];r.map((function(e){for(var t={id:e.id,orderSeqNum:e.orderSeqNum},n=0;n<o.length;n++)if(e.id===o[n].id){t.switch=o[n].switch;break}i.push(t)})),l.checkChangeLightStatusSuccess(i,t,n,a,c)}e["error"]&&e["error"].length&&("allLamp"===t?l.updateAllLampLoading(e["error"]):l.updateLampLoading(c))},judgeChangeResponeseSuccess:function(e){for(var t,n=null!==(t=null===e||void 0===e?void 0:e.content)&&void 0!==t?t:[],a=[],c=[],o=[],r=0;r<n.length;r++){var i=n[r];(i.result="success")?200===i.state&&"success"===i.exeResult?c.push(i):200===i.state&&"processing:rcvd"===i.exeResult||202===i.state&&!i.exeResult?a.push(i):o.push(i):o.push(i)}var l={success:c,processing:a,error:o};return l},updateAllLampLoading:function(e){for(var t=function(t){"lamp"==l.lampList[t].type&&e.map((function(e){l.lampList[t].id===e.id&&(l.lampList[t].loading=!1)}))},n=0;n<l.lampList.length;n++)t(n);var a=l.lampList.filter((function(e){return e.loading}));0===a.length&&(l.loadingLight=!1)},updateLampLoading:function(e){l.lampList[e].loading=!1},checkChangeLightStatusSuccess:function(e,t,n,a,c){Object(Ie["A"])(e).then((function(e){var o=e,r=l.judgeChangeResponeseSuccess(o);l.getTimeLampStatus(r,t,n,a,c)}))},startLightsStatusTimer:function(){l.lightsStatusTimer&&(window.clearTimeout(l.lightsStatusTimer),l.lightsStatusTimer=null),l.lightsStatusTimer=window.setTimeout((function(){l.getLampList()}),2e3)}}),s=Object(a["computed"])((function(){return l.lampList.length&&l.lampList.length>1}));return Object(a["watch"])(e,(function(e){e.spaceId&&l.startLightsStatusTimer(),l.userIsControl=e.userIsControl,l.forceOverTimeFlag=e.forceOverTimeFlag}),{deep:!1,immediate:!0}),Object(a["onBeforeUnmount"])((function(){l.lightsStatusTimer&&(window.clearTimeout(l.lightsStatusTimer),l.lightsStatusTimer=null)})),Object(a["onMounted"])((function(){l.getLampList()})),Object(_["a"])({isShowChildLight:s},Object(a["toRefs"])(l))}});n("c032"),n("2d4b");const Qn=xe()($n,[["render",Kn],["__scopeId","data-v-0e4ba0da"]]);var Zn=Qn,ea=function(e){return Object(a["pushScopeId"])("data-v-0be68c5b"),e=e(),Object(a["popScopeId"])(),e},ta={key:0,class:"curtain"},na={class:"curtain-top"},aa={class:"curtain-desc"},ca={class:"curtain-title"},oa={class:"curtain-status"},ra={class:"curtain-tip"},ia=ea((function(){return Object(a["createElementVNode"])("span",null,"显示全部",-1)})),la={class:"curtain-right"},sa=["src"],ua={key:0,class:"curtain-control"},da={key:0,class:"timer-text"},ma=["src"],pa={key:0,class:"timer-text"},fa=["src"],ba={class:"child-title"},ga={class:"curtain-control"},va=["onClick"],Oa={key:0,class:"timer-text"},ja=["src"],ha=["onClick"],Ta={key:0,class:"timer-text"},Ia=["src"];function ka(e,t,n,c,o,r){var i=Object(a["resolveComponent"])("van-icon");return e.curtainData&&e.curtainData.length?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",ta,[Object(a["createElementVNode"])("div",na,[Object(a["createElementVNode"])("div",aa,[Object(a["createElementVNode"])("p",ca,Object(a["toDisplayString"])(e.curtainData.length&&1==e.curtainData.length?e.curtainData[0].name:"窗帘"),1),Object(a["createElementVNode"])("p",oa,[Object(a["createElementVNode"])("span",ra,Object(a["toDisplayString"])(e.countText),1)]),e.isShowChildLight?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{key:0,class:"show-all",onClick:t[0]||(t[0]=function(){return e.showAll&&e.showAll.apply(e,arguments)})},[Object(a["createVNode"])(i,{name:e.lightIcon,class:"curtain-icon"},null,8,["name"]),ia])):Object(a["createCommentVNode"])("",!0)]),Object(a["createElementVNode"])("div",la,[Object(a["createElementVNode"])("img",{src:e.parseImgUrl("page-officehome","curtain-img.svg"),alt:""},null,8,sa),e.showFlag?Object(a["createCommentVNode"])("",!0):(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",ua,[Object(a["createElementVNode"])("div",{class:Object(a["normalizeClass"])(["control-item mr10",{"box-active":e.curtainClose&&e.count,"control-item-disabled":!e.userIsControl}]),onClick:t[1]||(t[1]=function(t){return e.handleTotal("EquipOffSet")})},[e.curtainClose&&e.count?(Object(a["openBlock"])(),Object(a["createElementBlock"])("span",da,Object(a["toDisplayString"])(e.count),1)):(Object(a["openBlock"])(),Object(a["createElementBlock"])("img",{key:1,src:e.parseImgUrl("page-officehome","curtain-close.png"),alt:""},null,8,ma))],2),Object(a["createElementVNode"])("div",{class:Object(a["normalizeClass"])(["control-item",{"box-active":e.curtainOpen&&e.count,"control-item-disabled":!e.userIsControl}]),onClick:t[2]||(t[2]=function(t){return e.handleTotal("EquipOnSet")})},[e.curtainOpen&&e.count?(Object(a["openBlock"])(),Object(a["createElementBlock"])("span",pa,Object(a["toDisplayString"])(e.count),1)):(Object(a["openBlock"])(),Object(a["createElementBlock"])("img",{key:1,src:e.parseImgUrl("page-officehome","curtain-open.png"),alt:""},null,8,fa))],2)]))])]),e.showFlag?(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],{key:0},Object(a["renderList"])(e.curtainData,(function(t,n){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:"child-curtain",key:t.id},[Object(a["createElementVNode"])("div",ba,Object(a["toDisplayString"])(t.name),1),Object(a["createElementVNode"])("div",ga,[Object(a["createElementVNode"])("div",{class:Object(a["normalizeClass"])(["control-item mr10",{"box-active":t.curtainClose&&e.count,"control-item-disabled":!e.userIsControl}]),onClick:function(a){return e.handleChild("EquipOffSet",t.id,n)}},[t.curtainClose&&e.count?(Object(a["openBlock"])(),Object(a["createElementBlock"])("span",Oa,Object(a["toDisplayString"])(e.count),1)):(Object(a["openBlock"])(),Object(a["createElementBlock"])("img",{key:1,src:e.parseImgUrl("page-officehome","curtain-close.png"),alt:""},null,8,ja))],10,va),Object(a["createElementVNode"])("div",{class:Object(a["normalizeClass"])(["control-item",{"box-active":t.curtainOpen&&e.count,"control-item-disabled":!e.userIsControl}]),onClick:function(a){return e.handleChild("EquipOnSet",t.id,n)}},[t.curtainOpen&&e.count?(Object(a["openBlock"])(),Object(a["createElementBlock"])("span",Ta,Object(a["toDisplayString"])(e.count),1)):(Object(a["openBlock"])(),Object(a["createElementBlock"])("img",{key:1,src:e.parseImgUrl("page-officehome","curtain-open.png"),alt:""},null,8,Ia))],10,ha)])])})),128)):Object(a["createCommentVNode"])("",!0)])):Object(a["createCommentVNode"])("",!0)}var Sa=Object(a["defineComponent"])({props:{projectId:{type:String,default:function(){return""}},spaceId:{type:String,default:function(){return""}},userIsControl:{type:Boolean,default:function(){return!1}}},setup:function(e){var t=[],n=null,c=e.projectId,o=Object(a["reactive"])({curtainData:t,userIsControl:e.userIsControl,lightIcon:"arrow-down",showFlag:!1,projectId:c,countText:"",count:0,curtainOpen:!1,curtainClose:!1,parseImgUrl:Te["x"],timer:n,getEqpGroup:function(){var t={criteria:{projectId:e.projectId,spaceId:e.spaceId,type:0},orders:[{column:"sortNum",asc:!0}]};Object(Ie["p"])(t).then((function(e){var t=e;o.curtainData=t.count?t.content:[];for(var n=0;n<o.curtainData.length;n++){var a=o.curtainData[n];a.childDownFlag=!1,a.childUpFlag=!1,a.childCount=2,a.childCountText=""}}))},showAll:function(){o.showFlag=!o.showFlag,o.showFlag?o.lightIcon="arrow-up":o.lightIcon="arrow-down"},checkCount:function(){return o.count>0},handleTotal:function(e){if(o.userIsControl){var t=o.checkCount();if(!t){o.changeStatus(e);var n=JSON.parse(JSON.stringify(o.curtainData)),a=o.setParams(n,e);o.setSwitchStatus(e),Object(Ie["L"])(a).then((function(e){}))}}else Object(Yt["a"])("您没有当前空间的控制权限!")},handleChild:function(e,t,n){if(o.userIsControl){var a=o.checkCount();if(!a){var c=o.curtainData[n],r={projectId:o.projectId,objectId:t,equipmentCategory:"CFSSES",infoCode:e,value:1},i=[];i.push(r),o.changeStatus(e,c),o.setSwitchStatus(e,c),Object(Ie["L"])(i).then((function(e){}))}}else Object(Yt["a"])("您没有当前空间的控制权限!")},clearCurtain:function(){o.curtainData.map((function(e){e.curtainClose=!1,e.curtainOpen=!1,o.curtainClose=!1,o.curtainOpen=!1}))},changeStatus:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;o.clearCurtain(),"EquipOffSet"===e?t?t.curtainClose=!0:o.curtainClose=!0:t?t.curtainOpen=!0:o.curtainOpen=!0},setSwitchStatus:function(e){o.count=2,o.countText="指令下发中",o.timer=setInterval((function(){0===o.count&&(o.countText="",clearInterval(o.timer),o.clearCurtain()),1===o.count&&(o.countText="再次点击停止窗帘"),o.count>0?o.count--:o.count=0}),1e3)},setParams:function(e,t){for(var n=[],a=0;a<e.length;a++){var c={objectId:e[a].id,equipmentCategory:"CFSSES",infoCode:t,value:1};n.push(c)}return n}}),r=Object(a["computed"])((function(){return o.curtainData.length&&o.curtainData.length>1}));return Object(a["watch"])(e,(function(e){e.spaceId&&(o.getEqpGroup(),o.userIsControl=e.userIsControl)})),Object(a["onMounted"])((function(){o.getEqpGroup()})),Object(_["a"])({isShowChildLight:r},Object(a["toRefs"])(o))}});n("eb93");const xa=xe()(Sa,[["render",ka],["__scopeId","data-v-0be68c5b"]]);var ya=xa,Ca=function(e){return Object(a["pushScopeId"])("data-v-18f3164f"),e=e(),Object(a["popScopeId"])(),e},wa=Ca((function(){return Object(a["createElementVNode"])("div",{class:"top"},[Object(a["createElementVNode"])("span",null,"选择工作结束时间")],-1)})),Da={class:"btns"};function Na(e,t,n,c,o,r){var i=Object(a["resolveComponent"])("van-picker");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",null,[wa,(Object(a["openBlock"])(),Object(a["createBlock"])(i,{ref:"picker","show-toolbar":!1,"default-index":e.defaultIndex,onChange:e.onChange,loading:e.loading,key:e.account_type_value,columns:e.columns},null,8,["default-index","onChange","loading","columns"])),Object(a["createElementVNode"])("div",Da,[Object(a["createElementVNode"])("span",{onClick:t[0]||(t[0]=function(){return e.triggerComfirm&&e.triggerComfirm.apply(e,arguments)}),class:"btn btn_com"},"确定")])])}n("ddb0");var Ea=n("f253"),Va=(n("a526"),Object(a["defineComponent"])({props:{projectId:{type:String,default:function(){return""}},show:{type:Boolean,default:function(){return!1}},nextCusStartTime:{type:Number,default:function(){return 0}},cusStartTime:{type:Number,default:function(){return 0}},cusEndTime:{type:Number,default:function(){return 0}},spaceId:{type:String,default:function(){return""}},currentValue:{type:Array,default:function(){return[0,0]}},workInfo:{type:Object,default:function(){}}},components:{VanPicker:Ea["b"]},setup:function(e,t){var n=Object(a["ref"])(null),c=[{values:["今天","明天"]},{values:[]}],o=[],r=[],i=Object(a["reactive"])({columns:c,loading:!1,defaultIndex:0,account_type_value:"0+3",checkValues:r,timeList:o,tempVal:"",onChange:function(e){e[0]!==i.tempVal&&(i.loading=!0,i.tempVal=e[0]),"今天"===e[0]?i.formatColumns(0):i.formatColumns(1)},setDefaultTime:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;i.defaultIndex=e;var a=i.columns[1].values;a.map((function(e,n){t===e&&n})),n.value.setColumnValue(e,t);t||a[0]},formatColumns:function(t){var n=[];if(0===t){var a=Object(Te["h"])(),c=0,o=0;if(e.cusStartTime&&a+2<e.cusStartTime)c=a+1,o=e.cusStartTime;else if(e.cusStartTime&&a+2>=e.cusStartTime)a>e.cusEndTime?(c=a+1,o=24):(c=e.cusEndTime+1,o=24);else{if(e.cusStartTime)return;c=a+1,o=24}for(var r=c;r<o+1;r++){var l={label:"".concat(r,":00"),value:r};n.push(l)}}else for(var s=1;s<e.nextCusStartTime;s++){var u=s;u<10&&(u="0"+s);var d={label:"".concat(u,":00"),value:Number(u)};n.push(d)}i.timeList=n;for(var m=[],p=0;p<i.timeList.length;p++)m.push(i.timeList[p].label);i.columns[1].values=m,setTimeout((function(){i.loading=!1}),1e3)},triggerComfirm:function(){var e=n.value.getValues();i.checkValues=[e[0],e[1]],i.checkValues[0]&&i.checkValues[1]?i.setWorkOverTime():Object(Yt["a"])("请选择时间")},setWorkOverTime:function(){var n=Object(Te["a"])();"明天"===i.checkValues[0]&&(n=Object(Te["r"])());var a=i.checkValues[1];a=a.replace(":","");var c={projectId:e.projectId,objectId:e.spaceId,endDate:n,endTime:a+"00",type:2};Object(Ie["a"])(c).then((function(e){var n=e;n.result,t.emit("setWorkTime")})).catch((function(){t.emit("setWorkTime")}))},init:function(){var t=e.workInfo.text,n=e.workInfo.textTime;"明天"===t?(i.formatColumns(1),i.setDefaultTime(1,n)):(i.formatColumns(0),i.setDefaultTime(0,n))}});return Object(a["onMounted"])((function(){i.init()})),Object(_["a"])({picker:n},Object(a["toRefs"])(i))}}));n("0970");const Ba=xe()(Va,[["render",Na],["__scopeId","data-v-18f3164f"]]);var Aa=Ba,La={class:"nav"},Wa={class:"nav-left"},Ma=["onClick"],Fa=["src"],Ua=["src"],_a={class:"nav-right"},Pa=["onClick"],qa=["src"],Ra=["src"];function Ha(e,t,n,c,o,r){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",La,[Object(a["createElementVNode"])("div",Wa,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.navData,(function(t,n){return Object(a["withDirectives"])((Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:Object(a["normalizeClass"])(["nav-item",e.activeCode===t.code?"nav-active":""]),onClick:function(a){return e.checkNav(t,n)},key:"nav"+n},[e.activeCode===t.code?(Object(a["openBlock"])(),Object(a["createElementBlock"])("img",{key:0,src:t.activeImg,alt:""},null,8,Fa)):(Object(a["openBlock"])(),Object(a["createElementBlock"])("img",{key:1,src:t.img,alt:""},null,8,Ua))],10,Ma)),[[a["vShow"],n<3&&t.noShow]])})),128))]),Object(a["createElementVNode"])("div",_a,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.navData,(function(t,n){return Object(a["withDirectives"])((Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:Object(a["normalizeClass"])(["nav-item",e.activeCode===t.code?"nav-active":""]),onClick:function(a){return e.checkNav(t,n)},key:"nav"+n},[e.activeCode===t.code?(Object(a["openBlock"])(),Object(a["createElementBlock"])("img",{key:0,src:t.activeImg,alt:""},null,8,qa)):(Object(a["openBlock"])(),Object(a["createElementBlock"])("img",{key:1,src:t.img,alt:""},null,8,Ra))],10,Pa)),[[a["vShow"],n>=3&&t.noShow]])})),128))])])}var za=Object(a["defineComponent"])({props:{navList:{type:Array,default:function(){return[]}}},setup:function(e,t){Object(Qe["d"])();var n=[],c=Object(a["reactive"])({activeCode:"air",navData:n,setNavValue:function(e){c.navData=e},checkNav:function(e,n){c.activeCode=e.code,t.emit("changeNav",e)},setActiveCode:function(e){c.activeCode=e}});return Object(a["watch"])(e.navList,(function(e,t){c.setNavValue(e)})),Object(a["onMounted"])((function(){c.setNavValue(e.navList)})),Object(_["a"])({},Object(a["toRefs"])(c))}});n("7c22");const Ja=xe()(za,[["render",Ha],["__scopeId","data-v-1f8e6930"]]);var Ya=Ja,Ga={class:"scene-dailog"},Xa={class:"title"},Ka={class:"dailog-content"},$a=["src"],Qa={class:"status-text1"},Za=Object(a["createTextVNode"])(" 切换至 "),ec=Object(a["createTextVNode"])(" 场景 "),tc=Object(a["createTextVNode"])("切换中..."),nc={key:1,class:"status-text2"},ac={key:0},cc=Object(a["createTextVNode"])("我知道了");function oc(e,t,n,c,o,r){var i=Object(a["resolveComponent"])("van-loading"),l=Object(a["resolveComponent"])("buttons");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",Ga,[Object(a["createElementVNode"])("div",Xa,Object(a["toDisplayString"])(e.secenaroStatus.localName),1),Object(a["createElementVNode"])("div",Ka,[Object(a["createElementVNode"])("img",{src:e.parseImgUrl("ipdImages","taolun-big.svg")},null,8,$a),Object(a["createElementVNode"])("span",Qa,[Za,Object(a["createElementVNode"])("i",null,Object(a["toDisplayString"])(e.secenaroStatus.sceneName),1),ec]),e.secenaroStatus.loading?(Object(a["openBlock"])(),Object(a["createBlock"])(i,{key:0,class:"status-text2"},{default:Object(a["withCtx"])((function(){return[tc]})),_:1})):Object(a["createCommentVNode"])("",!0),e.secenaroStatus.loading?Object(a["createCommentVNode"])("",!0):(Object(a["openBlock"])(),Object(a["createElementBlock"])("span",nc,[e.secenaroStatus.lodingText?(Object(a["openBlock"])(),Object(a["createElementBlock"])("span",ac," 已为您切换至适宜"+Object(a["toDisplayString"])(e.secenaroStatus.sceneName)+"的环境",1)):Object(a["createCommentVNode"])("",!0)]))]),Object(a["createVNode"])(l,{class:"dailog-btn",onClick:e.closeDailog},{default:Object(a["withCtx"])((function(){return[cc]})),_:1},8,["onClick"])])}var rc=Object(a["defineComponent"])({props:{projectId:{type:String,default:function(){return""}},scenarioArr:{type:Array,default:function(){return[]}},activeType:{type:String,default:function(){return""}},secenaroStatus:{type:Object,default:function(){}}},components:{VanLoading:_e["b"]},setup:function(e,t){var n=Object(a["reactive"])({parseImgUrl:Te["x"],secenaroStatus:e.secenaroStatus,closeDailog:function(){t.emit("closeDailog")}});return Object(a["watch"])(e,(function(e){n.secenaroStatus=e.secenaroStatus}),{deep:!1,immediate:!0}),Object(a["onMounted"])((function(){})),Object(_["a"])({},Object(a["toRefs"])(n))}});n("8b68");const ic=xe()(rc,[["render",oc],["__scopeId","data-v-100ec62f"]]);var lc=ic,sc=n("cda6"),uc={class:"map-home map-home-pading"},dc={class:"map-top"};function mc(e,t,n,c,o,r){var i=Object(a["resolveComponent"])("map-box"),l=Object(a["resolveComponent"])("space-box");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",uc,[Object(a["createElementVNode"])("div",dc,[Object(a["createElementVNode"])("span",{class:Object(a["normalizeClass"])(1==e.type?"span-active":""),onClick:t[0]||(t[0]=function(t){return e.checkMapType(1)})},"列表",2),Object(a["createElementVNode"])("span",{class:Object(a["normalizeClass"])(2==e.type?"span-active":""),onClick:t[1]||(t[1]=function(t){return e.checkMapType(2)})},"地图",2)]),2===e.type?(Object(a["openBlock"])(),Object(a["createBlock"])(i,{key:0,spaceData:e.spaceData,projectId:e.projectId,floorId:e.floorId,spaceInfo:e.spaceInfo,buildingId:e.buildingId,onChangeSpace:e.changeSpace},null,8,["spaceData","projectId","floorId","spaceInfo","buildingId","onChangeSpace"])):Object(a["createCommentVNode"])("",!0),1===e.type?(Object(a["openBlock"])(),Object(a["createBlock"])(l,{key:1,spaceData:e.spaceData,spaceInfo:e.spaceInfo,onChangeSpace:e.changeSpace},null,8,["spaceData","spaceInfo","onChangeSpace"])):Object(a["createCommentVNode"])("",!0)])}var pc={class:"space-home"},fc={class:"com-search"},bc={class:"search-icon"},gc=["src"],vc={class:"space-box"},Oc=["onClick"];function jc(e,t,n,c,o,r){var i=Object(a["resolveComponent"])("van-search");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",pc,[Object(a["createElementVNode"])("div",fc,[Object(a["createVNode"])(i,{placeholder:"搜索办公区",modelValue:e.searchValue,"onUpdate:modelValue":[t[0]||(t[0]=function(t){return e.searchValue=t}),e.onSearch],onClear:e.onCancel},null,8,["modelValue","onUpdate:modelValue","onClear"]),Object(a["createElementVNode"])("div",bc,[Object(a["createElementVNode"])("img",{src:e.parseImgUrl("search-icon","search-icon.svg"),alt:""},null,8,gc)])]),Object(a["createElementVNode"])("div",vc,[e.spaceData&&e.spaceData.length?(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],{key:0},Object(a["renderList"])(e.spaceData,(function(t,n){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:Object(a["normalizeClass"])(["space-item",e.activeSpace.spaceId==t.spaceId?"space-active-item":""]),key:"spaceItem"+n,onClick:function(a){return e.changeSpace(t,n)}},[Object(a["createElementVNode"])("span",null,Object(a["toDisplayString"])(t.spaceName),1)],10,Oc)})),128)):Object(a["createCommentVNode"])("",!0)])])}var hc=n("d961"),Tc=(n("5852"),Object(a["defineComponent"])({props:{spaceData:{type:Array,default:function(){return[]}},spaceInfo:{type:Object,default:function(){}}},components:{vanSearch:hc["a"]},setup:function(e,t){Object(Qe["d"])();var n=Object(Te["s"])(),c=(Object(Ze["b"])(),[]),o=Object(a["reactive"])({parseImgUrl:Te["x"],userInfo:n,spaceData:c,searchValue:"",activeSpace:e.spaceInfo,changeSpace:function(e,n){o.activeSpace=e,t.emit("changeSpace",e)},queryWorkSpace:function(){var e={criteria:{projectId:o.userInfo.projectId,spaceName:o.searchValue,macAddress:o.userInfo.mac},orders:[{column:"isMajorSpace",asc:!1}]};Object(Ie["I"])(e).then((function(e){var t,n=e;"success"===n.result?o.spaceData=null!==(t=null===n||void 0===n?void 0:n.content)&&void 0!==t?t:[]:o.spaceData=[]}))},onSearch:function(){o.queryWorkSpace()},onCancel:function(){}});return Object(a["onMounted"])((function(){})),Object(a["watch"])(e,(function(e){o.spaceData=e.spaceData,o.activeSpace=e.spaceInfo}),{deep:!1,immediate:!0}),Object(_["a"])({},Object(a["toRefs"])(o))}}));n("dc63");const Ic=xe()(Tc,[["render",jc],["__scopeId","data-v-b11982ae"]]);var kc=Ic,Sc=n("772a"),xc=(n("38d5"),n("565f")),yc=(n("be7f"),n("34e9")),Cc=(n("0653"),n("b650")),wc=(n("66b9"),Object(a["defineComponent"])({props:{spaceData:{type:Array,default:function(){return[]}},projectId:{type:String,default:function(){return""}},buildingId:{type:String,default:function(){return""}},floorId:{type:String,default:function(){return""}},spaceInfo:{type:Object,default:function(){}}},components:{vanForm:Sc["a"],vanField:xc["b"],CellGroup:yc["a"],vanButton:Cc["b"],SpaceBox:kc,MapBox:St["a"]},setup:function(e,t){Object(Qe["d"])();var n=null,c=(Object(Ze["b"])(),Object(a["reactive"])({type:1,spaceData:e.spaceData,showMap:n,changeSpace:function(e){t.emit("changeSpace",e,1)},buildingId:e.buildingId,floorId:e.floorId,spaceInfo:e.spaceInfo,checkMapType:function(e){c.type=e},getMapInfo:function(){var t={projectId:e.projectId,floorId:c.floorId};Object(Ie["n"])(t).then((function(e){var t=e;if("success"===t.result){var n,a=null!==(n=null===t||void 0===t?void 0:t.data)&&void 0!==n?n:null;a&&a.spaceList&&a.spaceList.length?c.showMap=!0:c.showMap=!1}else c.showMap=!1})).catch((function(){c.showMap=!1}))}}));return Object(a["onMounted"])((function(){c.getMapInfo()})),Object(a["watch"])(e,(function(e){c.spaceData=e.spaceData,c.buildingId=e.buildingId,c.floorId=e.floorId,c.spaceInfo=e.spaceInfo}),{deep:!1,immediate:!0}),Object(_["a"])({},Object(a["toRefs"])(c))}}));n("49f8");const Dc=xe()(wc,[["render",mc],["__scopeId","data-v-2048181d"]]);var Nc,Ec=Dc,Vc=n("e41f"),Bc=(n("8a58"),n("66d6")),Ac=n("6a79"),Lc=Object(a["defineComponent"])({components:(Nc={MapBox:St["a"],ComMap:Ec,ScenarioDailog:lc,Scenario:Kt,Header:Ft,Comheader:Ut["a"],NavBar:Ya,Air:_n,Light:Zn,Curtain:ya,TimeBox:Aa,WorkOvertime:Ce,WorkConfig:gt,ScenarioConfig:kt,Detail:sc["default"],Contact:He},Object(R["a"])(Nc,re["a"].Component.name,re["a"].Component),Object(R["a"])(Nc,"VanPopup",Vc["b"]),Object(R["a"])(Nc,"VanIcon",Lt["b"]),Nc),setup:function(){var e=Object(a["getCurrentInstance"])(),t=Object(Qe["d"])(),n=Object(Qe["c"])(),c=window.document,o=c.body.clientHeight,r={},i={},l={},s={hasAir:!0,hasBlowing:!1,hasLamp:!1},u=[],d={},m={},p=Ze["a"].state.user.projectId,f={},b={},g={},v={headImg:"",headScene:"",tipText:"选择工作结束时间",tipTextSwatch:!1},O={curtain:!1,light:!1,airConditioner:!1,bodySensor:!1},j={},h=null,T={},I=Object(Te["s"])(),k=null,S=[{id:0,code:"DISCUSSING",name:"会议模式",img:"scene_work.svg",checked:!0,textObj:[{text:"照明灯光已全部为您开启",status:"ok"},{text:"演示设备已为您准备",status:"ok"},{text:"空调已为您开启",type:"air",status:"ok"}]},{id:1,code:"PROJECTING",name:"投影模式",img:"scene_visitor.svg",checked:!1,textObj:[{text:"主灯已为您关闭,氛围灯为您开启",status:"ok"},{text:"演示设备已为您开启",status:"ok"},{text:"空调已为您开启",type:"air",status:"ok"},{text:"窗帘已为您关闭",status:"ok"}]},{id:2,code:"ADJOURNMENT",name:"全关模式",img:"scene_rest.svg",checked:!1,textObj:[{text:"照明灯光2min后将全部关闭",status:"ok"},{text:"演示设备已为您关闭",status:"ok"},{text:"空调全部关闭",type:"air",status:"ok"},{text:"窗帘已为您关闭",status:"ok"}]}],x=[],y=null,C=null,w=[{id:2,name:"甲醛",num:"",level:"",bgColor:"",img:"jiaquan.svg",funcid:"HCHO",code:"jiaquan",unit:"mg/㎡"},{id:0,name:"CO₂",bgColor:"",num:"",level:"",img:"co2.svg",funcid:"CO2",code:"co2",unit:"ppm"},{id:1,name:"PM2.5",bgColor:"",num:"",level:"",funcid:"PM2d5",img:"pm2.5.svg",code:"pm25",unit:"ug/m³"},{id:3,name:"湿度",bgColor:"",img:"humidity.svg",num:"",level:"",funcid:"Tdb,RH",code:"shidu",unit:"%"}],D=[],N=[],E=[],V=[],B={},A=Object(Te["a"])("YYYY.MM.DD HH:mm"),L=Object(Te["l"])(),W=[],M=Object(a["reactive"])({parseImgUrl:Te["x"],fileUrl:e.proxy.$fileUrl,nowDate:A,nowWeek:L,isShowWork:!1,isShowMetting:!1,localName:"",airTemp:"",userIsControl:!0,spaceModelTimer:y,spaceTempTimer:C,userSpaceInfo:x,spaceTimer:k,workInfo:T,intervalTimer:h,roomType:"",showSpaceTip:!1,mapOpacity:0,opacityV:1,childRef:j,hideTopImg:!1,isBottom:!1,isScrool:!1,officeData:l,popList:u,popupType:"scenario",showSecenDetailDalig:!1,sceneDetail:f,showScenario:!1,projectId:p,spaceInfo:m,headerInfo:v,topbgimg:"",userInfo:I,deviceIcon:"arrow",visible:!1,outWeather:r,vanPopupIndex:"",spaceEqFlagObj:s,spaceExistenceDevice:O,listOffice:[{id:0,name:"工作",code:"work",img:"scene_work.svg",checked:!0,textObj:[{text:"办公区灯光已全部为您开启",status:"ok"},{text:"正在将温度调至 26℃",status:"ok"},{text:"窗帘已为您全部打开",status:"ok"},{text:"饮用水已为您准备",status:"ok"}]},{id:1,name:"会客",code:"guest",img:"scene_visitor.svg",checked:!1,textObj:[{text:"会客区照明已为您开启",status:"ok"},{text:"空调已为您切换至会客温度,目标温度24℃",status:"ok"},{text:"窗帘已为您全部开启",status:"ok"},{text:"演示设备已为您准备",status:"ok"},{text:"饮用水已为您准备",status:"ok"}]},{id:2,name:"休息",code:"rest",img:"scene_rest.svg",checked:!1,textObj:[{text:"主灯已关闭,氛围灯将为您开启",status:"ok"},{text:"空调将为您调节至适宜休息的温度,目标温度26℃",status:"ok"},{text:"窗帘已为您全部关闭",status:"ok"}]}],listSen:S,isACATVA:!1,showWorkOff:!1,envlist:w,realEevList:N,navList:[{top:0,id:"airId",code:"air",name:"温度/湿度",noShow:!0,img:Object(Te["x"])("page-officehome","temp.png"),activeImg:Object(Te["x"])("page-officehome","temp_active.svg")},{top:0,id:"lightId",code:"lamp",name:"光照",noShow:!1,img:Object(Te["x"])("page-officehome","lamp.png"),activeImg:Object(Te["x"])("page-officehome","lamp_active.svg")},{top:0,id:"curtainId",code:"curtain",name:"窗帘",noShow:!1,img:Object(Te["x"])("page-officehome","curtain-nav.svg"),activeImg:Object(Te["x"])("page-officehome","curtain-nav-active.svg")},{top:0,id:4,code:"mySpace",name:"常驻空间",noShow:!1,activeImg:Object(Te["x"])("page-officehome","mySpaceIcon.svg"),img:Object(Te["x"])("page-officehome","mySpaceIcon.svg")},{top:0,id:5,code:"switchSpace",name:"我的",noShow:!0,activeImg:Object(Te["x"])("page-officehome","mapIcon.png"),img:Object(Te["x"])("page-officehome","mapIcon.png")}],meetingRoomSence:[{code:"DISCUSSING",name:"讨论"},{code:"PROJECTING",name:"演示"},{code:"ADJOURNMENT",name:"散会"}],nextCusStartTime:0,cusEndTime:0,cusStartTime:0,isShowContact:!1,showContact:function(){M.isShowContact=!0},closeContactDailog:function(){M.isShowContact=!1},padBgImg:"",setPadBgImg:function(){0===M.padImgData.isBgDefault&&M.padImgData.bgImage&&M.padImgData.bgImage.fileId?M.padBgImg=M.fileUrl+"&key=".concat(M.padImgData.bgImage.fileId):"个人"==M.roomType?M.padBgImg=Object(Te["x"])("ipdImages","pad_img2.png"):"会议室"===M.roomType?M.padBgImg=Object(Te["x"])("ipdImages","pad_img3.png"):(M.roomType,M.padBgImg=Object(Te["x"])("ipdImages","pad_img1.png"))},logImg:"",setPadLogo:function(){0===M.padImgData.isLogoDefault&&M.padImgData.logoImage&&M.padImgData.logoImage.fileId?M.logImg=M.fileUrl+"&key=".concat(M.padImgData.logoImage.fileId):M.logImg=""},padImgData:W,padNumber:0,getPadImg:function(){var e={funcType:M.officeData.roomFuncType},t=Object(Te["A"])(e);M.padNumber<1&&(M.padNumber=1,Object(Ie["q"])(t).then((function(e){"success"===e.result&&(M.padImgData=e.data,M.setPadBgImg(),M.setPadLogo())})))},triggerWork:function(){M.isShowWork=!0},closeWork:function(){M.isShowWork=!1,M.queryCustomAndScenceTimer(0)},forceOverTimeFlag:!1,setForceOverTimeFlag:function(e){"开放"===M.roomType&&e?M.forceOverTimeFlag=!0:M.forceOverTimeFlag=!1},getCompanyInfo:function(){return Object(q["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(Ie["h"])({companyId:Bc["a"].companyKey});case 2:t=e.sent,t.data;case 4:case"end":return e.stop()}}),e)})))()},getWeather:function(){var e={openid:M.userInfo.openid,pubname:M.userInfo.pubname,projectId:Ze["a"].state.user.projectId},t=Object(Te["A"])(e);Object(Ie["C"])(t).then((function(e){var t,n=null!==(t=null===e||void 0===e?void 0:e.content)&&void 0!==t?t:{};M.outWeather=n;var a=n.text;M.getWeatherIcon(a),M.getnowTime(a)}))},getnowTime:function(e){var t=Object(Te["h"])();e.indexOf("霾")>-1?M.topbgimg=Object(Te["x"])("weather","office_smog.jpg"):M.topbgimg=t>=6&&t<19?Object(Te["x"])("weather","office_bright.jpg"):Object(Te["x"])("weather","office_night.jpg")},getWeatherIcon:function(e){e&&e.indexOf("晴")>-1?M.outWeather.imgname=Object(Te["x"])("weather","sun.png"):e&&e.indexOf("雨")>-1?M.outWeather.imgname=Object(Te["x"])("weather","rain.png"):e&&e.indexOf("阴")>-1||e.indexOf("云")>-1?M.outWeather.imgname=Object(Te["x"])("weather","cloudy.png"):e&&e.indexOf("霾")>-1?M.outWeather.imgname=Object(Te["x"])("weather","mai.png"):e&&e.indexOf("雾")>-1?M.outWeather.imgname=Object(Te["x"])("weather","fog.png"):e&&e.indexOf("风")>-1?M.outWeather.imgname=Object(Te["x"])("weather","wind.png"):e&&e.indexOf("雷")>-1?M.outWeather.imgname=Object(Te["x"])("weather","thunder.png"):M.outWeather.imgname=Object(Te["x"])("weather","sun.png")},checkSpaceType:function(e){var t=Object(Ac["b"])(e);"个人"===t?(M.roomType="个人",M.headerInfo.headImg=Object(Te["x"])("page-officehome","office_person_2.png"),M.headerInfo.headScene="工作",M.popList=M.listOffice):"会议室"===t?(M.roomType="会议室",M.popList=JSON.parse(JSON.stringify(M.listSen)),M.headerInfo.headImg=Object(Te["x"])("page-officehome","office_normal_2.png"),M.getPageMeetingSceneHttp()):"开放"===t?(M.roomType="开放",M.headerInfo.headImg=Object(Te["x"])("page-officehome","office_publi_2.png")):(M.roomType="其它",M.headerInfo.headImg=Object(Te["x"])("page-officehome","office_publi_2.png")),"会议室"!==t&&M.timerSpaceInfo()},checkUserSpace:function(){for(var e=!1,t=0;t<M.userSpaceInfo.length;t++)if(M.spaceInfo.spaceId===M.userSpaceInfo[t].sp_id){e=!0;break}M.userIsControl=e},getUserControlAuth:function(){Object(Ie["B"])().then((function(e){var t=e;"success"===t.result?M.userSpaceInfo=t.data:M.userSpaceInfo=[],M.checkUserSpace()})).catch((function(){M.userSpaceInfo=[],M.checkUserSpace()}))},getSpaceInfo:function(){var e={criteria:{spaceId:M.spaceInfo.spaceId,projectId:M.userInfo.projectId},pubname:M.userInfo.pubname,openid:M.userInfo.openid};Object(Ie["w"])(e).then((function(e){var t,n=null!==(t=null===e||void 0===e?void 0:e.content)&&void 0!==t?t:[];n[0]&&(M.officeData=n[0]),M.officeData=M.officeData?M.officeData:{},M.officeData.localName&&(M.localName=M.officeData.localName),M.officeData.temperature&&(M.officeData.temperature=1*M.officeData.temperature.toFixed(1)),M.checkSpaceType(M.officeData.roomFuncType),M.formatSpaceInfo(n),M.getPadImg(),M.loadinngEnd()})).catch((function(){M.loadinngEnd()}))},getSpaceModeTimer:function(){M.spaceModelTimer=setTimeout((function(){M.getSpaceMode(),clearTimeout(M.spaceModelTimer),M.spaceModelTimer=null}),1e3)},getSpaceMode:function(){Object(Ie["y"])().then((function(e){M.getSpaceModeTimer()})).catch((function(){M.getSpaceModeTimer()}))},getSpaceTempTimer:function(){M.spaceTempTimer=setTimeout((function(){clearTimeout(M.spaceTempTimer),M.spaceTempTimer=null,M.getSpaceTemp()}))},getSpaceTemp:function(){Object(Ie["z"])().then((function(e){M.getSpaceTempTimer()})).catch((function(){M.getSpaceTempTimer()}))},setEnvBg:function(e,t){var n="";return"humidity"===e?n="干燥"===t||"潮湿"===t?"linear-gradient(180deg, rgba(205, 11, 0, 0) 0%, #CD0B00 100%)":"":"hcho"===e?n="超标"===t?"linear-gradient(180deg, rgba(205, 11, 0, 0) 0%, #CD0B00 100%)":"":"co2"===e?n="略高"===t?"linear-gradient(180deg, rgba(205, 11, 0, 0.5) 0%, #CD0B00 100%)":"超标"===t?"linear-gradient(180deg, rgba(205, 11, 0, 1) 0%, #CD0B00 100%)":"":"pm25"===e&&(n="良"===t?"linear-gradient(180deg, rgba(205, 11, 0, 0.2) 0%, #CD0B00 100%)":"轻度污染"===t?"linear-gradient(180deg, rgba(205, 11, 0, 0.4) 0%, #CD0B00 100%)":"中度污染"===t?"linear-gradient(180deg, rgba(205, 11, 0, 0.6) 0%, #CD0B00 100%)":"重度污染"===t?"linear-gradient(180deg, rgba(205, 11, 0, 0.8) 0%, #CD0B00 100%)":"严重污染"===t?"linear-gradient(180deg, rgba(205, 11, 0, 1) 0%, #CD0B00 100%)":""),n},checkLevel:function(e,t){var n={humidity:{range:[30,70],text:["干燥","健康","潮湿"]},co2:{range:[800,1e3,1500],text:["健康","达标","略高","超标"]},pm25:{range:[35,75,115,150,250],text:["健康","良","轻度污染","中度污染","重度污染","严重污染"]},hcho:{range:[.1],text:["健康","超标"]}},a=[e].concat(Object(P["a"])(n[t].range)).sort((function(e,t){return e-t})),c=a.findIndex((function(t){return t===e})),o=n[t].text[c],r=M.setEnvBg(t,o);return{level:c,levelTxt:o,bgColor:r}},setPageheight:function(){Object(a["nextTick"])((function(){c.getElementById("envBox").style.height=c.getElementById("envBox").offsetHeight+"px"}))},formatSpaceInfo:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=0;t<e.length;t++){var n=e[t];if(n.co2||0==n.co2){var a=M.checkLevel(n.co2,"co2");M.envlist[1].level=a.levelTxt,M.envlist[1].bgColor=a.bgColor,M.envlist[1].num=n.co2}else M.envlist[1].level="--",M.envlist[1].num="--",M.envlist[1].bgColor="";if(n.pm25||0===n.pm25){var c=M.checkLevel(n.pm25,"pm25");M.envlist[2].level=c.levelTxt,M.envlist[2].bgColor=c.bgColor,M.envlist[2].num=n.pm25}else M.envlist[2].level="--",M.envlist[2].num="--",M.envlist[2].bgColor="";if(n.hcho||0==n.hcho){var o=M.checkLevel(n.hcho,"hcho");M.envlist[0].level=o.levelTxt,M.envlist[0].bgColor=o.bgColor,M.envlist[0].num=n.hcho.toFixed(2)}else M.envlist[0].level="--",M.envlist[0].num="--",M.envlist[0].bgColor="";if(n.humidity||0==n.humidity){var r=M.checkLevel(n.humidity,"humidity");M.envlist[3].level=r.levelTxt,M.envlist[3].bgColor=r.bgColor,M.envlist[3].num=n.humidity.toFixed(0)}else M.envlist[3].level="--",M.envlist[3].num="--",M.envlist[3].bgColor=""}},activeType:"",getPageMeetingSceneHttp:function(){var e={spaceId:M.spaceInfo.spaceId};Object(Ie["o"])(e).then((function(e){var t,n=null!==(t=null===e||void 0===e?void 0:e.content)&&void 0!==t?t:"";"OFFWORK"===n&&(n="ADJOURNMENT"),M.activeType=n,M.timerSpaceInfo()})).catch((function(){M.timerSpaceInfo()}))},secenaroStatus:i,setHeadScene:function(e){M.isShowMetting=!0,M.secenaroStatus={localName:M.officeData.localName,loading:e.loading,lodingText:e.lodingText,sceneName:e.sceneName}},closeDailog:function(){M.isShowMetting=!1},isShowDetail:!1,detailQuery:d,handleDetail:function(e){M.isShowDetail=!0,M.detailQuery.funcid=e.funcid,M.detailQuery.spaceId=M.spaceInfo.spaceId},updateAirTemp:function(e){M.airTemp=e,M.setHeadSceneAirTemp()},setHeadSceneAirTemp:function(){if(M.sceneDetail&&M.sceneDetail.textObj&&M.sceneDetail.textObj.length&&M.airTemp&&("DISCUSSING"==M.sceneDetail.code||"PROJECTING"==M.sceneDetail.code))for(var e=0;e<M.sceneDetail.textObj.length;e++){var t=M.sceneDetail.textObj;"air"===t.type&&(t.text=t.text+",目标温度"+M.airTemp)}},setWorkTime:function(){M.showScenario=!1,M.setTime()},handlePreClose:function(){var e=Object(Te["a"])(),t=Object(Te["h"])();t<10&&(t="0".concat(t));var n={projectId:M.projectId,objectId:M.spaceInfo.spaceId,endDate:e,endTime:t+"0000",type:3};Object(Ie["a"])(n).then((function(e){var t=e;"success"==t.result&&M.changeLampStatus()}))},changeLampStatus:function(){M.showWorkOff=!1,M.headerInfo.tipText="选择工作结束时间",M.headerInfo.tipTextSwatch=!0},getEquipments:function(){var e={spaceId:M.spaceInfo.spaceId};M.spaceExistenceDevice={curtain:!1,light:!1,airConditioner:!1,bodySensor:!1};var t=Object(Te["A"])(e);Object(Ie["v"])(t).then((function(e){var t=e;if("success"===t.result){for(var n,a=null!==(n=null===t||void 0===t?void 0:t.data)&&void 0!==n?n:[],c=0;c<a.length;c++)M.spaceExistenceDevice[a[c]]=!0;M.spaceExistenceDevice.light?M.navList[1].noShow=!0:M.navList[1].noShow=!1,M.spaceExistenceDevice.curtain?M.navList[2].noShow=!0:M.navList[2].noShow=!1}}))},hourMiChange:function(e){var t=e.toString(),n="",a=t.length>2?t.split(".")[1].length:t;return 1===a?(t=t.replace(".","")+"0",n=t.slice(0,2)+":"+t.slice(2)):2===a?(t=t.replace(".",""),n=t.slice(0,2)+":"+t.slice(2)):n=t+":00",n},getSetTimeHttp:function(){var e={spaceId:M.spaceInfo.spaceId};Object(Ie["u"])(e).then((function(e){var t,n=e,a=null!==(t=null===n||void 0===n?void 0:n.content)&&void 0!==t?t:{};M.nextCusStartTime=a.nextCusStartTime?Math.floor(Number(a.nextCusStartTime/1e4)):9;var c=Object(Te["a"])(""),o="",r=Object(Te["h"])(),i=0,l=0,s=0;if(M.showWorkOff=!1,a.endDate&&c===a.endDate&&(s=Number(a.endTime/1e4),o=""),a.endDate&&c!==a.endDate&&(s=Number(a.endTime/1e4),o="明天"),a.nextCusEndTime||a.cusStartTime||!a.endDate)M.headerInfo.tipText="选择工作结束时间",M.headerInfo.tipTextSwatch=!0,M.workInfo.textTime="",M.workInfo.text="";else{var u=o?s+24:s;r<u?(M.headerInfo.tipText="".concat(o).concat(M.hourMiChange(s)),M.headerInfo.tipTextSwatch=!1,M.showWorkOff=!0,M.workInfo.textTime=M.hourMiChange(s),M.workInfo.text=o||"今天"):(M.headerInfo.tipText="选择工作结束时间",M.headerInfo.tipTextSwatch=!0,M.workInfo.textTime="",M.workInfo.text="")}if(!a.cusEndTime)return M.cusStartTime=0,void(M.cusEndTime=0);if(a.cusEndTime&&(l=a.cusStartTime?Number(a.cusStartTime/1e4):0,i=a.cusEndTime?Number(a.cusEndTime/1e4):0,M.cusStartTime=Math.floor(l),M.cusEndTime=Math.floor(i)),r>=l&&r<i&&!s)M.headerInfo.tipText="".concat(o).concat(M.hourMiChange(i)),M.headerInfo.tipTextSwatch=!1;else if(r>=l&&r<i&&s){var d=(o?s+24:s)>r?s:i;M.headerInfo.tipText="".concat(o).concat(M.hourMiChange(d)),M.headerInfo.tipTextSwatch=!1,M.workInfo.textTime=M.hourMiChange(d),M.workInfo.text=o||"今天"}else r>=i&&s&&(o?s+24:s)>=r?(i=s,M.headerInfo.tipText="".concat(o).concat(M.hourMiChange(i)),M.headerInfo.tipTextSwatch=!1,M.showWorkOff=!0,M.workInfo.textTime=M.hourMiChange(i),M.workInfo.text=o||"今天"):(M.headerInfo.tipTextSwatch=!0,M.headerInfo.tipText="选择工作结束时间",M.workInfo.textTime="",M.workInfo.text="")}))},setTime:function(){M.getSetTimeHttp()},handlePopup:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scenario";M.userIsControl?(M.showScenario=!M.showScenario,M.showScenario?M.deviceIcon="arrow-down":M.deviceIcon="arrow",M.popupType=e):Object(Yt["a"])("您没有当前空间的控制权限!")},triggerCheckSpace:function(){var e=c.getElementById("envContent"),t=c.getElementById("houseDes"),n=t.offsetHeight;M.opacityV=0,M.mapOpacity=1,e.scrollTop=0;var a=0,r=setInterval((function(){a+=15,a<o-n?e.style.top=a+"px":(e.style.top=o-n+"px",clearInterval(r))}),10);M.hideTopImg=!0,M.isBottom=!0},loadingStart:function(){Yt["a"].loading({duration:0,forbidClick:!0,message:"加载中..."})},loadinngEnd:function(){Yt["a"].clear()},clearTimerSpaceInfo:function(){clearTimeout(M.spaceTimer),M.spaceTimer=null},timerSpaceInfo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5e3;M.clearTimerSpaceInfo(),M.spaceTimer=setTimeout((function(){M.getSpaceInfo()}),e)},isWork:!1,isMetting:!1,checkIsSpaceScene:function(){M.scenarioArr.map((function(e){"OVERTIME"===e.sceneType&&(M.isWork=!0)}))},scenarioArr:D,querySpaceSceneConfig:function(){var e={spaceId:M.spaceInfo.spaceId},t=Object(Te["A"])(e);Object(Ie["H"])(t).then((function(e){var t,n=e,a=null!==(t=null===n||void 0===n?void 0:n.data)&&void 0!==t?t:[];M.scenarioArr=a,M.checkIsSpaceScene()}))},workkArr:E,secenTimer:B,queryCustomAndScenceTimer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4;M.secenTimer&&(clearTimeout(M.secenTimer),M.secenTimer=null),M.secenTimer=setTimeout((function(){M.queryCustomAndScence()}),e)},queryCustomAndScence:function(){var e={spaceId:M.spaceInfo.spaceId},t=Object(Te["A"])(e);Object(Ie["F"])(t).then((function(e){var t,n=null!==(t=null===e||void 0===e?void 0:e.data)&&void 0!==t?t:[];M.workkArr=n;for(var a=0;a<M.workkArr.length;a++){var c,o,r=null!==(c=null===(o=M.workkArr[a])||void 0===o?void 0:o.customSceneList)&&void 0!==c?c:[];r=r.sort(M.compare)}M.queryCustomAndScenceTimer(5e3)}))},compare:function(e,t){var n=e.startTime,a=t.startTime;return n<a?-1:n>a?1:0},formateWorkTime:function(){},init:function(){M.padNumber=0,M.timerSpaceInfo(0),M.getEquipments(),M.querySpaceSceneConfig(),M.queryCustomAndScenceTimer(0),M.setTime()},updatePageUrl:function(){var e=window.history,t=window.location.origin+window.location.pathname;e.replaceState("","",t)},setTimerCloseTip:function(){var e=0;M.intervalTimer=setInterval((function(){e++,e>2&&(M.showSpaceTip=!1,clearInterval(M.intervalTimer),M.updatePageUrl())}),1e3)},spaceData:V,copySpaceData:V,floorId:"",buildingId:"",queryWorkSpace:function(){var e={criteria:{projectId:M.userInfo.projectId,spaceName:"",macAddress:M.userInfo.mac},orders:[{column:"isMajorSpace",asc:!1}]};Object(Ie["I"])(e).then((function(e){var t,n=e;"success"===n.result?M.spaceData=null!==(t=null===n||void 0===n?void 0:n.content)&&void 0!==t?t:[]:M.spaceData=[];M.spaceData.map((function(e){M.spaceInfo.spaceId===e.spaceId?(e.active=!0,M.spaceInfo=e):e.active=!1})),M.copySpaceData=JSON.parse(JSON.stringify(M.spaceData))}))},resetSpaceStatus:function(){M.spaceData.map((function(e){e.active=!1})),M.roomType="",M.setForceOverTimeFlag(!1),M.isWork=!1},isShowMap:!1,defaultSpace:m,moreSpace:function(){M.isShowMap=!0,M.defaultSpace=M.spaceInfo},elChangeExForArray:function(e){for(var t=1,n=0,a=0;a<M.spaceData.length;a++)if(e.spaceId===M.spaceData[a].spaceId&&(M.spaceData[a].active=!0,a>2)){n=a;break}if(n){var c=M.spaceData[t];M.spaceData[t]=M.spaceData[n],M.spaceData[n]=c}},changeSpace:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;M.clearTimerSpaceInfo(),M.resetSpaceStatus(),M.spaceInfo=e,M.init(),1===t&&(M.defaultSpace=e,M.elChangeExForArray(e)),e.active=!0},timeOutEvent:b,touchNumber:0,gtouchstart:function(e){return M.touchNumber=0,M.timeOutEvent=setTimeout((function(){M.touchNumber=1,M.longPress()}),400),!1},showDeleteButton:function(){return clearInterval(M.touchInterval),M.touchInterval=null,clearTimeout(M.timeOutEvent),M.timeOutEvent,!1},gtouchmove:function(){clearTimeout(this.timeOutEvent),M.timeOutEvent=0},touchInterval:g,longPress:function(){M.timeOutEvent=0,M.touchInterval=setInterval((function(){M.touchNumber++,4===M.touchNumber&&(clearInterval(M.touchInterval),M.touchInterval=null,t.push({name:"home",query:{mac:M.userInfo.mac}}))}),1e3)}});return Object(a["nextTick"])((function(){})),Object(a["onBeforeUnmount"])((function(){M.clearTimerSpaceInfo()})),Object(a["onMounted"])((function(){var e=n.query.spaceId;M.spaceInfo={spaceId:e},M.defaultSpace={spaceId:e},M.init(),M.queryWorkSpace(),M.getWeather()})),Object(_["a"])({},Object(a["toRefs"])(M))}});n("072c"),n("11ec");const Wc=xe()(Lc,[["render",U],["__scopeId","data-v-7be73583"]]);t["default"]=Wc},"8b68":function(e,t,n){"use strict";n("9407")},"90c5":function(e,t,n){},9407:function(e,t,n){},9617:function(e,t,n){},"998b":function(e,t,n){},a526:function(e,t,n){},a700:function(e,t,n){},b601:function(e,t,n){},b991:function(e,t,n){},be7f:function(e,t,n){"use strict";n("68ef"),n("cb51"),n("3743"),n("1a04"),n("1146")},c032:function(e,t,n){"use strict";n("998b")},c740:function(e,t,n){"use strict";var a=n("23e7"),c=n("b727").findIndex,o=n("44d2"),r=n("ae40"),i="findIndex",l=!0,s=r(i);i in[]&&Array(1)[i]((function(){l=!1})),a({target:"Array",proto:!0,forced:l||!s},{findIndex:function(e){return c(this,e,arguments.length>1?arguments[1]:void 0)}}),o(i)},c7b6:function(e,t,n){"use strict";n("248c")},d3fb:function(e,t,n){"use strict";n.d(t,"a",(function(){return N})),n.d(t,"b",(function(){return w}));var a=n("7a23"),c=n("fe7e"),o=n("f691"),r=n("f344"),i=n("8405"),l=n("b1d2"),s=n("4a89"),u=n("f465"),d=n("4eda"),m=n("543e"),p=n("8da3");function f(e){if(!Object(p["b"])(e))return e;if(Array.isArray(e))return e.map(e=>f(e));if(Object(p["f"])(e)){const t={};return Object.keys(e).forEach(n=>{t[n]=f(e[n])}),t}return e}var b=n("cdd8");const g=200,v=300,O=15,[j,h]=Object(c["a"])("picker-column");function T(e){const{transform:t}=window.getComputedStyle(e),n=t.slice(7,t.length-1).split(", ")[5];return Number(n)}const I=Symbol(j),k=e=>Object(p["f"])(e)&&e.disabled;var S=Object(a["defineComponent"])({name:j,props:{textKey:Object(o["d"])(String),readonly:Boolean,allowHtml:Boolean,className:o["h"],itemHeight:Object(o["d"])(Number),defaultIndex:Object(o["b"])(0),swipeDuration:Object(o["d"])(o["f"]),initialOptions:Object(o["a"])(),visibleItemCount:Object(o["d"])(o["f"])},emits:["change"],setup(e,{emit:t,slots:n}){let c,o,r,l,m;const j=Object(a["ref"])(),S=Object(a["reactive"])({index:e.defaultIndex,offset:0,duration:0,options:f(e.initialOptions)}),x=Object(b["a"])(),y=()=>S.options.length,C=()=>e.itemHeight*(+e.visibleItemCount-1)/2,w=e=>{e=Object(i["d"])(e,0,y());for(let t=e;t<y();t++)if(!k(S.options[t]))return t;for(let t=e-1;t>=0;t--)if(!k(S.options[t]))return t},D=(n,a)=>{n=w(n)||0;const o=-n*e.itemHeight,r=()=>{n!==S.index&&(S.index=n,a&&t("change",n))};c&&o!==S.offset?m=r:r(),S.offset=o},N=t=>{JSON.stringify(t)!==JSON.stringify(S.options)&&(S.options=f(t),D(e.defaultIndex))},E=t=>{c||e.readonly||(m=null,S.duration=g,D(t,!0))},V=t=>Object(p["f"])(t)&&e.textKey in t?t[e.textKey]:t,B=t=>Object(i["d"])(Math.round(-t/e.itemHeight),0,y()-1),A=(t,n)=>{const a=Math.abs(t/n);t=S.offset+a/.003*(t<0?-1:1);const c=B(t);S.duration=+e.swipeDuration,D(c,!0)},L=()=>{c=!1,S.duration=0,m&&(m(),m=null)},W=t=>{if(!e.readonly){if(x.start(t),c){const e=T(j.value);S.offset=Math.min(0,e-C()),o=S.offset}else o=S.offset;S.duration=0,r=Date.now(),l=o,m=null}},M=t=>{if(e.readonly)return;x.move(t),x.isVertical()&&(c=!0,Object(s["e"])(t,!0)),S.offset=Object(i["d"])(o+x.deltaY.value,-y()*e.itemHeight,e.itemHeight);const n=Date.now();n-r>v&&(r=n,l=S.offset)},F=()=>{if(e.readonly)return;const t=S.offset-l,n=Date.now()-r,a=n<v&&Math.abs(t)>O;if(a)return void A(t,n);const o=B(S.offset);S.duration=g,D(o,!0),setTimeout(()=>{c=!1},0)},U=()=>{const t={height:e.itemHeight+"px"};return S.options.map((c,o)=>{const r=V(c),i=k(c),l={role:"button",style:t,tabindex:i?-1:0,class:h("item",{disabled:i,selected:o===S.index}),onClick:()=>E(o)},s={class:"van-ellipsis",[e.allowHtml?"innerHTML":"textContent"]:r};return Object(a["createVNode"])("li",l,[n.option?n.option(c):Object(a["createVNode"])("div",s,null)])})},_=e=>{const{options:t}=S;for(let n=0;n<t.length;n++)if(V(t[n])===e)return D(n)},P=()=>S.options[S.index];return D(S.index),Object(u["k"])(I),Object(d["a"])({state:S,setIndex:D,getValue:P,setValue:_,setOptions:N,stopMomentum:L}),Object(a["watch"])(()=>e.initialOptions,N),Object(a["watch"])(()=>e.defaultIndex,e=>D(e)),()=>Object(a["createVNode"])("div",{class:[h(),e.className],onTouchstart:W,onTouchmove:M,onTouchend:F,onTouchcancel:F},[Object(a["createVNode"])("ul",{ref:j,style:{transform:`translate3d(0, ${S.offset+C()}px, 0)`,transitionDuration:S.duration+"ms",transitionProperty:S.duration?"all":"none"},class:h("wrapper"),onTransitionend:L},[U()])])}});const[x,y,C]=Object(c["a"])("picker"),w={title:String,loading:Boolean,readonly:Boolean,allowHtml:Boolean,itemHeight:Object(o["c"])(44),showToolbar:o["g"],swipeDuration:Object(o["c"])(1e3),visibleItemCount:Object(o["c"])(6),cancelButtonText:String,confirmButtonText:String},D=Object(r["a"])({},w,{columns:Object(o["a"])(),valueKey:String,defaultIndex:Object(o["c"])(0),toolbarPosition:Object(o["e"])("top"),columnsFieldNames:Object});var N=Object(a["defineComponent"])({name:x,props:D,emits:["confirm","cancel","change"],setup(e,{emit:t,slots:n}){const c=Object(a["ref"])(!1),o=Object(a["ref"])([]),{text:p,values:f,children:b}=Object(r["a"])({text:e.valueKey||"text",values:"values",children:"children"},e.columnsFieldNames),{children:g,linkChildren:v}=Object(u["f"])(I);v();const O=Object(a["computed"])(()=>Object(i["j"])(e.itemHeight)),j=Object(a["computed"])(()=>{const t=e.columns[0];if("object"===typeof t){if(b in t)return"cascade";if(f in t)return"object"}return"plain"}),h=()=>{var t;const n=[];let a={[b]:e.columns};while(a&&a[b]){const c=a[b];let o=null!=(t=a.defaultIndex)?t:+e.defaultIndex;while(c[o]&&c[o].disabled){if(!(o<c.length-1)){o=0;break}o++}n.push({[f]:a[b],className:a.className,defaultIndex:o}),a=c[o]}o.value=n},T=()=>{const{columns:t}=e;"plain"===j.value?o.value=[{[f]:t}]:"cascade"===j.value?h():o.value=t,c.value=o.value.some(e=>e[f]&&0!==e[f].length)},k=()=>g.map(e=>e.state.index),x=(e,t)=>{const n=g[e];n&&(n.setOptions(t),c.value=!0)},w=t=>{let n={[b]:e.columns};const a=k();for(let e=0;e<=t;e++)n=n[b][a[e]];while(n&&n[b])t++,x(t,n[b]),n=n[b][n.defaultIndex||0]},D=e=>g[e],N=e=>{const t=D(e);if(t)return t.getValue()},E=(e,t)=>{const n=D(e);n&&(n.setValue(t),"cascade"===j.value&&w(e))},V=e=>{const t=D(e);if(t)return t.state.index},B=(e,t)=>{const n=D(e);n&&(n.setIndex(t),"cascade"===j.value&&w(e))},A=e=>{const t=D(e);if(t)return t.state.options},L=()=>g.map(e=>e.getValue()),W=e=>{e.forEach((e,t)=>{E(t,e)})},M=e=>{e.forEach((e,t)=>{B(t,e)})},F=e=>{"plain"===j.value?t(e,N(0),V(0)):t(e,L(),k())},U=e=>{"cascade"===j.value&&w(e),"plain"===j.value?t("change",N(0),V(0)):t("change",L(),e)},_=()=>{g.forEach(e=>e.stopMomentum()),F("confirm")},P=()=>F("cancel"),q=()=>n.title?n.title():e.title?Object(a["createVNode"])("div",{class:[y("title"),"van-ellipsis"]},[e.title]):void 0,R=()=>{const t=e.cancelButtonText||C("cancel");return Object(a["createVNode"])("button",{type:"button",class:[y("cancel"),l["g"]],onClick:P},[n.cancel?n.cancel():t])},H=()=>{const t=e.confirmButtonText||C("confirm");return Object(a["createVNode"])("button",{type:"button",class:[y("confirm"),l["g"]],onClick:_},[n.confirm?n.confirm():t])},z=()=>{if(e.showToolbar){const e=n.toolbar||n.default;return Object(a["createVNode"])("div",{class:y("toolbar")},[e?e():[R(),q(),H()]])}},J=()=>o.value.map((t,c)=>{var o;return Object(a["createVNode"])(S,{textKey:p,readonly:e.readonly,allowHtml:e.allowHtml,className:t.className,itemHeight:O.value,defaultIndex:null!=(o=t.defaultIndex)?o:+e.defaultIndex,swipeDuration:e.swipeDuration,initialOptions:t[f],visibleItemCount:e.visibleItemCount,onChange:()=>U(c)},{option:n.option})}),Y=e=>{if(c.value){const t={height:O.value+"px"},n={backgroundSize:`100% ${(e-O.value)/2}px`};return[Object(a["createVNode"])("div",{class:y("mask"),style:n},null),Object(a["createVNode"])("div",{class:[l["e"],y("frame")],style:t},null)]}},G=()=>{const t=O.value*+e.visibleItemCount,n={height:t+"px"};return Object(a["createVNode"])("div",{class:y("columns"),style:n,onTouchmove:s["e"]},[J(),Y(t)])};return Object(a["watch"])(()=>e.columns,T,{immediate:!0}),Object(d["a"])({confirm:_,getValues:L,setValues:W,getIndexes:k,setIndexes:M,getColumnIndex:V,setColumnIndex:B,getColumnValue:N,setColumnValue:E,getColumnValues:A,setColumnValues:x}),()=>{var t,c;return Object(a["createVNode"])("div",{class:y()},["top"===e.toolbarPosition?z():null,e.loading?Object(a["createVNode"])(m["a"],{class:y("loading")},null):null,null==(t=n["columns-top"])?void 0:t.call(n),G(),null==(c=n["columns-bottom"])?void 0:c.call(n),"bottom"===e.toolbarPosition?z():null])}}})},d9d2:function(e,t,n){},dc63:function(e,t,n){"use strict";n("419e")},e3c7:function(e,t,n){},e56d:function(e,t,n){e.exports={menuBg:"#fff",menuText:"#162b64",menuActiveText:"#435ebe"}},eaf7:function(e,t,n){},eb93:function(e,t,n){"use strict";n("a700")},f253:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var a=n("c199"),c=n("d3fb");const o=Object(a["a"])(c["a"]);var r=o},fc40:function(e,t,n){"use strict";n("282c")}}]);
  2. //# sourceMappingURL=chunk-3c619af9.01a296b3.js.map