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