(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3f89b088"],{"162a":function(e,t,n){e.exports=n.p+"static/img/deviceroom.01480d11.svg"},"2b48":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAA3SURBVHgBzcmxDQAgCAVRPxO5ipM6ko0xxkYnQKUHaq654iEZ9bUzMSo8ZLpFxTFPk4dAycXfA1ISQWorFT5NAAAAAElFTkSuQmCC"},"2de2":function(e,t,n){"use strict";n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"e",(function(){return a})),n.d(t,"a",(function(){return i}));var c="/duoduo-service/setup-service/",o="/duoduo-service/object-service/",r="/duoduo-service/duoduoenv-service/",a="/duoduo-service/",i="/duoduo-service/custom-service/"},"459d":function(e,t,n){"use strict";n.d(t,"h",(function(){return a})),n.d(t,"C",(function(){return i})),n.d(t,"w",(function(){return u})),n.d(t,"o",(function(){return s})),n.d(t,"j",(function(){return d})),n.d(t,"k",(function(){return f})),n.d(t,"b",(function(){return p})),n.d(t,"m",(function(){return b})),n.d(t,"P",(function(){return l})),n.d(t,"N",(function(){return v})),n.d(t,"A",(function(){return j})),n.d(t,"p",(function(){return m})),n.d(t,"Q",(function(){return g})),n.d(t,"a",(function(){return O})),n.d(t,"g",(function(){return y})),n.d(t,"f",(function(){return h})),n.d(t,"l",(function(){return S})),n.d(t,"n",(function(){return A})),n.d(t,"v",(function(){return q})),n.d(t,"x",(function(){return x})),n.d(t,"E",(function(){return w})),n.d(t,"t",(function(){return T})),n.d(t,"d",(function(){return P})),n.d(t,"B",(function(){return C})),n.d(t,"y",(function(){return E})),n.d(t,"z",(function(){return k})),n.d(t,"I",(function(){return I})),n.d(t,"F",(function(){return L})),n.d(t,"K",(function(){return M})),n.d(t,"i",(function(){return N})),n.d(t,"s",(function(){return D})),n.d(t,"M",(function(){return G})),n.d(t,"D",(function(){return V})),n.d(t,"e",(function(){return B})),n.d(t,"J",(function(){return R})),n.d(t,"c",(function(){return U})),n.d(t,"G",(function(){return z})),n.d(t,"r",(function(){return X})),n.d(t,"q",(function(){return Y})),n.d(t,"H",(function(){return F})),n.d(t,"O",(function(){return Q})),n.d(t,"L",(function(){return W})),n.d(t,"u",(function(){return J}));n("99af");var c=n("59b9"),o=n("ba72"),r=n("2de2"),a=function(e){return Object(c["b"])().request("/api/company/config/".concat(e.companyId),o["b"].GET,void 0,o["a"].json)},i=function(e){return Object(c["b"])().request("".concat(r["c"],"weather/getCurrent?").concat(e),o["b"].GET,void 0,o["a"].json)},u=function(e){return Object(c["b"])().request("".concat(r["b"],"space/property"),o["b"].POST,e,o["a"].json)},s=function(e){return Object(c["b"])().request("".concat(r["b"],"meeting/room/scene/getMeetingScene/V2?spaceId=").concat(e.spaceId),o["b"].GET,void 0,o["a"].json)},d=function(e){return Object(c["b"])().request("".concat(r["b"],"object/equipment/findForServe?spaceId=").concat(e.spaceId),o["b"].POST,void 0,o["a"].json)},f=function(e){return Object(c["b"])().request("".concat(r["b"],"custom/feedback/documents"),o["b"].POST,e,o["a"].json)},p=function(e){return Object(c["b"])().request("".concat(r["b"],"custom/feedbackCreate/v2"),o["b"].POST,e,o["a"].json)},b=function(e){return Object(c["b"])({timeout:1e3}).request("".concat(r["b"],"light/status/query?spaceId=").concat(e.spaceId),o["b"].GET,void 0,o["a"].json)},l=function(e){return Object(c["c"])("".concat(r["b"],"light/onoff/set"),e)},v=function(e){return Object(c["c"])("".concat(r["b"],"object/eqp/infocode/set"),e)},j=function(e){return Object(c["c"])("".concat(r["b"],"light/onoff/setSatus"),e)},m=function(e){return Object(c["b"])().request("".concat(r["b"],"object/objectDataEqpGroup/query"),o["b"].POST,e,o["a"].json)},g=function(e){return Object(c["b"])().request("".concat(r["b"],"meeting/room/scene/switchover"),o["b"].POST,e,o["a"].json)},O=function(e){return Object(c["b"])().request("".concat(r["b"],"customScene/create"),o["b"].POST,e,o["a"].json)},y=function(e){return Object(c["b"])().request("".concat(r["b"],"/spaceAdjust/queryPropertyData?").concat(e),o["b"].GET,void 0,o["a"].json)},h=function(e){return Object(c["b"])().request("".concat(r["c"],"object/building/query"),o["b"].POST,e,o["a"].json)},S=function(e){return Object(c["b"])().request("".concat(r["c"],"object/floor/query"),o["b"].POST,e,o["a"].json)},A=function(e){return Object(c["b"])().request("".concat(r["d"],"map/queryMapInfo"),o["b"].POST,e,o["a"].json)},q=function(e){return Object(c["b"])().request("".concat(r["c"],"object/equipment/querySpaceEquipType?").concat(e),o["b"].GET,void 0,o["a"].json)},x=function(e){return Object(c["b"])().request("".concat(r["c"],"object/space/query"),o["b"].POST,e,o["a"].json)},w=function(e){return Object(c["b"])().request("".concat(r["d"],"permanentSpace/save"),o["b"].POST,e,o["a"].json)},T=function(){return Object(c["b"])().request("".concat(r["d"],"permanentSpace/query"),o["b"].GET,void 0,o["a"].json)},P=function(e){return Object(c["b"])().request("".concat(r["d"],"permanentSpace/delete?").concat(e))},C=function(){return Object(c["b"])().request("".concat(r["d"],"permanentSpace/queryZJ"),o["b"].GET,void 0,o["a"].json)},E=function(){return Object(c["b"])().request("".concat(r["c"],"object/equipment/querySpaceModeSet"),o["b"].GET,void 0,o["a"].json)},k=function(){return Object(c["b"])().request("".concat(r["c"],"object/equipment/querySpaceTempSet"),o["b"].GET,void 0,o["a"].json)},I=function(e){return Object(c["b"])().request("".concat(r["d"],"scene/querySpaceSceneConfig?").concat(e),o["b"].GET,void 0,o["a"].json)},L=function(e){return Object(c["b"])().request("".concat(r["b"],"customScene/queryCustomAndScence?").concat(e),o["b"].GET,void 0,o["a"].json)},M=function(e){return Object(c["c"])("".concat(r["b"],"customScene/saveBatchCustomScene"),e)},N=function(e){return Object(c["b"])().request("".concat(r["d"],"padSpace/getDefaultLocation?").concat(e),o["b"].GET,void 0,o["a"].json)},D=function(e){return Object(c["b"])().request("".concat(r["d"],"padSpace/getPadSpaceList?").concat(e),o["b"].GET,void 0,o["a"].json)},G=function(e){return Object(c["b"])().request("".concat(r["d"],"padSpace/saveWorkSpace"),o["b"].POST,e,o["a"].json)},V=function(e){return Object(c["b"])().request("".concat(r["d"],"padSpace/insertWorkSpace"),o["b"].POST,e,o["a"].json)},B=function(e){return Object(c["b"])().request("".concat(r["d"],"padSpace/deleteWorkSpace"),o["b"].POST,e,o["a"].json)},R=function(e){return Object(c["b"])().request("".concat(r["d"],"padSpace/queryWorkSpace"),o["b"].POST,e,o["a"].json)},U=function(e){return Object(c["b"])().request("".concat(r["d"],"padSpace/queryWorkSpace"),o["b"].POST,e,o["a"].json)},z=function(e){return Object(c["b"])().request("".concat(r["e"],"wechat-service-duoduoenv/duoduoenv/customerservice/query"),o["b"].POST,e,o["a"].json)},X=function(e){return Object(c["b"])().request("".concat(r["d"],"padLogin/getPadQrCodeStatus?").concat(e),o["b"].GET,void 0,o["a"].json)},Y=function(e){return Object(c["b"])().request("".concat(r["d"],"padImage/queryImageByFuncType?").concat(e),o["b"].GET,void 0,o["a"].json)},F=function(e){return Object(c["b"])().request("".concat(r["b"],"ctrl/querySpaceConditioners?").concat(e),o["b"].GET,void 0,o["a"].json)},Q=function(e){return Object(c["c"])("".concat(r["b"],"ctrl/set"),e)},W=function(e){return Object(c["b"])().request("".concat(r["d"],"/map/saveMapPointInfo"),o["b"].POST,e,o["a"].json)},J=function(e){return Object(c["b"])().request("".concat(r["a"],"equipmentRun/queryEquipmentRunConfig?").concat(e),o["b"].GET,void 0,o["a"].json)}},"46f5":function(e,t,n){var c={"./babyselected.svg":"98fb","./bg_disable.png":"2b48","./coffee.svg":"5ff7","./coffeeselected.svg":"472f","./dev.svg":"56d9","./device.svg":"920e","./deviceroom.svg":"162a","./weather.svg":"8c6e"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(c,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return c[e]}o.keys=function(){return Object.keys(c)},o.resolve=r,e.exports=o,o.id="46f5"},"472f":function(e,t,n){e.exports=n.p+"static/img/coffeeselected.1e7d4057.svg"},"48a1":function(e,t,n){"use strict";function c(e,t){var n=!1,c=0,o=0,r=0,a=0,i=0,u=0,s=function(){},d={swipeLeft:s,swipeRight:s,swipeDown:s,swipeUp:s,drag:s};Object.assign(d,t),e.addEventListener("touchstart",(function(e){c=e.touches[0].pageX,o=e.touches[0].pageY,i=0,u=0}),{passive:!0}),e.addEventListener("touchmove",(function(t){if(n=!0,r=t.touches[0].pageX,a=t.touches[0].pageY,t.mation={startX:c,startY:o,moveX:r,moveY:a,disX:i,disY:u},d.drag.call(e,t),n){var s=Math.abs(r-c),f=Math.abs(a-o);s>f?r-c>0?d.swipeRight.call(e,t):d.swipeLeft.call(e,t):a-c>0?d.swipeDown.call(e,t):d.swipeUp.call(e,t)}}),{passive:!0}),e.addEventListener("touchend",(function(e){n=!1}))}n.d(t,"a",(function(){return c}))},"4de5":function(e,t,n){"use strict";n("6147")},"56d9":function(e,t,n){e.exports=n.p+"static/img/dev.941b2e3a.svg"},"5ff7":function(e,t,n){e.exports=n.p+"static/img/coffee.fc03c8ec.svg"},6147:function(e,t,n){},"81d5":function(e,t,n){"use strict";var c=n("7b0b"),o=n("23cb"),r=n("50c4");e.exports=function(e){var t=c(this),n=r(t.length),a=arguments.length,i=o(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,s=void 0===u?n:o(u,n);while(s>i)t[i++]=e;return t}},"8c6e":function(e,t,n){e.exports=n.p+"static/img/weather.742cc8c0.svg"},"920e":function(e,t,n){e.exports=n.p+"static/img/device.01480d11.svg"},"98fb":function(e,t,n){e.exports=n.p+"static/img/babyselected.422eb07d.svg"},cb29:function(e,t,n){var c=n("23e7"),o=n("81d5"),r=n("44d2");c({target:"Array",proto:!0},{fill:o}),r("fill")},e615:function(e,t,n){"use strict";n.r(t);var c=n("7a23"),o=function(e){return Object(c["pushScopeId"])("data-v-04b8e19e"),e=e(),Object(c["popScopeId"])(),e},r={class:"com-upload",style:{position:"relative"}},a={class:"search-bt",style:{position:"fixed",right:"20px",top:"80px","z-index":"999"}},i=o((function(){return Object(c["createElementVNode"])("div",{class:"canvas-box",id:"canvasBox"},[Object(c["createElementVNode"])("canvas",{id:"myCanvas",class:"canvas-dom",style:{boder:"1px solid red"}})],-1)}));function u(e,t,n,o,u,s){var d=Object(c["resolveComponent"])("van-search"),f=Object(c["resolveComponent"])("van-icon");return Object(c["openBlock"])(),Object(c["createElementBlock"])("div",r,[Object(c["createVNode"])(d,{modelValue:e.spaceName,"onUpdate:modelValue":[t[0]||(t[0]=function(t){return e.spaceName=t}),e.searchSpace],class:"space-search",placeholder:"请输入搜索关键词"},null,8,["modelValue","onUpdate:modelValue"]),Object(c["createElementVNode"])("div",a,[Object(c["createElementVNode"])("div",{onClick:t[1]||(t[1]=function(){return e.zommAdd&&e.zommAdd.apply(e,arguments)}),style:{display:"inline-block","font-size":"30px"}},[Object(c["createVNode"])(f,{name:"add-o",color:"#1989fa"})]),Object(c["createElementVNode"])("div",{onClick:t[2]||(t[2]=function(){return e.zommDel&&e.zommDel.apply(e,arguments)}),style:{display:"inline-block","font-size":"30px"}},[Object(c["createVNode"])(f,{name:"minus",color:"#1989fa"})])]),i])}n("cb29"),n("d81d");var s=n("5530"),d=n("d961"),f=(n("5852"),n("459d")),p=n("d257"),b=n("48a1"),l=Object(c["defineComponent"])({components:{VanSearch:d["a"]},setup:function(){var e=[],t={},o={},r=Object(c["reactive"])({spaceList:e,copySpaceArr:e,parseImgUrl:p["x"],spaceName:"",width:3361.136,height:2729.25,scale:1,ctx:t,centerObj:o,searchSpace:function(){r.spaceList.map((function(e){e.localName==r.spaceName&&(e.fillColor="red",e.shadow=!0,r.initCanvas())}))},zommAdd:function(){r.scale>3||(r.scale=r.scale+.1,r.formSpaceData(),r.initCanvas())},zommDel:function(){r.scale<.3||(r.scale=r.scale-.1,r.formSpaceData(),r.initCanvas())},sliderSwiper:function(){var e=document.querySelector("#sliderListId");e.addEventListener("touchstart",(function(e){})),Object(b["a"])(e,{swipeLeft:function(e){},swipeRight:function(e){}})},initCanvas:function(){var e=document.querySelector("#myCanvas"),t=e.getContext("2d");r.drawDpiBegin(e,t,r.width,r.height),r.ctx=t,r.spaceList.map((function(e){if(e.canClick){var c=e.circlePoint;t.beginPath(),t.fillStyle=e.fillColor;var o=[],a=[];e.pointArr.map((function(e,n){e.left=e.left,e.top=e.top,0==n?t.moveTo(e.left,e.top):t.lineTo(e.left,e.top),o.push(e.left),a.push(e.top)})),t.closePath(),t.fill(),t.lineWidth=1,t.strokeStyle="rgba(15, 206, 233, 1)",t.stroke(),t.beginPath(),c&&c.length&&(t.lineTo(c[3].left,c[3].top),t.bezierCurveTo(c[2].left,c[2].top,c[1].left,c[1].top,c[0].left,c[0].top)),t.closePath(),t.fill(),t.lineWidth=1,t.strokeStyle="rgba(15, 206, 233, 1)",t.stroke();var i=r.MaxAndMin(o)[1]-r.MaxAndMin(o)[0],u=r.MaxAndMin(a)[1]-r.MaxAndMin(a)[0],s=i100&&t.fillText(e.localName,e.logPointArr[0].left,e.logPointArr[0].top,e.width),t.closePath(),e.shadow&&(e.shadowColor="#000000",t.shadowOffsetX=-50,t.shadowOffsetY=-50,t.shadowBlur=10)}else{var d=new Image;d.src=n("2b48"),d.onload=function(){t.beginPath(),e.pointArr.map((function(e,n){0===n?t.moveTo(e.left,e.top):t.lineTo(e.left,e.top)}));var n=t.createPattern(d,"repeat");t.fillStyle=n,t.fill(),t.closePath(),t.strokeStyle="rgba(15, 206, 233, 1)",t.stroke()}}})),r.drawDpiEnd(e,t)},MaxAndMin:function(e){return[Math.min.apply(null,e),Math.max.apply(null,e)]},bindEvent:function(){var e=document.querySelector("#myCanvas");e.addEventListener("click",r.detect)},drawDpiBegin:function(e,t,n,c){t.save();var o=window.devicePixelRatio;e.setAttribute("width",n*o),e.setAttribute("height",c*o),e.style.width=n+"px",e.style.height=c+"px",t.scale(o,o)},drawDpiEnd:function(e,t){t.restore()},detect:function(e){for(var t=document.querySelector("#myCanvas"),n=e.clientX-t.getBoundingClientRect().left,c=e.clientY-t.getBoundingClientRect().top,o=0;o=e.left&&n<=e.left+20&&c>=e.top&&c