(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-03ee2bea"],{"0653":function(e,t,n){"use strict";n("68ef"),n("5c56")},"0970":function(e,t,n){"use strict";n("60f5")},"0a05":function(e,t,n){},"0c0b":function(e,t,n){"use strict";n("f609")},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&&79e.modelValue===e.activeValue,o=()=>{var a;e.disabled||e.loading||(a=n()?e.inactiveValue:e.activeValue,t("update:modelValue",a),t("change",a))};return Object(i.h)(()=>e.modelValue),()=>{var{size:t,loading:c,disabled:i,activeColor:s,inactiveColor:u}=e,d=n(),t={fontSize:Object(r.b)(t),backgroundColor:d?s:u};return Object(a.createVNode)("div",{role:"switch",class:m({on:d,loading:c,disabled:i}),style:t,tabindex:i?void 0:0,"aria-checked":d,onClick:o},[Object(a.createVNode)("div",{class:m("node")},[(()=>{var t;if(e.loading)return t=n()?e.activeColor:e.inactiveColor,Object(a.createVNode)(l.a,{class:m("loading"),color:t},null)})()])])}}});const u=Object(t.a)(o);var d=u},2447:function(e,t,n){"use strict";n("e384")},"28b1":function(e,t,n){},"34e9":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));t=n("c199");var a=n("7a23"),o=n("fe7e"),c=n("f691"),r=n("b1d2");const[i,l]=Object(o.a)("cell-group");n={title:String,inset:Boolean,border:c.g},o=Object(a.defineComponent)({name:i,inheritAttrs:!1,props:n,setup(e,{slots:t,attrs:n}){const o=()=>{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")},"3f57":function(e,t,n){"use strict";n("bd68")},"407d":function(e,t,n){"use strict";n("bb1b")},4235:function(e,t,n){"use strict";n("6606")},"43c2":function(e,t,n){},4458:function(e,t,n){"use strict";n("86bc")},"48a1":function(e,t,n){"use strict";function a(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)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))},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-5db5738d"),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"},y=["onClick"],I=["src"],S=["src"],C=["src"],w=a((function(){return Object(o.createElementVNode)("span",null,"…",-1)})),E={class:"main-right"},D={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"},P=["onClick"],R={class:"sliders-list",id:"sliderListId"},H={class:"sliders"},z=["onClick","data-index"],G=[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)}))],X={class:"add-time-btn"};n("99af");var Y=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");function oe(e){return Object(o.pushScopeId)("data-v-e19a3620"),e=e(),Object(o.popScopeId)(),e}J={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}},Z=Object(o.defineComponent)({name:ne,props:J,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()])])}}),J=Object(K.a)(Z);var ce=(n("68ef"),n("9617"),n("ac1e"),n("48a1")),re=n("d257"),ie=n("459d"),le=(K=Object(o.defineComponent)({components:{VanSlider:J},props:{workkArr:{type:Array,default:function(){return[]}},projectId:{type:String,default:function(){return""}},spaceInfo:{type:Object,default:function(){}}},setup:function(e,t){var n=Object(o.getCurrentInstance)(),a=Object(re.r)(),c="".concat(Object(re.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(re.t)()),i=Object(o.reactive)({userInfo:r,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,setScreennWidth:function(){var e=document.querySelector("#addTimeId");i.screenInfo.screenWidth=e.offsetWidth},getNowIndex:function(){return Object(re.l)()[1]},getTomorrowIndex:function(){var e=0;return"今天"===i.nowData.week?Object(re.l)()[1]:e},getNowPerstion:function(e){var t=i.getNowIndex(),n={nowIndex:t,len:4},a=e[t].formatTimer,o=i.parseCusStartTime(i.nowData.cusStartTime),c=i.parseCusEndTime(i.nowData.cusEndTime);return o<=a&&a<=c?e.map((function(e,t){e.formatTimer===c&&(n.nowIndex=t)})):ai.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)})),Object(ce.a)(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())})),Object(ce.a)(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(re.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(ie.I)(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&&Y.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))}}),Z=(n("407d"),n("6b0d")),Z=n.n(Z),K=Z()(K,[["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,P)})),128))])):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",R,[(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)})},G)])]),Object(o.createElementVNode)("div",X,[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"}),se={class:"work-space"},me={class:"space-title"},ue={class:"add-time",id:"addTimeId"},de={key:0,class:"date_box"},pe=["onClick"],fe={class:"sliders-list",id:"sliderListId"},be={class:"sliders"},ge=["onClick","data-index"],Oe=["onClick"],he=[oe((function(){return Object(o.createElementVNode)("div",{class:"start",id:"startId"},null,-1)})),oe((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)}))],je={class:"add-time-btn"},ve={key:0,class:"device-title"},Te=[oe((function(){return Object(o.createElementVNode)("span",{class:"line"},null,-1)})),oe((function(){return Object(o.createElementVNode)("span",{class:"text"},"预约开启设备",-1)})),oe((function(){return Object(o.createElementVNode)("span",{class:"line"},null,-1)}))],ke={class:"work-device"},ye=oe((function(){return Object(o.createElementVNode)("div",{class:"row-title"},"空调",-1)})),Ie={class:"device-box"},Se=["onClick"],Ce={class:"row-item"},we=["src"],Ee=oe((function(){return Object(o.createElementVNode)("div",{class:"row-title"},"照明",-1)})),De={class:"device-box"},xe=["onClick"],Ne={class:"row-item"},Ve=["src"],Be={key:2,class:"device-tip"},Le=[oe((function(){return Object(o.createElementVNode)("span",null,[Object(o.createElementVNode)("i",null,"*"),Object(o.createTextVNode)(" 设备加时提示:")],-1)})),oe((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");J=Object(o.defineComponent)({components:{VanSlider:J},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(re.r)(),c="".concat(Object(re.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(re.t)()),i=Object(o.reactive)({userInfo:r,seviceEquipmentList:e.seviceEquipmentList,parseImgUrl:re.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(re.l)()[1]},getTomorrowIndex:function(){var e=0;return"今天"===i.nowData.week?Object(re.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)})),Object(ce.a)(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())})),Object(ce.a)(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(re.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(re.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(ie.K)(e).then((function(e){})).catch((function(){}))},setallLampHttp:function(e){Object(ie.L)(e).then((function(e){})).catch((function(){}))},saveBatchCustomScene:function(e){i.showLoading=!0,i.formBtn=!0,Object(ie.I)(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&&Y.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"),J=Z()(J,[["render",function(e,t,n,a,c,r){var i=Object(o.resolveComponent)("van-loading");return Object(o.openBlock)(),Object(o.createElementBlock)("div",le,[Object(o.createElementVNode)("div",se,[Object(o.createElementVNode)("div",me,Object(o.toDisplayString)(e.spaceInfo.spaceName)+" 申请延时",1)]),Object(o.createElementVNode)("div",ue,[e.dateArr&&e.dateArr.length?(Object(o.openBlock)(),Object(o.createElementBlock)("div",de,[(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,pe)})),128))])):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",fe,[(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",be,[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,ge)])])})),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,Oe)})),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)})},he)])]),Object(o.createElementVNode)("div",je,[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",ve,Te)):Object(o.createCommentVNode)("",!0),Object(o.createElementVNode)("div",ke,[e.isAir?(Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,{key:0},[ye,Object(o.createElementVNode)("div",Ie,[(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",Ce,[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,we)])],12,Se)):Object(o.createCommentVNode)("",!0)],64)})),128))])],64)):Object(o.createCommentVNode)("",!0),e.isLight?(Object(o.openBlock)(),Object(o.createElementBlock)(o.Fragment,{key:1},[Ee,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.lightNum?"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,xe)):Object(o.createCommentVNode)("",!0)],64)})),128))])],64)):Object(o.createCommentVNode)("",!0),e.isAir?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Be,Le)):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 Ae={class:"contact-content"},qe=Object(o.createElementVNode)("div",{class:"title"},"联系我们",-1),Me={class:"contact"},We={class:"code-box"},Fe=["src"],Ue=Object(o.createElementVNode)("div",{class:"title"},"客服微信二维码",-1),_e={class:"phone-box"},Pe=["src"],Re={class:"title"},He=Object(o.createElementVNode)("div",{class:"concat-text"},"联系方式",-1),ze=Object(o.createTextVNode)("我知道了"),Ge=n("543e"),Xe=(n("e7e5"),Object(re.t)()),Ye=Object(o.defineComponent)({props:{isShowContact:{type:Boolean,default:function(){return!1}},contantDetail:{type:Object,default:function(){}}},components:Object(A.a)({VanLoading:Ge.b},Y.a.Component.name,Y.a.Component),setup:function(e,t){var n=Object(o.getCurrentInstance)(),a=Object(o.reactive)({parseImgUrl:re.y,contantDetail:e.contantDetail,userInfo:Xe,imgUrl:n.proxy.$imgUrl,isShowContact:e.isShowContact,closeDailog:function(){t.emit("closeDailog")},queryCustomerservice:function(){var e={criteria:{projectId:a.userInfo.projectId}};Object(ie.C)(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))}}),Ke=(Ye=(n("4458"),Z()(Ye,[["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",Ae,[qe,Object(o.createElementVNode)("div",Me,[Object(o.createElementVNode)("div",We,[Object(o.createElementVNode)("img",{src:e.imgUrl+"&key="+e.contantDetail.wechatQrCode,alt:""},null,8,Fe),Ue]),Object(o.createElementVNode)("div",_e,[Object(o.createElementVNode)("img",{src:e.parseImgUrl("ipdImages","phone-icon.svg"),alt:""},null,8,Pe),Object(o.createElementVNode)("div",Re,Object(o.toDisplayString)(e.contantDetail.phone),1),He])]),Object(o.createVNode)(i,{class:"dailog-btn",onClick:e.closeDailog},{default:Object(o.withCtx)((function(){return[ze]})),_:1},8,["onClick"])])]})),_:1},8,["show"])}]])),{class:"scene-config"}),Je=["src"],Ze={class:"time-text"},$e=["src"],Qe=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 et(e){return Object(o.pushScopeId)("data-v-10ea159b"),e=e(),Object(o.popScopeId)(),e}var tt=n("6c02"),nt=n("0613"),at={class:"air-dialog-content"},ot={class:"dialog-top"},ct=["src"],rt=et((function(){return Object(o.createElementVNode)("div",{class:"leave-title"},"工作辛苦了!",-1)})),it={class:"leave-popup-body"},lt={key:1,class:"text-status"},st={key:2,class:"text-status grey"},mt=[et((function(){return Object(o.createElementVNode)("span",null,"隐藏",-1)}))],ut=Object(o.defineComponent)({props:{isShowLeaveDailog:{type:Boolean,default:function(){return!1}}},components:Object(A.a)({VanLoading:Ge.b},Y.a.Component.name,Y.a.Component),setup:function(e,t){var n=Object(o.reactive)({parseImgUrl:re.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))}}),dt=(ut=(n("1196"),Z()(ut,[["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",at,[Object(o.createElementVNode)("div",ot,[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,ct)):Object(o.createCommentVNode)("",!0)]),rt,Object(o.createElementVNode)("div",it,[(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",lt)):Object(o.createCommentVNode)("",!0),"grey"===e.status?(Object(o.openBlock)(),Object(o.createElementBlock)("span",st)):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)})},mt)])]})),_:1},8,["show"])}],["__scopeId","data-v-10ea159b"]])),ut=Object(o.defineComponent)({props:{workkArr:{type:Array,default:function(){return[]}}},components:{LeaveDailog:ut},setup:function(e,t){Object(o.getCurrentInstance)();var n=Object(tt.d)(),a=(Object(nt.b)(),Object(o.reactive)({parseImgUrl:re.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(re.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(re.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(ie.I)(a.delTimeArr).then((function(e){a.leaveBtnFlag=!1,t.emit("closeWork");var n=Object(wt.setTimeout)((function(){t.emit("leaveWork"),Object(wt.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))}}),Ct=(n("4b8a"),Z()(Ct,[["render",function(e,t,n,a,c,r){var i=Object(o.resolveComponent)("leave-dailog");return Object(o.openBlock)(),Object(o.createElementBlock)("div",dt,[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,pt),Object(o.createElementVNode)("div",ft,[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,bt),gt])):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"}),Dt=["onClick"],xt=["src"];function Nt(e){return Object(o.pushScopeId)("data-v-3e78a67a"),e=e(),Object(o.popScopeId)(),e}var Vt=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(tt.d)(),a=(Object(nt.b)(),{DISCUSSING:Object(re.y)("ipdImages","taolun.svg"),PROJECTING:Object(re.y)("ipdImages","touying.svg"),ADJOURNMENT:Object(re.y)("ipdImages","sanhui.svg")}),c=Object(o.reactive)({parseImgUrl:re.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(re.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(ie.M)(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))}}),Bt=(Vt=(n("b2ec"),Z()(Vt,[["render",function(e,t,n,a,c,r){return Object(o.openBlock)(),Object(o.createElementBlock)("div",Et,[(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,xt),Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(t.sceneName),1)],14,Dt)})),128))])}],["__scopeId","data-v-0c8e2a5e"]])),n("0500")),Lt={class:"header-content"},At={class:"weather"},qt=["src"],Mt={class:"weather-text"},Wt={class:"pr5"},Ft=Nt((function(){return Object(o.createElementVNode)("span",null,"/",-1)})),Ut=Nt((function(){return Object(o.createElementVNode)("span",{class:"pr5"},"PM2.5",-1)})),_t={class:"pr5"};function Pt(e){return Object(o.pushScopeId)("data-v-0618bc38"),e=e(),Object(o.popScopeId)(),e}var Rt=n("ad06"),Ht=(n("c3a6"),Object(o.defineComponent)({props:{outWeather:{type:Object,default:function(){return{}}}},components:{VanIcon:Rt.b},setup:function(){var e=Object(tt.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))}})),zt=(Ht=(n("7ed5"),Z()(Ht,[["render",function(e,t,n,a,c,r){return Object(o.openBlock)(),Object(o.createElementBlock)("div",Lt,[Object(o.createElementVNode)("div",At,[Object(o.withDirectives)(Object(o.createElementVNode)("img",{src:e.outWeather.imgname,class:"weather-icon",alt:""},null,8,qt),[[o.vShow,e.outWeather.imgname]]),Object(o.createElementVNode)("div",Mt,[Object(o.createElementVNode)("p",null,[Object(o.createElementVNode)("span",Wt,Object(o.toDisplayString)(e.outWeather.temperature||"--")+"℃",1),Ft,Ut,Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(e.outWeather.pm25||"--"),1)]),Object(o.createElementVNode)("p",null,[Object(o.createElementVNode)("span",_t,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")),Gt={class:"air"},Xt={class:"air-top"},Yt={class:"air-desc"},Kt=Pt((function(){return Object(o.createElementVNode)("p",{class:"air-title"},"空调",-1)})),Jt={class:"air-temperature"},Zt={key:0},$t={key:0,class:"air-status"},Qt={key:1,class:"air-loading"},en=["src"],tn={class:"air-right"},nn=["src"],an={key:0,class:"air-control"},on=Pt((function(){return Object(o.createElementVNode)("div",{class:"control-title"},"温度调节",-1)})),cn={class:"btn-box"},rn=["src"],ln=["src"],sn={key:1,class:"air-control"},mn=Pt((function(){return Object(o.createElementVNode)("div",{class:"control-title"},"风量调节",-1)})),un={class:"btn-box"},dn=["src"],pn=["src"],fn={class:"air-dialog-content"},bn={class:"dialog-top"},gn=["src"],On={class:"dialog-text"},hn={class:"air-body-item-num"},jn={key:0,class:"air-temp-num"},vn={key:1,class:"air-temp-load"},Tn={key:0,class:"air-notice"},kn=[Pt((function(){return Object(o.createElementVNode)("span",null,"确定",-1)}))];function yn(e){return Object(o.pushScopeId)("data-v-00673b20"),e=e(),Object(o.popScopeId)(),e}var In=n("1a23"),Sn=(n("b000"),n("d399")),Cn=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}},disable:{type:Boolean,default:function(){return!1}}},components:(Cn={Switch:In.b},Object(A.a)(Cn,Y.a.Component.name,Y.a.Component),Object(A.a)(Cn,"Loading",Ge.b),Cn),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:re.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(ie.h)(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(re.a)(e.tempSet))}))},getFloorHeatingList:function(){var e=Object(re.B)({spaceId:n.spaceId});Object(ie.E)(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(ie.K)(e).then((function(e){n.loadinngEnd()})).catch((function(){n.loadinngEnd(),Object(Sn.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)})),Object(ce.a)(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)})),Object(ce.a)(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"),vr=Z()(jr,[["render",function(e,t,n,a,c,r){return Object(o.openBlock)(),Object(o.createElementBlock)("div",Tr,[Object(o.createElementVNode)("div",kr,[Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(e.lightData.localName),1)]),e.lightData.bright?(Object(o.openBlock)(),Object(o.createElementBlock)("div",yr,[Object(o.createElementVNode)("div",Ir,[Sr,Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(e.lightData.brightValueRate)+"%",1)]),Object(o.createElementVNode)("div",Cr,[Object(o.createElementVNode)("div",wr,[Object(o.createElementVNode)("div",{class:"item-now",style:Object(o.normalizeStyle)({width:e.itemWidth})},null,4),Er])])])):Object(o.createCommentVNode)("",!0),e.lightData.colorTemperature?(Object(o.openBlock)(),Object(o.createElementBlock)("div",Dr,[Object(o.createElementVNode)("div",xr,[Nr,Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(e.lightData.colorTempValueRate)+"%",1)]),Vr])):Object(o.createCommentVNode)("",!0)])}],["__scopeId","data-v-b4fb4e34"]]);var Lr={class:"light-temp"},Ar=Br((function(){return Object(o.createElementVNode)("div",{class:"light-tep-top"},[Object(o.createElementVNode)("span",null,"地暖")],-1)})),qr={class:"bright-box"},Mr={class:"bight-text"},Wr=Br((function(){return Object(o.createElementVNode)("span",null,"温度调节",-1)})),Fr={class:"control-box"},Ur={class:"temp-slider",id:"slideFloorId2"},_r=Br((function(){return Object(o.createElementVNode)("div",{class:"slider-bar",id:"barFloorId2"},[Object(o.createElementVNode)("div",{class:"bar-circle",id:"handFloorId2"})],-1)})),Pr={class:"temp-left",id:"tempLeftId"},Rr={class:"temp-right"};function Hr(e){return Object(o.pushScopeId)("data-v-572df90f"),e=e(),Object(o.popScopeId)(),e}gr=Object(o.defineComponent)({props:{floorData:{type:Object,default:function(){}}},components:{Switch:In.b},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(ie.K)(e).then((function(e){})).catch((function(){Object(Sn.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"),Or=Z()(gr,[["render",function(e,t,n,a,c,r){return Object(o.openBlock)(),Object(o.createElementBlock)("div",Lr,[Ar,Object(o.createElementVNode)("div",qr,[Object(o.createElementVNode)("div",Mr,[Wr,Object(o.createElementVNode)("span",null,Object(o.toDisplayString)(e.realTemp||"--")+"℃",1)]),Object(o.createElementVNode)("div",Fr,[Object(o.createElementVNode)("div",Ur,[_r,Object(o.createElementVNode)("div",Pr,Object(o.toDisplayString)(e.floorData.minTempSet),1),Object(o.createElementVNode)("div",Rr,Object(o.toDisplayString)(e.floorData.maxTempSet),1)])])])])}],["__scopeId","data-v-7c23f336"]]);var zr={class:"air"},Gr={class:"child-title"},Xr={class:"child-box"},Yr={key:0,class:"air-control"},Kr={class:"air-title"},Jr=Hr((function(){return Object(o.createElementVNode)("div",null,"温度设定",-1)})),Zr=Hr((function(){return Object(o.createElementVNode)("div",null,null,-1)})),$r={class:"control-box"},Qr={class:"temp-slider",id:"chlidAirSliderId"},ei=Hr((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)})),ti={class:"temp-left"},ni={class:"temp-right"},ai={key:1,class:"air-control"},oi={class:"air-title"},ci=Hr((function(){return Object(o.createElementVNode)("div",null,"风速",-1)})),ri=Hr((function(){return Object(o.createElementVNode)("div",null,null,-1)})),ii={class:"volume-box"},li={class:"number"},si={class:"control-box control-box-padding"},mi={class:"icon-box"},ui=["src"],di=Hr((function(){return Object(o.createElementVNode)("span",null,"调小",-1)})),pi={class:"icon-box"},fi=["src"],bi=Hr((function(){return Object(o.createElementVNode)("span",null,"调大",-1)})),gi={class:"icon-box"},Oi=["src"],hi=Hr((function(){return Object(o.createElementVNode)("span",null,"自动",-1)})),ji={key:2,class:"air-control"},vi={class:"air-title"},Ti=Hr((function(){return Object(o.createElementVNode)("div",null,"模式",-1)})),ki=Hr((function(){return Object(o.createElementVNode)("div",null,null,-1)})),yi={key:0},Ii={key:1},Si={key:2},Ci={class:"control-box control-box-padding"},wi={class:"icon-box"},Ei=["src"],Di=Hr((function(){return Object(o.createElementVNode)("span",null,"制冷",-1)})),xi={class:"icon-box"},Ni=["src"],Vi=Hr((function(){return Object(o.createElementVNode)("span",null,"制热",-1)})),Bi={class:"icon-box"},Li=["src"],Ai=Hr((function(){return Object(o.createElementVNode)("span",null,"通风",-1)})),qi=(jr=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:In.b},Y.a.Component.name,Y.a.Component),setup:function(e,t){var n=Object(o.reactive)({seviceEquipmentList:e.seviceEquipmentList,lightColorImg:Object(re.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:re.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(ie.H)(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;ae.length)&&(t=e.length);for(var n=0,a=new Array(t);np(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,y=()=>e.itemHeight*(+e.visibleItemCount-1)/2,I=(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),I(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),E=()=>{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-y())),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,I(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 I(v.index),Object(s.k)(O),Object(m.a)({state:v,setIndex:I,getValue:()=>v.options[v.index],setValue:e=>{var t=v["options"];for(let n=0;ne.initialOptions,S),Object(a.watch)(()=>e.defaultIndex,e=>I(e)),()=>Object(a.createVNode)("div",{class:[g(),e.className],onTouchstart:D,onTouchmove:x,onTouchend:N,onTouchcancel:N},[Object(a.createVNode)("ul",{ref:j,style:{transform:`translate3d(0, ${v.offset+y()}px, 0)`,transitionDuration:v.duration+"ms",transitionProperty:v.duration?"all":"none"},class:g("wrapper"),onTransitionend:E},[V()])])}});const[v,T,k]=Object(t.a)("picker"),y={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)({},y,{columns:Object(o.a)(),valueKey:String,defaultIndex:Object(o.c)(0),toolbarPosition:Object(o.e)("top"),columnsFieldNames:Object});var I=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))),y=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"}),I=()=>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=I();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],E=e=>{const t=w(e);if(t)return t.getValue()},D=(e,t)=>{const n=w(e);n&&(n.setValue(t),"cascade"===y.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"===y.value&&C(e))},V=()=>g.map(e=>e.getValue()),B=e=>{"plain"===y.value?t(e,E(0),x(0)):t(e,V(),I())},L=e=>{"cascade"===y.value&&C(e),"plain"===y.value?t("change",E(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"===y.value)d.value=[{[f]:n}];else if("cascade"===y.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)=>{D(t,e)})},getIndexes:I,setIndexes:e=>{e.forEach((e,t)=>{N(t,e)})},getColumnIndex:x,setColumnIndex:N,getColumnValue:E,setColumnValue:D,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