(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-434a8406","chunk-6c149b5a"],{"0500":function(e,t,n){"use strict";var c=n("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"],m=["onClick"],g={style:{width:"100%",height:"100%"}};n("99af"),n("d81d"),n("4057"),n("a9e3");var h=n("5530"),v=n("d257"),j=n("d399"),O=(n("e7e5"),n("2241")),S=(n("e17f"),n("459d")),y={class:"ignore_com-top"},I={class:"page-search content-box ptheader"},C={action:"/"},k={class:"search-box"},w={class:"top"},B=function(e){return Object(c.pushScopeId)("data-v-44b481c8"),e=e(),Object(c.popScopeId)(),e}((function(){return Object(c.createElementVNode)("div",null,"最近查找",-1)})),N=["onClick"],D=["src"],E=["onClick"],x=["src"],A={style:{width:"100%",height:"100%"}},M=n("d961"),q=(n("5852"),n("6c02")),T=n("0613"),P={class:"ignore_com-top"},V={class:"page-search content-box ptheader"},F={class:"search-box"},L=["onClick"],X=["src"],R=Object(c.defineComponent)({emits:["closeMetting"],props:{projectId:{type:String,default:function(){return""}}},components:{VanSearch:M.a},setup:function(e,t){var n=T.a.state.user,o=Object(c.reactive)({parseImgUrl:v.y,spaceName:"",userInfo:n,searchData:[],goBack:function(){t.emit("closeMetting",null)},triggerSearchSpace:function(e){t.emit("closeMetting",e)},getSpaceLike:function(){var e={criteria:{projectId:n.projectId,localName:{$like:"%".concat(o.spaceName,"%")}}};Object(S.y)(e).then((function(e){"success"===e.result?o.searchData=null!=(e=null==e?void 0:e.content)?e:[]:o.searchData=[]}))}});return Object(c.onBeforeMount)((function(){o.getSpaceLike()})),Object(h.a)({},Object(c.toRefs)(o))}}),H=(n("b3aa"),n("e4cb"),n("6b0d")),Y=(H=n.n(H),R=H()(R,[["render",function(e,t,n,o,a,i){var r=Object(c.resolveComponent)("VanIcon");return Object(c.openBlock)(),Object(c.createElementBlock)(c.Fragment,null,[Object(c.createElementVNode)("div",P,[Object(c.createElementVNode)("div",{class:"header-return",onClick:t[0]||(t[0]=function(){return e.goBack&&e.goBack.apply(e,arguments)})},[Object(c.createVNode)(r,{name:"arrow-left"})])]),Object(c.createElementVNode)("div",V,[Object(c.createElementVNode)("div",F,[Object(c.createElementVNode)("div",null,[e.searchData&&e.searchData.length?(Object(c.openBlock)(!0),Object(c.createElementBlock)(c.Fragment,{key:0},Object(c.renderList)(e.searchData,(function(t){return Object(c.openBlock)(),Object(c.createElementBlock)("div",{class:"space-item",onClick:function(n){return e.triggerSearchSpace(t)}},[Object(c.createElementVNode)("img",{src:e.parseImgUrl("search-icon","icon_meetingroom.svg"),alt:""},null,8,X),Object(c.createElementVNode)("p",null,Object(c.toDisplayString)(t.localName),1)],8,L)})),256)):Object(c.createCommentVNode)("",!0)])])])],64)}],["__scopeId","data-v-1406cd06"]]),R=Object(c.defineComponent)({emits:["closeSearch"],props:{projectId:{type:String,default:function(){return""}}},components:{VanSearch:M.a,SpaceMetting:R},setup:function(e,t){Object(q.d)();var n=T.a.state.user,o=Object(c.reactive)({parseImgUrl:v.y,showMetting:!1,spaceName:"",userInfo:n,searchData:[],historySearchData:[],goBack:function(){t.emit("closeSearch",null)},closeMetting:function(e){o.showMetting=!1,t.emit("closeSearch",e)},onSearch:function(){o.spaceName&&o.getSpaceLike()},onCancel:function(){o.searchData=[],o.getHistorySearch()},clearHistorySearch:function(){o.historySearchData=[]},getHistorySearch:function(){o.historySearchData=Object(v.j)()},triggerSearchSpace:function(e){Object(v.A)(e),t.emit("closeSearch",e)},getSpaceLike:function(){var e={criteria:{projectId:n.projectId,localName:{$like:"%".concat(o.spaceName,"%")}}};Object(S.y)(e).then((function(e){"success"===e.result?o.searchData=null!=(e=null==e?void 0:e.content)?e:[]:o.searchData=[]}))},goMetting:function(){o.showMetting=!0}});return Object(c.onMounted)((function(){o.historySearchData=Object(v.j)()})),Object(h.a)({},Object(c.toRefs)(o))}}),R=(n("3dfb"),n("fcad"),H()(R,[["render",function(e,t,n,o,a,i){var r=Object(c.resolveComponent)("VanIcon"),l=Object(c.resolveComponent)("van-search"),s=Object(c.resolveComponent)("space-metting"),u=Object(c.resolveComponent)("van-popup");return Object(c.openBlock)(),Object(c.createElementBlock)(c.Fragment,null,[Object(c.createElementVNode)("div",y,[Object(c.createElementVNode)("div",{class:"header-return",onClick:t[0]||(t[0]=function(){return e.goBack&&e.goBack.apply(e,arguments)})},[Object(c.createVNode)(r,{name:"arrow-left"})])]),Object(c.createElementVNode)("div",I,[Object(c.createElementVNode)("form",C,[Object(c.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(c.createElementVNode)("div",k,[Object(c.createElementVNode)("div",w,[B,Object(c.createElementVNode)("div",null,[Object(c.createElementVNode)("span",{onClick:t[2]||(t[2]=function(){return e.goMetting&&e.goMetting.apply(e,arguments)})},"查看所有会议室")])]),e.searchData&&e.searchData.length?(Object(c.openBlock)(!0),Object(c.createElementBlock)(c.Fragment,{key:0},Object(c.renderList)(e.searchData,(function(t){return Object(c.openBlock)(),Object(c.createElementBlock)("div",{class:"space-item",onClick:function(n){return e.triggerSearchSpace(t)}},[Object(c.createElementVNode)("img",{src:e.parseImgUrl("search-icon","icon_location.svg"),alt:""},null,8,D),Object(c.createElementVNode)("p",null,Object(c.toDisplayString)(t.localName),1)],8,N)})),256)):(Object(c.openBlock)(!0),Object(c.createElementBlock)(c.Fragment,{key:1},Object(c.renderList)(e.historySearchData,(function(t){return Object(c.openBlock)(),Object(c.createElementBlock)("div",{class:"space-item",onClick:function(n){return e.triggerSearchSpace(t)}},[Object(c.createElementVNode)("img",{src:e.parseImgUrl("search-icon","icon_location.svg"),alt:""},null,8,x),Object(c.createElementVNode)("p",null,Object(c.toDisplayString)(t.localName),1)],8,E)})),256))])]),Object(c.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(c.withCtx)((function(){return[Object(c.createElementVNode)("div",A,[Object(c.createVNode)(s,{onCloseMetting:e.closeMetting},null,8,["onCloseMetting"])])]})),_:1},8,["show"])],64)}],["__scopeId","data-v-44b481c8"]])),{id:"myCanvas",class:"canvas-dom"});n("cb29"),n("d3b7"),n("3ca3"),n("ddb0");var W=n("6a79");M=Object(c.defineComponent)({props:{mapData:{type:Object,default:function(){}}},components:{VanSearch:M.a},setup:function(e,t){var o=Object(c.reactive)({mapData:e.mapData,iconData:[],parseImgUrl:v.y,canvasImageArr:{},ctx:{},setSpaceIcon:function(e){var t;e.canClick?(t=Object(W.a)(e.roomFuncType),e.icon=W.c[t].icon,e.selectIcon=W.c[t].selectIcon,e.backgroundColor=W.c[t].backgroundColor,e.bg=W.c[t].bg,e.icon=Object(v.y)("map-new-icon",e.icon),e.selectIcon=Object(v.y)("map-new-icon",e.selectIcon)):e.icon=""},scaleCanvas:function(e){o.mapData=e,document.querySelectorAll(".load-icon"),o.canvasImageArr={},o.initCanvas(1)},initCanvas:function(){var e=0=e.left&&c<=e.left+20&&a>=e.top&&a=r.screenInfo.screenWidth/2?~(n=e.left-r.screenInfo.screenWidth/2+e.width/2):0)&&(n=0),Math.abs(n)>t.offsetWidth-r.screenInfo.screenWidth&&(n=-(t.offsetWidth-r.screenInfo.screenWidth)),t.style.left=n+"px"},scrollTop:function(e){o.querySelector("#map");var t=o.querySelector("#spaceMain"),n=o.querySelector("#houseDes"),c=(n=n?n.offsetHeight:0,0);c=e.top+e.width>(r.screenInfo.screenHeight-n-20)/2?e.top-(r.screenInfo.screenHeight-n)/2+e.height/2:0;t.style.top=(c=0<(c=~c)?0:c)+"px"},checkSpace:function(e){e.disabled?Object(j.a)("该空间和平板没绑定,暂不支持查看"):(r.isSetSearchSpace=!1,e&&e.canClick?(1==r.mapType&&r.setSelectSpacePosition(e),r.selectArea=e,r.selectArea.buildingId=r.buildingItem.buildingId,r.setLocalSpaceInfo(),t.emit("changeSpace",r.selectArea)):Object(j.a)("不可选区域"))},comfirSetSpace:function(n){(n.spaceId===e.spaceInfo.spaceId?O.a.confirm({title:"取消常驻空间",confirmButtonColor:"#000000",cancelButtonColor:"#4D5262",message:"\n 是否取消常驻空间设置 ? "}).then((function(){t.emit("delPermanentSpace")})):O.a.confirm({title:"设置常驻空间",confirmButtonColor:"#000000",cancelButtonColor:"#4D5262",message:"是否将常驻空间设置为".concat(n.localName,"?")}).then((function(){r.selectArea=n,t.emit("changeSpaceId",r.selectArea.spaceId)}))).catch((function(){}))},setLocalSpaceInfo:function(){Object(v.w)(r.buildingItem.buildingId,r.floorItem.id,r.selectArea.spaceId);var e={buildingId:r.buildingItem.buildingId,buildingName:r.buildingItem.localName,floorId:r.floorItem.id,floorName:r.floorItem.localName,spaceId:r.selectArea.spaceId};Object(v.z)(e)},getDistance:function(e,t){return Math.hypot(t.x-e.x,t.y-e.y)},formateMapData:function(){var t=e.spaceData,n=r.mapData;if(n){r.setSpaceScale(),r.setTempScale(),n.width<3e3&&(r.comMapScale=.8),"Pj1101020007"==e.projectId&&(r.comMapScale=1.5),n.width=n.width*r.comMapScale,n.height=n.height*r.comMapScale;for(var c,o=null!=(c=null==n?void 0:n.spaceList)?c:[],a=0;a{var n;return Object(c.createVNode)("div",{class:[h(),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[null==(n=t.default)?void 0:n.call(t)])}}});const O=Object(t.a)(j);var S=n("4eda"),y=n("b070");const[I,C]=Object(i.a)("action-bar-button");j=Object(o.a)({},y.b,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean}),n=Object(c.defineComponent)({name:I,props:j,setup(e,{slots:t}){const n=Object(y.c)(),{parent:o,index:a}=Object(m.k)(v),i=Object(c.computed)(()=>{var e;if(o)return!((e=o.children[a.value-1])&&"isButton"in e)}),r=Object(c.computed)(()=>{var e;if(o)return!((e=o.children[a.value+1])&&"isButton"in e)});return Object(S.a)({isButton:!0}),()=>{const{type:o,icon:a,text:l,color:s,loading:u,disabled:d}=e;return Object(c.createVNode)(b.a,{class:C([o,{last:r.value,first:i.value}]),size:"large",type:o,icon:a,color:s,loading:u,disabled:d,onClick:n},{default:()=>[t.default?t.default():l]})}}});const k=Object(t.a)(n),[w,B,N]=Object(i.a)("dialog");j=Object(o.a)({},p.b,{title:String,theme:String,width:r.f,message:[String,Function],callback:Function,allowHtml:Boolean,className:r.h,transition:Object(r.e)("van-dialog-bounce"),messageAlign:String,closeOnPopstate:r.g,showCancelButton:Boolean,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showConfirmButton:r.g,closeOnClickOverlay:Boolean});const D=[...p.a,"transition","closeOnPopstate"];var E=Object(c.defineComponent)({name:w,props:j,emits:["confirm","cancel","keydown","update:show"],setup(e,{emit:t,slots:n}){const a=Object(c.ref)(),i=Object(c.reactive)({confirm:!1,cancel:!1}),r=e=>t("update:show",e),p=t=>{var n;r(!1),null!=(n=e.callback)&&n.call(e,t)};var m=n=>()=>{e.show&&(t(n),e.beforeClose?(i[n]=!0,Object(l.a)(e.beforeClose,{args:[n],done(){p(n),i[n]=!1},canceled(){i[n]=!1}})):p(n))};const g=m("cancel"),h=m("confirm"),v=Object(c.withKeys)(n=>{var c;if(n.target===(null==(c=null==(c=a.value)?void 0:c.popupRef)?void 0:c.value)){const c={Enter:e.showConfirmButton?h:o.d,Escape:e.showCancelButton?g:o.d};c[n.key](),t("keydown",n)}},["enter","esc"]),j=()=>{if(n.default)return Object(c.createVNode)("div",{class:B("content")},[n.default()]);var{title:t,message:o,allowHtml:a}=e;return o?(o=!(!t&&!n.title),Object(c.createVNode)("div",{key:a?1:0,class:B("content",{isolated:!o})},[(t=>{const{message:n,allowHtml:o,messageAlign:a}=e;t=B("message",{"has-title":t,[a]:a});var i=Object(s.c)(n)?n():n;return o&&"string"==typeof i?Object(c.createVNode)("div",{class:t,innerHTML:i},null):Object(c.createVNode)("div",{class:t},[i])})(o)])):void 0},S=()=>n.footer?n.footer():"round-button"===e.theme?Object(c.createVNode)(O,{class:B("footer")},{default:()=>[e.showCancelButton&&Object(c.createVNode)(k,{type:"warning",text:e.cancelButtonText||N("cancel"),class:B("cancel"),color:e.cancelButtonColor,loading:i.cancel,onClick:g},null),e.showConfirmButton&&Object(c.createVNode)(k,{type:"danger",text:e.confirmButtonText||N("confirm"),class:B("confirm"),color:e.confirmButtonColor,loading:i.confirm,onClick:h},null)]}):Object(c.createVNode)("div",{class:[u.c,B("footer")]},[e.showCancelButton&&Object(c.createVNode)(b.a,{size:"large",text:e.cancelButtonText||N("cancel"),class:B("cancel"),style:{color:e.cancelButtonColor},loading:i.cancel,onClick:g},null),e.showConfirmButton&&Object(c.createVNode)(b.a,{size:"large",text:e.confirmButtonText||N("confirm"),class:[B("confirm"),{[u.a]:e.showCancelButton}],style:{color:e.confirmButtonColor},loading:i.confirm,onClick:h},null)]);return()=>{var{width:t,title:i,theme:l,message:s,className:u}=e;return Object(c.createVNode)(f.a,Object(c.mergeProps)({ref:a,role:"dialog",class:[B([l]),u],style:{width:Object(d.b)(t)},tabindex:0,"aria-labelledby":i||s,onKeydown:v,"onUpdate:show":r},Object(o.e)(e,D)),{default:()=>[(()=>{var t=n.title?n.title():e.title;if(t)return Object(c.createVNode)("div",{class:B("header",{isolated:!e.message&&!n.default})},[t])})(),j(),S()]})}}});let x;function A(e){return o.c?new Promise((t,n)=>{var i;x||(i={setup(){const{state:e,toggle:t}=Object(a.b)();return()=>Object(c.createVNode)(E,Object(c.mergeProps)(e,{"onUpdate:show":t}),null)}},({instance:x}=Object(a.a)(i))),x.open(Object(o.a)({},A.currentOptions,e,{callback:e=>{("confirm"===e?t:n)(e)}}))}):Promise.resolve()}A.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},A.currentOptions=Object(o.a)({},A.defaultOptions),(A.alert=A).confirm=e=>A(Object(o.a)({showCancelButton:!0},e)),A.close=()=>{x&&x.toggle(!1)},A.setDefaultOptions=e=>{Object(o.a)(A.currentOptions,e)},A.resetDefaultOptions=()=>{A.currentOptions=Object(o.a)({},A.defaultOptions)},A.Component=Object(t.a)(E),A.install=e=>{e.use(A.Component),e.config.globalProperties.$dialog=A};var M=A},"2b48":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAA3SURBVHgBzcmxDQAgCAVRPxO5ipM6ko0xxkYnQKUHaq654iEZ9bUzMSo8ZLpFxTFPk4dAycXfA1ISQWorFT5NAAAAAElFTkSuQmCC"},"2fcb":function(e,t,n){},"36e1":function(e,t,n){e.exports={menuBg:"#fff",menuText:"#162b64",menuActiveText:"#435ebe"}},"3dfb":function(e,t,n){"use strict";n("7a89")},4057:function(e,t,n){n=n("23e7");var c=Math.hypot,o=Math.abs,a=Math.sqrt;n({target:"Math",stat:!0,forced:!!c&&c(1/0,NaN)!==1/0},{hypot:function(e,t){for(var n,c,i=0,r=0,l=arguments.length,s=0;rk;k++)l(j,y=C[k])&&!l(I,y)&&g(I,y,m(j,y));(I.prototype=O).constructor=I,r(a,v,I)}},b3aa:function(e,t,n){"use strict";n("fee7")},b650:function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return m}));t=n("c199");var c=n("7a23"),o=n("fe7e"),a=n("f344"),i=n("f691"),r=n("4a89"),l=n("b1d2"),s=n("b070"),u=n("ad06"),d=n("543e");const[p,f]=Object(o.a)("button");n=Object(a.a)({},s.b,{tag:Object(i.e)("button"),text:String,icon:String,type:Object(i.e)("default"),size:Object(i.e)("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:Object(i.e)("button"),loadingSize:i.f,loadingText:String,loadingType:String,iconPosition:Object(i.e)("left")}),o=Object(c.defineComponent)({name:p,props:n,emits:["click"],setup(e,{emit:t,slots:n}){const o=Object(s.c)(),a=()=>e.loading?n.loading?n.loading():Object(c.createVNode)(d.a,{size:e.loadingSize,type:e.loadingType,class:f("loading")},null):n.icon?Object(c.createVNode)("div",{class:f("icon")},[n.icon()]):e.icon?Object(c.createVNode)(u.a,{name:e.icon,class:f("icon"),classPrefix:e.iconPrefix},null):void 0,i=n=>{e.loading?Object(r.e)(n):e.disabled||(t("click",n),o())};return()=>{const{tag:t,type:o,size:r,block:s,round:u,plain:d,square:p,loading:b,disabled:m,hairline:g,nativeType:h,iconPosition:v}=e;var j=[f([o,r,{plain:d,block:s,round:u,square:p,loading:b,disabled:m,hairline:g}]),{[l.b]:g}];return Object(c.createVNode)(t,{type:h,class:j,style:(()=>{const{color:t,plain:n}=e;if(t){const e={color:n?t:"white"};return n||(e.background=t),t.includes("gradient")?e.border=0:e.borderColor=t,e}})(),disabled:m,onClick:i},{default:()=>[Object(c.createVNode)("div",{class:f("content")},["left"===v&&a(),(()=>{let t;if(t=e.loading?e.loadingText:n.default?n.default():e.text)return Object(c.createVNode)("span",{class:f("text")},[t])})(),"right"===v&&a()])]})}}});const b=Object(t.a)(o);var m=b},bc1b:function(e,t,n){},cb29:function(e,t,n){var c=n("23e7"),o=n("81d5");n=n("44d2");c({target:"Array",proto:!0},{fill:o}),n("fill")},d4ef:function(e,t,n){},d916:function(e,t,n){e.exports={menuBg:"#fff",menuText:"#162b64",menuActiveText:"#435ebe"}},e108:function(e,t,n){"use strict";n("5c09")},e17f:function(e,t,n){"use strict";n("68ef"),n("d4ef"),n("cb51"),n("3743"),n("e3b3"),n("bc1b"),n("1703"),n("a71a"),n("4d75"),n("2fcb")},e4cb:function(e,t,n){"use strict";n("36e1")},fcad:function(e,t,n){"use strict";n("d916")},fee7:function(e,t,n){}}]);