(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-37ea99b4"],{"053f":function(e,t,n){"use strict";n("0901")},"0653":function(e,t,n){"use strict";n("68ef"),n("5c56")},"0901":function(e,t,n){e.exports={menuBg:"#fff",menuText:"#162b64",menuActiveText:"#435ebe"}},"0970":function(e,t,n){"use strict";n("60f5")},"0d32":function(e,t,n){"use strict";n("3a02")},1176:function(e,t,n){},1196:function(e,t,n){"use strict";n("eaf7")},"13d5":function(e,t,n){"use strict";var a=n("23e7"),o=n("d58f").left,r=n("a640"),c=n("ae40"),i=n("2d00");n=n("605d"),r=r("reduce"),c=c("reduce",{1:0});a({target:"Array",proto:!0,forced:!r||!c||!n&&79{var o;return Object(a.createVNode)("div",Object(a.mergeProps)({class:[l({inset:e.inset}),{[c.d]:e.border&&!e.inset}]},n),[null==(o=t.default)?void 0:o.call(t)])};return()=>e.title||t.title?Object(a.createVNode)(a.Fragment,null,[Object(a.createVNode)("div",{class:l("title",{inset:e.inset})},[t.title?t.title():e.title]),o()]):o()}});var s=Object(t.a)(o)},"38d5":function(e,t,n){"use strict";n("68ef")},"39bd":function(e,t,n){e.exports={menuBg:"#fff",menuText:"#162b64",menuActiveText:"#435ebe"}},"3a02":function(e,t,n){},"40e5":function(e,t,n){"use strict";n("39bd")},"453e":function(e,t,n){},"4e7e":function(e,t,n){"use strict";n("6f9a")},"5a3d":function(e,t,n){},"5c56":function(e,t,n){},"5c73":function(e,t,n){"use strict";n("8267")},"60f5":function(e,t,n){},"64f8":function(e,t,n){},"66b9":function(e,t,n){"use strict";n("68ef"),n("cb51"),n("3743"),n("e3b3"),n("bc1b")},6894:function(e,t,n){e.exports={menuBg:"#fff",menuText:"#162b64",menuActiveText:"#435ebe"}},"6eb7":function(e,t,n){},"6f9a":function(e,t,n){e.exports={menuBg:"#fff",menuText:"#162b64",menuActiveText:"#435ebe"}},"745d":function(e,t,n){"use strict";n("c7bb")},"772a":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));t=n("c199");var a=n("7a23"),o=n("fe7e"),r=n("f691"),c=n("b1d2"),i=n("4a89"),l=n("f465"),s=n("4eda");const[m,u]=Object(o.a)("form");n={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},o=Object(a.defineComponent)({name:m,props:n,emits:["submit","failed"],setup(e,{emit:t,slots:n}){const{children:o,linkChildren:r}=Object(l.f)(c.f),m=e=>e?o.filter(t=>e.includes(t.name)):o,d=e=>new Promise((t,n)=>{const a=[],o=m(e);o.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=m(e);Promise.all(a.map(e=>e.validate())).then(e=>{(e=e.filter(Boolean)).length?n(e):t()})}),f=e=>{const t=o.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:e.validateFirst?d:p)(t),g=(e,t)=>{o.some(n=>n.name===e&&(n.$el.scrollIntoView(t),!0))},h=()=>{const n=o.reduce((e,t)=>(e[t.name]=t.formValue.value,e),{});b().then(()=>t("submit",n)).catch(a=>{t("failed",{values:n,errors:a}),e.scrollToError&&a[0].name&&g(a[0].name)})},O=e=>{Object(i.e)(e),h()};return r({props:e}),Object(s.a)({submit:h,validate:b,scrollToField:g,resetValidation:e=>{"string"==typeof e&&(e=[e]);const t=m(e);t.forEach(e=>{e.resetValidation()})}}),()=>{var e;return Object(a.createVNode)("form",{class:u(),onSubmit:O},[null==(e=n.default)?void 0:e.call(n)])}}});var d=Object(t.a)(o)},7771:function(e,t,n){"use strict";n("e26f")},"78f4":function(e,t,n){"use strict";n("64f8")},7984:function(e,t,n){"use strict";n("2185")},"79a0":function(e,t,n){"use strict";n("6894")},"7f3f":function(e,t,n){"use strict";function a(e){return Object(o.pushScopeId)("data-v-ea4fd9a8"),e=e(),Object(o.popScopeId)(),e}n.r(t),n("b0c0");var o=n("7a23"),r={class:"main-left"},c={class:"logo-box"},i=["src"],l=["src"],s={class:"left-time"},m={class:"weather"},u=["src"],d=["src"],p=a((function(){return Object(o.createElementVNode)("span",null," 联系客服",-1)})),f={class:"left-space"},b={class:"text"},g={class:"space-info"},h={class:"space-temp"},O=["src"],j=a((function(){return Object(o.createElementVNode)("span",{class:"temp-text"},"温度",-1)})),v={class:"temp-num"},T=a((function(){return Object(o.createElementVNode)("sup",null,"℃",-1)})),k={class:"space-env"},I=["onClick"],S=["src"],C={class:"env-text"},y={key:0,class:"fotter"},w=["onClick"],x=["src"],D=["src"],E=["src"],N=a((function(){return Object(o.createElementVNode)("span",null,"…",-1)})),V={class:"main-right"},B={key:0,class:"work-btn"};function L(e){return Object(o.pushScopeId)("data-v-7f90093d"),e=e(),Object(o.popScopeId)(),e}n("c975"),n("d81d"),n("fb6a"),n("b680"),n("d3b7"),n("ac1f"),n("25f0"),n("5319"),n("1276");var A=n("5530"),W=(n("96cf"),n("1da1")),M=n("ade3"),q={class:"work-content"},F={class:"work-space"},U={class:"space-title"},_=L((function(){return Object(o.createElementVNode)("div",{class:"device-tip"},"延时期间,空间相关设备会开启",-1)})),R={class:"add-time",id:"addTimeId"},P={key:0,class:"date_box"},H=["onClick"],z={class:"sliders-list",id:"sliderListId"},Y={class:"sliders"},G=["onClick","data-index"],X=[L((function(){return Object(o.createElementVNode)("div",{class:"start",id:"startId"},null,-1)})),L((function(){return Object(o.createElementVNode)("div",{class:"end-box",id:"endBoxId"},[Object(o.createElementVNode)("div",{class:"end",id:"endId"}),Object(o.createElementVNode)("div",{class:"end-radio",id:"endRadioId"})],-1)}))],J={class:"add-time-btn"};n("99af");var K=n("2241"),$=(n("e17f"),n("c199")),Z=n("fe7e"),Q=n("f691"),ee=n("8405"),te=n("4a89"),ne=n("f465"),ae=n("cdd8");const[oe,re]=Object(Z.a)("slider");var ce={min:Object(Q.c)(0),max:Object(Q.c)(100),step:Object(Q.c)(1),range:Boolean,reverse:Boolean,disabled:Boolean,readonly:Boolean,vertical:Boolean,barHeight:Q.f,buttonSize:Q.f,activeColor:String,inactiveColor:String,modelValue:{type:[Number,Array],default:0}};ce=Object(o.defineComponent)({name:oe,props:ce,emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:t,slots:n}){let a,r,c;const i=Object(o.ref)(),l=Object(o.ref)(),s=Object(ae.a)(),m=Object(o.computed)(()=>Number(e.max)-Number(e.min)),u=Object(o.computed)(()=>{var t=e.vertical?"width":"height";return{background:e.inactiveColor,[t]:Object(ee.b)(e.barHeight)}}),d=t=>e.range&&Array.isArray(t),p=Object(o.computed)(()=>{const t={[e.vertical?"height":"width"]:(()=>{var{modelValue:t,min:n}=e;return d(t)?100*(t[1]-t[0])/m.value+"%":100*(t-Number(n))/m.value+"%"})(),background:e.activeColor};return l.value&&(t.transition="none"),t[e.vertical?e.reverse?"bottom":"top":e.reverse?"right":"left"]=(()=>{var{modelValue:t,min:n}=e;return d(t)?100*(t[0]-Number(n))/m.value+"%":"0%"})(),t}),f=t=>{var n=+e.min,a=+e.max,o=+e.step;t=Object(ee.d)(t,n,a),a=Math.round((t-n)/o)*o;return Object(ee.a)(n,a)},b=(e,t)=>JSON.stringify(e)===JSON.stringify(t),g=(n,a)=>{var o,r;n=d(n)?(r=null!=(r=(o=n)[0])?r:Number(e.min),((o=null!=(o=o[1])?o:Number(e.max)){if(t.stopPropagation(),!e.disabled&&!e.readonly){const{min:o,reverse:r,vertical:c,modelValue:l}=e,s=Object(ne.l)(i);var n,a=c?s.height:s.width;t=Number(o)+(c?r?s.bottom-t.clientY:t.clientY-s.top:r?s.right-t.clientX:t.clientX-s.left)/a*m.value;d(l)?([a,n]=l,g(t<=(a+n)/2?[t,n]:[a,t],!0)):g(t,!0)}},O=n=>{if(!e.disabled&&!e.readonly){"start"===l.value&&t("drag-start",n),Object(te.e)(n,!0),s.move(n),l.value="dragging";n=Object(ne.l)(i);let o=(e.vertical?s.deltaY:s.deltaX).value/(e.vertical?n.height:n.width)*m.value;e.reverse&&(o=-o),d(c)?(n=e.reverse?1-a:a,r[n]=c[n]+o):r=c+o,g(r)}},j=n=>{e.disabled||e.readonly||("dragging"===l.value&&(g(r,!0),t("drag-end",n)),l.value="")},v=t=>{var i,m,u="number"==typeof t?e.modelValue[t]:e.modelValue;return Object(o.createVNode)("div",{role:"slider",class:"number"==typeof(i=t)?(m=["left","right"],re("button-wrapper",m[i])):re("button-wrapper",e.reverse?"left":"right"),tabindex:e.disabled?void 0:0,"aria-valuemin":e.min,"aria-valuenow":u,"aria-valuemax":e.max,"aria-disabled":e.disabled||void 0,"aria-readonly":e.readonly||void 0,"aria-orientation":e.vertical?"vertical":"horizontal",onTouchstart:n=>{"number"==typeof t&&(a=t),n=n,e.disabled||e.readonly||(s.start(n),r=e.modelValue,c=d(r)?r.map(f):f(r),l.value="start")},onTouchmove:O,onTouchend:j,onTouchcancel:j,onClick:te.i},[((t,a)=>{if("number"==typeof a){const e=n[0===a?"left-button":"right-button"];if(e)return e({value:t})}return n.button?n.button({value:t}):Object(o.createVNode)("div",{class:re("button"),style:Object(ee.f)(e.buttonSize)},null)})(u,t)])};return g(e.modelValue),Object(ne.h)(()=>e.modelValue),()=>Object(o.createVNode)("div",{ref:i,style:u.value,class:re({vertical:e.vertical,disabled:e.disabled}),onClick:h},[Object(o.createVNode)("div",{class:re("bar"),style:p.value},[e.range?[v(0),v(1)]:v()])])}}),ce=Object($.a)(ce);function ie(e,t){function n(){}var a,o,r=!1,c=0,i=0,l=0,s=0,m={swipeLeft:n,swipeRight:n,swipeDown:n,swipeUp:n,drag:n};Object.assign(m,t),e.addEventListener("touchstart",(function(e){c=e.touches[0].pageX,i=e.touches[0].pageY,s=l=0}),{passive:!0}),e.addEventListener("touchmove",(function(t){var n;r=!0,a=t.touches[0].pageX,o=t.touches[0].pageY,t.mation={startX:c,startY:i,moveX:a,moveY:o,disX:l,disY:s},m.drag.call(e,t),r&&(n=Math.abs(a-c),(Math.abs(o-i)i.screenInfo.screenWidth+i.screenInfo.screenWidth/2&&(o-=n),t.style.left=-o+"px",i.setOptionnalPerstion(a,e)},sliderSwiper:function(){var e=document.querySelector("#sliderListId"),t=(document.querySelector("#slidersWrapperId"),0),n=e.offsetWidth-i.screenInfo.screenWidth;e.addEventListener("touchstart",(function(n){t=isNaN(parseInt(e.style.left))?0:parseInt(e.style.left),t=Math.abs(t)})),ie(e,{swipeLeft:function(a){var o;i.checkMoveTarget(a)||(o=isNaN(parseInt(e.style.left))?0:parseInt(e.style.left),o=Math.abs(o),e.style.left=n<=o?-n+"px":-t-Math.abs(a.mation.moveX-a.mation.startX)+"px")},swipeRight:function(n){var a;i.checkMoveTarget(n)||(a=isNaN(parseInt(e.style.left))?0:parseInt(e.style.left),e.style.left=0<=a?"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=i.startIndex;t=i.timerArr.length-1&&(t=i.timerArr.length-1-i.startIndex),a.style.width=r.offsetWidth*t+"px",a.style.background="rgba(0,0,0,0.2)",i.setOptionnalPerstion(i.startIndex,t),m=!1,i.checkPersionService())})),ie(n,{swipeLeft:function(e){var n,o;i.checkMoveTarget(e)&&(m=!0,e=Math.abs(e.mation.moveX-e.mation.startX),n=isNaN(parseInt(t.style.left))?0:parseInt(t.style.left),n=Math.abs(n),o=r.offsetWidth,l-e<=o?a.style.width=o+"px":(a.style.width=l-e+"px",i.cancelSliderBoxColor()),Object(se.x)("ipdImages","time-wait.svg"),a.style.background="linear-gradient(0deg, rgba(0, 255, 163, 0.2), rgba(0, 255, 163, 0.2))",c+(l-e)-s=e&&(u=-o-(c+l+n+2*r.offsetWidth-e),t.style.left=u+"px",s<=o&&(t.style.left=-s+"px")),c+l+n+r.offsetWidth>=t.offsetWidth?a.style.width=t.offsetWidth-c-r.offsetWidth+"px":a.style.width=l+n+"px")}})},cancelSliderBoxColor:function(){for(var e=document.querySelectorAll(".slider-box"),t=0;t=i.startIndex&&t=t&&l[a].formatTimer=t&&l[a].formatTimer=o&&e.formatTimer=e.startTime&&(r=i.formaTimeObj(e,"1",e.startTime,e.endTime),o.push(r)):n>=e.startTime&&ne.endTime&&(r=i.formaTimeObj(e,"1",e.startTime,e.endTime),o.push(r),n=e.startTime):n>=e.endTime?n===e.endTime&&(r=i.formaTimeObj(e,"1",e.startTime,e.endTime),o.push(r),n=e.startTime):n===e.startTime&&e.endTime})),i.parseCusStartTime(i.nowData.cusStartTime)),i.parseCusEndTime(i.nowData.cusEndTime));no&&(s=i.formaTimeObj(p,"1",p.startTime,p.endTime),r.push(s),m=i.formaTimeObj(n[0],"0",p.startTime,a),c.push(m),m=i.formaTimeObj(n[0],"0",o,p.endTime),c.push(m)):p.startTime==p.startTime?p.endTime<=o?(m=i.formaTimeObj(p,"1",p.startTime,p.endTime),r.push(m)):p.endTime>o&&(u=i.formaTimeObj(p,"1",p.startTime,p.endTime),r.push(u),u=i.formaTimeObj(n[0],"0",o,p.endTime),c.push(u)):p.startTime>a&&(p.endTime<=o?(u=i.formaTimeObj(p,"1",p.startTime,p.endTime),r.push(u)):p.endTime>o&&(d=i.formaTimeObj(p,"1",p.startTime,p.endTime),r.push(d),d=i.formaTimeObj(n[0],"0",o,p.endTime),c.push(d)))}return c.concat(r)}return[]},closeWorkTimer:function(){i.formBtn=!1,t.emit("closeWork")},addWorkTimer:function(){var e=i.formateAddTimer();i.saveBatchCustomScene(e)},saveBatchCustomScene:function(e){i.showLoading=!0,i.formBtn=!0,Object(me.K)(e).then((function(e){t.emit("closeWork"),i.showLoading=!1,i.formBtn=!1})).catch((function(){t.emit("closeWork"),i.showLoading=!1,i.formBtn=!1}))},isUpdate:!1,triggerDelTime:function(){var e=i.formateDelTimer();e&&e.length&&K.a.confirm({title:"确认",message:"确定删除当前时间吗?"}).then((function(){i.saveBatchCustomScene(e,2)})).catch((function(){}))}});return Object(o.watch)(e,(function(e){i.workkArr=e.workkArr,i.projectId=e.projectId})),Object(o.onMounted)((function(){i.setWorkTimeList()})),Object(A.a)({},Object(o.toRefs)(i))}}),de=(n("fdfc"),n("6b0d")),pe=(de=n.n(de),ue=de()(ue,[["render",function(e,t,n,a,r,c){var i=Object(o.resolveComponent)("van-loading");return Object(o.openBlock)(),Object(o.createElementBlock)("div",q,[Object(o.createElementVNode)("div",F,[Object(o.createElementVNode)("div",U,Object(o.toDisplayString)(e.spaceInfo.spaceName)+" 申请延时",1),_]),Object(o.createElementVNode)("div",R,[e.dateArr&&e.dateArr.length?(Object(o.openBlock)(),Object(o.createElementBlock)("div",P,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(e.dateArr,(function(t,n){return Object(o.openBlock)(),Object(o.createElementBlock)("div",{class:Object(o.normalizeClass)(["date-item",t.isActive?"date-item-active":""]),onClick:Object(o.withModifiers)((function(a){return e.checkDate(t,n)}),["stop"]),key:"dater"+n},[Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(t.week),1),Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(t.day),1)],10,H)})),128))])):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",z,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(e.nowTimerArr,(function(t,n){return Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:"slider"+n,class:"sliders-wrapper",id:"slidersWrapperId"},[Object(o.createElementVNode)("div",Y,[Object(o.withDirectives)(Object(o.createElementVNode)("div",{class:"label"},Object(o.toDisplayString)(t.timer),513),[[o.vShow,0===n||n%2==0]]),Object(o.createElementVNode)("div",{class:"slider-box",onClick:function(a){return e.checkSlider(t,n)},"data-index":n},null,8,G)])])})),128)),Object(o.createElementVNode)("div",{class:"slider-btn",id:"sliderBtnId",onClick:t[0]||(t[0]=function(){return e.triggerDelTime&&e.triggerDelTime.apply(e,arguments)})},X)])]),Object(o.createElementVNode)("div",J,[Object(o.createElementVNode)("div",{class:"cancel-btn",onClick:t[1]||(t[1]=function(){return e.closeWorkTimer&&e.closeWorkTimer.apply(e,arguments)})},"取消"),Object(o.createElementVNode)("div",{class:Object(o.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(o.openBlock)(),Object(o.createBlock)(i,{key:0,class:"temp-loading"})):Object(o.createCommentVNode)("",!0)])}],["__scopeId","data-v-7f90093d"]]),{class:"work-content"}),fe={class:"work-space"},be={class:"space-title"},ge={class:"add-time",id:"addTimeId"},he={key:0,class:"date_box"},Oe=["onClick"],je={class:"sliders-list",id:"sliderListId"},ve={class:"sliders"},Te=["onClick","data-index"],ke=["onClick"],Ie=[le((function(){return Object(o.createElementVNode)("div",{class:"start",id:"startId"},null,-1)})),le((function(){return Object(o.createElementVNode)("div",{class:"end-box",id:"endBoxId"},[Object(o.createElementVNode)("div",{class:"end",id:"endId"}),Object(o.createElementVNode)("div",{class:"end-radio",id:"endRadioId"})],-1)}))],Se={class:"add-time-btn"},Ce={key:0,class:"device-title"},ye=[le((function(){return Object(o.createElementVNode)("span",{class:"line"},null,-1)})),le((function(){return Object(o.createElementVNode)("span",{class:"text"},"预约开启设备",-1)})),le((function(){return Object(o.createElementVNode)("span",{class:"line"},null,-1)}))],we={class:"work-device"},xe=le((function(){return Object(o.createElementVNode)("div",{class:"row-title"},"空调",-1)})),De={class:"device-box"},Ee=["onClick"],Ne={class:"row-item"},Ve=["src"],Be=le((function(){return Object(o.createElementVNode)("div",{class:"row-title"},"照明",-1)})),Le={class:"device-box"},Ae=["onClick"],We={class:"row-item"},Me=["src"],qe={key:2,class:"device-tip"},Fe=[le((function(){return Object(o.createElementVNode)("span",null,"计费方式:",-1)})),le((function(){return Object(o.createElementVNode)("p",null,[Object(o.createElementVNode)("span",null," * "),Object(o.createTextVNode)(" 空调延时采用后付费方式,系统将根据您申请的时间产生延时费用。预约时间下您可自由开启空间下的设备。 ")],-1)})),le((function(){return Object(o.createElementVNode)("p",null," 收费标准按开机设备对应空间的面积计费,空调加时费用按0.4元/m²·h进行计费,照明设备延时使用不计费。 ",-1)})),le((function(){return Object(o.createElementVNode)("p",null," 如您提前结束工作,请点击“我要离开”按钮,系统会自动调整设备关闭时间,感谢与您一同共创可持续的办公环境。 ",-1)}))];n("13d5"),n("a434"),n("a9e3");ce=Object(o.defineComponent)({components:{VanSlider:ce},props:{workkArr:{type:Array,default:function(){return[]}},projectId:{type:String,default:function(){return""}},spaceInfo:{type:Object,default:function(){}},enterType:{type:Number,default:function(){return 1}},deviceItem:{type:Object,default:function(){return null}},seviceEquipmentList:{type:Array,default:function(){return[]}}},setup:function(e,t){var n=Object(o.getCurrentInstance)(),a=Object(se.q)(),r="".concat(Object(se.x)("ipdImages","time-check.svg")),c=(r="linear-gradient(0deg, rgba(255, 0, 0, 0.2), rgba(255, 0, 0, 0.2)), url(".concat(r,")"),Object(se.s)()),i=Object(o.reactive)({userInfo:c,seviceEquipmentList:e.seviceEquipmentList,parseImgUrl:se.x,isEvent:!1,screenInfo:{screenWidth:0,screenHeight:0},projectId:e.projectId,workkArr:e.workkArr,bgRed:r,startIndex:0,endIndex:0,nowData:{},nowTimerArr:[],timerArr:a,startLen:0,formBtn:!1,showLoading:!1,deviceItem:e.deviceItem,enterType:e.enterType,setScreennWidth:function(){var e=document.querySelector("#addTimeId");i.screenInfo.screenWidth=e.offsetWidth},getNowIndex:function(){return Object(se.k)()[1]},getTomorrowIndex:function(){var e=0;return"今天"===i.nowData.week?Object(se.k)()[1]:e},getTimerIndex:function(e,t){var n=0;return e.map((function(e,a){e.formatTimer==t&&(n=a)})),n},getNowPerstion:function(e){var t,n,a=i.getNowIndex(),o={nowIndex:a,len:4},r=e[a].formatTimer,c=i.parseCusStartTime(i.nowData.cusStartTime),l=i.parseCusEndTime(i.nowData.cusEndTime),s=i.nowData.spaceCustomContentList||[];return c<=r&&r<=l?(e.map((function(e,t){e.formatTimer===l&&(o.nowIndex=t)})),t=e[a+o.len].formatTimer,s.map((function(n){n=i.parseCusStartTime(n.startTime);li.screenInfo.screenWidth+i.screenInfo.screenWidth/2&&(o-=n),t.style.left=-o+"px",i.setOptionnalPerstion(a,e)},sliderSwiper:function(){var e=document.querySelector("#sliderListId"),t=(document.querySelector("#slidersWrapperId"),0),n=e.offsetWidth-i.screenInfo.screenWidth;e.addEventListener("touchstart",(function(n){t=isNaN(parseInt(e.style.left))?0:parseInt(e.style.left),t=Math.abs(t)})),ie(e,{swipeLeft:function(a){var o;i.checkMoveTarget(a)||(o=isNaN(parseInt(e.style.left))?0:parseInt(e.style.left),o=Math.abs(o),e.style.left=n<=o?-n+"px":-t-Math.abs(a.mation.moveX-a.mation.startX)+"px")},swipeRight:function(n){var a;i.checkMoveTarget(n)||(a=isNaN(parseInt(e.style.left))?0:parseInt(e.style.left),e.style.left=0<=a?"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=i.startIndex;t=i.timerArr.length-1&&(t=i.timerArr.length-1-i.startIndex),a.style.width=r.offsetWidth*t+"px",a.style.background="rgba(0,0,0,0.2)",i.setOptionnalPerstion(i.startIndex,t),m=!1,i.checkPersionService())})),ie(n,{swipeLeft:function(e){var n,o;i.checkMoveTarget(e)&&(m=!0,e=Math.abs(e.mation.moveX-e.mation.startX),n=isNaN(parseInt(t.style.left))?0:parseInt(t.style.left),n=Math.abs(n),o=r.offsetWidth,l-e<=o?a.style.width=o+"px":(a.style.width=l-e+"px",i.cancelSliderBoxColor()),Object(se.x)("ipdImages","time-wait.svg"),a.style.background="linear-gradient(0deg, rgba(0, 255, 163, 0.2), rgba(0, 255, 163, 0.2))",c+(l-e)-s=e&&(u=-o-(c+l+n+2*r.offsetWidth-e),t.style.left=u+"px",s<=o&&(t.style.left=-s+"px")),c+l+n+r.offsetWidth>=t.offsetWidth?a.style.width=t.offsetWidth-c-r.offsetWidth+"px":a.style.width=l+n+"px")}})},cancelSliderBoxColor:function(){for(var e=document.querySelectorAll(".slider-box"),t=0;t=i.startIndex&&t=t&&c[a].formatTimer=t&&c[a].formatTimer=t&&e.formatTimer=e.startTime&&(r=i.formaTimeObj(e,"1",e.startTime,e.endTime),o.push(r)):n>=e.startTime&&ne.endTime&&(r=i.formaTimeObj(e,"1",e.startTime,e.endTime),o.push(r),n=e.startTime):n>=e.endTime?n===e.endTime&&(r=i.formaTimeObj(e,"1",e.startTime,e.endTime),o.push(r),n=e.startTime):n===e.startTime&&e.endTime})),i.parseCusStartTime(i.nowData.cusStartTime)),i.parseCusEndTime(i.nowData.cusEndTime));no&&(s=i.formaTimeObj(p,"1",p.startTime,p.endTime),r.push(s),m=i.formaTimeObj(n[0],"0",p.startTime,a),c.push(m),m=i.formaTimeObj(n[0],"0",o,p.endTime),c.push(m)):p.startTime==p.startTime?p.endTime<=o?(m=i.formaTimeObj(p,"1",p.startTime,p.endTime),r.push(m)):p.endTime>o&&(u=i.formaTimeObj(p,"1",p.startTime,p.endTime),r.push(u),u=i.formaTimeObj(n[0],"0",o,p.endTime),c.push(u)):p.startTime>a&&(p.endTime<=o?(u=i.formaTimeObj(p,"1",p.startTime,p.endTime),r.push(u)):p.endTime>o&&(d=i.formaTimeObj(p,"1",p.startTime,p.endTime),r.push(d),d=i.formaTimeObj(n[0],"0",o,p.endTime),c.push(d)))}var b=0,g=c.concat(r),h=Object(se.n)();return g.map((function(e,t){"1"==e.type&&h>=e.startTime&&h<=e.endTime&&(e.type="3",b=e.startTime,e.endTimeReal=h)})),g.map((function(e,t){"0"==e.type&&b&&e.startTime==b&&g.splice(t,1)})),g}return[]},closeWorkTimer:function(){i.formBtn=!1,t.emit("closeWork")},removeDuplicateObj:function(e){var t={};return e.reduce((function(e,n){return t[n.objectId]||(t[n.objectId]=e.push(n)),e}),[])},checkEquipment:function(e){e.isCheck=!e.isCheck},delSpaceNoCtrDevice:function(e){e.map((function(e){var t=e.sceneEquipList||[],n=i.seviceEquipmentList;"2"==e.type&&t.length&&t.map((function(t,a){for(var o=!1,r=0;r=e[0].startTime&&e[1].endTime<=e[0].endTime||e.map((function(e){"1"==e.type&&e.sceneEquipList&&e.sceneEquipList.length&&e.sceneEquipList.map((function(e){e={projectId:e.projectId,objectId:e.objectId,type:e.type},t.push(e)}))})),t=i.removeDuplicateObj(t),e.map((function(e){"0"!=e.type&&"2"!=e.type||(e.sceneEquipList=t)})),i.delSpaceNoCtrDevice(e),i.saveBatchCustomScene(e)},openDeviceAll:function(e){var t=[],n=(e.map((function(e){"2"==e.type&&(t=t.concat(e.sceneEquipList))})),t=i.removeDuplicateObj(t),[]),a=[];t.map((function(e){var t;"SELTLT"==e.type?(t={id:e.objectId,switch:!0},a.push(t)):(t={id:e.objectId,code:"EquipSwitchSet",value:"1"},n.push(t))})),i.setSpaceCondtioners(n),i.setallLampHttp(a)},setSpaceCondtioners:function(e){Object(me.O)(e).then((function(e){})).catch((function(){}))},setallLampHttp:function(e){Object(me.P)(e).then((function(e){})).catch((function(){}))},saveBatchCustomScene:function(e){i.showLoading=!0,i.formBtn=!0,Object(me.K)(e).then((function(e){t.emit("closeWork"),i.showLoading=!1,i.formBtn=!1})).catch((function(){t.emit("closeWork"),i.showLoading=!1,i.formBtn=!1}))},isUpdate:!1,triggerDelTime:function(){var e=i.formateDelTimer();e&&e.length&&K.a.confirm({title:"确认",message:"确定删除当前时间吗?"}).then((function(){var t=[];e.map((function(e){"1"==e.type&&e.sceneEquipList&&e.sceneEquipList.map((function(e){e={projectId:e.projectId,objectId:e.objectId,type:e.type},t.push(e)}))})),t=i.removeDuplicateObj(t),e.map((function(e){"1"!==e.type&&(e.sceneEquipList=t)})),i.saveBatchCustomScene(e,2)})).catch((function(){}))}});return Object(o.watch)(e,(function(e){i.workkArr=e.workkArr,i.projectId=e.projectId,i.enterType=e.enterType,i.deviceItem=e.deviceItem,i.seviceEquipmentList=e.seviceEquipmentList})),Object(o.onMounted)((function(){i.setWorkTimeList()})),Object(A.a)({},Object(o.toRefs)(i))}}),n("9752"),ce=de()(ce,[["render",function(e,t,n,a,r,c){var i=Object(o.resolveComponent)("van-loading");return Object(o.openBlock)(),Object(o.createElementBlock)("div",pe,[Object(o.createElementVNode)("div",fe,[Object(o.createElementVNode)("div",be,Object(o.toDisplayString)(e.spaceInfo.spaceName)+" 申请延时",1)]),Object(o.createElementVNode)("div",ge,[e.dateArr&&e.dateArr.length?(Object(o.openBlock)(),Object(o.createElementBlock)("div",he,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(e.dateArr,(function(t,n){return Object(o.openBlock)(),Object(o.createElementBlock)("div",{class:Object(o.normalizeClass)(["date-item",t.isActive?"date-item-active":""]),onClick:Object(o.withModifiers)((function(a){return e.checkDate(t,n)}),["stop"]),key:"date"+n},[Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(t.week),1),Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(t.day),1)],10,Oe)})),128))])):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",je,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(e.nowTimerArr,(function(t,n){return Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:"slider"+n,class:"sliders-wrapper",id:"slidersWrapperId"},[Object(o.createElementVNode)("div",ve,[Object(o.withDirectives)(Object(o.createElementVNode)("div",{class:"label"},Object(o.toDisplayString)(t.timer),513),[[o.vShow,0===n||n%2==0]]),Object(o.createElementVNode)("div",{class:"slider-box",onClick:function(a){return e.checkSlider(t,n)},"data-index":n},null,8,Te)])])})),128)),e.approvalData&&e.approvalData.length?(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,{key:0},Object(o.renderList)(e.approvalData,(function(t,n){return Object(o.openBlock)(),Object(o.createElementBlock)("div",{class:"approval-status",style:Object(o.normalizeStyle)([{width:"60px"},{left:t.left+"px",background:t.bg}]),key:"approval"+n,onClick:function(n){return e.checkApprovalStatus(t,n)}},Object(o.toDisplayString)(t.text),13,ke)})),128)):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",{class:"slider-btn",id:"sliderBtnId",onClick:t[0]||(t[0]=function(){return e.triggerDelTime&&e.triggerDelTime.apply(e,arguments)})},Ie)])]),Object(o.createElementVNode)("div",Se,[Object(o.createElementVNode)("div",{class:"cancel-btn",onClick:t[1]||(t[1]=function(){return e.closeWorkTimer&&e.closeWorkTimer.apply(e,arguments)})},"取消"),Object(o.createElementVNode)("div",{class:Object(o.normalizeClass)(["comfirm-btn",e.formBtn?"comfirm-btn-diabled":""]),onClick:t[2]||(t[2]=function(){return e.addWorkTimer&&e.addWorkTimer.apply(e,arguments)})}," 提交申请 ",2)]),e.isLight||e.isAir?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Ce,ye)):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",we,[e.isAir?(Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,{key:0},[xe,Object(o.createElementVNode)("div",De,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(e.nowData.equipmentList,(function(t,n){return Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,{key:"eq"+n},["SELTLT"!==t.equipmentCategory?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:"device-row",style:Object(o.normalizeStyle)({width:1==e.airNum?"98%":"48%"}),onClick:function(n){return e.checkEquipment(t)}},[Object(o.createElementVNode)("div",Ne,[Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(t.localName),1),Object(o.createElementVNode)("img",{src:t.isCheck?e.parseImgUrl("ipdImages","check-open.svg"):e.parseImgUrl("ipdImages","check-close.svg"),alt:""},null,8,Ve)])],12,Ee)):Object(o.createCommentVNode)("",!0)],64)})),128))])],64)):Object(o.createCommentVNode)("",!0),e.isLight?(Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,{key:1},[Be,Object(o.createElementVNode)("div",Le,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(e.nowData.equipmentList,(function(t,n){return Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,{key:"eq"+n},["SELTLT"===t.equipmentCategory?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:"device-row",style:Object(o.normalizeStyle)({width:1==e.lightNum?"98%":"48%"}),onClick:function(n){return e.checkEquipment(t)}},[Object(o.createElementVNode)("div",We,[Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(t.localName),1),Object(o.createElementVNode)("img",{src:t.isCheck?e.parseImgUrl("ipdImages","check-open.svg"):e.parseImgUrl("ipdImages","check-close.svg"),alt:""},null,8,Me)])],12,Ae)):Object(o.createCommentVNode)("",!0)],64)})),128))])],64)):Object(o.createCommentVNode)("",!0),e.isLight||e.isAir?(Object(o.openBlock)(),Object(o.createElementBlock)("div",qe,Fe)):Object(o.createCommentVNode)("",!0)]),e.showLoading?(Object(o.openBlock)(),Object(o.createBlock)(i,{key:1,class:"temp-loading"})):Object(o.createCommentVNode)("",!0)])}],["__scopeId","data-v-76a8a8aa"]]);var Ue={class:"contact-content"},_e=Object(o.createElementVNode)("div",{class:"title"},"联系我们",-1),Re={class:"contact"},Pe={class:"code-box"},He=["src"],ze=Object(o.createElementVNode)("div",{class:"title"},"客服微信二维码",-1),Ye={class:"phone-box"},Ge=["src"],Xe={class:"title"},Je=Object(o.createElementVNode)("div",{class:"concat-text"},"联系方式",-1),Ke=Object(o.createTextVNode)("我知道了"),$e=n("543e"),Ze=(n("e7e5"),Object(se.s)()),Qe=Object(o.defineComponent)({props:{isShowContact:{type:Boolean,default:function(){return!1}},contantDetail:{type:Object,default:function(){}}},components:Object(M.a)({VanLoading:$e.b},K.a.Component.name,K.a.Component),setup:function(e,t){var n=Object(o.getCurrentInstance)(),a=Object(o.reactive)({parseImgUrl:se.x,contantDetail:e.contantDetail,userInfo:Ze,imgUrl:n.proxy.$imgUrl,isShowContact:e.isShowContact,closeDailog:function(){t.emit("closeDailog")},queryCustomerservice:function(){var e={criteria:{projectId:a.userInfo.projectId}};Object(me.G)(e).then((function(e){e=null!=(e=null==e?void 0:e.content)?e:[],a.contantDetail=e[0]}))}});return Object(o.watch)(e,(function(e){a.isShowContact=e.isShowContact,a.contantDetail=e.contantDetail}),{deep:!1,immediate:!0}),Object(o.onMounted)((function(){})),Object(A.a)({},Object(o.toRefs)(a))}}),et=(Qe=(n("904e"),de()(Qe,[["render",function(e,t,n,a,r,c){var i=Object(o.resolveComponent)("buttons"),l=Object(o.resolveComponent)("van-dialog");return Object(o.openBlock)(),Object(o.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(o.withCtx)((function(){return[Object(o.createElementVNode)("div",Ue,[_e,Object(o.createElementVNode)("div",Re,[Object(o.createElementVNode)("div",Pe,[Object(o.createElementVNode)("img",{src:e.imgUrl+"&key="+e.contantDetail.wechatQrCode,alt:""},null,8,He),ze]),Object(o.createElementVNode)("div",Ye,[Object(o.createElementVNode)("img",{src:e.parseImgUrl("ipdImages","phone-icon.svg"),alt:""},null,8,Ge),Object(o.createElementVNode)("div",Xe,Object(o.toDisplayString)(e.contantDetail.phone),1),Je])]),Object(o.createVNode)(i,{class:"dailog-btn",onClick:e.closeDailog},{default:Object(o.withCtx)((function(){return[Ke]})),_:1},8,["onClick"])])]})),_:1},8,["show"])}]])),{class:"scene-config"}),tt=["src"],nt={class:"time-text"},at=["src"],ot=function(e){return Object(o.pushScopeId)("data-v-49150b3a"),e=e(),Object(o.popScopeId)(),e}((function(){return Object(o.createElementVNode)("div",{class:"del-text"},[Object(o.createElementVNode)("span",null,"我要"),Object(o.createElementVNode)("span",null,"离开")],-1)}));function rt(e){return Object(o.pushScopeId)("data-v-10ea159b"),e=e(),Object(o.popScopeId)(),e}var ct=n("6c02"),it=n("0613"),lt={class:"air-dialog-content"},st={class:"dialog-top"},mt=["src"],ut=rt((function(){return Object(o.createElementVNode)("div",{class:"leave-title"},"工作辛苦了!",-1)})),dt={class:"leave-popup-body"},pt={key:1,class:"text-status"},ft={key:2,class:"text-status grey"},bt=[rt((function(){return Object(o.createElementVNode)("span",null,"隐藏",-1)}))],gt=Object(o.defineComponent)({props:{isShowLeaveDailog:{type:Boolean,default:function(){return!1}}},components:Object(M.a)({VanLoading:$e.b},K.a.Component.name,K.a.Component),setup:function(e,t){var n=Object(o.reactive)({parseImgUrl:se.x,isShowLeaveDailog:e.isShowLeaveDailog,leaveDetail:{textObj:[{text:"已为您取消当前的预约时间",status:"ok"},{text:"系统将自动调整设备状态",status:"ok"},{text:"感谢您的预约使用",status:"ok"}]},closeDailog:function(){t.emit("closeDailog")}});return Object(o.watch)(e,(function(e){n.isShowLeaveDailog=e.isShowLeaveDailog}),{deep:!1,immediate:!0}),Object(o.onMounted)((function(){})),Object(A.a)({},Object(o.toRefs)(n))}}),ht=(gt=(n("1196"),de()(gt,[["render",function(e,t,n,a,r,c){var i=Object(o.resolveComponent)("van-icon"),l=Object(o.resolveComponent)("van-dialog");return Object(o.openBlock)(),Object(o.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(o.withCtx)((function(){return[Object(o.createElementVNode)("div",lt,[Object(o.createElementVNode)("div",st,[e.leaveDetail.img?(Object(o.openBlock)(),Object(o.createElementBlock)("img",{key:0,class:"img-yellow",src:e.parseImgUrl("page-officehome",e.leaveDetail.img),alt:""},null,8,mt)):Object(o.createCommentVNode)("",!0)]),ut,Object(o.createElementVNode)("div",dt,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(e.leaveDetail.textObj,(function(e,t){return Object(o.openBlock)(),Object(o.createElementBlock)("div",{class:"body-item",key:t},["ok"===e.status?(Object(o.openBlock)(),Object(o.createBlock)(i,{key:0,name:"passed",style:{color:"#07c160","margin-right":"8px"}})):Object(o.createCommentVNode)("",!0),"go"===e.status?(Object(o.openBlock)(),Object(o.createElementBlock)("span",pt)):Object(o.createCommentVNode)("",!0),"grey"===e.status?(Object(o.openBlock)(),Object(o.createElementBlock)("span",ft)):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(e.text),1)])})),128))]),Object(o.createElementVNode)("div",{class:"dialog-btns",onClick:t[0]||(t[0]=function(){return e.closeDailog&&e.closeDailog.apply(e,arguments)})},bt)])]})),_:1},8,["show"])}],["__scopeId","data-v-10ea159b"]])),gt=Object(o.defineComponent)({props:{workkArr:{type:Array,default:function(){return[]}}},components:{LeaveDailog:gt},setup:function(e,t){Object(o.getCurrentInstance)();var n=Object(ct.d)(),a=(Object(it.b)(),Object(o.reactive)({parseImgUrl:se.x,leaveBtnFlag:!1,workkArr:e.workkArr,forcedOverTimeFlag:!1,onSubmit:function(e){n.push({path:"/choice-project"})},triggerWork:function(){t.emit("triggerWork",null)},timerText:{text:"",timer:"",btnText:"",showDel:!1,classColor:"grey"},text:"",formateTimeContinuous:function(){var e=0t&&(n=!1);return n},checkWorkTime:function(e,t){var n={type:0,startTime:0,endTime:0};if(a.beforeWorkTime(e,t))n.type=1;else if(a.afterWorkTime(e,t))n.type=2;else{for(var o=!0,r=0;r=e[r].startTime&&t<=e[r].endTime){n.startTime=e[r].startTime,n.endTime=e[r].endTime,o=!(n.type=3);break}o&&(n.type=4)}return n},delTimeArr:[],customSceneList:[],formateWorkTime:function(){for(var e=a.workkArr,n=Object(se.a)("YYYY-MM-DD"),o=0;ot&&(n=!1);return n},checkWorkTime:function(e,t){var n={type:0,startTime:0,endTime:0};if(a.beforeWorkTime(e,t))n.type=1;else if(a.afterWorkTime(e,t))n.type=2;else{for(var o=!0,r=0;r=e[r].startTime&&t<=e[r].endTime){n.startTime=e[r].startTime,n.endTime=e[r].endTime,o=!(n.type=3);break}o&&(n.type=4)}return n},delTimeArr:[],customSceneList:[],formateWorkTime:function(){for(var e=a.workkArr,n=Object(se.a)("YYYY-MM-DD"),o=0;o=t.startTime&&e<=t.endTime?t.endTimeReal=e:et.endTime&&(t.endTimeReal=t.endTime)}))},saveBatchCustomScene:function(){a.openLeavDailog(),Object(me.K)(a.delTimeArr).then((function(e){a.leaveBtnFlag=!1,t.emit("closeWork")})).catch((function(){a.leaveBtnFlag=!1}))},isShowLeaveDailog:!1,openLeavDailog:function(){a.isShowLeaveDailog=!0},closeLeavDailog:function(){a.isShowLeaveDailog=!1}}));return Object(o.watch)(e,(function(e){e.workkArr&&e.workkArr.length&&(a.workkArr=JSON.parse(JSON.stringify(e.workkArr)),a.formateApproveData(),a.formateWorkTime())}),{deep:!1,immediate:!0}),Object(o.onMounted)((function(){})),Object(A.a)({},Object(o.toRefs)(a))}}),Nt=(n("78f4"),de()(Nt,[["render",function(e,t,n,a,r,c){var i=Object(o.resolveComponent)("leave-dailog");return Object(o.openBlock)(),Object(o.createElementBlock)("div",ht,[Object(o.createElementVNode)("div",{class:Object(o.normalizeClass)(["time-box",e.timerText.classColor])},[Object(o.createElementVNode)("img",{src:e.parseImgUrl("page-officehome","work.svg"),alt:""},null,8,Ot),Object(o.createElementVNode)("div",jt,[Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(e.timerText.text),1),Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(e.timerText.timer),1)]),Object(o.createElementVNode)("div",{class:Object(o.normalizeClass)(["time-btn",e.timerText.showDel?"time-btn-small":""]),onClick:t[0]||(t[0]=function(){return e.childTriggerWork&&e.childTriggerWork.apply(e,arguments)})},[Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(e.timerText.btnText),1)],2)],2),e.timerText.showDel?(Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:0,class:"time-del",onClick:t[1]||(t[1]=function(){return e.myLeaving&&e.myLeaving.apply(e,arguments)})},[Object(o.createElementVNode)("img",{src:e.parseImgUrl("page-officehome","goOffWork.svg"),alt:""},null,8,vt),Tt])):Object(o.createCommentVNode)("",!0),e.isShowLeaveDailog?(Object(o.openBlock)(),Object(o.createBlock)(i,{key:1,isShowLeaveDailog:e.isShowLeaveDailog,onCloseDailog:e.closeLeavDailog},null,8,["isShowLeaveDailog","onCloseDailog"])):Object(o.createCommentVNode)("",!0)])}],["__scopeId","data-v-2a5037fa"]])),{class:"scene-config"}),Bt=["onClick"],Lt=["src"];function At(e){return Object(o.pushScopeId)("data-v-54f78787"),e=e(),Object(o.popScopeId)(),e}var Wt=Object(o.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(ct.d)(),a=(Object(it.b)(),{DISCUSSING:Object(se.x)("ipdImages","taolun.svg"),PROJECTING:Object(se.x)("ipdImages","touying.svg"),ADJOURNMENT:Object(se.x)("ipdImages","sanhui.svg")}),r=Object(o.reactive)({parseImgUrl:se.x,spaceId:e.spaceId,scenarioArr:[],scenarioImgArr:a,activeType:e.activeType,onSubmit:function(e){n.push({path:"/choice-project"})},formatScenarioImg:function(){r.scenarioArr.map((function(e){e.img=r.scenarioImgArr[e.sceneType],"DISCUSSING"===e.sceneType?e.order=1:"PROJECTING"===e.sceneType?e.order=2:"ADJOURNMENT"===e.sceneType?e.order=3:e.order=4})),r.scenarioArr=r.scenarioArr.sort((function(e,t){return e.order-t.order}))},handleScene:function(n){var a=Object(se.s)();a={spaceId:r.spaceId,projectId:e.projectId,type:n.sceneType,pubname:a.pubname};n.loading=!0,n.lodingText="正在切换至",t.emit("setHeadScene",n,1),Object(me.Q)(a).then((function(e){"success"===e.result&&(n.loading=!1,n.lodingText="切换至",t.emit("setHeadScene",n,2))})).catch((function(){n.loading=!1,n.lodingText="",t.emit("setHeadScene",n,2)}))}});return Object(o.watch)(e,(function(e){r.activeType=e.activeType,r.scenarioArr=e.scenarioArr,r.spaceId=e.spaceId,r.formatScenarioImg()}),{deep:!1,immediate:!0}),Object(o.onMounted)((function(){})),Object(A.a)({},Object(o.toRefs)(r))}}),Mt=(Wt=(n("0d32"),de()(Wt,[["render",function(e,t,n,a,r,c){return Object(o.openBlock)(),Object(o.createElementBlock)("div",Vt,[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(e.scenarioArr,(function(t,n){return Object(o.openBlock)(),Object(o.createElementBlock)("div",{key:"scene"+n,class:Object(o.normalizeClass)(["scene-item",t.sceneType===e.activeType?"scene-active":""]),onClick:function(n){return e.handleScene(t)},style:Object(o.normalizeStyle)({flex:e.scenarioArr.length&&2==e.scenarioArr.length&&t.sceneType===e.activeType?2:1})},[Object(o.createElementVNode)("img",{src:t.img,alt:""},null,8,Lt),Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(t.sceneName),1)],14,Bt)})),128))])}],["__scopeId","data-v-1fed2403"]])),n("0500")),qt={class:"header-content"},Ft={class:"weather"},Ut=["src"],_t={class:"weather-text"},Rt={class:"pr5"},Pt=At((function(){return Object(o.createElementVNode)("span",null,"/",-1)})),Ht=At((function(){return Object(o.createElementVNode)("span",{class:"pr5"},"PM2.5",-1)})),zt={class:"pr5"};function Yt(e){return Object(o.pushScopeId)("data-v-5b0064af"),e=e(),Object(o.popScopeId)(),e}var Gt=n("ad06"),Xt=(n("c3a6"),Object(o.defineComponent)({props:{outWeather:{type:Object,default:function(){return{}}}},components:{VanIcon:Gt.b},setup:function(){var e=Object(ct.d)(),t=Object(o.reactive)({goBack:function(){window.history.go(-1)},setPermanentSpace:function(){e.push({path:"/mySpace"})}});return Object(A.a)({},Object(o.toRefs)(t))}})),Jt=(Xt=(n("9c88"),de()(Xt,[["render",function(e,t,n,a,r,c){return Object(o.openBlock)(),Object(o.createElementBlock)("div",qt,[Object(o.createElementVNode)("div",Ft,[Object(o.withDirectives)(Object(o.createElementVNode)("img",{src:e.outWeather.imgname,class:"weather-icon",alt:""},null,8,Ut),[[o.vShow,e.outWeather.imgname]]),Object(o.createElementVNode)("div",_t,[Object(o.createElementVNode)("p",null,[Object(o.createElementVNode)("span",Rt,Object(o.toDisplayString)(e.outWeather.temperature||"--")+"℃",1),Pt,Ht,Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(e.outWeather.pm25||"--"),1)]),Object(o.createElementVNode)("p",null,[Object(o.createElementVNode)("span",zt,Object(o.toDisplayString)(e.outWeather.text||"--"),1),Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(e.outWeather.quality||"--"),1)])])]),Object(o.createElementVNode)("div",{class:"set-space-btn",onClick:t[0]||(t[0]=function(){return e.setPermanentSpace&&e.setPermanentSpace.apply(e,arguments)})},"设置常驻空间")])}],["__scopeId","data-v-54f78787"]])),n("3ba9")),Kt={class:"air"},$t={class:"air-top"},Zt={class:"air-desc"},Qt=Yt((function(){return Object(o.createElementVNode)("p",{class:"air-title"},"空调",-1)})),en={class:"air-temperature"},tn={key:0},nn={key:0,class:"air-status"},an={key:1,class:"air-loading"},on=["src"],rn={class:"air-right"},cn=["src"],ln={key:0,class:"air-control"},sn=Yt((function(){return Object(o.createElementVNode)("div",{class:"control-title"},"温度调节",-1)})),mn={class:"btn-box"},un=["src"],dn=["src"],pn={key:1,class:"air-control"},fn=Yt((function(){return Object(o.createElementVNode)("div",{class:"control-title"},"风量调节",-1)})),bn={class:"btn-box"},gn=["src"],hn=["src"],On={class:"air-dialog-content"},jn={class:"dialog-top"},vn=["src"],Tn={class:"dialog-text"},kn={class:"air-body-item-num"},In={key:0,class:"air-temp-num"},Sn={key:1,class:"air-temp-load"},Cn={key:0,class:"air-notice"},yn=[Yt((function(){return Object(o.createElementVNode)("span",null,"确定",-1)}))];const[wn,xn]=Object(Z.a)("switch");function Dn(e){return Object(o.pushScopeId)("data-v-0faa5a16"),e=e(),Object(o.popScopeId)(),e}Z={size:Q.f,loading:Boolean,disabled:Boolean,modelValue:Q.h,activeColor:String,inactiveColor:String,activeValue:{type:Q.h,default:!0},inactiveValue:{type:Q.h,default:!1}},Q=Object(o.defineComponent)({name:wn,props:Z,emits:["change","update:modelValue"],setup(e,{emit:t}){const n=()=>e.modelValue===e.activeValue,a=()=>{var a;e.disabled||e.loading||(a=n()?e.inactiveValue:e.activeValue,t("update:modelValue",a),t("change",a))};return Object(ne.h)(()=>e.modelValue),()=>{var{size:t,loading:r,disabled:c,activeColor:i,inactiveColor:l}=e,s=n(),t={fontSize:Object(ee.b)(t),backgroundColor:s?i:l};return Object(o.createVNode)("div",{role:"switch",class:xn({on:s,loading:r,disabled:c}),style:t,tabindex:c?void 0:0,"aria-checked":s,onClick:a},[Object(o.createVNode)("div",{class:xn("node")},[(()=>{var t;if(e.loading)return t=n()?e.activeColor:e.inactiveColor,Object(o.createVNode)($e.a,{class:xn("loading"),color:t},null)})()])])}}}),Z=Object($.a)(Q);var En=(n("e3b3"),n("d9d2"),n("d399")),Nn=(Q=Object(o.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:($={Switch:Z},Object(M.a)($,K.a.Component.name,K.a.Component),Object(M.a)($,"Loading",$e.b),$),setup:function(e,t){var n=e,a=Object(o.reactive)({loadingAir:!1,temperature:e.temperature,userIsControl:e.userIsControl,forceOverTimeFlag:e.forceOverTimeFlag,firstLoadingAir:!0,spaceId:e.spaceId,domAirOpeen:!1,feedbackTimer:null,parseImgUrl:se.x,airData:{avg:"",icon:1,spaceStatus:"",notice:"",mode:0,tempSet:0,isOpen:!1},modeName:"",showAirVolumeBtn:!1,showDialog:!1,airTimer:null,airSetText:{notice:"",remark:[],nowImg:"",toWhere:"",designTemperature:0},formateModel:function(e){a.modeName=e?1===e?"制冷":2===e?"制热":3===e?"通风":4===e?"除湿":"":""},getEquipmentListHttp:function(){var e={spaceId:a.spaceId},t=!(a.showAirVolumeBtn=!1);Object(me.j)(e).then((function(e){var n=e?e.data:[];if(n&&n.length){for(var o=0;o=a.airData.minTempSet&&a.airTemp<=a.airData.maxTempSet?(e=(a.airTemp-a.airData.minTempSet)/.5*a.part,e=Math.floor(e),n&&(n.style.left=e+"px")):!a.airTemp||a.airTempa.airData.maxTempSet&&(e=t.offsetWidth,t=n.offsetWidth,n.style.left=e-t+"px"))},endBoxSwiper:function(){a.swiperIinit=!0;var e=document.querySelector("#handId"),t=document.querySelector("#barId"),n=document.querySelector("#sliderId"),o=!1,r=0,c=n?n.offsetWidth:1,i=t?t.offsetWidth:20,l=.5/((a.airData.maxTempSet-a.airData.minTempSet)/20/(Math.floor(c)/22));a.part=l,e&&(e.addEventListener("touchstart",(function(e){r=isNaN(parseInt(t.style.left))?0:parseInt(t.style.left),o=!0})),e.addEventListener("touchend",(function(e){o=!1,a.changeZongAir("temp",a.realTemp),a.airTemp=a.realTemp})),ie(e,{swipeLeft:function(e){o&&(r=Math.abs(r),e=Math.abs(e.mation.moveX-e.mation.startX),e=(e=r-e)<0?0:e,t.style.left=e+"px",a.realTemp=a.airData.minTempSet+.5*Math.ceil(e/l))},swipeRight:function(e){o&&(r=Math.abs(r),e=Math.abs(e.mation.moveX-e.mation.startX),e=c<(e=r+e)?c-i:e,t.style.left=e+"px",a.realTemp=a.airData.minTempSet+.5*Math.ceil(e/l),a.realTemp>a.airData.maxTempSet&&(a.realTemp=a.airData.maxTempSet))}}))},getAirInfoToTimer:function(){var e=0=a.airData.maxTempSet)return;n.tempSet=n.tempSet+.5}else if("down"===o){if(n.tempSet<=a.airData.minTempSet)return;n.tempSet=n.tempSet-.5}c={id:n.id,code:n.tempSetCode,value:n.tempSet},r.push(c),a.childDisabled(n,r)}else if("gear"===e){if("up"===o){if(n.isAutoGear)return;3<=n.gear?n.isAutoGear=1:(n.gear++,n.isAutoGear=0)}else if("down"===o){if(!n.isAutoGear&&n.gear<=1)return;n.isAutoGear?(n.isAutoGear=0,n.gear=3):n.gear--}c={id:n.id,code:n.gearCode,value:n.isAutoGear?4:n.gear},r.push(c)}else if("model"===e){if("up"===o){if(3<=n.workMode)return;n.workMode++}else if("down"===o){if(n.workMode<=1)return;n.workMode--}c={id:n.id,code:n.modeSetCode,value:n.workMode},r.push(c)}"temp"!==e&&a.setSpaceCondtioners(r),a.updateChildPerstion()}},setSpaceCondtioners:function(e){Object(me.O)(e).then((function(e){a.loadinngEnd()})).catch((function(){a.loadinngEnd()}))},changeZongAir:function(e,t){var o,r;n.runStatus&&(o=a.formatAirData(e,t),r=[],a.equipList.map((function(e){e={id:e.id,code:e[o.codeKey],value:o.value},r.push(e)})),a.cotrolLoading||(a.loadingStart(),a.setSpaceCondtioners(r)))},checkDeviceIsExeSpaceTime:function(){for(var e=0=e.airData.maxTempSet?"disable-color":"","adjust-icon"]),onClick:function(n){return e.changeChildItemAir("temp",t,"up")}},null,8,["class","onClick"]),Object(o.createElementVNode)("div",ha,[Object(o.createElementVNode)("div",{class:"value-wrap",style:Object(o.normalizeStyle)({transform:e.valueHeight?"translateY("+-t.sel*e.valueHeight+"px)":"translateY(0px)"})},[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(t.tempArr,(function(e,t){return Object(o.openBlock)(),Object(o.createElementBlock)("div",{class:"value",key:t+"ct"},Object(o.toDisplayString)(e),1)})),128))],4)]),Object(o.createVNode)(i,{name:"arrow-down",class:Object(o.normalizeClass)([t.tempSet<=e.airData.minTempSet?"disable-color":"","adjust-icon"]),onClick:function(n){return e.changeChildItemAir("temp",t,"down")}},null,8,["class","onClick"]),Oa]),Object(o.createElementVNode)("div",ja,[Object(o.createVNode)(i,{name:"arrow-up",class:Object(o.normalizeClass)([t.isAutoGear?"disable-color":"","adjust-icon"]),onClick:function(n){return e.changeChildItemAir("gear",t,"up")}},null,8,["class","onClick"]),Object(o.createElementVNode)("div",va,[Object(o.createElementVNode)("div",{class:"value-wrap",style:Object(o.normalizeStyle)({transform:e.valueHeight?"translateY("+-t.gIndex*e.valueHeight+"px)":"translateY(0px)"})},[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(t.gearArr,(function(e,t){return Object(o.openBlock)(),Object(o.createElementBlock)("div",{class:"value",key:t+"g"},Object(o.toDisplayString)(e),1)})),128))],4)]),Object(o.createVNode)(i,{name:"arrow-down",class:Object(o.normalizeClass)([!t.isAutoGear&&t.gear<=1?"disable-color":"","adjust-icon"]),onClick:function(n){return e.changeChildItemAir("gear",t,"down")}},null,8,["class","onClick"]),Ta]),Object(o.createElementVNode)("div",ka,[Object(o.createVNode)(i,{name:"arrow-up",class:Object(o.normalizeClass)([3<=t.workMode?"disable-color":"","adjust-icon"]),onClick:function(n){return e.changeChildItemAir("model",t,"up")}},null,8,["class","onClick"]),Object(o.createElementVNode)("div",Ia,[Object(o.createElementVNode)("div",{class:"value-wrap",style:Object(o.normalizeStyle)({transform:e.valueHeight?"translateY("+-t.mIndex*e.valueHeight+"px)":"translateY(0px)"})},[(Object(o.openBlock)(!0),Object(o.createElementBlock)(o.Fragment,null,Object(o.renderList)(t.modelArr,(function(e,t){return Object(o.openBlock)(),Object(o.createElementBlock)("div",{class:"value",key:t+"m"},Object(o.toDisplayString)(e),1)})),128))],4)]),Object(o.createVNode)(i,{name:"arrow-down",class:Object(o.normalizeClass)([t.workMode<=1?"disable-color":"","adjust-icon"]),onClick:function(n){return e.changeChildItemAir("model",t,"down")}},null,8,["class","onClick"]),Sa])],4)])})),128))])):Object(o.createCommentVNode)("",!0)])}],["__scopeId","data-v-0faa5a16"]]);var Ca={key:0,class:"light"},ya={class:"light-top"},wa={class:"light-desc"},xa={class:"light-title"},Da={class:"light-right"},Ea={key:0,class:"switch-box"},Na=["src"],Va={key:0,class:"light-main-control"},Ba={key:0,class:"main-color"},La=["src"],Aa={key:1},Wa={key:1,class:"light-box"},Ma=["onClick"],qa={class:"control-top"},Fa=["src"],Ua={class:"control-bottom"},_a={class:"control-title"},Ra=["src"],Pa=function(e){return Object(o.pushScopeId)("data-v-439a8f58"),e=e(),Object(o.popScopeId)(),e}((function(){return Object(o.createElementVNode)("span",null,"展开更多",-1)}));n("4de4");var Ha=Object(o.defineComponent)({props:{projectId:{type:String,default:function(){return""}},controlMode:{type:Number,default:function(){return 0}},spaceId:{type:String,default:function(){return""}},userIsControl:{type:Boolean,default:function(){return!1}},forceOverTimeFlag:{type:Boolean,default:function(){return!1}},seviceEquipmentList:{type:Array,default:function(){return[]}}},components:{Switch:Z},setup:function(e,t){var n=Object(o.reactive)({seviceEquipmentList:e.seviceEquipmentList,spaceId:e.spaceId,controlMode:e.controlMode,userIsControl:e.userIsControl,forceOverTimeFlag:e.forceOverTimeFlag,setStatus:!1,lightParams:[],allowSvg:"down_Arrow.svg",timeOut:null,lightIcon:"arrow-down",showFlag:!1,loadingLight:!1,initData:[],lampList:[],lightsStatusTimer:null,startCheckLightsTime:0,lightColorImg:Object(se.x)("page-officehome","lightColorControl.svg"),lightImg:Object(se.x)("page-officehome","lamp_close.png"),lampSw:!1,showAll:function(){n.showFlag=!n.showFlag,n.showFlag?n.lightIcon="arrow-up":n.lightIcon="arrow-down"},showLightColorCtrol:function(e){e.switch&&t.emit("showLightColorCtrol",e)},checkDeviceIsExeSpaceTime:function(){var e=0=e.cusStartTime)o=t>e.cusEndTime?t+1:e.cusEndTime+1,r=24;else{if(e.cusStartTime)return;o=t+1,r=24}for(var c=o;cn.lightData.brightMaxValue&&(n.lightData.brightValue=n.lightData.brightMaxValue),r=n.lightData.brightMaxValue/(t-a),c=100/n.lightData.brightMaxValue,i=n.lightData.brightValue/c/r/c,n.lightData.brightValueRate=Math.floor(n.lightData.brightValue/c),n.itemWidth=i+a/2+"px"):2==e&&(n.lightData.colorTempValue=n.lightData.colorTempValue<=n.lightData.colorTempMinValue?0:n.lightData.colorTempValue,n.lightData.colorTempValue>n.lightData.colorTempMaxValue&&(n.lightData.colorTempValue=n.lightData.colorTempMaxValue),r=n.lightData.colorTempMaxValue/(t-a),c=100/n.lightData.colorTempMaxValue,i=n.lightData.colorTempValue/c/r/c,n.lightData.colorTempValueRate=Math.floor(n.lightData.colorTempValue/c)),o.style.left=i+"px"},endBoxSwiper:function(){n.swiperIinit=!0;var e,t=document.querySelector("#handId1"),a=document.querySelector("#sliderId1"),o=!1,r=0,c=a?a.offsetWidth:1;t&&(e=t.getBoundingClientRect().width,n.getDefaultVal(1,c,e,t),t.addEventListener("touchstart",(function(e){r=isNaN(parseInt(t.style.left))?0:parseInt(t.style.left),o=!0,n.setTimeContrl(1)})),t.addEventListener("touchend",(function(e){o=!1,n.changContrlValEnd(1)})),ie(t,{swipeLeft:function(a){o&&(r=Math.abs(r),a=Math.abs(a.mation.moveX-a.mation.startX),a=(a=r-a)<0?0:a,t.style.left=a+"px",n.setBarValue(1,c,a,e),n.changContrlVal(1))},swipeRight:function(a){o&&(r=Math.abs(r),a=Math.abs(a.mation.moveX-a.mation.startX),a=c-e<=(a=r+a)?c-e:a,t.style.left=a+"px",n.setBarValue(1,c,a,e),n.changContrlVal(1))}}))},tempBoxSwiper:function(){n.swiperIinit=!0;var e,t=document.querySelector("#handId2"),a=document.querySelector("#sliderId2"),o=!1,r=0,c=a?a.offsetWidth:1;t&&(e=t.getBoundingClientRect().width,n.getDefaultVal(2,c,e,t),t.addEventListener("touchstart",(function(e){r=isNaN(parseInt(t.style.left))?0:parseInt(t.style.left),o=!0,n.setTimeContrl(2)})),t.addEventListener("touchend",(function(e){o=!1,n.changContrlValEnd(2)})),ie(t,{swipeLeft:function(a){o&&(r=Math.abs(r),a=Math.abs(a.mation.moveX-a.mation.startX),a=(a=r-a)<0?0:a,t.style.left=a+"px",n.setBarValue(2,c,a,e),n.changContrlVal(2))},swipeRight:function(a){o&&(r=Math.abs(r),a=Math.abs(a.mation.moveX-a.mation.startX),a=c-e<=(a=r+a)?c-e:a,t.style.left=a+"px",n.setBarValue(2,c,a,e),n.changContrlVal(2))}}))},barSwiperInit:function(){return Object(W.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Object(o.nextTick)((function(){n.endBoxSwiper(),n.tempBoxSwiper()}));case 1:case"end":return e.stop()}}),e)})))()}});return Object(o.watch)(e,(function(e){})),Object(o.onBeforeUnmount)((function(){})),Object(o.onMounted)((function(){n.barSwiperInit()})),Object(A.a)({},Object(o.toRefs)(n))}}),er=(n("745d"),de()(Qo,[["render",function(e,t,n,a,r,c){return Object(o.openBlock)(),Object(o.createElementBlock)("div",tr,[nr,e.lightData.bright?(Object(o.openBlock)(),Object(o.createElementBlock)("div",ar,[Object(o.createElementVNode)("div",or,[rr,Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(e.lightData.brightValueRate)+"%",1)]),Object(o.createElementVNode)("div",cr,[Object(o.createElementVNode)("div",ir,[Object(o.createElementVNode)("div",{class:"item-now",style:Object(o.normalizeStyle)({width:e.itemWidth})},null,4),lr])])])):Object(o.createCommentVNode)("",!0),e.lightData.colorTemperature?(Object(o.openBlock)(),Object(o.createElementBlock)("div",sr,[Object(o.createElementVNode)("div",mr,[ur,Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(e.lightData.colorTempValueRate)+"%",1)]),dr])):Object(o.createCommentVNode)("",!0)])}],["__scopeId","data-v-21af28f0"]])),Ko=n("e41f"),n("8a58"),n("66d6")),fr=n("6a79"),br=n("5581");Z=Object(o.defineComponent)({components:($o={MapBox:Mt.a,ComMap:Zo,ScenarioDailog:Fo,LightTemp:er,Header:Xt,Comheader:Jt.a,NavBar:wo,Air:$,ManualIndex:Q,ManualOvertime:ce,Light:Ha,Curtain:fo,TimeBox:ho,WorkOvertime:ue,WorkConfig:gt,ManualConfig:Nt,ScenarioConfig:Wt,Detail:Uo.default,Contact:Qe},Object(M.a)($o,K.a.Component.name,K.a.Component),Object(M.a)($o,"VanPopup",Ko.b),Object(M.a)($o,"VanIcon",Gt.b),$o),beforeRouteEnter:function(e,t,n){var a=Object(br.a)();a&&"null"!=a?n():n("/error")},setup:function(){var e=Object(o.getCurrentInstance)(),t=Object(ct.d)(),n=Object(ct.c)(),a=window.document,r=a.body.clientHeight,c={},i=it.a.state.user.projectId,l={curtain:!1,light:!1,airConditioner:!1,bodySensor:!1},s=Object(se.s)(),m=[],u=Object(se.a)("YYYY.MM.DD HH:mm"),d=Object(se.l)(),p=Object(o.reactive)({equipTimer:null,seviceEquipmentList:[],spaceEquipList:[],enterType:1,deviceItem:null,parseImgUrl:se.x,fileUrl:e.proxy.$fileUrl,nowDate:u,nowWeek:d,isShowWork:!1,isShowMetting:!1,localName:"",airTemp:"",userIsControl:!0,spaceModelTimer:null,spaceTempTimer:null,userSpaceInfo:[],spaceTimer:null,workInfo:{},intervalTimer:null,roomType:"",showSpaceTip:!1,mapOpacity:0,opacityV:1,childRef:{},hideTopImg:!1,isBottom:!1,isScrool:!1,officeData:{},popList:[],popupType:"scenario",showSecenDetailDalig:!1,sceneDetail:{},showScenario:!1,projectId:i,spaceInfo:c,headerInfo:{headImg:"",headScene:"",tipText:"选择工作结束时间",tipTextSwatch:!1},topbgimg:"",userInfo:s,deviceIcon:"arrow",visible:!1,outWeather:{},vanPopupIndex:"",spaceEqFlagObj:{hasAir:!0,hasBlowing:!1,hasLamp:!1},spaceExistenceDevice:l,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:[{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"}]}],isACATVA:!1,showWorkOff:!1,envlist:[{id:2,name:"甲醛",num:"",level:"",bgColor:"",img:"jiaquan.svg",funcid:"HCHO",code:"jiaquan",unit:"mg/m³"},{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:"%"}],realEevList:[],navList:[{top:0,id:"airId",code:"air",name:"温度/湿度",noShow:!0,img:Object(se.x)("page-officehome","temp.png"),activeImg:Object(se.x)("page-officehome","temp_active.svg")},{top:0,id:"lightId",code:"lamp",name:"光照",noShow:!1,img:Object(se.x)("page-officehome","lamp.png"),activeImg:Object(se.x)("page-officehome","lamp_active.svg")},{top:0,id:"curtainId",code:"curtain",name:"窗帘",noShow:!1,img:Object(se.x)("page-officehome","curtain-nav.svg"),activeImg:Object(se.x)("page-officehome","curtain-nav-active.svg")},{top:0,id:4,code:"mySpace",name:"常驻空间",noShow:!1,activeImg:Object(se.x)("page-officehome","mySpaceIcon.svg"),img:Object(se.x)("page-officehome","mySpaceIcon.svg")},{top:0,id:5,code:"switchSpace",name:"我的",noShow:!0,activeImg:Object(se.x)("page-officehome","mapIcon.png"),img:Object(se.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(){p.isShowContact=!0},isLightColorFlag:!1,lightData:{},showLightColorCtrol:function(e){p.isLightColorFlag=!0,p.lightData=e},closeContactDailog:function(){p.isShowContact=!1},padBgImg:"",setPadBgImg:function(){0===p.padImgData.isBgDefault&&p.padImgData.bgImage&&p.padImgData.bgImage.fileId?p.padBgImg=p.fileUrl+"&key=".concat(p.padImgData.bgImage.fileId):"个人"==p.roomType?p.padBgImg=Object(se.x)("ipdImages","pad_img2.png"):"会议室"===p.roomType?p.padBgImg=Object(se.x)("ipdImages","pad_img3.png"):(p.roomType,p.padBgImg=Object(se.x)("ipdImages","pad_img1.png"))},logImg:"",setPadLogo:function(){0===p.padImgData.isLogoDefault&&p.padImgData.logoImage&&p.padImgData.logoImage.fileId?p.logImg=p.fileUrl+"&key=".concat(p.padImgData.logoImage.fileId):p.logImg=""},padImgData:[],padNumber:0,getPadImg:function(){var e={funcType:p.officeData.roomFuncType,spaceId:p.spaceInfo.spaceId};e=Object(se.A)(e);p.padNumber<1&&(p.padNumber=1,Object(me.q)(e).then((function(e){"success"===e.result&&(p.padImgData=e.data,p.setPadBgImg(),p.setPadLogo())})))},triggerWork:function(){var e=0=a[i].startTime&&o<=a[i].endTime&&(n.cusStartTime=a[i].startTime,n.cusEndTime=a[i].endTime);n.cusStartTime||(n.cusStartTime=a[0]?a[0].startTime:"",n.cusEndTime=a[0]?a[0].endTime:"")}}},init:function(){p.padNumber=0,p.getSpaceInfo(),p.querySpaceSceneConfig(),p.getSpaceEquipList(),p.queryCustomAndScenceTimer(0),p.getEquipments()},updatePageUrl:function(){var e=window.history,t=window.location.origin+window.location.pathname;e.replaceState("","",t)},spaceData:m,copySpaceData:m,floorId:"",buildingId:"",queryWorkSpace:function(){var e={criteria:{projectId:p.userInfo.projectId,spaceName:"",macAddress:p.userInfo.mac},orders:[{column:"isMajorSpace",asc:!1}]};Object(me.J)(e).then((function(e){"success"===e.result?p.spaceData=null!=(e=null==e?void 0:e.content)?e:[]:p.spaceData=[],p.spaceData.map((function(e){p.spaceInfo.spaceId===e.spaceId?(e.active=!0,p.spaceInfo=e):e.active=!1})),p.copySpaceData=JSON.parse(JSON.stringify(p.spaceData))}))},resetSpaceStatus:function(){p.spaceExistenceDevice={curtain:!1,light:!1,airConditioner:!1,bodySensor:!1},p.spaceData.map((function(e){e.active=!1})),p.controlMode=0,p.isWork=!1,p.roomType="",p.officeData.temperature="",p.spaceExistenceDevice=l,p.workkArr=[],p.setForceOverTimeFlag(!1)},isShowMap:!1,defaultSpace:c,moreSpace:function(){p.isShowMap=!0,p.defaultSpace=p.spaceInfo},elChangeExForArray:function(e){for(var t,n=0,a=0;ap(e));if(Object(d.f)(e)){const t={};return Object.keys(e).forEach(n=>{t[n]=p(e[n])}),t}return e}var f=n("cdd8");const[b,g]=Object(t.a)("picker-column"),h=Symbol(b),O=e=>Object(d.f)(e)&&e.disabled;var j=Object(a.defineComponent)({name:b,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 o,r,i,u,b;const j=Object(a.ref)(),v=Object(a.reactive)({index:e.defaultIndex,offset:0,duration:0,options:p(e.initialOptions)}),T=Object(f.a)(),k=()=>v.options.length,I=()=>e.itemHeight*(+e.visibleItemCount-1)/2,S=(n,a)=>{var r=-(n=(e=>{for(let t=e=Object(c.d)(e,0,k());t{n!==v.index&&(v.index=n,a&&t("change",n))};o&&r!==v.offset?b=i:i(),v.offset=r};var C=t=>{JSON.stringify(t)!==JSON.stringify(v.options)&&(v.options=p(t),S(e.defaultIndex))};const y=t=>Object(d.f)(t)&&e.textKey in t?t[e.textKey]:t,w=t=>Object(c.d)(Math.round(-t/e.itemHeight),0,k()-1),x=()=>{o=!1,v.duration=0,b&&(b(),b=null)},D=t=>{e.readonly||(T.start(t),o&&(t=function(e){const t=window.getComputedStyle(e)["transform"];return e=t.slice(7,t.length-1).split(", ")[5],Number(e)}(j.value),v.offset=Math.min(0,t-I())),r=v.offset,v.duration=0,i=Date.now(),u=r,b=null)},E=t=>{e.readonly||(T.move(t),T.isVertical()&&(o=!0,Object(l.e)(t,!0)),v.offset=Object(c.d)(r+T.deltaY.value,-k()*e.itemHeight,e.itemHeight),300<(t=Date.now())-i&&(i=t,u=v.offset))},N=()=>{if(!e.readonly){var t=v.offset-u,n=Date.now()-i;if(n<300&&15{o=!1},0)}},V=()=>{const t={height:e.itemHeight+"px"};return v.options.map((r,c)=>{var i=y(r),l=O(r);l={role:"button",style:t,tabindex:l?-1:0,class:g("item",{disabled:l,selected:c===v.index}),onClick:()=>{var t=c;o||e.readonly||(b=null,v.duration=200,S(t,!0))}},i={class:"van-ellipsis",[e.allowHtml?"innerHTML":"textContent"]:i};return Object(a.createVNode)("li",l,[n.option?n.option(r):Object(a.createVNode)("div",i,null)])})};return S(v.index),Object(s.k)(h),Object(m.a)({state:v,setIndex:S,getValue:()=>v.options[v.index],setValue:e=>{var t=v["options"];for(let n=0;ne.initialOptions,C),Object(a.watch)(()=>e.defaultIndex,e=>S(e)),()=>Object(a.createVNode)("div",{class:[g(),e.className],onTouchstart:D,onTouchmove:E,onTouchend:N,onTouchcancel:N},[Object(a.createVNode)("ul",{ref:j,style:{transform:`translate3d(0, ${v.offset+I()}px, 0)`,transitionDuration:v.duration+"ms",transitionProperty:v.duration?"all":"none"},class:g("wrapper"),onTransitionend:x},[V()])])}});const[v,T,k]=Object(t.a)("picker"),I={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};n=Object(r.a)({},I,{columns:Object(o.a)(),valueKey:String,defaultIndex:Object(o.c)(0),toolbarPosition:Object(o.e)("top"),columnsFieldNames:Object});var S=Object(a.defineComponent)({name:v,props:n,emits:["confirm","cancel","change"],setup(e,{emit:t,slots:n}){const o=Object(a.ref)(!1),d=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:O}=Object(s.f)(h),v=(O(),Object(a.computed)(()=>Object(c.j)(e.itemHeight))),I=Object(a.computed)(()=>{var t=e.columns[0];if("object"==typeof t){if(b in t)return"cascade";if(f in t)return"object"}return"plain"}),S=()=>g.map(e=>e.state.index),C=(e,t)=>{const n=g[e];n&&(n.setOptions(t),o.value=!0)},y=t=>{let n={[b]:e.columns};var a=S();for(let e=0;e<=t;e++)n=n[b][a[e]];for(;n&&n[b];)t++,C(t,n[b]),n=n[b][n.defaultIndex||0]},w=e=>g[e],x=e=>{const t=w(e);if(t)return t.getValue()},D=(e,t)=>{const n=w(e);n&&(n.setValue(t),"cascade"===I.value&&y(e))},E=e=>{if(e=w(e),e)return e.state.index},N=(e,t)=>{const n=w(e);n&&(n.setIndex(t),"cascade"===I.value&&y(e))},V=()=>g.map(e=>e.getValue()),B=e=>{"plain"===I.value?t(e,x(0),E(0)):t(e,V(),S())},L=e=>{"cascade"===I.value&&y(e),"plain"===I.value?t("change",x(0),E(0)):t("change",V(),e)},A=()=>{g.forEach(e=>e.stopMomentum()),B("confirm")},W=()=>B("cancel"),M=()=>{if(e.showToolbar){const o=n.toolbar||n.default;return Object(a.createVNode)("div",{class:T("toolbar")},[o?o():[(t=e.cancelButtonText||k("cancel"),Object(a.createVNode)("button",{type:"button",class:[T("cancel"),i.g],onClick:W},[n.cancel?n.cancel():t])),n.title?n.title():e.title?Object(a.createVNode)("div",{class:[T("title"),"van-ellipsis"]},[e.title]):void 0,(t=e.confirmButtonText||k("confirm"),Object(a.createVNode)("button",{type:"button",class:[T("confirm"),i.g],onClick:A},[n.confirm?n.confirm():t]))]])}var t},q=()=>{var t=v.value*+e.visibleItemCount,r={height:t+"px"};return Object(a.createVNode)("div",{class:T("columns"),style:r,onTouchmove:l.e},[d.value.map((t,o)=>{var r;return Object(a.createVNode)(j,{textKey:p,readonly:e.readonly,allowHtml:e.allowHtml,className:t.className,itemHeight:v.value,defaultIndex:null!=(r=t.defaultIndex)?r:+e.defaultIndex,swipeDuration:e.swipeDuration,initialOptions:t[f],visibleItemCount:e.visibleItemCount,onChange:()=>L(o)},{option:n.option})}),(e=>{var t;if(o.value)return t={height:v.value+"px"},e={backgroundSize:`100% ${(e-v.value)/2}px`},[Object(a.createVNode)("div",{class:T("mask"),style:e},null),Object(a.createVNode)("div",{class:[i.e,T("frame")],style:t},null)]})(t)])};return Object(a.watch)(()=>e.columns,()=>{var t,n=e["columns"];if("plain"===I.value)d.value=[{[f]:n}];else if("cascade"===I.value){const n=[];let o={[b]:e.columns};for(;o&&o[b];){var a=o[b];let r=null!=(t=o.defaultIndex)?t:+e.defaultIndex;for(;a[r]&&a[r].disabled;){if(!(re[f]&&0!==e[f].length)},{immediate:!0}),Object(m.a)({confirm:A,getValues:V,setValues:e=>{e.forEach((e,t)=>{D(t,e)})},getIndexes:S,setIndexes:e=>{e.forEach((e,t)=>{N(t,e)})},getColumnIndex:E,setColumnIndex:N,getColumnValue:x,setColumnValue:D,getColumnValues:e=>{if(e=w(e),e)return e.state.options},setColumnValues:C}),()=>{var t;return Object(a.createVNode)("div",{class:T()},["top"===e.toolbarPosition?M():null,e.loading?Object(a.createVNode)(u.a,{class:T("loading")},null):null,null==(t=n["columns-top"])?void 0:t.call(n),q(),null==(t=n["columns-bottom"])?void 0:t.call(n),"bottom"===e.toolbarPosition?M():null])}}})},d58f:function(e,t,n){function a(e){return function(t,n,a,l){o(n);var s=r(t),m=c(s),u=i(s.length),d=e?u-1:0,p=e?-1:1;if(a<2)for(;;){if(d in m){l=m[d],d+=p;break}if(d+=p,e?d<0:u<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?0<=d:d