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