(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1f824794"],{"0143":function(e,t,n){"use strict";n("c9d9")},"0653":function(e,t,n){"use strict";n("68ef"),n("5c56")},"0970":function(e,t,n){"use strict";n("60f5")},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,c=n("a640"),r=n("ae40"),i=n("2d00");n=n("605d"),c=c("reduce"),r=r("reduce",{1:0});a({target:"Array",proto:!0,forced:!c||!r||!n&&79{var o;return Object(a.createVNode)("div",Object(a.mergeProps)({class:[l({inset:e.inset}),{[r.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")},"3ef8":function(e,t,n){e.exports={menuBg:"#fff",menuText:"#162b64",menuActiveText:"#435ebe"}},"407d":function(e,t,n){"use strict";n("bb1b")},4179:function(e,t,n){"use strict";n("4f78")},4235:function(e,t,n){"use strict";n("6606")},"43c2":function(e,t,n){},4458:function(e,t,n){"use strict";n("86bc")},"4b8a":function(e,t,n){"use strict";n("28b1")},"4dd8":function(e,t,n){"use strict";n("efa9")},"4f78":function(e,t,n){},5118:function(e,t,n){(function(e){var a=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function c(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new c(o.call(setTimeout,a,arguments),clearTimeout)},t.setInterval=function(){return new c(o.call(setInterval,a,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(a,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("6017"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("c8ba"))},5148:function(e,t,n){},"560d":function(e,t,n){"use strict";n("43c2")},"58ab":function(e,t,n){},5934:function(e,t,n){},"5a3d":function(e,t,n){},"5c56":function(e,t,n){},"5c73":function(e,t,n){"use strict";n("8267")},6017:function(e,t,n){(function(e,t){!function(e,n){"use strict";var a,o,c,r,i,l,s,m;function u(e){delete o[e]}function d(e){if(c)setTimeout(d,0,e);else{var t=o[e];if(t){c=!0;try{var a=t,r=a.callback,i=a.args;switch(i.length){case 0:r();break;case 1:r(i[0]);break;case 2:r(i[0],i[1]);break;case 3:r(i[0],i[1],i[2]);break;default:r.apply(n,i)}}finally{u(e),c=!1}}}}function p(){function t(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(n)&&d(+t.data.slice(n.length))}var n="setImmediate$"+Math.random()+"$";e.addEventListener?e.addEventListener("message",t,!1):e.attachEvent("onmessage",t),i=function(t){e.postMessage(n+t,"*")}}e.setImmediate||(a=1,c=!(o={}),r=e.document,m=(m=Object.getPrototypeOf&&Object.getPrototypeOf(e))&&m.setTimeout?m:e,"[object process]"==={}.toString.call(e.process)?i=function(e){t.nextTick((function(){d(e)}))}:function(){var t,n;if(e.postMessage&&!e.importScripts)return t=!0,n=e.onmessage,e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}()?p():i=e.MessageChannel?((s=new MessageChannel).port1.onmessage=function(e){d(e.data)},function(e){s.port2.postMessage(e)}):r&&"onreadystatechange"in r.createElement("script")?(l=r.documentElement,function(e){var t=r.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,l.removeChild(t),t=null},l.appendChild(t)}):function(e){setTimeout(d,0,e)},m.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;ne?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))},O=()=>{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)})},h=e=>{Object(i.e)(e),O()};return c({props:e}),Object(s.a)({submit:O,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:h},[null==(e=n.default)?void 0:e.call(n)])}}});var d=Object(t.a)(o)},"7ed5":function(e,t,n){"use strict";n("5148")},"7f3f":function(e,t,n){"use strict";function a(e){return Object(o.pushScopeId)("data-v-37275e70"),e=e(),Object(o.popScopeId)(),e}n.r(t),n("b0c0");var o=n("7a23"),c={class:"main-left"},r={class:"left-time"},i={class:"weather"},l=["src"],s=["src"],m=a((function(){return Object(o.createElementVNode)("span",null," 联系客服",-1)})),u={class:"left-space"},d={class:"text"},p={class:"space-info"},f={class:"space-temp"},b=["src"],g=a((function(){return Object(o.createElementVNode)("span",{class:"temp-text"},"温度",-1)})),O=a((function(){return Object(o.createElementVNode)("sup",null,"℃",-1)})),h={class:"space-env"},j=["onClick"],v=["src"],T={class:"env-text"},k={key:0,class:"fotter"},I=["onClick"],y=["src"],S=["src"],C=["src"],w=a((function(){return Object(o.createElementVNode)("span",null,"…",-1)})),D={class:"main-right"},E={key:0,class:"work-btn"},x={key:0},N={key:0};function V(e){return Object(o.pushScopeId)("data-v-719ebd15"),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 B=n("5530"),L=(n("96cf"),n("1da1")),A=n("ade3"),q={class:"work-content"},M={class:"work-space"},W={class:"space-title"},F=V((function(){return Object(o.createElementVNode)("div",{class:"device-tip"},"延时期间,空间相关设备会开启",-1)})),U={class:"add-time",id:"addTimeId"},_={key:0,class:"date_box"},R=["onClick"],P={class:"sliders-list",id:"sliderListId"},H={class:"sliders"},z=["onClick","data-index"],X=[V((function(){return Object(o.createElementVNode)("div",{class:"start",id:"startId"},null,-1)})),V((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)}))],Y={class:"add-time-btn"};n("99af");var G=n("2241"),K=(n("e17f"),n("c199")),J=n("fe7e"),Z=n("f691"),$=n("8405"),Q=n("4a89"),ee=n("f465"),te=n("cdd8");const[ne,ae]=Object(J.a)("slider");var oe={min:Object(Z.c)(0),max:Object(Z.c)(100),step:Object(Z.c)(1),range:Boolean,reverse:Boolean,disabled:Boolean,readonly:Boolean,vertical:Boolean,barHeight:Z.f,buttonSize:Z.f,activeColor:String,inactiveColor:String,modelValue:{type:[Number,Array],default:0}};oe=Object(o.defineComponent)({name:ne,props:oe,emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:t,slots:n}){let a,c,r;const i=Object(o.ref)(),l=Object(o.ref)(),s=Object(te.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($.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($.d)(t,n,a),a=Math.round((t-n)/o)*o;return Object($.a)(n,a)},b=(e,t)=>JSON.stringify(e)===JSON.stringify(t),g=(n,a)=>{var o,c;n=d(n)?(c=null!=(c=(o=n)[0])?c:Number(e.min),((o=null!=(o=o[1])?o:Number(e.max)){if(t.stopPropagation(),!e.disabled&&!e.readonly){const{min:o,reverse:c,vertical:r,modelValue:l}=e,s=Object(ee.l)(i);var n,a=r?s.height:s.width;t=Number(o)+(r?c?s.bottom-t.clientY:t.clientY-s.top:c?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)}},h=n=>{if(!e.disabled&&!e.readonly){"start"===l.value&&t("drag-start",n),Object(Q.e)(n,!0),s.move(n),l.value="dragging";n=Object(ee.l)(i);let o=(e.vertical?s.deltaY:s.deltaX).value/(e.vertical?n.height:n.width)*m.value;e.reverse&&(o=-o),d(r)?(n=e.reverse?1-a:a,c[n]=r[n]+o):c=r+o,g(c)}},j=n=>{e.disabled||e.readonly||("dragging"===l.value&&(g(c,!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"],ae("button-wrapper",m[i])):ae("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),c=e.modelValue,r=d(c)?c.map(f):f(c),l.value="start")},onTouchmove:h,onTouchend:j,onTouchcancel:j,onClick:Q.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:ae("button"),style:Object($.f)(e.buttonSize)},null)})(u,t)])};return g(e.modelValue),Object(ee.h)(()=>e.modelValue),()=>Object(o.createVNode)("div",{ref:i,style:u.value,class:ae({vertical:e.vertical,disabled:e.disabled}),onClick:O},[Object(o.createVNode)("div",{class:ae("bar"),style:p.value},[e.range?[v(0),v(1)]:v()])])}}),oe=Object(K.a)(oe);function ce(e,t){function n(){}var a,o,c=!1,r=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){r=e.touches[0].pageX,i=e.touches[0].pageY,s=l=0}),{passive:!0}),e.addEventListener("touchmove",(function(t){var n;c=!0,a=t.touches[0].pageX,o=t.touches[0].pageY,t.mation={startX:r,startY:i,moveX:a,moveY:o,disX:l,disY:s},m.drag.call(e,t),c&&(n=Math.abs(a-r),(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)})),ce(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=c.offsetWidth*t+"px",a.style.background="rgba(0,0,0,0.2)",i.setOptionnalPerstion(i.startIndex,t),m=!1,i.checkPersionService())})),ce(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=c.offsetWidth,l-e<=o?a.style.width=o+"px":(a.style.width=l-e+"px",i.cancelSliderBoxColor()),Object(ie.y)("ipdImages","time-wait.svg"),a.style.background="linear-gradient(0deg, rgba(0, 255, 163, 0.2), rgba(0, 255, 163, 0.2))",r+(l-e)-s=e&&(u=-o-(r+l+n+2*c.offsetWidth-e),t.style.left=u+"px",s<=o&&(t.style.left=-s+"px")),r+l+n+c.offsetWidth>=t.offsetWidth?a.style.width=t.offsetWidth-r-c.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&&(c=i.formaTimeObj(e,"1",e.startTime,e.endTime),o.push(c)):n>=e.startTime&&ne.endTime&&(c=i.formaTimeObj(e,"1",e.startTime,e.endTime),o.push(c),n=e.startTime):n>=e.endTime?n===e.endTime&&(c=i.formaTimeObj(e,"1",e.startTime,e.endTime),o.push(c),n=e.startTime):n===e.startTime&&e.endTime})),i.parseCusStartTime(i.nowData.cusStartTime)),i.parseCusEndTime(i.nowData.cusEndTime));no&&(d=i.formaTimeObj(g,"1",g.startTime,g.endTime),c.push(d),p=i.formaTimeObj(n[0],"0",g.startTime,a),r.push(p),p=i.formaTimeObj(n[0],"0",o,g.endTime),r.push(p)):g.startTime==g.startTime?g.endTime<=o?(p=i.formaTimeObj(g,"1",g.startTime,g.endTime),c.push(p)):g.endTime>o&&(f=i.formaTimeObj(g,"1",g.startTime,g.endTime),c.push(f),f=i.formaTimeObj(n[0],"0",o,g.endTime),r.push(f)):g.startTime>a&&(g.endTime<=o?(f=i.formaTimeObj(g,"1",g.startTime,g.endTime),c.push(f)):g.endTime>o&&(b=i.formaTimeObj(g,"1",g.startTime,g.endTime),c.push(b),b=i.formaTimeObj(n[0],"0",o,g.endTime),r.push(b)))}return r.concat(c)}return[]},closeWorkTimer:function(){i.formBtn=!1,t.emit("closeWork","cancel")},addWorkTimer:function(){var e=i.formateAddTimer();i.saveBatchCustomScene(e)},saveBatchCustomScene:function(e){i.showLoading=!0,i.formBtn=!0,Object(le.O)(e).then((function(e){t.emit("closeWork"),i.showLoading=!1,i.formBtn=!1})).catch((function(){t.emit("closeWork","cancel"),i.showLoading=!1,i.formBtn=!1}))},isUpdate:!1,triggerDelTime:function(){var e=i.formateDelTimer();e&&e.length&&G.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(B.a)({},Object(o.toRefs)(i))}}),me=(n("407d"),n("6b0d")),ue=(me=n.n(me),se=me()(se,[["render",function(e,t,n,a,c,r){var i=Object(o.resolveComponent)("van-loading");return Object(o.openBlock)(),Object(o.createElementBlock)("div",q,[Object(o.createElementVNode)("div",M,[Object(o.createElementVNode)("div",W,Object(o.toDisplayString)(e.spaceInfo.spaceName)+" 申请延时",1),F]),Object(o.createElementVNode)("div",U,[e.dateArr&&e.dateArr.length?(Object(o.openBlock)(),Object(o.createElementBlock)("div",_,[(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,R)})),128))])):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",P,[(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",H,[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,z)])])})),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",Y,[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-719ebd15"]]),{class:"work-content"}),de={class:"work-space"},pe={class:"space-title"},fe={class:"add-time",id:"addTimeId"},be={key:0,class:"date_box"},ge=["onClick"],Oe={class:"sliders-list",id:"sliderListId"},he={class:"sliders"},je=["onClick","data-index"],ve=["onClick"],Te=[re((function(){return Object(o.createElementVNode)("div",{class:"start",id:"startId"},null,-1)})),re((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)}))],ke={class:"add-time-btn"},Ie={key:0,class:"device-title"},ye=[re((function(){return Object(o.createElementVNode)("span",{class:"line"},null,-1)})),re((function(){return Object(o.createElementVNode)("span",{class:"text"},"预约开启设备",-1)})),re((function(){return Object(o.createElementVNode)("span",{class:"line"},null,-1)}))],Se={class:"work-device"},Ce=re((function(){return Object(o.createElementVNode)("div",{class:"row-title"},"空调",-1)})),we={class:"device-box"},De=["onClick"],Ee={class:"row-item"},xe=["src"],Ne=re((function(){return Object(o.createElementVNode)("div",{class:"row-title"},"照明",-1)})),Ve={class:"device-box"},Be=["onClick"],Le={class:"row-item"},Ae=["src"],qe={key:2,class:"device-tip"},Me=[re((function(){return Object(o.createElementVNode)("span",null,[Object(o.createElementVNode)("i",null,"*"),Object(o.createTextVNode)(" 设备加时提示:")],-1)})),re((function(){return Object(o.createElementVNode)("ul",null,[Object(o.createElementVNode)("li",null," 工作日大厦提供固定时段空调,其余时间可通过“预约加时”功能额外申请空调使用时间"),Object(o.createElementVNode)("li",null,"空调加时采用后付费方式,系统将依据真实使用时长,空间面积和加时单价据实计算加时费用,空调加时单价为0.4元/㎡·h"),Object(o.createElementVNode)("li",null,[Object(o.createTextVNode)("提交完申请,待您所在公司"),Object(o.createElementVNode)("b",null,"行政人员审批通过后"),Object(o.createTextVNode)(",预约时段内您可自由开关空间下的设备")]),Object(o.createElementVNode)("li",null,"如您提前结束使用,请点击“我要离开”按钮,系统会自动调整设备关闭时间"),Object(o.createElementVNode)("li",null,"我们期待与您共创可持续的办公空间。")],-1)}))];n("13d5"),n("a434"),n("a9e3");oe=Object(o.defineComponent)({components:{VanSlider:oe},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(ie.r)(),c="".concat(Object(ie.y)("ipdImages","time-check.svg")),r=(c="linear-gradient(0deg, rgba(255, 0, 0, 0.2), rgba(255, 0, 0, 0.2)), url(".concat(c,")"),Object(ie.t)()),i=Object(o.reactive)({userInfo:r,seviceEquipmentList:e.seviceEquipmentList,parseImgUrl:ie.y,isEvent:!1,screenInfo:{screenWidth:0,screenHeight:0},projectId:e.projectId,workkArr:e.workkArr,bgRed:c,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(ie.l)()[1]},getTomorrowIndex:function(){var e=0;return"今天"===i.nowData.week?Object(ie.l)()[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},c=e[a].formatTimer,r=i.parseCusStartTime(i.nowData.cusStartTime),l=i.parseCusEndTime(i.nowData.cusEndTime),s=i.nowData.spaceCustomContentList||[];return r<=c&&c<=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)})),ce(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=c.offsetWidth*t+"px",a.style.background="rgba(0,0,0,0.2)",i.setOptionnalPerstion(i.startIndex,t),m=!1,i.checkPersionService())})),ce(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=c.offsetWidth,l-e<=o?a.style.width=o+"px":(a.style.width=l-e+"px",i.cancelSliderBoxColor()),Object(ie.y)("ipdImages","time-wait.svg"),a.style.background="linear-gradient(0deg, rgba(0, 255, 163, 0.2), rgba(0, 255, 163, 0.2))",r+(l-e)-s=e&&(u=-o-(r+l+n+2*c.offsetWidth-e),t.style.left=u+"px",s<=o&&(t.style.left=-s+"px")),r+l+n+c.offsetWidth>=t.offsetWidth?a.style.width=t.offsetWidth-r-c.offsetWidth+"px":a.style.width=l+n+"px")}})},cancelSliderBoxColor:function(){for(var e=document.querySelectorAll(".slider-box"),t=0;t=i.startIndex&&t=t&&r[a].formatTimer=t&&r[a].formatTimer=t&&e.formatTimer=e.startTime&&(c=i.formaTimeObj(e,"1",e.startTime,e.endTime),o.push(c),a=a>e.endTime?a:e.endTime):n>=e.startTime&&ne.endTime&&(c=i.formaTimeObj(e,"1",e.startTime,e.endTime),o.push(c),n=e.startTime):n>=e.endTime?n===e.endTime&&(c=i.formaTimeObj(e,"1",e.startTime,e.endTime),o.push(c),n=e.startTime):n===e.startTime&&e.endTime})),i.parseCusStartTime(i.nowData.cusStartTime)),i.parseCusEndTime(i.nowData.cusEndTime));na?g.endTime<=o?(d=i.formaTimeObj(g,"1",g.startTime,g.endTime),c.push(d),d=i.formaTimeObj(g,"0",g.startTime,a),r.push(d)):g.endTime>o&&(d=i.formaTimeObj(g,"1",g.startTime,g.endTime),c.push(d),p=i.formaTimeObj(g,"0",g.startTime,a),r.push(p),p=i.formaTimeObj(g,"0",o,g.endTime),r.push(p)):g.startTime===a?g.endTime<=o?(p=i.formaTimeObj(g,"1",g.startTime,g.endTime),c.push(p)):g.endTime>o&&(f=i.formaTimeObj(g,"1",g.startTime,g.endTime),c.push(f),f=i.formaTimeObj(g,"0",o,g.endTime),r.push(f)):g.startTime>a&&(g.endTime<=o?(f=i.formaTimeObj(g,"1",g.startTime,g.endTime),c.push(f)):g.endTime>o&&(b=i.formaTimeObj(g,"1",g.startTime,g.endTime),c.push(b),b=i.formaTimeObj(g,"0",o,g.endTime),r.push(b)))}var O=0,h=r.concat(c),j=Object(ie.o)();return h.map((function(e,t){"1"==e.type&&j>=e.startTime&&j<=e.endTime&&(e.type="3",O=e.startTime,e.endTimeReal=j)})),h.map((function(e,t){"0"==e.type&&O&&e.endTime<=O&&h.splice(t,1)})),h}return[]},closeWorkTimer:function(){i.formBtn=!1,t.emit("closeWork","cancel")},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,c=0;c=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(le.R)(e).then((function(e){})).catch((function(){}))},setallLampHttp:function(e){Object(le.S)(e).then((function(e){})).catch((function(){}))},saveBatchCustomScene:function(e){i.showLoading=!0,i.formBtn=!0,Object(le.O)(e).then((function(e){t.emit("closeWork"),i.showLoading=!1,i.formBtn=!1})).catch((function(){t.emit("closeWork","cancel"),i.showLoading=!1,i.formBtn=!1}))},isUpdate:!1,triggerDelTime:function(){var e=i.formateDelTimer();e&&e.length&&G.a.confirm({title:"确认",message:"确定删除当前时间吗?"}).then((function(){var t=[];e.map((function(e){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){e.sceneEquipList=t})),i.saveBatchCustomScene(e,2)})).catch((function(){}))}});return Object(o.watch)([function(){return e},function(){return e.workkArr}],(function(e,t){i.workkArr=e[1],e[1]&&t[1]&&(e[1].toString(),t[1].toString()),e[0]&&(i.projectId=e[0].projectId,i.enterType=e[0].enterType,i.deviceItem=e[0].deviceItem,i.seviceEquipmentList=e[0].seviceEquipmentList)}),{deep:!0,immediate:!0}),Object(o.onMounted)((function(){i.setWorkTimeList()})),Object(B.a)({},Object(o.toRefs)(i))}}),n("92f1"),oe=me()(oe,[["render",function(e,t,n,a,c,r){var i=Object(o.resolveComponent)("van-loading");return Object(o.openBlock)(),Object(o.createElementBlock)("div",ue,[Object(o.createElementVNode)("div",de,[Object(o.createElementVNode)("div",pe,Object(o.toDisplayString)(e.spaceInfo.spaceName)+" 申请延时",1)]),Object(o.createElementVNode)("div",fe,[e.dateArr&&e.dateArr.length?(Object(o.openBlock)(),Object(o.createElementBlock)("div",be,[(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,ge)})),128))])):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",Oe,[(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",he,[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,je)])])})),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,ve)})),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)})},Te)])]),Object(o.createElementVNode)("div",ke,[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",Ie,ye)):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",Se,[e.isAir?(Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,{key:0},[Ce,Object(o.createElementVNode)("div",we,[(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",Ee,[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,xe)])],12,De)):Object(o.createCommentVNode)("",!0)],64)})),128))])],64)):Object(o.createCommentVNode)("",!0),e.isLight?(Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,{key:1},[Ne,Object(o.createElementVNode)("div",Ve,[(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",Le,[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,Ae)])],12,Be)):Object(o.createCommentVNode)("",!0)],64)})),128))])],64)):Object(o.createCommentVNode)("",!0),e.isAir?(Object(o.openBlock)(),Object(o.createElementBlock)("div",qe,Me)):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-e19a3620"]]);var We={class:"contact-content"},Fe=Object(o.createElementVNode)("div",{class:"title"},"联系我们",-1),Ue={class:"contact"},_e={class:"code-box"},Re=["src"],Pe=Object(o.createElementVNode)("div",{class:"title"},"客服微信二维码",-1),He={class:"phone-box"},ze=["src"],Xe={class:"title"},Ye=Object(o.createElementVNode)("div",{class:"concat-text"},"联系方式",-1),Ge=Object(o.createTextVNode)("我知道了"),Ke=n("543e"),Je=(n("e7e5"),Object(ie.t)()),Ze=Object(o.defineComponent)({props:{isShowContact:{type:Boolean,default:function(){return!1}},contantDetail:{type:Object,default:function(){}}},components:Object(A.a)({VanLoading:Ke.b},G.a.Component.name,G.a.Component),setup:function(e,t){var n=Object(o.getCurrentInstance)(),a=Object(o.reactive)({parseImgUrl:ie.y,contantDetail:e.contantDetail,userInfo:Je,imgUrl:n.proxy.$imgUrl,isShowContact:e.isShowContact,closeDailog:function(){t.emit("closeDailog")},queryCustomerservice:function(){var e={criteria:{projectId:a.userInfo.projectId}};Object(le.I)(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(B.a)({},Object(o.toRefs)(a))}}),$e=(Ze=(n("4458"),me()(Ze,[["render",function(e,t,n,a,c,r){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",We,[Fe,Object(o.createElementVNode)("div",Ue,[Object(o.createElementVNode)("div",_e,[Object(o.createElementVNode)("img",{src:e.imgUrl+"&key="+e.contantDetail.wechatQrCode,alt:""},null,8,Re),Pe]),Object(o.createElementVNode)("div",He,[Object(o.createElementVNode)("img",{src:e.parseImgUrl("ipdImages","phone-icon.svg"),alt:""},null,8,ze),Object(o.createElementVNode)("div",Xe,Object(o.toDisplayString)(e.contantDetail.phone),1),Ye])]),Object(o.createVNode)(i,{class:"dailog-btn",onClick:e.closeDailog},{default:Object(o.withCtx)((function(){return[Ge]})),_:1},8,["onClick"])])]})),_:1},8,["show"])}]])),{class:"scene-config"}),Qe=["src"],et={class:"time-text"},tt=["src"],nt=function(e){return Object(o.pushScopeId)("data-v-bffde110"),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 at(e){return Object(o.pushScopeId)("data-v-10ea159b"),e=e(),Object(o.popScopeId)(),e}var ot=n("6c02"),ct=n("0613"),rt={class:"air-dialog-content"},it={class:"dialog-top"},lt=["src"],st=at((function(){return Object(o.createElementVNode)("div",{class:"leave-title"},"工作辛苦了!",-1)})),mt={class:"leave-popup-body"},ut={key:1,class:"text-status"},dt={key:2,class:"text-status grey"},pt=[at((function(){return Object(o.createElementVNode)("span",null,"隐藏",-1)}))],ft=Object(o.defineComponent)({props:{isShowLeaveDailog:{type:Boolean,default:function(){return!1}}},components:Object(A.a)({VanLoading:Ke.b},G.a.Component.name,G.a.Component),setup:function(e,t){var n=Object(o.reactive)({parseImgUrl:ie.y,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(B.a)({},Object(o.toRefs)(n))}}),bt=(ft=(n("1196"),me()(ft,[["render",function(e,t,n,a,c,r){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",rt,[Object(o.createElementVNode)("div",it,[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,lt)):Object(o.createCommentVNode)("",!0)]),st,Object(o.createElementVNode)("div",mt,[(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",ut)):Object(o.createCommentVNode)("",!0),"grey"===e.status?(Object(o.openBlock)(),Object(o.createElementBlock)("span",dt)):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)})},pt)])]})),_:1},8,["show"])}],["__scopeId","data-v-10ea159b"]])),ft=Object(o.defineComponent)({props:{workkArr:{type:Array,default:function(){return[]}}},components:{LeaveDailog:ft},setup:function(e,t){Object(o.getCurrentInstance)();var n=Object(ot.d)(),a=(Object(ct.b)(),Object(o.reactive)({parseImgUrl:ie.y,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,c=0;c=e[c].startTime&&t<=e[c].endTime){n.startTime=e[c].startTime,n.endTime=e[c].endTime,o=!(n.type=3);break}o&&(n.type=4)}return n},delTimeArr:[],customSceneList:[],formateWorkTime:function(){for(var e=a.workkArr,n=Object(ie.b)("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,c=0;c=e[c].startTime&&t<=e[c].endTime){n.startTime=e[c].startTime,n.endTime=e[c].endTime,o=!(n.type=3);break}o&&(n.type=4)}return n},delTimeArr:[],customSceneList:[],formateWorkTime:function(){for(var e=a.workkArr,n=Object(ie.b)("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(le.O)(a.delTimeArr).then((function(e){a.leaveBtnFlag=!1,t.emit("closeWork");var n=Object(xt.setTimeout)((function(){t.emit("leaveWork"),Object(xt.clearTimeout)(n),n=null}),1e3)})).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(B.a)({},Object(o.toRefs)(a))}}),Et=(n("4b8a"),me()(Et,[["render",function(e,t,n,a,c,r){var i=Object(o.resolveComponent)("leave-dailog");return Object(o.openBlock)(),Object(o.createElementBlock)("div",bt,[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,gt),Object(o.createElementVNode)("div",Ot,[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,ht),jt])):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-2abd54c4"]])),{class:"scene-config"}),Vt=["onClick"],Bt=["src"];function Lt(e){return Object(o.pushScopeId)("data-v-3e78a67a"),e=e(),Object(o.popScopeId)(),e}var At=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(ot.d)(),a=(Object(ct.b)(),{DISCUSSING:Object(ie.y)("ipdImages","taolun.svg"),PROJECTING:Object(ie.y)("ipdImages","touying.svg"),ADJOURNMENT:Object(ie.y)("ipdImages","sanhui.svg")}),c=Object(o.reactive)({parseImgUrl:ie.y,spaceId:e.spaceId,scenarioArr:[],scenarioImgArr:a,activeType:e.activeType,onSubmit:function(e){n.push({path:"/choice-project"})},formatScenarioImg:function(){c.scenarioArr.map((function(e){e.img=c.scenarioImgArr[e.sceneType],"DISCUSSING"===e.sceneType?e.order=1:"PROJECTING"===e.sceneType?e.order=2:"ADJOURNMENT"===e.sceneType?e.order=3:e.order=4})),c.scenarioArr=c.scenarioArr.sort((function(e,t){return e.order-t.order}))},handleScene:function(n){var a=Object(ie.t)();a={spaceId:c.spaceId,projectId:e.projectId,type:n.sceneType,pubname:a.pubname};n.loading=!0,n.lodingText="正在切换至",t.emit("setHeadScene",n,1),Object(le.T)(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){c.activeType=e.activeType,c.scenarioArr=e.scenarioArr,c.spaceId=e.spaceId,c.formatScenarioImg()}),{deep:!1,immediate:!0}),Object(o.onMounted)((function(){})),Object(B.a)({},Object(o.toRefs)(c))}}),qt=(At=(n("b2ec"),me()(At,[["render",function(e,t,n,a,c,r){return Object(o.openBlock)(),Object(o.createElementBlock)("div",Nt,[(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,Bt),Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(t.sceneName),1)],14,Vt)})),128))])}],["__scopeId","data-v-0c8e2a5e"]])),n("0500")),Mt={class:"header-content"},Wt={class:"weather"},Ft=["src"],Ut={class:"weather-text"},_t={class:"pr5"},Rt=Lt((function(){return Object(o.createElementVNode)("span",null,"/",-1)})),Pt=Lt((function(){return Object(o.createElementVNode)("span",{class:"pr5"},"PM2.5",-1)})),Ht={class:"pr5"};function zt(e){return Object(o.pushScopeId)("data-v-0f70331e"),e=e(),Object(o.popScopeId)(),e}var Xt=n("ad06"),Yt=(n("c3a6"),Object(o.defineComponent)({props:{outWeather:{type:Object,default:function(){return{}}}},components:{VanIcon:Xt.b},setup:function(){var e=Object(ot.d)(),t=Object(o.reactive)({goBack:function(){window.history.go(-1)},setPermanentSpace:function(){e.push({path:"/mySpace"})}});return Object(B.a)({},Object(o.toRefs)(t))}})),Gt=(Yt=(n("7ed5"),me()(Yt,[["render",function(e,t,n,a,c,r){return Object(o.openBlock)(),Object(o.createElementBlock)("div",Mt,[Object(o.createElementVNode)("div",Wt,[Object(o.withDirectives)(Object(o.createElementVNode)("img",{src:e.outWeather.imgname,class:"weather-icon",alt:""},null,8,Ft),[[o.vShow,e.outWeather.imgname]]),Object(o.createElementVNode)("div",Ut,[Object(o.createElementVNode)("p",null,[Object(o.createElementVNode)("span",_t,Object(o.toDisplayString)(e.outWeather.temperature||"--")+"℃",1),Rt,Pt,Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(e.outWeather.pm25||"--"),1)]),Object(o.createElementVNode)("p",null,[Object(o.createElementVNode)("span",Ht,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-3e78a67a"]])),n("3ba9")),Kt={class:"air"},Jt={class:"air-top"},Zt={class:"air-desc"},$t=zt((function(){return Object(o.createElementVNode)("p",{class:"air-title"},"空调",-1)})),Qt={class:"air-temperature"},en={key:0},tn={key:0,class:"air-status"},nn={key:1,class:"air-loading"},an=["src"],on={class:"air-right"},cn=["src"],rn={key:0,class:"air-control"},ln=zt((function(){return Object(o.createElementVNode)("div",{class:"control-title"},"温度调节",-1)})),sn={class:"btn-box"},mn=["src"],un=["src"],dn={key:1,class:"air-control"},pn=zt((function(){return Object(o.createElementVNode)("div",{class:"control-title"},"风量调节",-1)})),fn={class:"btn-box"},bn=["src"],gn=["src"],On={class:"air-dialog-content"},hn={class:"dialog-top"},jn=["src"],vn={class:"dialog-text"},Tn={class:"air-body-item-num"},kn={key:0,class:"air-temp-num"},In={key:1,class:"air-temp-load"},yn={key:0,class:"air-notice"},Sn=[zt((function(){return Object(o.createElementVNode)("span",null,"确定",-1)}))];const[Cn,wn]=Object(J.a)("switch");function Dn(e){return Object(o.pushScopeId)("data-v-00673b20"),e=e(),Object(o.popScopeId)(),e}J={size:Z.f,loading:Boolean,disabled:Boolean,modelValue:Z.h,activeColor:String,inactiveColor:String,activeValue:{type:Z.h,default:!0},inactiveValue:{type:Z.h,default:!1}},Z=Object(o.defineComponent)({name:Cn,props:J,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(ee.h)(()=>e.modelValue),()=>{var{size:t,loading:c,disabled:r,activeColor:i,inactiveColor:l}=e,s=n(),t={fontSize:Object($.b)(t),backgroundColor:s?i:l};return Object(o.createVNode)("div",{role:"switch",class:wn({on:s,loading:c,disabled:r}),style:t,tabindex:r?void 0:0,"aria-checked":s,onClick:a},[Object(o.createVNode)("div",{class:wn("node")},[(()=>{var t;if(e.loading)return t=n()?e.activeColor:e.inactiveColor,Object(o.createVNode)(Ke.a,{class:wn("loading"),color:t},null)})()])])}}}),J=Object(K.a)(Z);var En=(n("e3b3"),n("d9d2"),n("d399")),xn=(Z=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:(K={Switch:J},Object(A.a)(K,G.a.Component.name,G.a.Component),Object(A.a)(K,"Loading",Ke.b),K),setup:function(e,t){var n=e,a=Object(o.reactive)({loadingAir:!1,distroyFlag:!1,temperature:e.temperature,userIsControl:e.userIsControl,forceOverTimeFlag:e.forceOverTimeFlag,firstLoadingAir:!0,spaceId:e.spaceId,domAirOpeen:!1,feedbackTimer:null,parseImgUrl:ie.y,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(le.k)(e).then((function(e){var n=e?e.data:[];if(n&&n.length){for(var o=0;o=n.heatingData.minTempSet&&n.realTemp<=n.heatingData.maxTempSet?(e=(n.realTemp-n.heatingData.minTempSet)/n.part,a&&(a.style.left=e+"px")):!n.realTemp||n.realTempn.heatingData.maxTempSet&&(e=t.offsetWidth,t=a.offsetWidth,a.style.left=e-t+"px"))},formateDataStatus:function(){n.heatingData.runStatus?n.isOpen=!0:n.isOpen=!1,n.floorHeatingList.map((function(e){e.switch=!!e.runStatus,e.tempSet&&(e.tempSet=e.tempSet.toFixed(1),e.tempSet=Object(ie.a)(e.tempSet))}))},getFloorHeatingList:function(){var e=Object(ie.B)({spaceId:n.spaceId});Object(le.K)(e).then((function(e){e=e?e.data:{},(n.heatingData=e).equipList&&e.equipList.length&&(n.floorHeatingList=e.equipList||[]),n.formateDataStatus(),n.setRelTemp(),n.sliderInit(),n.startfloorHeathingStatus()})).catch((function(){n.startfloorHeathingStatus()}))},loadingTimer:0,loading:!1,setLoadingNumber:function(){var e=setInterval((function(){n.loadingTimer++,15<=n.loadingTimer&&(clearInterval(e),n.loading=!1)}),1e3)},clearFloorHeathingTimer:function(){clearTimeout(n.floorHeathingStatus),n.floorHeathingStatus=null},startfloorHeathingStatus:function(){var e=0=n.airData.minTempSet&&n.airTemp<=n.airData.maxTempSet?(t=(n.airTemp-n.airData.minTempSet)/n.part,a&&(a.style.left=t+"px")):!n.airTemp||n.airTempn.airData.maxTempSet&&(t=a.offsetWidth,a.style.left=e-t+n.sliderPading+"px"))},getEleWidth:function(e){return e?e.getBoundingClientRect().width:1},endBoxSwiper:function(){var e=document.querySelector("#handId"),t=document.querySelector("#barId"),a=document.querySelector("#sliderId"),o=!1,c=0,r=(n.sliderPading=2,n.getEleWidth(a)),i=(a=n.getEleWidth(t),a=(1=e&&(clearInterval(n.switchTimer),n.switchTimer=null,n.loadingAir=!1,n.loadingNum=0,n.getAirInfoToTimer(0))}),1e3)},formatAirData:function(e,t){var a={};if("temp"==e&&(a.codeKey="tempSetCode",a.value=t),"gear"==e&&"windLow"==t){if(!(1=t&&(clearInterval(e.timer),e.timer=null,e.loadingNum=0,n.getAirInfoToTimer(0))}),1e3)},childDisabled:function(e,t){clearTimeout(e.timeOuter),e.timeOuter=setInterval((function(){e.num--,0==e.num&&(n.setSpaceCondtioners(t),clearTimeout(e.timeOuter))}),1e3)},changeChildItemAir:function(e,a,o){var c=!a.isOpen,r=n.checkDeviceIsExeSpaceTime([a]);if(n.forceOverTimeFlag&&c&&r&&"switch"==e)t.emit("triggerWork",2,a);else if(a.isOpen||"switch"===e){if(c=[],"switch"===e){if(1<=a.loadingNum&&a.loadingNum<=15)return;a.isOpen=!a.isOpen,r={id:a.id,code:a.switchCode,value:a.isOpen?"1":"0"},c.push(r)}else if("temp"===e){if(a.num=2,"up"===o){if(a.tempSet>=n.airData.maxTempSet)return;a.tempSet=a.tempSet+.5}else if("down"===o){if(a.tempSet<=n.airData.minTempSet)return;a.tempSet=a.tempSet-.5}r={id:a.id,code:a.tempSetCode,value:a.tempSet},c.push(r),n.childDisabled(a,c)}else if("gear"===e){if("up"===o){if(a.isAutoGear)return;3<=a.gear?a.isAutoGear=1:(a.gear++,a.isAutoGear=0)}else if("down"===o){if(!a.isAutoGear&&a.gear<=1)return;a.isAutoGear?(a.isAutoGear=0,a.gear=3):a.gear--}r={id:a.id,code:a.gearCode,value:a.isAutoGear?4:a.gear},c.push(r)}else if("model"===e){if("up"===o){if(3<=a.workMode)return;a.workMode++}else if("down"===o){if(a.workMode<=1)return;a.workMode--}r={id:a.id,code:a.modeSetCode,value:a.workMode},c.push(r)}n.updateAirStatus(),"temp"!==e&&n.setSpaceCondtioners(c)}},setSpaceCondtioners:function(e){Object(le.R)(e).then((function(e){n.loadinngEnd()})).catch((function(){n.loadinngEnd(),Object(En.a)("连接异常,请检查网络!")}))},changeZongAir:function(e,t){var a,o;!n.airData.isOpen||(a=n.formatAirData(e,t))&&a.codeKey&&(o=[],n.equipList.map((function(e){e={id:e.id,code:e[a.codeKey],value:a.value},o.push(e)})),n.cotrolLoading||(n.loadingStart(),n.updateAirStatus(),n.setSpaceCondtioners(o)))},checkDeviceIsExeSpaceTime:function(){for(var e=0=e.cusStartTime)o=t>e.cusEndTime?t+1:e.cusEndTime+1,c=24;else{if(e.cusStartTime)return;o=t+1,c=24}for(var r=o;rn.lightData.brightMaxValue&&(n.lightData.brightValue=n.lightData.brightMaxValue),c=n.lightData.brightMaxValue/(t-a),r=100/n.lightData.brightMaxValue,i=n.lightData.brightValue/r/c/r,n.lightData.brightValueRate=Math.floor(n.lightData.brightValue/r),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),c=n.lightData.colorTempMaxValue/(t-a),r=100/n.lightData.colorTempMaxValue,i=n.lightData.colorTempValue/r/c/r,n.lightData.colorTempValueRate=Math.floor(n.lightData.colorTempValue/r)),o.style.left=i+"px"},endBoxSwiper:function(){n.swiperIinit=!0;var e,t=document.querySelector("#handId1"),a=document.querySelector("#sliderId1"),o=!1,c=0,r=a?a.offsetWidth:1;t&&(e=t.getBoundingClientRect().width,n.getDefaultVal(1,r,e,t),t.addEventListener("touchstart",(function(e){c=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)})),ce(t,{swipeLeft:function(a){o&&(c=Math.abs(c),a=Math.abs(a.mation.moveX-a.mation.startX),a=(a=c-a)<0?0:a,t.style.left=a+"px",n.setBarValue(1,r,a,e),n.changContrlVal(1))},swipeRight:function(a){o&&(c=Math.abs(c),a=Math.abs(a.mation.moveX-a.mation.startX),a=r-e<=(a=c+a)?r-e:a,t.style.left=a+"px",n.setBarValue(1,r,a,e),n.changContrlVal(1))}}))},tempBoxSwiper:function(){n.swiperIinit=!0;var e,t=document.querySelector("#handId2"),a=document.querySelector("#sliderId2"),o=!1,c=0,r=a?a.offsetWidth:1;t&&(e=t.getBoundingClientRect().width,n.getDefaultVal(2,r,e,t),t.addEventListener("touchstart",(function(e){c=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)})),ce(t,{swipeLeft:function(a){o&&(c=Math.abs(c),a=Math.abs(a.mation.moveX-a.mation.startX),a=(a=c-a)<0?0:a,t.style.left=a+"px",n.setBarValue(2,r,a,e),n.changContrlVal(2))},swipeRight:function(a){o&&(c=Math.abs(c),a=Math.abs(a.mation.moveX-a.mation.startX),a=r-e<=(a=c+a)?r-e:a,t.style.left=a+"px",n.setBarValue(2,r,a,e),n.changContrlVal(2))}}))},barSwiperInit:function(){return Object(L.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(B.a)({},Object(o.toRefs)(n))}}),n("4235"),Ir=me()(kr,[["render",function(e,t,n,a,c,r){return Object(o.openBlock)(),Object(o.createElementBlock)("div",yr,[Object(o.createElementVNode)("div",Sr,[Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(e.lightData.localName),1)]),e.lightData.bright?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Cr,[Object(o.createElementVNode)("div",wr,[Dr,Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(e.lightData.brightValueRate)+"%",1)]),Object(o.createElementVNode)("div",Er,[Object(o.createElementVNode)("div",xr,[Object(o.createElementVNode)("div",{class:"item-now",style:Object(o.normalizeStyle)({width:e.itemWidth})},null,4),Nr])])])):Object(o.createCommentVNode)("",!0),e.lightData.colorTemperature?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Vr,[Object(o.createElementVNode)("div",Br,[Lr,Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(e.lightData.colorTempValueRate)+"%",1)]),Ar])):Object(o.createCommentVNode)("",!0)])}],["__scopeId","data-v-b4fb4e34"]]);var Mr={class:"light-temp"},Wr=qr((function(){return Object(o.createElementVNode)("div",{class:"light-tep-top"},[Object(o.createElementVNode)("span",null,"地暖")],-1)})),Fr={class:"bright-box"},Ur={class:"bight-text"},_r=qr((function(){return Object(o.createElementVNode)("span",null,"温度调节",-1)})),Rr={class:"control-box"},Pr={class:"temp-slider",id:"slideFloorId2"},Hr=qr((function(){return Object(o.createElementVNode)("div",{class:"slider-bar",id:"barFloorId2"},[Object(o.createElementVNode)("div",{class:"bar-circle",id:"handFloorId2"})],-1)})),zr={class:"temp-left",id:"tempLeftId"},Xr={class:"temp-right"};function Yr(e){return Object(o.pushScopeId)("data-v-572df90f"),e=e(),Object(o.popScopeId)(),e}jr=Object(o.defineComponent)({props:{floorData:{type:Object,default:function(){}}},components:{Switch:J},setup:function(e,t){var n=Object(o.reactive)({lampSw:!1,itemWidth:"0%",realTemp:0,part:0,floorData:e.floorData,swiperIinit:!1,changeChildTemp:function(){var e=[],t={id:n.floorData.id,code:n.floorData.tempSetCode,value:n.realTemp};e.push(t),n.setSpaceCondtioners(e)},setSpaceCondtioners:function(e){Object(le.R)(e).then((function(e){})).catch((function(){Object(En.a)("连接异常,请检查网络!")}))},getEleWidth:function(e){return e?e.getBoundingClientRect().width:1},sliderPading:0,endBoxSwiper:function(){n.swiperIinit=!0;var e=document.querySelector("#handFloorId2"),t=document.querySelector("#barFloorId2"),a=document.querySelector("#slideFloorId2"),o=document.querySelector("#tempLeftId"),c=(o=n.getEleWidth(o),n.sliderPading=o,!1),r=0,i=n.getEleWidth(a),l=(o=n.getEleWidth(t),a=(1=n.floorData.minTempSet&&n.realTemp<=n.floorData.maxTempSet?(e=(n.realTemp-n.floorData.minTempSet)/n.part,e=Math.floor(e)+n.sliderPading,a&&(a.style.left=e+"px")):!n.realTemp||n.realTempn.floorData.maxTempSet&&(e=t.offsetWidth,t=a.offsetWidth,a.style.left=e-t+"px"))},barSwiperInit:function(){return Object(L.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.setBarNowPerstion()}));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(B.a)({},Object(o.toRefs)(n))}}),n("eabd"),vr=me()(jr,[["render",function(e,t,n,a,c,r){return Object(o.openBlock)(),Object(o.createElementBlock)("div",Mr,[Wr,Object(o.createElementVNode)("div",Fr,[Object(o.createElementVNode)("div",Ur,[_r,Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(e.realTemp||"--")+"℃",1)]),Object(o.createElementVNode)("div",Rr,[Object(o.createElementVNode)("div",Pr,[Hr,Object(o.createElementVNode)("div",zr,Object(o.toDisplayString)(e.floorData.minTempSet),1),Object(o.createElementVNode)("div",Xr,Object(o.toDisplayString)(e.floorData.maxTempSet),1)])])])])}],["__scopeId","data-v-7c23f336"]]);var Gr={class:"air"},Kr={class:"child-title"},Jr={class:"child-box"},Zr={key:0,class:"air-control"},$r={class:"air-title"},Qr=Yr((function(){return Object(o.createElementVNode)("div",null,"温度设定",-1)})),ei=Yr((function(){return Object(o.createElementVNode)("div",null,null,-1)})),ti={class:"control-box"},ni={class:"temp-slider",id:"chlidAirSliderId"},ai=Yr((function(){return Object(o.createElementVNode)("div",{class:"slider-bar",id:"chlidAirBarId"},[Object(o.createElementVNode)("div",{class:"bar-circle",style:{border:"2px solid rgba(246, 249, 254, 1)"}})],-1)})),oi={class:"temp-left"},ci={class:"temp-right"},ri={key:1,class:"air-control"},ii={class:"air-title"},li=Yr((function(){return Object(o.createElementVNode)("div",null,"风速",-1)})),si=Yr((function(){return Object(o.createElementVNode)("div",null,null,-1)})),mi={class:"volume-box"},ui={class:"number"},di={class:"control-box control-box-padding"},pi={class:"icon-box"},fi=["src"],bi=Yr((function(){return Object(o.createElementVNode)("span",null,"调小",-1)})),gi={class:"icon-box"},Oi=["src"],hi=Yr((function(){return Object(o.createElementVNode)("span",null,"调大",-1)})),ji={class:"icon-box"},vi=["src"],Ti=Yr((function(){return Object(o.createElementVNode)("span",null,"自动",-1)})),ki={key:2,class:"air-control"},Ii={class:"air-title"},yi=Yr((function(){return Object(o.createElementVNode)("div",null,"模式",-1)})),Si=Yr((function(){return Object(o.createElementVNode)("div",null,null,-1)})),Ci={key:0},wi={key:1},Di={key:2},Ei={class:"control-box control-box-padding"},xi={class:"icon-box"},Ni=["src"],Vi=Yr((function(){return Object(o.createElementVNode)("span",null,"制冷",-1)})),Bi={class:"icon-box"},Li=["src"],Ai=Yr((function(){return Object(o.createElementVNode)("span",null,"制热",-1)})),qi={class:"icon-box"},Mi=["src"],Wi=Yr((function(){return Object(o.createElementVNode)("span",null,"通风",-1)})),Fi=(kr=Object(o.defineComponent)({props:{temperature:{type:Number,default:function(){return 0}},airData:{type:Object,default:function(){}},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}},seviceEquipmentList:{type:Array,default:function(){return[]}}},components:Object(A.a)({Switch:J},G.a.Component.name,G.a.Component),setup:function(e,t){var n=Object(o.reactive)({seviceEquipmentList:e.seviceEquipmentList,lightColorImg:Object(ie.y)("page-officehome","lightColorControl.svg"),navType:"all",valueDom:null,spaceId:e.spaceId,valueHeight:null,equipList:[],cotrolLoading:!1,loadingTimer:0,airTemp:0,loadingAir:!1,windGearArr:[0,1,2,3],lightIcon:"arrow-down",showChild:!1,airData:e.airData,realTemp:16,temperature:e.temperature,userIsControl:e.userIsControl,forceOverTimeFlag:e.forceOverTimeFlag,firstLoadingAir:!0,domAirOpeen:!1,swiperIinit:!1,parseImgUrl:ie.y,part:1,modeName:"",showAirVolumeBtn:!1,showDialog:!1,airTimer:null,airSetText:{notice:"",remark:[],nowImg:"",toWhere:"",designTemperature:0},setBarNowPerstion:function(){n.realTemp=n.airTemp;var e,t,a=document.querySelector("#chlidAirBarId");a&&(t=document.querySelector("#chlidAirSliderId"),n.airTemp>=n.airData.minTempSet&&n.airTemp<=n.airData.maxTempSet?(e=(n.airTemp-n.airData.minTempSet)/n.part,e=Math.floor(e),a&&(a.style.left=e+"px")):!n.airTemp||n.airTempn.airData.maxTempSet&&(e=t.offsetWidth,t=a.offsetWidth,a.style.left=e-t+n.sliderPading+"px"))},getEleWidth:function(e){return e?e.getBoundingClientRect().width:1},endBoxSwiper:function(){n.swiperIinit=!0;var e=document.querySelector("#chlidAirBarId"),t=document.querySelector("#chlidAirBarId"),a=document.querySelector("#chlidAirSliderId"),o=!1,c=0,r=(n.sliderPading=2,n.getEleWidth(a)),i=(a=n.getEleWidth(t),a=(1=e&&(clearInterval(n.loadingTimer),n.loadingTimer=null,n.loadingNum=0,n.getSocketTimer(0))}),1e3)},updateLoadingNum:function(){clearTimeout(n.socketTimer),n.socketTimer=null,n.loadingNum=1,n.loadingTimer||n.setLoadingNumber()},socketTimer:null,getSocketTimer: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(){d.padNumber=0,d.getEquipments(),d.querySpaceSceneConfig(),d.getSpaceEquipList(),d.getSpaceInfo(),d.queryCustomAndScenceTimer(0)},updatePageUrl:function(){var e=window.history,t=window.location.origin+window.location.pathname;e.replaceState("","",t)},spaceData:s,copySpaceData:s,floorId:"",buildingId:"",queryWorkSpace:function(){var e={criteria:{projectId:d.userInfo.projectId,spaceName:"",macAddress:d.userInfo.mac},orders:[{column:"isMajorSpace",asc:!1}]};Object(le.N)(e).then((function(e){"success"==e.result?d.spaceData=null!=(e=null==e?void 0:e.content)?e:[]:d.spaceData=[],d.spaceData.map((function(e){d.spaceInfo.spaceId===e.spaceId?(e.active=!0,d.spaceInfo=e):e.active=!1})),d.copySpaceData=JSON.parse(JSON.stringify(d.spaceData))}))},resetSpaceStatus:function(){d.spaceExistenceDevice={curtain:!1,light:!0,airConditioner:!1,bodySensor:!1,socket:!1,floorHeating:!1},d.spaceData.map((function(e){e.active=!1})),d.controlMode="",d.isWork=!1,d.roomType="",d.officeData.temperature="",d.seviceEquipmentList=[],d.workkArr=[],d.setForceOverTimeFlag(!1)},isShowMap:!1,defaultSpace:r,moreSpace:function(){d.isShowMap=!0,d.defaultSpace=d.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"),O=Symbol(b),h=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,c,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,y=(n,a)=>{var c=-(n=(e=>{for(let t=e=Object(r.d)(e,0,k());t{n!==v.index&&(v.index=n,a&&t("change",n))};o&&c!==v.offset?b=i:i(),v.offset=c};var S=t=>{JSON.stringify(t)!==JSON.stringify(v.options)&&(v.options=p(t),y(e.defaultIndex))};const C=t=>Object(d.f)(t)&&e.textKey in t?t[e.textKey]:t,w=t=>Object(r.d)(Math.round(-t/e.itemHeight),0,k()-1),D=()=>{o=!1,v.duration=0,b&&(b(),b=null)},E=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())),c=v.offset,v.duration=0,i=Date.now(),u=c,b=null)},x=t=>{e.readonly||(T.move(t),T.isVertical()&&(o=!0,Object(l.e)(t,!0)),v.offset=Object(r.d)(c+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((c,r)=>{var i=C(c),l=h(c);l={role:"button",style:t,tabindex:l?-1:0,class:g("item",{disabled:l,selected:r===v.index}),onClick:()=>{var t=r;o||e.readonly||(b=null,v.duration=200,y(t,!0))}},i={class:"van-ellipsis",[e.allowHtml?"innerHTML":"textContent"]:i};return Object(a.createVNode)("li",l,[n.option?n.option(c):Object(a.createVNode)("div",i,null)])})};return y(v.index),Object(s.k)(O),Object(m.a)({state:v,setIndex:y,getValue:()=>v.options[v.index],setValue:e=>{var t=v["options"];for(let n=0;ne.initialOptions,S),Object(a.watch)(()=>e.defaultIndex,e=>y(e)),()=>Object(a.createVNode)("div",{class:[g(),e.className],onTouchstart:E,onTouchmove:x,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:D},[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(c.a)({},I,{columns:Object(o.a)(),valueKey:String,defaultIndex:Object(o.c)(0),toolbarPosition:Object(o.e)("top"),columnsFieldNames:Object});var y=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(c.a)({text:e.valueKey||"text",values:"values",children:"children"},e.columnsFieldNames),{children:g,linkChildren:h}=Object(s.f)(O),v=(h(),Object(a.computed)(()=>Object(r.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"}),y=()=>g.map(e=>e.state.index),S=(e,t)=>{const n=g[e];n&&(n.setOptions(t),o.value=!0)},C=t=>{let n={[b]:e.columns};var a=y();for(let e=0;e<=t;e++)n=n[b][a[e]];for(;n&&n[b];)t++,S(t,n[b]),n=n[b][n.defaultIndex||0]},w=e=>g[e],D=e=>{const t=w(e);if(t)return t.getValue()},E=(e,t)=>{const n=w(e);n&&(n.setValue(t),"cascade"===I.value&&C(e))},x=e=>{if(e=w(e),e)return e.state.index},N=(e,t)=>{const n=w(e);n&&(n.setIndex(t),"cascade"===I.value&&C(e))},V=()=>g.map(e=>e.getValue()),B=e=>{"plain"===I.value?t(e,D(0),x(0)):t(e,V(),y())},L=e=>{"cascade"===I.value&&C(e),"plain"===I.value?t("change",D(0),x(0)):t("change",V(),e)},A=()=>{g.forEach(e=>e.stopMomentum()),B("confirm")},q=()=>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:q},[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},W=()=>{var t=v.value*+e.visibleItemCount,c={height:t+"px"};return Object(a.createVNode)("div",{class:T("columns"),style:c,onTouchmove:l.e},[d.value.map((t,o)=>{var c;return Object(a.createVNode)(j,{textKey:p,readonly:e.readonly,allowHtml:e.allowHtml,className:t.className,itemHeight:v.value,defaultIndex:null!=(c=t.defaultIndex)?c:+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 c=null!=(t=o.defaultIndex)?t:+e.defaultIndex;for(;a[c]&&a[c].disabled;){if(!(ce[f]&&0!==e[f].length)},{immediate:!0}),Object(m.a)({confirm:A,getValues:V,setValues:e=>{e.forEach((e,t)=>{E(t,e)})},getIndexes:y,setIndexes:e=>{e.forEach((e,t)=>{N(t,e)})},getColumnIndex:x,setColumnIndex:N,getColumnValue:D,setColumnValue:E,getColumnValues:e=>{if(e=w(e),e)return e.state.options},setColumnValues:S}),()=>{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),W(),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=c(t),m=r(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