(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-230ff16d","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 c})),o.d(e,"b",(function(){return n})),o.d(e,"a",(function(){return l})),o.d(e,"d",(function(){return r}));var c="/duoduo-service/setup-service/",n="/duoduo-service/object-service/",l="/duoduo-service/duoduoenv-service/",r="/duoduo-service/"},"459d":function(t,e,o){"use strict";o.d(e,"h",(function(){return r})),o.d(e,"C",(function(){return i})),o.d(e,"w",(function(){return a})),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 x})),o.d(e,"A",(function(){return m})),o.d(e,"p",(function(){return g})),o.d(e,"P",(function(){return A})),o.d(e,"a",(function(){return P})),o.d(e,"g",(function(){return j})),o.d(e,"f",(function(){return O})),o.d(e,"l",(function(){return h})),o.d(e,"n",(function(){return y})),o.d(e,"v",(function(){return I})),o.d(e,"x",(function(){return S})),o.d(e,"E",(function(){return C})),o.d(e,"t",(function(){return q})),o.d(e,"d",(function(){return k})),o.d(e,"B",(function(){return w})),o.d(e,"y",(function(){return T})),o.d(e,"z",(function(){return N})),o.d(e,"I",(function(){return E})),o.d(e,"F",(function(){return K})),o.d(e,"K",(function(){return L})),o.d(e,"i",(function(){return M})),o.d(e,"s",(function(){return D})),o.d(e,"L",(function(){return G})),o.d(e,"D",(function(){return H})),o.d(e,"e",(function(){return J})),o.d(e,"J",(function(){return Z})),o.d(e,"c",(function(){return B})),o.d(e,"G",(function(){return V})),o.d(e,"r",(function(){return R})),o.d(e,"q",(function(){return U})),o.d(e,"H",(function(){return z})),o.d(e,"N",(function(){return X}));o("99af");var c=o("59b9"),n=o("ba72"),l=o("2de2"),r=function(t){return Object(c["b"])().request("/api/company/config/".concat(t.companyId),n["b"].GET,void 0,n["a"].json)},i=function(t){return Object(c["b"])().request("".concat(l["b"],"weather/getCurrent?").concat(t),n["b"].GET,void 0,n["a"].json)},a=function(t){return Object(c["b"])().request("".concat(l["a"],"space/property"),n["b"].POST,t,n["a"].json)},f=function(t){return Object(c["b"])().request("".concat(l["a"],"meeting/room/scene/getMeetingScene/V2?spaceId=").concat(t.spaceId),n["b"].GET,void 0,n["a"].json)},p=function(t){return Object(c["b"])().request("".concat(l["a"],"object/equipment/findForServe?spaceId=").concat(t.spaceId),n["b"].POST,void 0,n["a"].json)},u=function(t){return Object(c["b"])().request("".concat(l["a"],"customScene/queryCustom?spaceId=").concat(t.spaceId),n["b"].GET,void 0,n["a"].json)},s=function(t){return Object(c["b"])().request("".concat(l["a"],"custom/feedback/documents"),n["b"].POST,t,n["a"].json)},d=function(t){return Object(c["b"])().request("".concat(l["a"],"custom/feedbackCreate/v2"),n["b"].POST,t,n["a"].json)},b=function(t){return Object(c["b"])({timeout:1e3}).request("".concat(l["a"],"light/status/query?spaceId=").concat(t.spaceId),n["b"].GET,void 0,n["a"].json)},v=function(t){return Object(c["c"])("".concat(l["a"],"light/onoff/set"),t)},x=function(t){return Object(c["c"])("".concat(l["a"],"object/eqp/infocode/set"),t)},m=function(t){return Object(c["c"])("".concat(l["a"],"light/onoff/setSatus"),t)},g=function(t){return Object(c["b"])().request("".concat(l["a"],"object/objectDataEqpGroup/query"),n["b"].POST,t,n["a"].json)},A=function(t){return Object(c["b"])().request("".concat(l["a"],"meeting/room/scene/switchover"),n["b"].POST,t,n["a"].json)},P=function(t){return Object(c["b"])().request("".concat(l["a"],"customScene/create"),n["b"].POST,t,n["a"].json)},j=function(t){return Object(c["b"])().request("".concat(l["a"],"/spaceAdjust/queryPropertyData?").concat(t),n["b"].GET,void 0,n["a"].json)},O=function(t){return Object(c["b"])().request("".concat(l["b"],"object/building/query"),n["b"].POST,t,n["a"].json)},h=function(t){return Object(c["b"])().request("".concat(l["b"],"object/floor/query"),n["b"].POST,t,n["a"].json)},y=function(t){return Object(c["b"])().request("".concat(l["c"],"map/queryMapInfo"),n["b"].POST,t,n["a"].json)},I=function(t){return Object(c["b"])().request("".concat(l["b"],"object/equipment/querySpaceEquipType?").concat(t),n["b"].GET,void 0,n["a"].json)},S=function(t){return Object(c["b"])().request("".concat(l["b"],"object/space/query"),n["b"].POST,t,n["a"].json)},C=function(t){return Object(c["b"])().request("".concat(l["c"],"permanentSpace/save"),n["b"].POST,t,n["a"].json)},q=function(){return Object(c["b"])().request("".concat(l["c"],"permanentSpace/query"),n["b"].GET,void 0,n["a"].json)},k=function(t){return Object(c["b"])().request("".concat(l["c"],"permanentSpace/delete?").concat(t))},w=function(){return Object(c["b"])().request("".concat(l["c"],"permanentSpace/queryZJ"),n["b"].GET,void 0,n["a"].json)},T=function(){return Object(c["b"])().request("".concat(l["b"],"object/equipment/querySpaceModeSet"),n["b"].GET,void 0,n["a"].json)},N=function(){return Object(c["b"])().request("".concat(l["b"],"object/equipment/querySpaceTempSet"),n["b"].GET,void 0,n["a"].json)},E=function(t){return Object(c["b"])().request("".concat(l["c"],"scene/querySpaceSceneConfig?").concat(t),n["b"].GET,void 0,n["a"].json)},K=function(t){return Object(c["b"])().request("".concat(l["a"],"customScene/queryCustomAndScence?").concat(t),n["b"].GET,void 0,n["a"].json)},L=function(t){return Object(c["c"])("".concat(l["a"],"customScene/saveBatchCustomScene"),t)},M=function(t){return Object(c["b"])().request("".concat(l["c"],"padSpace/getDefaultLocation?").concat(t),n["b"].GET,void 0,n["a"].json)},D=function(t){return Object(c["b"])().request("".concat(l["c"],"padSpace/getPadSpaceList?").concat(t),n["b"].GET,void 0,n["a"].json)},G=function(t){return Object(c["b"])().request("".concat(l["c"],"padSpace/saveWorkSpace"),n["b"].POST,t,n["a"].json)},H=function(t){return Object(c["b"])().request("".concat(l["c"],"padSpace/insertWorkSpace"),n["b"].POST,t,n["a"].json)},J=function(t){return Object(c["b"])().request("".concat(l["c"],"padSpace/deleteWorkSpace"),n["b"].POST,t,n["a"].json)},Z=function(t){return Object(c["b"])().request("".concat(l["c"],"padSpace/queryWorkSpace"),n["b"].POST,t,n["a"].json)},B=function(t){return Object(c["b"])().request("".concat(l["c"],"padSpace/queryWorkSpace"),n["b"].POST,t,n["a"].json)},V=function(t){return Object(c["b"])().request("".concat(l["d"],"wechat-service-duoduoenv/duoduoenv/customerservice/query"),n["b"].POST,t,n["a"].json)},R=function(t){return Object(c["b"])().request("".concat(l["c"],"padLogin/getPadQrCodeStatus?").concat(t),n["b"].GET,void 0,n["a"].json)},U=function(t){return Object(c["b"])().request("".concat(l["c"],"padImage/queryImageByFuncType?").concat(t),n["b"].GET,void 0,n["a"].json)},z=function(t){return Object(c["b"])().request("".concat(l["a"],"ctrl/querySpaceConditioners?").concat(t),n["b"].GET,void 0,n["a"].json)},X=function(t){return Object(c["c"])("".concat(l["a"],"ctrl/set"),t)}},"46f5":function(t,e,o){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 n(t){var e=l(t);return o(e)}function l(t){if(!o.o(c,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return c[t]}n.keys=function(){return Object.keys(c)},n.resolve=l,t.exports=n,n.id="46f5"},"472f":function(t,e,o){t.exports=o.p+"static/img/coffeeselected.1e7d4057.svg"},"482e":function(t,e,o){"use strict";o("5ebb")},"48a1":function(t,e,o){"use strict";function c(t,e){var o=!1,c=0,n=0,l=0,r=0,i=0,a=0,f=function(){},p={swipeLeft:f,swipeRight:f,swipeDown:f,swipeUp:f,drag:f};Object.assign(p,e),t.addEventListener("touchstart",(function(t){c=t.touches[0].pageX,n=t.touches[0].pageY,i=0,a=0}),{passive:!0}),t.addEventListener("touchmove",(function(e){if(o=!0,l=e.touches[0].pageX,r=e.touches[0].pageY,e.mation={startX:c,startY:n,moveX:l,moveY:r,disX:i,disY:a},p.drag.call(t,e),o){var f=Math.abs(l-c),u=Math.abs(r-n);f>u?l-c>0?p.swipeRight.call(t,e):p.swipeLeft.call(t,e):r-c>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 c}))},"56d9":function(t,e,o){t.exports=o.p+"static/img/dev.941b2e3a.svg"},"5ebb":function(t,e,o){},"5ff7":function(t,e,o){t.exports=o.p+"static/img/coffee.fc03c8ec.svg"},"81d5":function(t,e,o){"use strict";var c=o("7b0b"),n=o("23cb"),l=o("50c4");t.exports=function(t){var e=c(this),o=l(e.length),r=arguments.length,i=n(r>1?arguments[1]:void 0,o),a=r>2?arguments[2]:void 0,f=void 0===a?o:n(a,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 c=o("23e7"),n=o("81d5"),l=o("44d2");c({target:"Array",proto:!0},{fill:n}),l("fill")},e615:function(t,e,o){"use strict";o.r(e);var c=o("7a23"),n=function(t){return Object(c["pushScopeId"])("data-v-81a73114"),t=t(),Object(c["popScopeId"])(),t},l={class:"com-upload",style:{position:"relative"}},r={class:"search-bt",style:{position:"fixed",right:"20px",top:"80px","z-index":"999"}},i=n((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 a(t,e,o,n,a,f){var p=Object(c["resolveComponent"])("van-search"),u=Object(c["resolveComponent"])("van-icon");return Object(c["openBlock"])(),Object(c["createElementBlock"])("div",l,[Object(c["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(c["createElementVNode"])("div",r,[Object(c["createElementVNode"])("div",{onClick:e[1]||(e[1]=function(){return t.zommAdd&&t.zommAdd.apply(t,arguments)}),style:{display:"inline-block","font-size":"30px"}},[Object(c["createVNode"])(u,{name:"add-o",color:"#1989fa"})]),Object(c["createElementVNode"])("div",{onClick:e[2]||(e[2]=function(){return t.zommDel&&t.zommDel.apply(t,arguments)}),style:{display:"inline-block","font-size":"30px"}},[Object(c["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(c["defineComponent"])({components:{VanSearch:p["a"]},setup:function(){var t=[],e={},n={},l=Object(c["reactive"])({spaceList:t,copySpaceArr:t,parseImgUrl:s["x"],spaceName:"",width:3361.136,height:2729.25,scale:1,ctx:e,centerObj:n,searchSpace:function(){l.spaceList.map((function(t){t.localName==l.spaceName&&(t.fillColor="red",t.shadow=!0,l.initCanvas())}))},zommAdd:function(){l.scale>3||(l.scale=l.scale+.1,l.formSpaceData(),l.initCanvas())},zommDel:function(){l.scale<.3||(l.scale=l.scale-.1,l.formSpaceData(),l.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=l.width*l.scale,t.height=l.height*l.scale;var e=t.getContext("2d");l.ctx=e,e.clearRect(0,0,l.width,l.height),e.scale(l.scale,l.scale,n.left,n.top),l.spaceList.map((function(t){if(t.canClick){var c=t.circlePoint;e.beginPath(),e.fillStyle=t.fillColor;var n=[],r=[];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),n.push(t.left),r.push(t.top)})),l.drawIcon(e,"coffee.svg",t.devicePoint[0]),l.drawIcon(e,"dev.svg",t.devicePoint[1]),l.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(),c&&c.length&&(e.lineTo(c[3].left,c[3].top),e.bezierCurveTo(c[2].left,c[2].top,c[1].left,c[1].top,c[0].left,c[0].top)),e.closePath(),e.fill(),e.lineWidth=1,e.strokeStyle="rgba(15, 206, 233, 1)",e.stroke();var i=l.MaxAndMin(n)[1]-l.MaxAndMin(n)[0],a=l.MaxAndMin(r)[1]-l.MaxAndMin(r)[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",l.detect)},detect:function(t){for(var e=document.querySelector("#myCanvas"),o=t.clientX-e.getBoundingClientRect().left,c=t.clientY-e.getBoundingClientRect().top,n=0;n=t.left&&o<=t.left+20&&c>=t.top&&c