12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-65cea362","chunk-2d0c1282"],{"0500":function(e,t,c){"use strict";var n=c("7a23"),o={id:"map",style:{width:"100%",height:"100%"}},a={class:"space-main",id:"spaceMain"},i=["id","onClick"],r=["src"],l=["src"],s={key:0,style:{"font-size":"12px"}},u={class:"map-toolbar"},d=["src"],p={class:"text-hidden"},f={class:"text-hidden"},b=["onClick"],g=["onClick"],m={style:{width:"100%",height:"100%"}};function h(e,t,c,h,j,v){var O=Object(n["resolveComponent"])("van-popup"),S=Object(n["resolveComponent"])("space-search");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",o,[Object(n["createElementVNode"])("div",a,[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.mapData.spaceList,(function(t,c){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{class:"space-box",style:Object(n["normalizeStyle"])({width:t.width+"px",height:t.height+"px",top:t.top+"px",left:t.left+"px"}),key:"map"+c},[Object(n["createElementVNode"])("div",{class:Object(n["normalizeClass"])(["space",[t.canClick?"":"click-disable",e.selectArea.spaceId===t.spaceId?t.disabled?"select-disable":"select":"",e.isSetSpace?"use-select":"",t.disabled?"space-disable-box":"space-box-bg"]]),id:"space"+t.id,onClick:Object(n["withModifiers"])((function(c){return e.checkSpace(t)}),["stop"]),style:Object(n["normalizeStyle"])({backgroundColor:t.backgroundColor?t.backgroundColor:""})},[Object(n["withDirectives"])(Object(n["createElementVNode"])("div",{class:Object(n["normalizeClass"])(["device",e.selectArea.spaceId===t.spaceId?"select-device":""])},[e.selectArea.spaceId!==t.spaceId&&t.icon?(Object(n["openBlock"])(),Object(n["createElementBlock"])("img",{key:0,src:t.icon},null,8,r)):(Object(n["openBlock"])(),Object(n["createElementBlock"])("img",{key:1,src:t.selectIcon,class:"select-icon",alt:""},null,8,l)),t.localName?(Object(n["openBlock"])(),Object(n["createElementBlock"])(n["Fragment"],{key:2},[t.height>80&&12*t.localName.length<t.width||e.selectArea.spaceId===t.spaceId?(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",s,Object(n["toDisplayString"])(t.localName),1)):Object(n["createCommentVNode"])("",!0)],64)):Object(n["createCommentVNode"])("",!0)],2),[[n["vShow"],t.width*e.displacement.scale>24&&t.height*e.displacement.scale>24]])],14,i)],4)})),128))]),Object(n["createElementVNode"])("div",u,[Object(n["createElementVNode"])("img",{src:e.parseImgUrl("map-icon","icon-search-big.svg"),onClick:t[0]||(t[0]=Object(n["withModifiers"])((function(){return e.goSearch&&e.goSearch.apply(e,arguments)}),["stop"])),class:"icon-search",alt:""},null,8,d),Object(n["createElementVNode"])("div",{class:"toolbar-item",onClick:t[1]||(t[1]=Object(n["withModifiers"])((function(){return e.checkFloor&&e.checkFloor.apply(e,arguments)}),["stop"]))},[Object(n["createElementVNode"])("span",p,Object(n["toDisplayString"])(e.floorItem.localName),1)]),Object(n["createElementVNode"])("div",{class:"toolbar-item",onClick:t[2]||(t[2]=Object(n["withModifiers"])((function(){return e.checkBuilding&&e.checkBuilding.apply(e,arguments)}),["stop"]))},[Object(n["createElementVNode"])("span",f,Object(n["toDisplayString"])(e.buildingItem.localName),1)])]),Object(n["createVNode"])(O,{show:e.showBuilding,"onUpdate:show":t[3]||(t[3]=function(t){return e.showBuilding=t}),teleport:"body",class:"buiding-box",style:{width:"40%",height:"100%",padding:"20px"},position:"right"},{default:Object(n["withCtx"])((function(){return[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.buildingData,(function(t){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{class:Object(n["normalizeClass"])(["buiding-item",e.buildingItem.buildingId===t.id?"active":""]),key:t.id,onClick:Object(n["withModifiers"])((function(c){return e.comfirmBuilding(t)}),["stop"])},Object(n["toDisplayString"])(t.localName),11,b)})),128))]})),_:1},8,["show"]),Object(n["createVNode"])(O,{show:e.showFloor,"onUpdate:show":t[4]||(t[4]=function(t){return e.showFloor=t}),teleport:"body",class:"buiding-box",style:{width:"40%",height:"100%",padding:"20px"},position:"right"},{default:Object(n["withCtx"])((function(){return[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.floorData,(function(t){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{class:Object(n["normalizeClass"])(["buiding-item",e.floorItem.id===t.id?"active":""]),key:t.id,onClick:Object(n["withModifiers"])((function(c){return e.comfirmFloor(t)}),["stop"])},Object(n["toDisplayString"])(t.localName),11,g)})),128))]})),_:1},8,["show"]),Object(n["createVNode"])(O,{show:e.showSearch,"onUpdate:show":t[5]||(t[5]=function(t){return e.showSearch=t}),teleport:"body",class:"buiding-box",style:{width:"100%",height:"100%"},position:"right"},{default:Object(n["withCtx"])((function(){return[Object(n["createElementVNode"])("div",m,[Object(n["createVNode"])(S,{onCloseSearch:e.closeSearch},null,8,["onCloseSearch"])])]})),_:1},8,["show"])])}c("99af"),c("d81d"),c("4057");var j=c("5530"),v=c("d257"),O=c("d399"),S=(c("e7e5"),c("2241")),I=(c("e17f"),c("459d")),y=function(e){return Object(n["pushScopeId"])("data-v-44b481c8"),e=e(),Object(n["popScopeId"])(),e},k={class:"ignore_com-top"},C={class:"page-search content-box ptheader"},w={action:"/"},B={class:"search-box"},N={class:"top"},E=y((function(){return Object(n["createElementVNode"])("div",null,"最近查找",-1)})),D=["onClick"],x=["src"],q=["onClick"],M=["src"],V={style:{width:"100%",height:"100%"}};function T(e,t,c,o,a,i){var r=Object(n["resolveComponent"])("VanIcon"),l=Object(n["resolveComponent"])("van-search"),s=Object(n["resolveComponent"])("space-metting"),u=Object(n["resolveComponent"])("van-popup");return Object(n["openBlock"])(),Object(n["createElementBlock"])(n["Fragment"],null,[Object(n["createElementVNode"])("div",k,[Object(n["createElementVNode"])("div",{class:"header-return",onClick:t[0]||(t[0]=function(){return e.goBack&&e.goBack.apply(e,arguments)})},[Object(n["createVNode"])(r,{name:"arrow-left"})])]),Object(n["createElementVNode"])("div",C,[Object(n["createElementVNode"])("form",w,[Object(n["createVNode"])(l,{modelValue:e.spaceName,"onUpdate:modelValue":[t[1]||(t[1]=function(t){return e.spaceName=t}),e.onSearch],onFocus:e.clearHistorySearch,onBlur:e.getHistorySearch,onClear:e.onCancel,placeholder:"输入地点"},null,8,["modelValue","onUpdate:modelValue","onFocus","onBlur","onClear"])]),Object(n["createElementVNode"])("div",B,[Object(n["createElementVNode"])("div",N,[E,Object(n["createElementVNode"])("div",null,[Object(n["createElementVNode"])("span",{onClick:t[2]||(t[2]=function(){return e.goMetting&&e.goMetting.apply(e,arguments)})},"查看所有会议室")])]),e.searchData&&e.searchData.length?(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],{key:0},Object(n["renderList"])(e.searchData,(function(t){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{class:"space-item",onClick:function(c){return e.triggerSearchSpace(t)}},[Object(n["createElementVNode"])("img",{src:e.parseImgUrl("search-icon","icon_location.svg"),alt:""},null,8,x),Object(n["createElementVNode"])("p",null,Object(n["toDisplayString"])(t.localName),1)],8,D)})),256)):(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],{key:1},Object(n["renderList"])(e.historySearchData,(function(t){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{class:"space-item",onClick:function(c){return e.triggerSearchSpace(t)}},[Object(n["createElementVNode"])("img",{src:e.parseImgUrl("search-icon","icon_location.svg"),alt:""},null,8,M),Object(n["createElementVNode"])("p",null,Object(n["toDisplayString"])(t.localName),1)],8,q)})),256))])]),Object(n["createVNode"])(u,{show:e.showMetting,"onUpdate:show":t[3]||(t[3]=function(t){return e.showMetting=t}),teleport:"body",class:"buiding-box",style:{width:"100%",height:"100%"},position:"right"},{default:Object(n["withCtx"])((function(){return[Object(n["createElementVNode"])("div",V,[Object(n["createVNode"])(s,{onCloseMetting:e.closeMetting},null,8,["onCloseMetting"])])]})),_:1},8,["show"])],64)}var F=c("d961"),P=(c("5852"),c("6c02")),L=c("0613"),A={class:"ignore_com-top"},H={class:"page-search content-box ptheader"},X={class:"search-box"},W=["onClick"],Y=["src"];function z(e,t,c,o,a,i){var r=Object(n["resolveComponent"])("VanIcon");return Object(n["openBlock"])(),Object(n["createElementBlock"])(n["Fragment"],null,[Object(n["createElementVNode"])("div",A,[Object(n["createElementVNode"])("div",{class:"header-return",onClick:t[0]||(t[0]=function(){return e.goBack&&e.goBack.apply(e,arguments)})},[Object(n["createVNode"])(r,{name:"arrow-left"})])]),Object(n["createElementVNode"])("div",H,[Object(n["createElementVNode"])("div",X,[Object(n["createElementVNode"])("div",null,[e.searchData&&e.searchData.length?(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],{key:0},Object(n["renderList"])(e.searchData,(function(t){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{class:"space-item",onClick:function(c){return e.triggerSearchSpace(t)}},[Object(n["createElementVNode"])("img",{src:e.parseImgUrl("search-icon","icon_meetingroom.svg"),alt:""},null,8,Y),Object(n["createElementVNode"])("p",null,Object(n["toDisplayString"])(t.localName),1)],8,W)})),256)):Object(n["createCommentVNode"])("",!0)])])])],64)}var G=Object(n["defineComponent"])({emits:["closeMetting"],props:{projectId:{type:String,default:function(){return""}}},components:{VanSearch:F["a"]},setup:function(e,t){var c="",o=L["a"].state.user,a=[],i=Object(n["reactive"])({parseImgUrl:v["x"],spaceName:c,userInfo:o,searchData:a,goBack:function(){t.emit("closeMetting",null)},triggerSearchSpace:function(e){t.emit("closeMetting",e)},getSpaceLike:function(){var e={criteria:{projectId:o.projectId,localName:{$like:"%".concat(i.spaceName,"%")}}};Object(I["x"])(e).then((function(e){var t,c=e;"success"===c.result?i.searchData=null!==(t=null===e||void 0===e?void 0:e.content)&&void 0!==t?t:[]:i.searchData=[]}))}});return Object(n["onBeforeMount"])((function(){i.getSpaceLike()})),Object(j["a"])({},Object(n["toRefs"])(i))}}),U=(c("b3aa"),c("e4cb"),c("6b0d")),_=c.n(U);const J=_()(G,[["render",z],["__scopeId","data-v-1406cd06"]]);var R=J,K=Object(n["defineComponent"])({emits:["closeSearch"],props:{projectId:{type:String,default:function(){return""}}},components:{VanSearch:F["a"],SpaceMetting:R},setup:function(e,t){Object(P["d"])();var c=L["a"].state.user,o="",a=[],i=[],r=Object(n["reactive"])({parseImgUrl:v["x"],showMetting:!1,spaceName:o,userInfo:c,searchData:a,historySearchData:i,goBack:function(){t.emit("closeSearch",null)},closeMetting:function(e){r.showMetting=!1,t.emit("closeSearch",e)},onSearch:function(){r.spaceName&&r.getSpaceLike()},onCancel:function(){r.searchData=[],r.getHistorySearch()},clearHistorySearch:function(){r.historySearchData=[]},getHistorySearch:function(){r.historySearchData=Object(v["i"])()},triggerSearchSpace:function(e){Object(v["z"])(e),t.emit("closeSearch",e)},getSpaceLike:function(){var e={criteria:{projectId:c.projectId,localName:{$like:"%".concat(r.spaceName,"%")}}};Object(I["x"])(e).then((function(e){var t,c=e;"success"===c.result?r.searchData=null!==(t=null===e||void 0===e?void 0:e.content)&&void 0!==t?t:[]:r.searchData=[]}))},goMetting:function(){r.showMetting=!0}});return Object(n["onMounted"])((function(){r.historySearchData=Object(v["i"])()})),Object(j["a"])({},Object(n["toRefs"])(r))}});c("3dfb"),c("fcad");const $=_()(K,[["render",T],["__scopeId","data-v-44b481c8"]]);var Q=$,Z=c("6a79"),ee=Object(n["defineComponent"])({props:{projectId:{type:String,default:function(){return""}},spaceData:{type:Array,default:function(){return[]}},spaceInfo:{type:Object,default:function(){}},isSetSpace:{type:Boolean,default:function(){return!1}},floorId:{type:String,default:function(){return""}},buildingId:{type:String,default:function(){return""}}},components:{SpaceSearch:Q},setup:function(e,t){Object(P["d"])();var c={},o=window.document,a={screenWidth:o.body.clientWidth,screenHeight:o.body.clientHeight},i=.8,r={scale:1,pageX:0,pageX2:0,originScale:0,moveable:!1},l=[],s=[],u={},d={},p={},f=null,b=Object(n["reactive"])({parseImgUrl:v["x"],spaceInfo:f,isSetSpace:e.isSetSpace,widthMapScale:1,tempScale:.8,comMapScale:i,heightScale:1,showSearch:!1,isSetSearchSpace:!1,showBuilding:!1,showFloor:!1,buildingItem:{buildingId:"",localName:""},floorData:s,floorItem:u,buildingData:l,mapData:c,copyMapDaata:c,selectArea:d,displacement:r,screenInfo:a,transformData:p,clearPreStyle:function(){var e=o.querySelector("#map");e.scrollLeft=0,e.scrollTop=0;var t=o.querySelector("#spaceMain");b.displacement.scale=1,t&&(t.style.left="0px",t.style.top="0px")},swipe:function(e,t){var c=!1,n=0,o=0,a=0,i=0,r=0,l=0,s=function(){},u={swipeLeft:s,swipeRight:s,swipeDown:s,swipeUp:s,drag:s};Object.assign(u,t),e.addEventListener("touchstart",(function(t){n=t.touches[0].pageX,o=t.touches[0].pageY,r=n-e.offsetLeft,l=o-e.offsetTop}),{passive:!0}),e.addEventListener("touchmove",(function(t){if(!b.displacement.moveable&&(c=!0,a=t.touches[0].pageX,i=t.touches[0].pageY,t.mation={startX:n,startY:o,moveX:a,moveY:i,disX:r,disY:l},u.drag.call(e,t),c)){var s=Math.abs(a-n),d=Math.abs(i-o);s>d?a-n>0?u.swipeRight.call(e,t):u.swipeLeft.call(e,t):i-n>0?u.swipeDown.call(e,t):u.swipeUp.call(e,t)}}),{passive:!0}),e.addEventListener("touchend",(function(e){c=!1}))},mapScroll:function(){var e=o.querySelector("#spaceMain"),t=o.querySelector("#houseDes"),c=t?t.offsetHeight:0;b.swipe(e,{swipeLeft:function(t){if(!b.displacement.moveable)if(e.offsetWidth<b.screenInfo.screenWidth);else{var c=e.offsetWidth-Math.abs(t.touches[0].pageX-t.mation.disX);c<b.screenInfo.screenWidth?e.style.left=-(e.offsetWidth-b.screenInfo.screenWidth)+"px":e.style.left=t.touches[0].pageX-t.mation.disX+"px"}},swipeRight:function(t){if(!b.displacement.moveable){if(e.offsetWidth<b.screenInfo.screenWidth)return;t.touches[0].pageX-t.mation.disX>0?e.style.left="0px":e.style.left=t.touches[0].pageX-t.mation.disX+"px"}},swipeDown:function(t){if(!b.displacement.moveable){var n=b.screenInfo.screenHeight-c-20,o=e.offsetHeight;o<n||t.touches[0].pageY-t.mation.disY>0?e.style.top="0px":e.style.top=t.touches[0].pageY-t.mation.disY+"px"}},swipeUp:function(t){if(!b.displacement.moveable){var c=o.querySelector("#houseDes"),n=c?c.offsetHeight:0,a=b.screenInfo.screenHeight-n-20,i=e.offsetHeight,r=t.touches[0].pageY-t.mation.disY;i<a?e.style.top="0px":i-Math.abs(r)<a/2?e.style.top=-(i-a/2)+"px":e.style.top=t.touches[0].pageY-t.mation.disY+"px"}},drag:function(e){}})},closeSearch:function(e){if(b.showSearch=!1,e){b.isSetSearchSpace=!0,b.loadingStart();var t={buildingId:e.buildingId,buildingName:"",floorId:e.floorId,floorName:"",spaceId:e.id};b.init(t)}else b.isSetSearchSpace=!1},goSearch:function(){b.showSearch=!0},setSelectSpacePosition:function(e){setTimeout((function(){b.setScrollLeft(e),b.scrollTop(e)}))},setScrollLeft:function(e){var t=o.querySelector("#spaceMain"),c=0;e.left+e.width>=b.screenInfo.screenWidth/2?(c=e.left-b.screenInfo.screenWidth/2+e.width/2,c=~c):c=0,c>0&&(c=0),Math.abs(c)>t.offsetWidth-b.screenInfo.screenWidth&&(c=-(t.offsetWidth-b.screenInfo.screenWidth)),t.style.left=c+"px"},scrollTop:function(e){o.querySelector("#map");var t=o.querySelector("#spaceMain"),c=o.querySelector("#houseDes"),n=c?c.offsetHeight:0,a=0;a=e.top+e.width>(b.screenInfo.screenHeight-n-20)/2?e.top-(b.screenInfo.screenHeight-n)/2+e.height/2:0,a=~a,a>0&&(a=0),t.style.top=a+"px"},checkSpace:function(e){e.disabled?Object(O["a"])("该空间和平板没绑定,暂不支持查看"):(b.isSetSearchSpace=!1,e&&e.canClick?(b.setSelectSpacePosition(e),b.selectArea=e,b.selectArea.buildingId=b.buildingItem.buildingId,b.setLocalSpaceInfo(),t.emit("changeSpace",b.selectArea)):Object(O["a"])("不可选区域"))},comfirSetSpace:function(c){c.spaceId===e.spaceInfo.spaceId?S["a"].confirm({title:"取消常驻空间",confirmButtonColor:"#000000",cancelButtonColor:"#4D5262",message:"\n 是否取消常驻空间设置 ? "}).then((function(){t.emit("delPermanentSpace")})).catch((function(){})):S["a"].confirm({title:"设置常驻空间",confirmButtonColor:"#000000",cancelButtonColor:"#4D5262",message:"是否将常驻空间设置为".concat(c.localName,"?")}).then((function(){b.selectArea=c,t.emit("changeSpaceId",b.selectArea.spaceId)})).catch((function(){}))},setLocalSpaceInfo:function(){Object(v["v"])(b.buildingItem.buildingId,b.floorItem.id,b.selectArea.spaceId);var e={buildingId:b.buildingItem.buildingId,buildingName:b.buildingItem.localName,floorId:b.floorItem.id,floorName:b.floorItem.localName,spaceId:b.selectArea.spaceId};Object(v["y"])(e)},getDistance:function(e,t){return Math.hypot(t.x-e.x,t.y-e.y)},formateMapData:function(){var t=e.spaceData,c=b.mapData;if(c){var n;b.setSpaceScale(),b.setTempScale(),c.width<3e3&&(b.comMapScale=.8),c.width=c.width*b.comMapScale,c.height=c.height*b.comMapScale;for(var o=null!==(n=null===c||void 0===c?void 0:c.spaceList)&&void 0!==n?n:[],a=0;a<o.length;a++){var i=o[a];i.width=i.width*b.comMapScale,i.height=i.height*b.comMapScale,i.top=i.top*b.comMapScale,i.left=i.left*b.comMapScale;for(var r=!0,l=0;l<t.length;l++)if(i.spaceId===t[l].spaceId){r=!1;break}r&&(i.disabled=!0),b.setSpaceIcon(i)}b.copyMapDaata=JSON.parse(JSON.stringify(c))}},setSpaceScale:function(){var e=b.mapData;if(e){var t,c=null!==(t=null===e||void 0===e?void 0:e.spaceList)&&void 0!==t?t:[],n=Math.min.apply(null,c.map((function(e){return e.height}))),o=Math.min.apply(null,c.map((function(e){return e.width}))),a=n<o?n:o;a=a||30,b.comMapScale=30/a}},setTempScale:function(){b.tempScale=.4;var e=b.mapData;if(e){var t=b.mapData.width,c=b.mapData.height;if(t>c){var n=Math.ceil(t/b.screenInfo.screenWidth);b.tempScale=n<10?.4:n<20?.3:.25}else{var o=Math.ceil(c/b.screenInfo.screenHeight);b.tempScale=o<10?.4:o<20?.3:.25}}},setMapBoxStyle:function(){var e=o.querySelector("#spaceMain");b.mapData&&b.mapData.width&&(e.style.width=b.mapData.width+"px",e.style.height=b.mapData.height+"px")},setSpaceIcon:function(e){if(e.canClick){var t=Object(Z["a"])(e.roomFuncType);e.icon=Z["c"][t].icon,e.selectIcon=Z["c"][t].selectIcon,e.backgroundColor=Z["c"][t].backgroundColor,e.bg=Z["c"][t].bg,e.icon=Object(v["x"])("map-new-icon",e.icon),e.selectIcon=Object(v["x"])("map-new-icon",e.selectIcon)}else e.icon=""},midpoint:function(e,t,c,n){return[e+(c-e)/2,t+(n-t)/2]},updateMapStyle:function(){var e=JSON.parse(JSON.stringify(b.copyMapDaata));if(e){var t;e.width=e.width*b.displacement.scale,e.height=e.height*b.displacement.scale;for(var c=null!==(t=null===e||void 0===e?void 0:e.spaceList)&&void 0!==t?t:[],n=0;n<c.length;n++){var o=c[n];o.width=o.width*b.displacement.scale,o.height=o.height*b.displacement.scale,o.top=o.top*b.displacement.scale,o.left=o.left*b.displacement.scale}b.mapData=e,b.setMapBoxStyle()}},updateMapPositon:function(e,t){var c=b.displacement.scaleCenter[0]-b.displacement.scaleCenter[0]*b.displacement.scale,n=b.displacement.scaleCenter[1]-b.displacement.scaleCenter[1]*b.displacement.scale;e>0&&b.displacement.scale<1&&(c>0&&(c=~c),n>0&&(n=~n));var o=b.displacement.top*b.displacement.scale+n,a=b.displacement.left*b.displacement.scale+c;t.offsetWidth<b.screenInfo.screenWidth&&(a=0),t.style.left=a>0?"0px":a+"px",t.offsetHeight<b.screenInfo.screenHeight?t.style.top=0:t.style.top=o>0?0:o+"px"},mapScale:function(){var e=o.querySelector("#spaceMain");e.addEventListener("touchstart",(function(t){var c=t.touches,n=c[0],o=c[1];if(b.displacement.pageX=n.pageX,b.displacement.pageY=n.pageY,b.displacement.moveable=!0,b.displacement.originScale=b.displacement.scale||1,o){b.displacement.pageX2=o.pageX,b.displacement.pageY2=o.pageY;var a=isNaN(parseInt(e.style.left))?0:parseInt(e.style.left),i=isNaN(parseInt(e.style.top))?0:parseInt(e.style.top);b.displacement.center=b.midpoint(n.pageX,n.pageY,o.pageX,o.pageY),b.displacement.left=a/b.displacement.scale,b.displacement.top=i/b.displacement.scale,b.displacement.scaleCenter=[b.displacement.center[0]/b.displacement.scale,b.displacement.center[1]/b.displacement.scale],b.displacement.scaleTranslateProportion=[b.displacement.scaleCenter[0]/(e.offsetWidth/b.displacement.scale),b.displacement.scaleCenter[1]/(e.offsetHeight/b.displacement.scale)],b.displacement.oldSize=[e.offsetWidth/b.displacement.scale,e.offsetHeight/b.displacement.scale]}else b.displacement.moveable=!1}),{passive:!0}),e.addEventListener("touchmove",(function(t){if(b.displacement.moveable){var c=t.touches,n=c[0],o=c[1];if(o){b.displacement.pageX2||(b.displacement.pageX2=o.pageX),b.displacement.pageY2||(b.displacement.pageY2=o.pageY);var a=b.getDistance({x:n.pageX,y:n.pageY},{x:o.pageX,y:o.pageY})/b.getDistance({x:b.displacement.pageX,y:b.displacement.pageY},{x:b.displacement.pageX2,y:b.displacement.pageY2}),i=b.displacement.originScale*a;i<b.tempScale&&(i=b.tempScale),i>1.5&&(i=1.5);var r=i-b.displacement.scale;b.displacement.scale=i,0!==r&&(b.updateMapPositon(r,e),b.updateMapStyle())}}}),{passive:!0}),e.addEventListener("touchend",(function(){b.displacement.moveable=!0}))},getBuildingList:function(){var t={criteria:{projectId:e.projectId},orders:[{asc:!0,column:"localId"}]};Object(I["f"])(t).then((function(e){var t=e;if("success"===t.result){var c,n=null!==(c=null===t||void 0===t?void 0:t.content)&&void 0!==c?c:[];b.buildingData=n,b.setBuildingName()}}))},checkBuilding:function(){b.showBuilding=!0},checkFloor:function(){b.showFloor=!0},comfirmFloor:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];b.floorItem=e,b.showFloor=!1,b.loadingStart(),b.getMapInfo(t),Object(v["u"])(b.buildingItem.buildingId,b.floorItem.id)},comfirmBuilding:function(e){b.showBuilding=!1,b.buildingItem.buildingId=e.id,b.buildingItem.localName=e.localName,b.loadingStart(),b.getFloorList()},loadingStart:function(){O["a"].loading({duration:0,forbidClick:!0,message:"加载中..."})},loadinngEnd:function(){O["a"].clear()},getFloorList:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(b.buildingItem.buildingId){var c={criteria:{projectId:e.projectId,buildingId:b.buildingItem.buildingId},orders:[{asc:!0,column:"localId"}]};Object(I["l"])(c).then((function(e){var c,n=e;"success"===e.result?(b.floorData=null!==(c=null===n||void 0===n?void 0:n.content)&&void 0!==c?c:[],b.setFloorName()):b.floorData=[];t&&b.floorData.length&&(b.getHistorySelectFloor(),b.getMapInfo()),b.loadinngEnd()})).catch((function(){b.loadinngEnd()}))}},getMapInfo:function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,c={projectId:e.projectId,floorId:b.floorItem.id};Object(I["n"])(c).then((function(e){var c=e;if("success"===c.result){var o;if(b.mapData=null!==(o=null===c||void 0===c?void 0:c.data)&&void 0!==o?o:null,b.clearPreStyle(),b.formateMapData(),t){var a=b.getFirstSelectSpace(t);a&&(b.selectArea=a)}b.setSelectSpacePosition(b.selectArea),Object(n["nextTick"])((function(){b.setMapBoxStyle(),b.mapScale(),b.mapScroll()}))}})).catch((function(){b.loadinngEnd()}))},getHistorySelectFloor:function(){var e=Object(v["j"])(),t=!1,c=e[b.buildingItem.buildingId];b.floorData.map((function(e){e.id===c&&(t=!0,b.floorItem=e)})),t||(b.floorItem=b.floorData[0])},getHistorySpace:function(){var e=b.mapData,t=Object(v["p"])();if(e){var c,n=!1,o=null!==(c=null===e||void 0===e?void 0:e.spaceList)&&void 0!==c?c:[],a="".concat(b.buildingItem.buildingId,",").concat(b.floorItem.id),i=t[a];if(i&&o.map((function(e){i===e.spaceId&&(b.selectArea=e,n=!0)})),!n)for(var r=0;r<o.length;r++)if(o[r].canClick){b.selectArea=o[r];break}}},getFirstSelectSpace:function(e){var t=null,c=b.mapData;if(c&&e)for(var n,o=null!==(n=null===c||void 0===c?void 0:c.spaceList)&&void 0!==n?n:[],a=0;a<o.length;a++)if(o[a].spaceId===e.spaceId){t=o[a];break}return t},setDefaultSpace:function(e){e&&(b.buildingItem.buildingId=e.buildingId,b.buildingItem.localName=e.buildingName?e.buildingName:"",b.floorItem={id:e.floorId,localName:e.floorName?e.floorName:""})},init:function(e){e&&b.setDefaultSpace(e),b.getBuildingList(),b.getFloorList(!1),b.getMapInfo(!1,e)},setBuildingName:function(){b.buildingItem.buildingId?b.buildingData.map((function(e){e.id===b.buildingItem.buildingId&&(b.buildingItem.localName=e.localName)})):b.buildingItem={buildingId:b.buildingData[0].id,localName:b.buildingData[0].localName}},setFloorName:function(){b.floorItem.id?b.floorData.map((function(e){e.id===b.floorItem.id&&(b.floorItem.localName=e.localName)})):b.floorItem=b.floorData[0]}});return Object(n["watch"])(e,(function(e){}),{deep:!1,immediate:!0}),Object(n["onMounted"])((function(){b.spaceInfo=e.spaceInfo,b.buildingItem.buildingId=e.buildingId,b.floorItem.id=e.floorId,b.spaceInfo.buildingId=e.buildingId,b.spaceInfo.floorId=e.floorId,b.selectArea.spaceId=e.spaceInfo.spaceId,b.init(b.spaceInfo)})),Object(j["a"])({},Object(n["toRefs"])(b))}});c("1002");const te=_()(ee,[["render",h],["__scopeId","data-v-239317e6"]]);t["a"]=te},"0ffa":function(e,t,c){},1002:function(e,t,c){"use strict";c("0ffa")},1703:function(e,t,c){},2241:function(e,t,c){"use strict";c.d(t,"a",(function(){return A}));var n=c("7a23"),o=c("f344"),a=c("c199"),i=c("1da4"),r=c("fe7e"),l=c("f691"),s=c("7e3e"),u=c("8da3"),d=c("b1d2"),p=c("8405"),f=c("f827"),b=c("e41f"),g=c("b650"),m=c("f465");const[h,j]=Object(r["a"])("action-bar"),v=Symbol(h),O={safeAreaInsetBottom:l["g"]};var S=Object(n["defineComponent"])({name:h,props:O,setup(e,{slots:t}){const{linkChildren:c}=Object(m["f"])(v);return c(),()=>{var c;return Object(n["createVNode"])("div",{class:[j(),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[null==(c=t.default)?void 0:c.call(t)])}}});const I=Object(a["a"])(S);var y=c("4eda"),k=c("b070");const[C,w]=Object(r["a"])("action-bar-button"),B=Object(o["a"])({},k["b"],{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean});var N=Object(n["defineComponent"])({name:C,props:B,setup(e,{slots:t}){const c=Object(k["c"])(),{parent:o,index:a}=Object(m["k"])(v),i=Object(n["computed"])(()=>{if(o){const e=o.children[a.value-1];return!(e&&"isButton"in e)}}),r=Object(n["computed"])(()=>{if(o){const e=o.children[a.value+1];return!(e&&"isButton"in e)}});return Object(y["a"])({isButton:!0}),()=>{const{type:o,icon:a,text:l,color:s,loading:u,disabled:d}=e;return Object(n["createVNode"])(g["a"],{class:w([o,{last:r.value,first:i.value}]),size:"large",type:o,icon:a,color:s,loading:u,disabled:d,onClick:c},{default:()=>[t.default?t.default():l]})}}});const E=Object(a["a"])(N);const[D,x,q]=Object(r["a"])("dialog"),M=Object(o["a"])({},f["b"],{title:String,theme:String,width:l["f"],message:[String,Function],callback:Function,allowHtml:Boolean,className:l["h"],transition:Object(l["e"])("van-dialog-bounce"),messageAlign:String,closeOnPopstate:l["g"],showCancelButton:Boolean,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showConfirmButton:l["g"],closeOnClickOverlay:Boolean}),V=[...f["a"],"transition","closeOnPopstate"];var T=Object(n["defineComponent"])({name:D,props:M,emits:["confirm","cancel","keydown","update:show"],setup(e,{emit:t,slots:c}){const a=Object(n["ref"])(),i=Object(n["reactive"])({confirm:!1,cancel:!1}),r=e=>t("update:show",e),l=t=>{var c;r(!1),null==(c=e.callback)||c.call(e,t)},f=c=>()=>{e.show&&(t(c),e.beforeClose?(i[c]=!0,Object(s["a"])(e.beforeClose,{args:[c],done(){l(c),i[c]=!1},canceled(){i[c]=!1}})):l(c))},m=f("cancel"),h=f("confirm"),j=Object(n["withKeys"])(c=>{var n,i;if(c.target!==(null==(i=null==(n=a.value)?void 0:n.popupRef)?void 0:i.value))return;const r={Enter:e.showConfirmButton?h:o["d"],Escape:e.showCancelButton?m:o["d"]};r[c.key](),t("keydown",c)},["enter","esc"]),v=()=>{const t=c.title?c.title():e.title;if(t)return Object(n["createVNode"])("div",{class:x("header",{isolated:!e.message&&!c.default})},[t])},O=t=>{const{message:c,allowHtml:o,messageAlign:a}=e,i=x("message",{"has-title":t,[a]:a}),r=Object(u["c"])(c)?c():c;return o&&"string"===typeof r?Object(n["createVNode"])("div",{class:i,innerHTML:r},null):Object(n["createVNode"])("div",{class:i},[r])},S=()=>{if(c.default)return Object(n["createVNode"])("div",{class:x("content")},[c.default()]);const{title:t,message:o,allowHtml:a}=e;if(o){const e=!(!t&&!c.title);return Object(n["createVNode"])("div",{key:a?1:0,class:x("content",{isolated:!e})},[O(e)])}},y=()=>Object(n["createVNode"])("div",{class:[d["c"],x("footer")]},[e.showCancelButton&&Object(n["createVNode"])(g["a"],{size:"large",text:e.cancelButtonText||q("cancel"),class:x("cancel"),style:{color:e.cancelButtonColor},loading:i.cancel,onClick:m},null),e.showConfirmButton&&Object(n["createVNode"])(g["a"],{size:"large",text:e.confirmButtonText||q("confirm"),class:[x("confirm"),{[d["a"]]:e.showCancelButton}],style:{color:e.confirmButtonColor},loading:i.confirm,onClick:h},null)]),k=()=>Object(n["createVNode"])(I,{class:x("footer")},{default:()=>[e.showCancelButton&&Object(n["createVNode"])(E,{type:"warning",text:e.cancelButtonText||q("cancel"),class:x("cancel"),color:e.cancelButtonColor,loading:i.cancel,onClick:m},null),e.showConfirmButton&&Object(n["createVNode"])(E,{type:"danger",text:e.confirmButtonText||q("confirm"),class:x("confirm"),color:e.confirmButtonColor,loading:i.confirm,onClick:h},null)]}),C=()=>c.footer?c.footer():"round-button"===e.theme?k():y();return()=>{const{width:t,title:c,theme:i,message:l,className:s}=e;return Object(n["createVNode"])(b["a"],Object(n["mergeProps"])({ref:a,role:"dialog",class:[x([i]),s],style:{width:Object(p["b"])(t)},tabindex:0,"aria-labelledby":c||l,onKeydown:j,"onUpdate:show":r},Object(o["e"])(e,V)),{default:()=>[v(),S(),C()]})}}});let F;function P(){const e={setup(){const{state:e,toggle:t}=Object(i["b"])();return()=>Object(n["createVNode"])(T,Object(n["mergeProps"])(e,{"onUpdate:show":t}),null)}};({instance:F}=Object(i["a"])(e))}function L(e){return o["c"]?new Promise((t,c)=>{F||P(),F.open(Object(o["a"])({},L.currentOptions,e,{callback:e=>{("confirm"===e?t:c)(e)}}))}):Promise.resolve()}L.defaultOptions={title:"",width:"",theme:null,message:"",overlay:!0,callback:null,teleport:"body",className:"",allowHtml:!1,lockScroll:!0,transition:void 0,beforeClose:null,overlayClass:"",overlayStyle:void 0,messageAlign:"",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1},L.currentOptions=Object(o["a"])({},L.defaultOptions),L.alert=L,L.confirm=e=>L(Object(o["a"])({showCancelButton:!0},e)),L.close=()=>{F&&F.toggle(!1)},L.setDefaultOptions=e=>{Object(o["a"])(L.currentOptions,e)},L.resetDefaultOptions=()=>{L.currentOptions=Object(o["a"])({},L.defaultOptions)},L.Component=Object(a["a"])(T),L.install=e=>{e.use(L.Component),e.config.globalProperties.$dialog=L};var A=L},"2fcb":function(e,t,c){},"36e1":function(e,t,c){e.exports={menuBg:"#fff",menuText:"#162b64",menuActiveText:"#435ebe"}},"3dfb":function(e,t,c){"use strict";c("7a89")},4057:function(e,t,c){var n=c("23e7"),o=Math.hypot,a=Math.abs,i=Math.sqrt,r=!!o&&o(1/0,NaN)!==1/0;n({target:"Math",stat:!0,forced:r},{hypot:function(e,t){var c,n,o=0,r=0,l=arguments.length,s=0;while(r<l)c=a(arguments[r++]),s<c?(n=s/c,o=o*n*n+1,s=c):c>0?(n=c/s,o+=n*n):o+=c;return s===1/0?1/0:s*i(o)}})},"459d":function(e,t,c){"use strict";c.d(t,"h",(function(){return i})),c.d(t,"C",(function(){return r})),c.d(t,"w",(function(){return l})),c.d(t,"o",(function(){return s})),c.d(t,"j",(function(){return u})),c.d(t,"u",(function(){return d})),c.d(t,"k",(function(){return p})),c.d(t,"b",(function(){return f})),c.d(t,"m",(function(){return b})),c.d(t,"O",(function(){return g})),c.d(t,"M",(function(){return m})),c.d(t,"A",(function(){return h})),c.d(t,"p",(function(){return j})),c.d(t,"P",(function(){return v})),c.d(t,"a",(function(){return O})),c.d(t,"g",(function(){return S})),c.d(t,"f",(function(){return I})),c.d(t,"l",(function(){return y})),c.d(t,"n",(function(){return k})),c.d(t,"v",(function(){return C})),c.d(t,"x",(function(){return w})),c.d(t,"E",(function(){return B})),c.d(t,"t",(function(){return N})),c.d(t,"d",(function(){return E})),c.d(t,"B",(function(){return D})),c.d(t,"y",(function(){return x})),c.d(t,"z",(function(){return q})),c.d(t,"I",(function(){return M})),c.d(t,"F",(function(){return V})),c.d(t,"K",(function(){return T})),c.d(t,"i",(function(){return F})),c.d(t,"s",(function(){return P})),c.d(t,"L",(function(){return L})),c.d(t,"D",(function(){return A})),c.d(t,"e",(function(){return H})),c.d(t,"J",(function(){return X})),c.d(t,"c",(function(){return W})),c.d(t,"G",(function(){return Y})),c.d(t,"r",(function(){return z})),c.d(t,"q",(function(){return G})),c.d(t,"H",(function(){return U})),c.d(t,"N",(function(){return _}));c("99af");var n=c("59b9"),o=c("ba72"),a=c("2de2"),i=function(e){return Object(n["b"])().request("/api/company/config/".concat(e.companyId),o["b"].GET,void 0,o["a"].json)},r=function(e){return Object(n["b"])().request("".concat(a["b"],"weather/getCurrent?").concat(e),o["b"].GET,void 0,o["a"].json)},l=function(e){return Object(n["b"])().request("".concat(a["a"],"space/property"),o["b"].POST,e,o["a"].json)},s=function(e){return Object(n["b"])().request("".concat(a["a"],"meeting/room/scene/getMeetingScene/V2?spaceId=").concat(e.spaceId),o["b"].GET,void 0,o["a"].json)},u=function(e){return Object(n["b"])().request("".concat(a["a"],"object/equipment/findForServe?spaceId=").concat(e.spaceId),o["b"].POST,void 0,o["a"].json)},d=function(e){return Object(n["b"])().request("".concat(a["a"],"customScene/queryCustom?spaceId=").concat(e.spaceId),o["b"].GET,void 0,o["a"].json)},p=function(e){return Object(n["b"])().request("".concat(a["a"],"custom/feedback/documents"),o["b"].POST,e,o["a"].json)},f=function(e){return Object(n["b"])().request("".concat(a["a"],"custom/feedbackCreate/v2"),o["b"].POST,e,o["a"].json)},b=function(e){return Object(n["b"])({timeout:1e3}).request("".concat(a["a"],"light/status/query?spaceId=").concat(e.spaceId),o["b"].GET,void 0,o["a"].json)},g=function(e){return Object(n["c"])("".concat(a["a"],"light/onoff/set"),e)},m=function(e){return Object(n["c"])("".concat(a["a"],"object/eqp/infocode/set"),e)},h=function(e){return Object(n["c"])("".concat(a["a"],"light/onoff/setSatus"),e)},j=function(e){return Object(n["b"])().request("".concat(a["a"],"object/objectDataEqpGroup/query"),o["b"].POST,e,o["a"].json)},v=function(e){return Object(n["b"])().request("".concat(a["a"],"meeting/room/scene/switchover"),o["b"].POST,e,o["a"].json)},O=function(e){return Object(n["b"])().request("".concat(a["a"],"customScene/create"),o["b"].POST,e,o["a"].json)},S=function(e){return Object(n["b"])().request("".concat(a["a"],"/spaceAdjust/queryPropertyData?").concat(e),o["b"].GET,void 0,o["a"].json)},I=function(e){return Object(n["b"])().request("".concat(a["b"],"object/building/query"),o["b"].POST,e,o["a"].json)},y=function(e){return Object(n["b"])().request("".concat(a["b"],"object/floor/query"),o["b"].POST,e,o["a"].json)},k=function(e){return Object(n["b"])().request("".concat(a["c"],"map/queryMapInfo"),o["b"].POST,e,o["a"].json)},C=function(e){return Object(n["b"])().request("".concat(a["b"],"object/equipment/querySpaceEquipType?").concat(e),o["b"].GET,void 0,o["a"].json)},w=function(e){return Object(n["b"])().request("".concat(a["b"],"object/space/query"),o["b"].POST,e,o["a"].json)},B=function(e){return Object(n["b"])().request("".concat(a["c"],"permanentSpace/save"),o["b"].POST,e,o["a"].json)},N=function(){return Object(n["b"])().request("".concat(a["c"],"permanentSpace/query"),o["b"].GET,void 0,o["a"].json)},E=function(e){return Object(n["b"])().request("".concat(a["c"],"permanentSpace/delete?").concat(e))},D=function(){return Object(n["b"])().request("".concat(a["c"],"permanentSpace/queryZJ"),o["b"].GET,void 0,o["a"].json)},x=function(){return Object(n["b"])().request("".concat(a["b"],"object/equipment/querySpaceModeSet"),o["b"].GET,void 0,o["a"].json)},q=function(){return Object(n["b"])().request("".concat(a["b"],"object/equipment/querySpaceTempSet"),o["b"].GET,void 0,o["a"].json)},M=function(e){return Object(n["b"])().request("".concat(a["c"],"scene/querySpaceSceneConfig?").concat(e),o["b"].GET,void 0,o["a"].json)},V=function(e){return Object(n["b"])().request("".concat(a["a"],"customScene/queryCustomAndScence?").concat(e),o["b"].GET,void 0,o["a"].json)},T=function(e){return Object(n["c"])("".concat(a["a"],"customScene/saveBatchCustomScene"),e)},F=function(e){return Object(n["b"])().request("".concat(a["c"],"padSpace/getDefaultLocation?").concat(e),o["b"].GET,void 0,o["a"].json)},P=function(e){return Object(n["b"])().request("".concat(a["c"],"padSpace/getPadSpaceList?").concat(e),o["b"].GET,void 0,o["a"].json)},L=function(e){return Object(n["b"])().request("".concat(a["c"],"padSpace/saveWorkSpace"),o["b"].POST,e,o["a"].json)},A=function(e){return Object(n["b"])().request("".concat(a["c"],"padSpace/insertWorkSpace"),o["b"].POST,e,o["a"].json)},H=function(e){return Object(n["b"])().request("".concat(a["c"],"padSpace/deleteWorkSpace"),o["b"].POST,e,o["a"].json)},X=function(e){return Object(n["b"])().request("".concat(a["c"],"padSpace/queryWorkSpace"),o["b"].POST,e,o["a"].json)},W=function(e){return Object(n["b"])().request("".concat(a["c"],"padSpace/queryWorkSpace"),o["b"].POST,e,o["a"].json)},Y=function(e){return Object(n["b"])().request("".concat(a["d"],"wechat-service-duoduoenv/duoduoenv/customerservice/query"),o["b"].POST,e,o["a"].json)},z=function(e){return Object(n["b"])().request("".concat(a["c"],"padLogin/getPadQrCodeStatus?").concat(e),o["b"].GET,void 0,o["a"].json)},G=function(e){return Object(n["b"])().request("".concat(a["c"],"padImage/queryImageByFuncType?").concat(e),o["b"].GET,void 0,o["a"].json)},U=function(e){return Object(n["b"])().request("".concat(a["a"],"ctrl/querySpaceConditioners?").concat(e),o["b"].GET,void 0,o["a"].json)},_=function(e){return Object(n["c"])("".concat(a["a"],"ctrl/set"),e)}},"6a79":function(e,t,c){"use strict";c.d(t,"c",(function(){return n})),c.d(t,"a",(function(){return o})),c.d(t,"b",(function(){return a}));var n={"公共区域":{backgroundColor:"#DFE3ED",icon:"storeroom.svg",selectIcon:"storeroomselected.svg"},"卫生间":{backgroundColor:"#fff",selectIcon:"toiletSelect.svg",icon:"toilet.svg"},"走廊":{icon:"passage.svg",backgroundColor:"#fff",selectIcon:"passageselected.svg"},"母婴室":{backgroundColor:"#fff",icon:"baby.svg",selectIcon:"babyselected.svg"},"电梯厅":{icon:"elevator.svg",selectIcon:"elevatoSelect.svg",backgroundColor:"#DFE3ED"},"楼梯间":{backgroundColor:"#DFE3ED",icon:"stairsx.svg",selectIcon:"stairsxselected.svg"},"打印":{backgroundColor:"#DFE3ED",icon:"print.svg",selectIcon:"printselected.svg"},"休闲活动区":{icon:"coffee.svg",backgroundColor:"#DFE3ED",selectIcon:"coffeeselected.svg"},"普通办公区":{icon:"dev.svg",selectIcon:"devselected.svg",backgroundColor:"#DFE3ED",circleColor:"#7FBEFA"},"办公室":{backgroundColor:"#fff",circleColor:"#7582B0",icon:"officeroom.svg",selectIcon:"officeroomselected.svg"},"会议室":{backgroundColor:"#fff",circleColor:"#F2918E",icon:"mroom.svg",selectIcon:"mroomSelect.svg"},"多功能厅":{backgroundColor:"#fff",circleColor:"#7582B0",icon:"vector.svg",selectIcon:"vectorSelect.svg"},"接待室":{backgroundColor:"#fff",circleColor:"#7582B0",icon:"jiedaiqu.svg",selectIcon:"jiedaiquSelect.svg"},"门厅":{backgroundColor:"#DFE3ED",circleColor:"#7582B0",icon:"jiedaiqu.svg",selectIcon:"jiedaiquSelect.svg"},"档案库":{backgroundColor:"#fff",circleColor:"#7582B0",icon:"chucang.svg",selectIcon:"chucangshiSelect.svg"},"更衣室":{backgroundColor:"#fff",circleColor:"#7582B0",icon:"gengyishi.svg",selectIcon:"gengyishiSelect.svg"},"厨房":{backgroundColor:"#fff",circleColor:"#7582B0",icon:"chufang.svg",selectIcon:"chufangSelect.svg"},"餐饮区":{backgroundColor:"#DFE3ED",circleColor:"#7582B0",icon:"canyin.svg",selectIcon:"canyinSelect.svg"},"设备间":{backgroundColor:"#fff",circleColor:"#7582B0",icon:"deviceroom.svg",selectIcon:"deviceroomselected.svg"},"健身房":{backgroundColor:"#DFE3ED",circleColor:"#7582B0",icon:"jianshenfang.svg",selectIcon:"jianshenfangSelect.svg"},"体育管":{backgroundColor:"#DFE3ED",circleColor:"#7582B0",icon:"tiyuguan.svg",selectIcon:"tiyuguanSelect.svg"},"游泳馆":{backgroundColor:"#DFE3ED",circleColor:"#7582B0",icon:"youyong.svg",selectIcon:"youyongSelect.svg"},"图书馆":{backgroundColor:"#DFE3ED",circleColor:"#7582B0",icon:"tushuguan.svg",selectIcon:"tushuguanSelect.svg"},"活动区":{backgroundColor:"#DFE3ED",circleColor:"#7582B0",icon:"huodongqu.svg",selectIcon:"huodongquSelect.svg"},"实验室":{backgroundColor:"#fff",circleColor:"#7582B0",icon:"shiyanqu.svg",selectIcon:"shiyanquSelect.svg"},"值班室":{backgroundColor:"#fff",circleColor:"#7582B0",icon:"zhibanshi.svg",selectIcon:"zhibanshiSelect.svg"},"收费室":{backgroundColor:"#fff",circleColor:"#7582B0",icon:"finance.svg",selectIcon:"financeselected.svg"},"护士站":{backgroundColor:"#DFE3ED",circleColor:"#7582B0",icon:"nurse.svg",selectIcon:"nurseSelect.svg"}},o=function(e){var t="公共区域";return t="100"===e||"1A0"===e||"0"===e||"443"===e||"453"===e?"公共区域":"111"===e?"卫生间":"113"===e?"母婴室":"120"===e?"走廊":"130"===e?"电梯厅":"140"===e?"楼梯间":"170"===e||"600"===e||"223"===e||"930"===e?"休闲活动区":"300"===e||"313"===e||"314"===e||"315"===e||"330"===e?"普通办公区":"312"===e||"311"===e||"310"===e?"办公室":"310"===e||"321"===e||"322"===e||"320"===e?"会议室":"490"===e||"323"===e||"931"===e?"多功能厅":"331"===e?"接待室":"160"===e?"门厅":"333"===e||"250"===e||"253"===e?"档案库":"112"===e?"更衣室":"220"===e||"221"===e?"餐饮区":"430"===e||"410"===e||"400"===e||"4B0"===e||"441"===e||"442"===e||"451"===e||"452"===e||"461"===e||"462"===e||"471"===e||"472"===e||"733"===e||"440"===e||"450"===e?"厨房":"252"===e||"246"===e||"1B5"===e||"234"===e||"231"===e||"230"===e||"233"===e||"232"===e||"234"===e||"235"===e||"236"===e||"237"===e||"241"===e||"242"===e||"244"===e||"245"===e||"251"===e||"254"===e||"211"===e||"212"===e||"222"===e?"设备间":"690"===e?"健身房":"932"===e||"934"===e||"933"===e||"6A0"===e?"体育管":"935"===e?"图书馆":"936"===e||"937"===e||"938"===e||"915"===e?"活动区":"921"===e||"922"===e||"923"===e||"920"===e||"926"===e||"924"===e||"925"===e||"926"===e?"实验室":"243"===e||"332"===e?"值班室":"334"===e?"收费室":"335"===e?"护士站":"公共区域",t},a=function(e){var t="其它";return t="312"===e||"311"===e||"310"===e?"个人":"320"===e||"321"===e||"322"===e||"323"===e?"会议室":"开放",t}},"7a89":function(e,t,c){},b3aa:function(e,t,c){"use strict";c("fee7")},b650:function(e,t,c){"use strict";c.d(t,"a",(function(){return h})),c.d(t,"b",(function(){return j}));var n=c("c199"),o=c("7a23"),a=c("fe7e"),i=c("f344"),r=c("f691"),l=c("4a89"),s=c("b1d2"),u=c("b070"),d=c("ad06"),p=c("543e");const[f,b]=Object(a["a"])("button"),g=Object(i["a"])({},u["b"],{tag:Object(r["e"])("button"),text:String,icon:String,type:Object(r["e"])("default"),size:Object(r["e"])("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:Object(r["e"])("button"),loadingSize:r["f"],loadingText:String,loadingType:String,iconPosition:Object(r["e"])("left")});var m=Object(o["defineComponent"])({name:f,props:g,emits:["click"],setup(e,{emit:t,slots:c}){const n=Object(u["c"])(),a=()=>c.loading?c.loading():Object(o["createVNode"])(p["a"],{size:e.loadingSize,type:e.loadingType,class:b("loading")},null),i=()=>e.loading?a():c.icon?Object(o["createVNode"])("div",{class:b("icon")},[c.icon()]):e.icon?Object(o["createVNode"])(d["a"],{name:e.icon,class:b("icon"),classPrefix:e.iconPrefix},null):void 0,r=()=>{let t;if(t=e.loading?e.loadingText:c.default?c.default():e.text,t)return Object(o["createVNode"])("span",{class:b("text")},[t])},f=()=>{const{color:t,plain:c}=e;if(t){const e={color:c?t:"white"};return c||(e.background=t),t.includes("gradient")?e.border=0:e.borderColor=t,e}},g=c=>{e.loading?Object(l["e"])(c):e.disabled||(t("click",c),n())};return()=>{const{tag:t,type:c,size:n,block:a,round:l,plain:u,square:d,loading:p,disabled:m,hairline:h,nativeType:j,iconPosition:v}=e,O=[b([c,n,{plain:u,block:a,round:l,square:d,loading:p,disabled:m,hairline:h}]),{[s["b"]]:h}];return Object(o["createVNode"])(t,{type:j,class:O,style:f(),disabled:m,onClick:g},{default:()=>[Object(o["createVNode"])("div",{class:b("content")},["left"===v&&i(),r(),"right"===v&&i()])]})}}});const h=Object(n["a"])(m);var j=h},bc1b:function(e,t,c){},d4ef:function(e,t,c){},d916:function(e,t,c){e.exports={menuBg:"#fff",menuText:"#162b64",menuActiveText:"#435ebe"}},e17f:function(e,t,c){"use strict";c("68ef"),c("d4ef"),c("cb51"),c("3743"),c("e3b3"),c("bc1b"),c("1703"),c("a71a"),c("4d75"),c("2fcb")},e4cb:function(e,t,c){"use strict";c("36e1")},fcad:function(e,t,c){"use strict";c("d916")},fee7:function(e,t,c){}}]);
- //# sourceMappingURL=chunk-65cea362.3bb23099.js.map
|