(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2c83f0e0"],{"013b":function(t,e,o){"use strict";var n=o("795a"),s=o.n(n);s.a},"0d6e":function(t,e,o){},"127c":function(t,e,o){"use strict";var n=o("6306"),s=o.n(n);s.a},"12e0":function(t,e,o){},"14b9":function(t,e,o){var n=o("5ca1");n(n.P,"String",{repeat:o("9744")})},"164b":function(t,e,o){"use strict";var n=o("7b42"),s=o.n(n);s.a},"18e8":function(t,e,o){},"29b2":function(t,e,o){"use strict";var n;o.d(e,"a",(function(){return s})),o.d(e,"b",(function(){return a}));var s={Data:"jsondata",Send:"getJson",Connection:"connection",Disconnect:"disconnect"};function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=Object({NODE_ENV:"production",VUE_APP_CDN_URL:"",VUE_APP_HIDE_MENU:"scene,decor,virtual,vrhouse,business",VUE_APP_INCLUDEAPPS:"embed,shop,decor,discover,reserve,grave,fire-control,rtc-live",VUE_APP_LANGS:"zh#中文,en#英文,de#德文,fr#法文,jp#日文,kr#韩文,es#西班牙文",VUE_APP_LOCAL_PAGE:"embed",VUE_APP_OEM:"localshow",VUE_APP_OEM_NAEM:"本地版展示页面",VUE_APP_OPENAPI:"",VUE_APP_RTC_SOCKETURL:"",VUE_APP_SERVER_URL:"",VUE_APP_SHOP_ADMIN_URL:"",VUE_APP_SHOP_SOCKETURL:"",VUE_APP_SHOP_URL:"",VUE_APP_STATIC_DIR:"static",VUE_APP_STATIC_URL:"static/",VUE_APP_TESTKEY:"test",VUE_APP_TESTPWD:"11111111Aa",VUE_APP_TESTUSR:"13112311178",VUE_APP_VRHOUSE_OPENAPI:"",VUE_APP_VRHOUSE_URL:"",BASE_URL:""}).VUE_APP_SOCKETURL||t.url,s=Object({NODE_ENV:"production",VUE_APP_CDN_URL:"",VUE_APP_HIDE_MENU:"scene,decor,virtual,vrhouse,business",VUE_APP_INCLUDEAPPS:"embed,shop,decor,discover,reserve,grave,fire-control,rtc-live",VUE_APP_LANGS:"zh#中文,en#英文,de#德文,fr#法文,jp#日文,kr#韩文,es#西班牙文",VUE_APP_LOCAL_PAGE:"embed",VUE_APP_OEM:"localshow",VUE_APP_OEM_NAEM:"本地版展示页面",VUE_APP_OPENAPI:"",VUE_APP_RTC_SOCKETURL:"",VUE_APP_SERVER_URL:"",VUE_APP_SHOP_ADMIN_URL:"",VUE_APP_SHOP_SOCKETURL:"",VUE_APP_SHOP_URL:"",VUE_APP_STATIC_DIR:"static",VUE_APP_STATIC_URL:"static/",VUE_APP_TESTKEY:"test",VUE_APP_TESTPWD:"11111111Aa",VUE_APP_TESTUSR:"13112311178",VUE_APP_VRHOUSE_OPENAPI:"",VUE_APP_VRHOUSE_URL:"",BASE_URL:""}).VUE_APP_SOCKETPATH||t.path;return n=io(o,{path:s||"/",query:e}),n}},"2a3b":function(t,e,o){"use strict";var n=o("a401"),s=o.n(n);s.a},"2ed7":function(t,e,o){},3133:function(t,e,o){"use strict";var n=o("6372"),s=o.n(n);s.a},3437:function(t,e,o){},"34c2":function(t,e,o){"use strict";var n=o("2ed7"),s=o.n(n);s.a},"48ea":function(t,e,o){"use strict";var n=o("9894"),s=o.n(n);s.a},"59f3":function(t,e,o){"use strict";var n=o("d410"),s=o.n(n);s.a},"5d77":function(t,e,o){"use strict";var n=o("8429"),s=o.n(n);s.a},6306:function(t,e,o){},6372:function(t,e,o){},7210:function(t,e,o){"use strict";var n=o("0d6e"),s=o.n(n);s.a},7747:function(t,e,o){"use strict";var n=o("3437"),s=o.n(n);s.a},"795a":function(t,e,o){},"7b42":function(t,e,o){},8429:function(t,e,o){},8508:function(t,e,o){},9096:function(t,e,o){"use strict";var n=o("8508"),s=o.n(n);s.a},9744:function(t,e,o){"use strict";var n=o("4588"),s=o("be13");t.exports=function(t){var e=String(s(this)),o="",a=n(t);if(a<0||a==1/0)throw RangeError("Count can't be negative");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(o+=e);return o}},9894:function(t,e,o){},"99bf":function(t,e,o){"use strict";var n=o("d002"),s=o.n(n);s.a},"9a39":function(t,e,o){"use strict";o.d(e,"e",(function(){return m})),o.d(e,"d",(function(){return x})),o.d(e,"b",(function(){return C})),o.d(e,"a",(function(){return O})),o.d(e,"c",(function(){return S}));var n=o("53ca"),s=(o("7f7f"),o("ac6a"),o("6b54"),o("c75e")),a=o("617a"),i=o("c7b2"),r=o("80c5"),c=o("eb02"),l=o("29b2"),u=null,d=!1,p=null,h=null,f=null,m=a["a"].urlQueryValue("role"),w=a["a"].urlQueryValue("user_id"),v=a["a"].urlQueryValue("room_id");function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";u.emit(e||l["a"].Send,{role:m,roomId:v,userId:w,content:t})}function g(t){if(null==p)return b(t),!1;if(p.mode!=t.mode)return b(t),!1;if(p.mode==r["a"].PANORAMA)return!!p.qua.equals(t.qua)||(b(t),!1);if(p.mode==r["a"].DOLLHOUSE){var e=!0;return t.qua&&p.qua&&(p.qua.equals(t.qua)||(e=!1)),t.pos&&p.pos&&(p.pos.equals(t.pos)||(e=!1)),t.target&&p.target&&(p.target.equals(t.target)||(e=!1)),p.zoom&&(p.zoom.equals(t.zoom)||(e=!1)),e||b(t),e}var o=!0;return p.qua.equals(t.qua)?(p.pos&&(p.pos.equals(t.pos)||(o=!1)),p.zoom&&p.zoom!=t.zoom&&(o=!1)):o=!1,o||b(t),o}function b(t){p={},p.mode=t.mode,t.pos&&(p.pos=new THREE.Vector3,p.pos.set(t.pos.x,t.pos.y,t.pos.z)),t.qua&&(p.qua=new THREE.Quaternion,p.qua.set(t.qua._x,t.qua._y,t.qua._z,t.qua._w)),t.target&&(p.target=new THREE.Vector3,p.target.set(t.target.x,t.target.y,t.target.z)),t.zoom&&(p.zoom=t.zoom)}function _(){var t=c["a"].getters["scene/metadata"],e=0;t.entry&&(e=t.entry.pano);var o=new THREE.Quaternion;t.entry&&t.entry.camera&&(o=t.entry.camera.quaternion),P(e,o)}function P(t,e){if(i["app"].player.mode!=r["a"].PANORAMA||t!=i["app"].player.currentPano.id){var o;o=e instanceof Array?(new THREE.Quaternion).fromArray(e):(new THREE.Quaternion).set(e._x,e._y,e._z,e._w);var n={mode:r["a"].PANORAMA,pano:t,qua:o};isNaN(n.qua.x)&&console.log("NaN??????"),i["app"].player.flyToItem(n,null)}}function x(){u?u.emit("startCall"):(u=Object(l["b"])({url:"",path:"/vr-node"},{role:m,roomId:v,userId:w,scene_num:a["a"].urlQueryValue("m"),customContent:window._houseInfo?window._houseInfo.customContent:""}),u.on(l["a"].Connection,(function(t){console.log(t)})),u.on(l["a"].Disconnect,(function(){i["app"].play.control.onUpdate=!0,d=!1,!1,!1,h&&clearInterval(h),f&&clearInterval(f)})),u.on("vr_request",(function(t){h&&clearInterval(h),f&&clearInterval(f),d=!1,!1,!1;var e=!1,o=!1;if(u.emit("startCall"),t.persons&&t.persons.forEach((function(t){"agent"==t.role?e=!0:"customer"==t.role&&(o=!0,s["a"].emit("vrhouse/socket/action","userId",t.userId))})),e&&o){_();var n=0,a=3;h=setInterval((function(){--a>=1?s["a"].emit("player/counting",a):(s["a"].emit("player/counting",0),d=!0,i["app"].play.control.onUpdate=!1,"agent"==m&&!0,"customer"==m&&!0,clearInterval(h),f=setInterval((function(){s["a"].emit("vrhouse/socket/action","time",++n)}),1e3),s["a"].emit("vrhouse/socket/action","time",n))}),1e3),s["a"].emit("player/counting",a),s["a"].emit("vrhouse/socket/action","sync",!0)}else s["a"].emit("vrhouse/socket/action","sync",!1),s["a"].emit("vrhouse/socket/action","time",-1)})),u.on("action",(function(t){t&&("string"===typeof t?s["a"].emit("vrhouse/socket/action",t):s["a"].emit("vrhouse/socket/action",t.name,t.data,t.role))})),u.on("vr_response",(function(t){if(t.content.drawing)s["a"].emit("vrhouse/socket/action","drawing",t);else if(d&&i["app"].player.cameraControls.activeControl){if(t.role==m)return;if("undefined"!=typeof t.content.onUpdate&&(i["app"].play.control.onUpdate=t.content.onUpdate,console.log(i["app"].play.control.onUpdate),"agent"!=m||i["app"].play.control.onUpdate||s["a"].emit("vrhouse/socket/action","operation-tips")),"undefined"!=typeof t.content.scale&&(i["app"].player.cameraControls.activeControl.absoluteScale=t.content.scale,i["app"].player.cameraControls.activeControl.updateZoom()),i["app"].play.control.onUpdate)return;if(t.content.item){if(g(t.content.item))return;(t.content.item.mode!=i["app"].player.mode||t.content.item.mode==i["app"].player.mode&&t.content.item.mode==r["a"].PANORAMA)&&P(t.content.item.pano,t.content.item.qua),i["app"].player.copyCameraProp(i["app"].player.cameraControls.activeControl,t.content.item),i["app"].player.adjustControlAngel()}else if(t.content.toPano)t.content.toPano.pano=i["app"].player.model.panos.get(t.content.toPano.panoId),i["app"].player.adjustControlAngel({target:new THREE.Vector3(i["app"].player.cameraControls.activeControl.target.x,i["app"].player.cameraControls.activeControl.target.y,i["app"].player.cameraControls.activeControl.target.z)}),i["app"].player.currentPano.id!=t.content.toPano&&i["app"].player.flyToPano(t.content.toPano);else if(t.content.newModeInfo){if(t.content.newModeInfo.panoId&&(t.content.newModeInfo.pano=i["app"].player.model.panos.get(t.content.newModeInfo.panoId)),t.content.newModeInfo.quaternion){var e=t.content.newModeInfo.quaternion;t.content.newModeInfo.quaternion=new THREE.Quaternion,t.content.newModeInfo.quaternion.set(e._x,e._y,e._z,e._w)}i["app"].player.flyToNewMode(t.content.newModeInfo)}else console.warn(t)}})))}function C(){f&&clearInterval(f),s["a"].emit("vrhouse/socket/action","time",-1),u&&(u.emit("stopCall"),u.disconnect(),u=null,"customer"==m&&s["a"].emit("vrhouse/socket/action","sync",!1))}function O(t){u&&("object"===Object(n["a"])(t)&&(t.role=m),y({action:t}))}function S(t){y({drawing:t})}i["app"].player.cameraControls.on("vr_freedom",(function(t){d&&!i["app"].play.control.onUpdate&&(u.emit(l["a"].Send,{role:m,roomId:v,userId:w,content:{onUpdate:!1}}),i["app"].play.control.onUpdate=!0)})),i["app"].player.on("vr_Rotate",(function(t){if(d){var e={};e.qua=t.quaternion,e.mode=t.mode,e.pos=t.position,t.cameraControls.activeControl.currentScale&&(e.zoom=t.cameraControls.activeControl.currentScale/($("#player").width()/$("#player").height())),e.type="Rotate",g(e)||(t.mode==r["a"].PANORAMA?e.pano=t.currentPano.id:t.mode==r["a"].FLOORPLAN&&(e.pos=(new THREE.Vector3).set(t.position.x,t.position.y,t.position.z),e.zoom=t.cameraControls.activeControl.currentScale/($("#player").width()/$("#player").height())),t.cameraControls.activeControl.target&&(e.pos=t.position,e.target=t.cameraControls.activeControl.target),i["app"].play.control.onUpdate&&u.emit(l["a"].Send,{role:m,roomId:v,userId:w,content:{item:e}}))}})),i["app"].player.on("vr_Zoom",(function(t){if(d){var e=t.cameraControls.activeControl.absoluteScale;u.emit(l["a"].Send,{role:m,roomId:v,userId:w,content:{scale:e}})}})),i["app"].player.on("vr_FlyToPano",(function(t){d&&(t.socketed=!0,u.emit(l["a"].Send,{role:m,roomId:v,userId:w,content:{toPano:t}}),console.log("flytopano"+t.toString()))})),i["app"].player.on("vr_FlyToNewMode",(function(t){d&&(t.socketed=!0,u.emit(l["a"].Send,{role:m,roomId:v,userId:w,content:{newModeInfo:t}}),i["app"].play.control.onUpdate=!1)})),s["a"].on("vrhouse/painting",(function(t){u.emit(l["a"].Send,{role:m,roomId:v,userId:w,content:{drawing:t}})}))},a401:function(t,e,o){},a891:function(t,e,o){"use strict";o.r(e);var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"app-layout"},[o("link",{attrs:{rel:"stylesheet",href:"static/css/reserve/iconfont.css"}}),o("link",{attrs:{rel:"stylesheet",href:"static/css/fire-control/iconfont.css"}}),o("div",{staticClass:"left",class:{show:t.player.showVR}},[o("div",{staticClass:"back",on:{click:t.onBack}},[o("i",{staticClass:"iconfont icon_back"})])]),o("div",{staticClass:"app-player"},[o("player"),o("Floor")],1),o("app-header",{directives:[{name:"show",rawName:"v-show",value:t.show&&!t.player.showVR,expression:"show && !player.showVR"}],style:{zIndex:t.showGoods?1:9999}}),o("app-main",{directives:[{name:"show",rawName:"v-show",value:t.show&&!t.player.showVR,expression:"show && !player.showVR"}]})],1)},s=[],a=(o("8e6e"),o("ac6a"),o("456d"),o("ade3")),i=o("2f62"),r=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("player",{ref:"player"})},c=[],l=o("b31b"),u=o("c7b2"),d={components:{Player:l["a"]},created:function(){var t=this;this.$store.commit("SetPlayerOptions",{showUI:!1}),this.$bus.on("ready",(function(){t.$bus.emit("rule/Visible",!0,"vrhouse")}))},mounted:function(){var t=this;this.$refs.player.start(),u["app"].player.on("player/flyToNext",(function(e){t.$bus.emit("shop/player/mode",e)}))},methods:{init:function(){}}},p=d,h=o("2877"),f=Object(h["a"])(p,r,c,!1,null,null,null),m=f.exports,w=o("f708"),v=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"header",class:{disable:t.disable},style:{visibility:-1!==t.player.progres?"hidden":"initial"}},[o("h2",{staticClass:"title",class:{active:t.show},on:{click:t.changeShow}},[o("p",{ref:"title"},[t._v("\n "+t._s(t.detail.projectName)+"\n ")]),o("span",[o("i",{directives:[{name:"show",rawName:"v-show",value:t.tempdata.description,expression:"tempdata.description"}],staticClass:"iconfont iconscene_tit_arrow"})])]),t.newView?t._e():o("div",{staticClass:"description",class:{show:t.show},on:{click:t.changeShow}},[o("div",{staticClass:"desc-items"},[o("div",{staticClass:"infos"},[o("p",[o("img",{attrs:{src:t.icon}}),t._v(t._s(t.detail.projectSite))]),o("div",[o("p",[t._v(t._s(t.detail.projectSn))]),o("span",[t._v(t._s(t.detail.statusDesc))])])]),o("div",[o("span",[t._v("起火地址:")]),o("p",[t._v(t._s(t.detail.projectAddress))])]),o("div",[o("span",[t._v("承办单位:")]),o("p",[t._v(t._s(t.detail.organizerDeptName))])]),o("div",[o("span",[t._v("承办人员:")]),o("p",[t._v(t._s(t.detail.organizerUsers))])]),o("div",[o("span",[t._v("火灾原因:")]),o("p",[t._v(t._s(t.detail.fireReason))])]),o("div",[o("span",[t._v("事故日期:")]),o("p",[t._v(t._s(t.detail.accidentDate))])])])]),t.showNavigations.map?o("Map",{directives:[{name:"show",rawName:"v-show",value:!t.show,expression:"!show"}],ref:"map"}):t._e()],1)},y=[],g=(o("96cf"),o("1da1")),b=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"map",class:{hide:t.isSide,hyaline:!t.show}},[o("div",{directives:[{name:"show",rawName:"v-show",value:"pano"!=t.mode,expression:"mode!='pano'"}],staticClass:"tab-layer"},[o("div",{staticClass:"tabs",class:{disable:!t.modeCanSwitch}},[o("span",{class:{active:"2d"===t.mode},on:{click:function(e){return t.changeMode("2d")}}},[o("i",{staticClass:"iconfont iconscene_map_2d"}),t._v("\n 平面图\n ")]),o("span",{class:{active:"3d"===t.mode},on:{click:function(e){return t.changeMode("3d")}}},[o("i",{staticClass:"iconfont iconscene_map_3d"}),t._v("\n 三维模型\n ")])])]),o("div",{directives:[{name:"show",rawName:"v-show",value:"pano"==t.mode,expression:"mode=='pano'"}],staticClass:"map-layer",on:{click:function(e){return t.changeMode("2d")}}},[o("div",{ref:"cad",staticClass:"cad"})]),o("span",{directives:[{name:"show",rawName:"v-show",value:"pano"==t.mode,expression:"mode=='pano'"}],staticClass:"btn-side",on:{click:function(e){e.stopPropagation(),t.isSide=!t.isSide}}},[o("i",{staticClass:"iconfont",class:[t.isSide?"icon_back":"icon_forward"]})])])},_=[],P=o("26d4"),x=o("6860");o("9a39");function C(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function O(t){for(var e=1;et.clientWidth&&(t.textContent=t.textContent+t.textContent,ht(t,t.scrollWidth/2,0))}function ht(t,e,o){setInterval((function(){var n=t.scrollLeft;n>=e?n=o:n++,t.scrollTo(n,0)}),54)}u["app"].player.cameraControls.on("vr_freedom",(function(t){J&&("customer"==H?u["app"].play.control.onUpdate=!0:tt({onUpdate:!1}))})),u["app"].player.on("vr_Rotate",(function(t){if(J&&null!=t&&null!=t.currentPano&&"customer"!=H){var e={};e.qua=t.quaternion,e.mode=t.mode,e.pos=t.position,t.cameraControls.activeControl.currentScale&&(e.zoom=t.cameraControls.activeControl.currentScale/($("#player").width()/$("#player").height())),e.type="Rotate",nt(e)||(t.mode==M["a"].PANORAMA?e.pano=t.currentPano.id:t.mode==M["a"].FLOORPLAN&&(e.pos=(new THREE.Vector3).set(t.position.x,t.position.y,t.position.z),e.zoom=t.cameraControls.activeControl.currentScale/($("#player").width()/$("#player").height())),t.cameraControls.activeControl.target&&(e.pos=t.position,e.target=t.cameraControls.activeControl.target),u["app"].play.control.onUpdate&&tt({item:e}))}})),u["app"].player.on("vr_Zoom",(function(t){if(J){var e=t.cameraControls.activeControl.absoluteScale;tt({scale:e})}})),u["app"].player.on("vr_FlyToPano",(function(t){J&&(t.socketed=!0,t.quaternion=u["app"].player.quaternion,"customer"==H&&(u["app"].play.control.noFly=!0),tt({toPano:t,onUpdate:!1}))})),u["app"].player.on("vr_FlyToTag",(function(t){"customer"==H&&t.follow&&(u["app"].play.control.noFly=!1),"leader"==H&&(u["app"].play.control.noFly=!1)})),u["app"].player.on("vr_FlyToNewMode",(function(t){J&&(t.socketed=!0,t.quaternion=tt({newModeInfo:t}))}));var ft={data:function(){return{show:!1,newView:!1,isMiniprogram:!1,disable:!1,detail:{}}},computed:dt(dt({},Object(i["b"])({showNavigations:"showNavigations",tempdata:"scene/tempdata",player:"player"})),{},{icon:function(){var t=this.detail.projectSite?this.detail.projectSite:"";return~t.indexOf("非建构筑物")?"/static/img/apps/fire-control/fire_other.png":~t.indexOf("交通工具")?"/static/img/apps/fire-control/fire_bus.png":~t.indexOf("垃圾及废弃物")?"/static/img/apps/fire-control/fire_recycle.png":"/static/img/apps/fire-control/fire_building.png"}}),methods:{bgClick:function(){this.show=!1,ot("cart",!0)},changeShow:function(){this.show=!this.show,this.show&&this.$bus.emit("shop/tag/show",!1,!0),ot("cart",!this.show)}},created:function(){var t=this;j["a"].detectWeixin()&&window.parent.wx.miniProgram.getEnv((function(e){e.miniprogram&&(t.isMiniprogram=!0)})),this.$bus.on("shop/header/disable",(function(e){t.disable=e,t.disable})),this.$bus.on("shop/header/hidemap",(function(){}))},mounted:function(){var t=Object(g["a"])(regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.$bus.on("reserveReadySuccess",(function(t){var o=t.detail;e.detail=o})),t.next=3,V();case 3:this.detail=t.sent.detail,pt(this.$refs.title),setTimeout((function(){document.querySelector('canvas[name="player"]').addEventListener("touchstart",(function(t){e.bgClick()}))}),3e3);case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),components:{Map:T}},mt=ft,wt=(o("cd90"),o("5d77"),Object(h["a"])(mt,v,y,!1,null,"9c8ff4c4",null)),vt=wt.exports,yt=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{directives:[{name:"show",rawName:"v-show",value:t.player.showWidgets,expression:"player.showWidgets"}],staticClass:"reserve-container",class:{yqg:t.yqg},style:{visibility:-1!==t.player.progres?"hidden":"initial"}},[o("Toolbar",{directives:[{name:"show",rawName:"v-show",value:t.player.showWidgets,expression:"player.showWidgets"}],class:{notevent:"leader"!=t.role}}),t._e(),o("div",{staticClass:"right-oper"},[t.showNavigations.measure?o("div",{directives:[{name:"show",rawName:"v-show",value:!t.yqg,expression:"!yqg"}],on:{click:function(e){return e.stopPropagation(),t.onMenuClick("measure")}}},[o("img",{attrs:{src:"/static/img/apps/fire-control/fire_vr@2x.png",alt:""}}),t._v("\n 测量工具\n ")]):t._e(),o("div",{directives:[{name:"show",rawName:"v-show",value:!t.yqg,expression:"!yqg"}],on:{click:t.changeVR}},[o("img",{attrs:{src:"/static/img/apps/fire-control/fire_vr@2x.png",alt:""}}),t._v("\n VR\n ")]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.yqg,expression:"yqg"}],class:{disable:!t.showPaint||!t.canUndo},on:{click:t.chexiao}},[o("img",{attrs:{src:"/static/img/apps/fire-control/fire_cancel@2x.png",alt:""}}),t._v("\n 撤销\n ")]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.yqg,expression:"yqg"}],class:{disable:"leader"!=t.role},on:{click:function(e){t.showPaint=!t.showPaint}}},[o("img",{attrs:{src:t.showPaint?"/static/img/apps/fire-control/fire_pen_off@2x.png":"/static/img/apps/fire-control/fire_pen_on@2x.png",alt:""}}),t._v("\n 画笔 \n ")]),"leader"==t.role?[o("div",{directives:[{name:"show",rawName:"v-show",value:t.yqg,expression:"yqg"}],on:{click:t.setMic}},[o("img",{attrs:{src:t.muted?"/static/img/apps/fire-control/fire_mic_off@2x.png":"/static/img/apps/fire-control/fire_mic_on@2x.png",alt:""}}),t._v("\n 语音 \n ")])]:t._e(),o("div",{class:{disable:!t.deskList.length},on:{click:function(e){t.showAppendix=!0}}},[o("img",{attrs:{src:"/static/img/apps/fire-control/fire_appendix@2x.png",alt:""}}),t._v("\n 附件\n ")]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.yqg,expression:"yqg"}],on:{click:t.quitShopping}},[o("img",{attrs:{src:"/static/img/apps/fire-control/fire_exit@2x.png",alt:""}}),t._v("\n 退出\n ")]),o("div",{directives:[{name:"show",rawName:"v-show",value:!t.yqg,expression:"!yqg"}],on:{click:t.onShopping}},[o("img",{attrs:{src:"/static/img/apps/fire-control/fire_share@2x.png",alt:""}}),t._v("\n 共享\n ")])],2),(t.showNavigations.guide&&t.showPlayGuilds,t._e()),o("Appendix",{attrs:{show:t.showAppendix},on:{hideRoom:function(e){t.showAppendix=!1}}}),t.yqg?o("PageShopping",{ref:"shopping",attrs:{showPaint:t.showPaint},on:{paintChange:function(e){return t.showPaint=t.showPaint},back:function(e){t.yqg=!1},updateUser:function(e){return t.currUser=e}}}):t._e()],1)},gt=[],bt=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("xwindow",{attrs:{title:"附件",show:t.show,height:"75%",bgColor:"#fff"},on:{hideRoom:function(e){return t.$emit("hideRoom")}}},[t.list.length?t._l(t.tableData,(function(e){return e.children&&e.children.length?o("div",{key:e._title,staticClass:"type-item"},[o("h3",[t._v(t._s(e.title))]),o("div",{staticClass:"addpend"},t._l(e.children,(function(e){return o("a",{key:e.id,attrs:{target:"_blank"},on:{click:function(o){return t.viewFile(e.fileOssUrl)}}},[t._v(t._s(e.fileName)),o("i",{staticClass:"iconfont icon_forward"})])})),0)]):t._e()})):o("div",{staticClass:"no-data"},[o("img",{attrs:{src:"static/img/apps/reserve/img_nodata@2x.png"}}),o("p",[t._v("暂无插件")])])],2)},_t=[],Pt=(o("6762"),o("2909")),xt=(o("7f7f"),function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"aaaaaaa"},[t.show?o("div",{staticClass:"bg",on:{click:function(e){return t.$emit("hideRoom")}}}):t._e(),o("div",{staticClass:"room-list-layout",style:"\n bottom: "+(t.show?"0":"-"+t.height)+";\n background: "+(t.bgColor||"#F7F7F7")+";\n height:"+t.height+";\n border-radius: "+(isNaN(Number(t.radius))?14:t.radius)+"px "+(isNaN(Number(t.radius))?14:t.radius)+"px 0px 0px;\n "},[o("i",{staticClass:"iconfont iconclose",on:{click:function(e){return t.$emit("hideRoom")}}}),o("h4",[t._v(t._s(t.title))]),o("div",{staticClass:"room-content"},[t._t("default")],2)])])}),Ct=[],Ot={props:["show","title","height","bgColor","radius"]},St=Ot,Et=(o("7210"),Object(h["a"])(St,xt,Ct,!1,null,"b1cb923c",null)),kt=Et.exports,Tt=[{name:"现场调查证据材料",value:0},{name:"火灾事故认定",value:1},{name:"其他",value:2}],jt={props:["show"],data:function(){return{list:[],types:Tt}},mounted:function(){var t=Object(g["a"])(regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.$bus.on("reserveReadySuccess",(function(t){var o=t.deskList;e.list=o})),t.next=3,V();case 3:this.list=t.sent.deskList;case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:{fly:function(t){var e=app.tagManager.tags[t.hotId];e&&app.player.flyToTag(e,!0),this.$emit("hideRoom")},viewFile:function(t){ot("viewFile",t)}},computed:{tableData:function(){var t,e=this.list||[],o=[],n=this.types.reduce((function(t,n){var s=e.filter((function(t){return n.name===t.attachmentType}));return t.push({title:n.name,children:s}),o.push.apply(o,Object(Pt["a"])(s)),t}),[]);return(t=n[n.length-1].children).push.apply(t,Object(Pt["a"])(e.filter((function(t){return!o.includes(t)})))),n}},components:{xwindow:kt}},Rt=jt,$t=(o("59f3"),Object(h["a"])(Rt,bt,_t,!1,null,"93e4fd00",null)),It=$t.exports,Nt=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"navigation",style:{zIndex:t.showUserList||t.showExit||t.showDissolve||t.showFull||t.showOver||t.repeat?99999999:999999}},[o("canvas",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],ref:"canvas"}),o("div",{directives:[{name:"show",rawName:"v-show",value:t.users.length,expression:"users.length"}],staticClass:"wrapper sync"},[o("div",[o("ul",[t._l(t.users,(function(e,n){return o("li",{key:n,class:[e.role],on:{click:function(e){t.showUserList=!0}}},[o("img",{attrs:{src:"null"===e.avatar?t.$config.getStaticResource("img/apps/vrhouse/avatar_default.jpg"):e.avatar,alt:""}}),o("span",{directives:[{name:"show",rawName:"v-show",value:e.onlineStatus&&1!=e.voiceStatus,expression:"user.onlineStatus && user.voiceStatus != 1"}],staticClass:"voice"},[o("i",{staticClass:"iconfont",class:[2==e.voiceStatus?"iconscene_mic_open":"iconscene_mic_off"]})]),o("span",{directives:[{name:"show",rawName:"v-show",value:!e.onlineStatus,expression:"!user.onlineStatus"}],staticClass:"status"},[o("span",[t._v(" 已离开 ")])]),e.onlineStatus?[e.userId==t.userId?o("div",[t._v("我")]):"leader"==e.role?o("div",[t._v("发起者")]):t._e()]:t._e()],2)})),t.users.length<30?o("li",{staticClass:"add",on:{click:t.onInvite}},[o("i",{staticClass:"iconfont icon_plus"})]):t._e()],2)])]),o("div",{ref:"chat",staticClass:"chat"},[o("transition-group",{attrs:{appear:"",tag:"ul"}},t._l(t.message,(function(e){return o("li",{key:e.id},[o("div",[o("div",{staticClass:"message"},[o("img",{attrs:{src:e.avatar||"/static/img/apps/fire-control/avatar_default.png",alt:""}}),e.nickname?o("span",{domProps:{innerHTML:t._s("「"+e.nickname+"」")}}):t._e(),o("span",[t._v(t._s(e.content))])])])])})),0)],1),o("x-window",{attrs:{show:t.showExit,"show-close":!1}},[o("div",{staticClass:"exit-tips"},[o("h4",[t._v("温馨提示")]),o("div",[t._v("是否退出火调场景VR共享")]),o("button",{staticClass:"btn-1",attrs:{type:"button"},on:{click:function(e){return t.onExit(!1)}}},[t._v("取消")]),o("button",{staticClass:"btn-2",attrs:{type:"submit"},on:{click:function(e){return t.onExit(!0,!1)}}},[t._v("退出")])])]),o("x-window",{attrs:{show:t.showDissolve,"show-close":!1}},[o("div",{staticClass:"exit-tips"},[o("h4",[t._v("结束提醒")]),o("div",[t._v("\n 火调场景VR共享已结束\n ")]),o("button",{staticClass:"btn-block",on:{click:function(e){return t.onBack()}}},[t._v("我知道了")])])]),o("x-window",{attrs:{show:t.showFull,"show-close":!1}},[o("div",{staticClass:"exit-tips"},[o("h4",[t._v("温馨提示")]),o("div",[t._v("火调场景房间已满人!")]),o("button",{staticClass:"btn-block",on:{click:function(e){return t.onBack()}}},[t._v("确定")])])]),o("x-window",{attrs:{show:t.showOver||t.repeat,"show-close":!1}},[o("div",{staticClass:"exit-tips"},[o("h4",[t._v("温馨提示")]),o("div",[t._v(t._s(t.repeat?"用户冲突,火调场景VR共享已结束。":"火调场景VR共享已结束"))]),o("button",{staticClass:"btn-block",on:{click:function(e){return t.onBack()}}},[t._v("我知道了")])])]),o("Paint",{ref:"draw",attrs:{"show-paint":t.showPaint},on:{showChange:function(e){return t.$emit("paintChange",e)}}}),o("xwindow1",{attrs:{title:"语音",show:t.showUserList,height:"52%",bgColor:"#fff"},on:{hideRoom:function(e){t.showUserList=!1}}},t._l(t.users,(function(e,n){return o("div",{key:n,staticClass:"list-user"},[o("div",[o("img",{attrs:{src:"null"===e.avatar?t.$config.getStaticResource("img/apps/vrhouse/avatar_default.jpg"):e.avatar}}),o("span",[t._v(t._s(e.userId==t.userId?"我":e.nickname))])]),o("i",{staticClass:"iconfont",class:[2==e.voiceStatus?"iconscene_mic_open":"iconscene_mic_off"],on:{click:function(o){e.userId==t.userId&&t.onSetMic()}}})])})),0)],1)},Ut=[],Dt=(o("7514"),function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("popup",{attrs:{show:t.show,"is-close":t.showClose},on:{close:function(e){return t.$emit("close")}}},[o("div",{staticClass:"share-x-window",style:{height:t.height},on:{touchstart:function(t){t.stopPropagation()}}},[t.showClose?o("div",{staticClass:"header"},[o("span",{staticClass:"close",on:{click:function(e){return e.stopPropagation(),t.$emit("close")},touchstart:function(e){return e.stopPropagation(),t.$emit("close")}}})]):t._e(),o("div",{staticClass:"main"},[t._t("default")],2),o("div",{staticClass:"footer"},[t._t("footer")],2)])])}),At=[],qt=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("transition",{attrs:{appear:"",name:"custom-classes-transition","enter-active-class":"animated fadeIn faster","leave-active-class":"animated fadeOut faster"}},[t.show?o("div",{staticClass:"x-popup-layer",style:{"background-color":t.bgColor},on:{touchmove:function(t){t.preventDefault()},touchstart:t.onClick}},[t._t("default")],2):t._e()])},Vt=[],Mt=999;function Lt(){return++Mt}var Ht={name:"x-popup-layer",props:{show:Boolean,isClose:Boolean,bgColor:String},data:function(){return{zIndex:Lt()}},methods:{onClick:function(){this.isClose&&this.$emit("close")}}},Gt=Ht,zt=(o("34c2"),Object(h["a"])(Gt,qt,Vt,!1,null,"58f44490",null)),Ft=zt.exports,Wt={components:{Popup:Ft},props:{show:Boolean,height:String,showClose:{type:Boolean,default:function(){return!0}}}},Bt=Wt,Qt=(o("b246"),Object(h["a"])(Bt,Dt,At,!1,null,"4280ee80",null)),Jt=Qt.exports,Kt=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"paint"},[o("canvas",{directives:[{name:"show",rawName:"v-show",value:t.showPaint,expression:"showPaint"}],ref:"canvas"}),t._e()])},Xt=[],Yt=o("bc19"),Zt=o("4c16"),te={props:{showPaint:Boolean},data:function(){return{role:F(),show:!1,canUndo:!1,colorA:"#02c8ae",colorB:"#2e98fe"}},watch:{canUndo:function(){this.$bus.emit("canUndoChange",this.canUndo)},showPaint:function(){this.showPaint&&(this.role=F()),this.showPaint?this.onDraw("drawStart"):this.onDraw("drawStop")},show:function(){ot("cart",!this.show),this.$bus.emit("shop/header/disable",this.show)}},created:function(){var t=this;this.$bus.on("fire/drawUndo",(function(){t.onDraw("drawUndo")})),this.$bus.on("shop/sync/action",(function(e){if("drawStart"==e.type){var o=function(e){t.show=!0,t.draw=[],t.drawHistory=[],t.$nextTick((function(){t.onDrawStart(),e&&e()}))};if(e.data&&e.data.save){if(!t.drawHistory||0===t.drawHistory.length&&e.data.drawHistory&&e.data.role!=t.role){var n=function(){console.log("init"),o((function(){t.drawHistory=[],e.data.drawHistory.forEach((function(e){var o=t.transformTo2d(e);t.drawHistory.push(JSON.parse(JSON.stringify(o))),t.drawing(o)}))}))};clearTimeout(t.timeout),t.timeout=setTimeout(n,1e3),t.$bus.on("player/position/change",(function(){clearTimeout(t.timeout),t.timeout=setTimeout(n,1e3)}))}}else o()}else if("drawStop"==e.type)t.show=!1,t.draw=null,t.drawHistory=null;else if("drawing"==e.type){var s=t.transformTo2d(e.data.drawing);e.data.role!=t.role&&(t.drawHistory.push(JSON.parse(JSON.stringify(s))),t.drawing(s))}else"drawUndo"==e.type&&t.drawUndo(e.data.role)}))},mounted:function(){var t,e=this;this.canvas=this.$refs.canvas,this.context=this.canvas.getContext("2d"),this.canvas.onmousedown=function(t){e.show&&(t.preventDefault(),e.beginStroke({x:t.clientX,y:t.clientY}))},this.canvas.onmouseup=function(t){e.show&&(t.preventDefault(),e.endStroke())},this.canvas.onmouseout=function(t){e.show&&(t.preventDefault(),e.endStroke())},this.canvas.onmousemove=function(t){e.show&&(t.preventDefault(),e._mouseDown&&e.moveStroke({x:t.clientX,y:t.clientY}))},this.canvas.addEventListener("touchstart",(function(o){e.show&&(o.preventDefault(),t=o.touches[0],e.beginStroke({x:t.pageX,y:t.pageY}))})),this.canvas.addEventListener("touchmove",(function(o){e.show&&(o.preventDefault(),e._mouseDown&&(t=o.touches[0],e.moveStroke({x:t.pageX,y:t.pageY})))})),this.canvas.addEventListener("touchend",(function(t){e.show&&(t.preventDefault(),e.endStroke())})),this.mouse=new THREE.Vector2},methods:{transformTo3d:function(t){var e=this,o=[];return 0==t.length?[]:(t.forEach((function(t,n){Yt["a"].convertScreenPositionToNDC(t.x,t.y,e.mouse);var s=Zt["a"].getMouseIntersect(x["objects"].player.camera,[e.intersectPlane],e.mouse);s?(t.pos3d=s.point,o.push(t)):console.error("no intersect ??")})),o)},transformTo2d:function(t){var e=[];return t.forEach((function(t){var o=new THREE.Vector3(t.pos3d.x,t.pos3d.y,t.pos3d.z),n=Zt["a"].getPos2d(o,x["objects"].player.camera);t.x=n.pos.x,t.y=n.pos.y,e.push(t)})),e},onDraw:function(t,e){var o,n=this;if("drawStart"==t){if(e?o=this.drawHistory:(this.show=!0,this.draw=[],this.drawHistory=[],this.$nextTick((function(){n.onDrawStart()}))),"leader"!==this.role)return}else if("drawStop"==t)this.show=!1,this.draw=null,this.drawHistory=null;else if("drawing"==t){var s=this.transformTo2d(data.content.drawing);data.role!=role&&this.drawHistory.push(JSON.parse(JSON.stringify(s)))}else"drawUndo"==t&&this.drawUndo(this.role);tt({type:t,data:{role:this.role,save:e,drawHistory:o}},!0)},onPainting:function(){var t=this.transformTo3d(this.draw);this.drawHistory.push(JSON.parse(JSON.stringify(t))),tt({type:"drawing",data:{drawing:t}},!0),this.draw=[],this.canUndo=!0,this.$bus.emit("canUndoChange",this.canUndo),this._endTime=0,this._mouseDown=!1,this._lastTimestamp=0},beginStroke:function(t){this._mouseDown=!0,this._lastTimestamp=Date.now(),this._lastPosition=this.windowToCanvas(t.x,t.y),this.draw.push({role:this.role,width:0,x:this._lastPosition.x,y:this._lastPosition.y,t:5})},onDrawStart:function(){var t=window.devicePixelRatio||1,e=this.canvas.getBoundingClientRect();this.ratio=1,this.canvas.width=e.width*t,this.canvas.height=e.height*t,this.context.scale(t,t),this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this._endTime=0,this._mouseDown=!1,this._lastTimestamp=0,this._lastLineWidth=-1,this._lastPosition={x:0,y:0},Yt["a"].convertScreenPositionToNDC(0,0,this.mouse);var o=Zt["a"].getMouseIntersect(x["objects"].player.camera,[x["objects"].model.skybox,x["objects"].sceneRenderer.scene.skyboxBG],this.mouse);this.placeIntersectPlane(o&&o.point)},moveStroke:function(t){var e=Date.now(),o=this.windowToCanvas(t.x,t.y),n=this.calcDistance(o,this._lastPosition),s=e-this._lastTimestamp,a=this.calcLineWidth(s,n);this.context.beginPath(),this.context.moveTo(this._lastPosition.x,this._lastPosition.y),this.context.lineTo(o.x,o.y),this.draw.push({role:this.role,width:a,x:o.x,y:o.y,t:5}),this.context.strokeStyle=this.colorA,this.context.lineWidth=a,this.context.lineCap="round",this.context.linJoin="round",this.context.stroke(),this._lastPosition=o,this._lastTimestamp=e,this._lastLineWidth=a},endStroke:function(){this.draw.push({role:this.role,width:0,x:this._lastPosition.x,y:this._lastPosition.y,t:0}),this.onPainting(),this._mouseDown=!1,this._endTime=Date.now()},calcLineWidth:function(t,e){var o,n=e/t;return o=n<=.1?6:n>=3?2:6-(n-.1)/2.9*2,-1==this._lastLineWidth?o:2*this._lastLineWidth/3+1*o/3},calcDistance:function(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))},windowToCanvas:function(t,e){var o=this.canvas.getBoundingClientRect();return{x:Math.round(t-o.left),y:Math.round(e-o.top)}},drawing:function(t){for(var e=this,o=function(o){t[o].t&&setTimeout((function(){e.context.beginPath(),e.context.strokeStyle=t[o].role==e.role?e.colorA:e.colorB,e.context.moveTo(t[o].x*e.ratio,t[o].y*e.ratio),e.context.lineTo(t[o+1].x*e.ratio,t[o+1].y*e.ratio),e.context.lineWidth=t[o].width*e.ratio,e.context.lineCap="round",e.context.linJoin="round",e.context.stroke()}),5)},n=0;n=0;o--)if(this.drawHistory[o][0].role==t){this.drawHistory.splice(o,1);break}this.drawHistory.forEach((function(t){for(var o=0;o=3?2:6-(n-.1)/2.9*2,-1==this._lastLineWidth?o:2*this._lastLineWidth/3+1*o/3},transformTo3d:function(t){var e=this,o=[];return 0==t.length?[]:(t.forEach((function(t,n){Yt["a"].convertScreenPositionToNDC(t.x,t.y,e.mouse);var s=Zt["a"].getMouseIntersect(x["objects"].player.camera,[e.intersectPlane],e.mouse);s?(t.pos3d=s.point,o.push(t)):console.error("no intersect ??")})),o)},beginStroke:function(t){this._mouseDown=!0,this._lastTimestamp=Date.now(),this._lastPosition=this.windowToCanvas(t.x,t.y),this.draw.push({role:this.role,width:0,x:this._lastPosition.x,y:this._lastPosition.y,t:5})},moveStroke:function(t){var e=Date.now(),o=this.windowToCanvas(t.x,t.y),n=this.calcDistance(o,this._lastPosition),s=e-this._lastTimestamp,a=this.calcLineWidth(s,n);this.context.beginPath(),this.context.moveTo(this._lastPosition.x,this._lastPosition.y),this.context.lineTo(o.x,o.y),this.draw.push({role:this.role,width:a,x:o.x,y:o.y,t:5}),this.context.strokeStyle=this.colorA,this.context.lineWidth=a,this.context.lineCap="round",this.context.linJoin="round",this.context.stroke(),this._lastPosition=o,this._lastTimestamp=e,this._lastLineWidth=a},onPainting:function(){var t=this.transformTo3d(this.draw);this.drawHistory.push(JSON.parse(JSON.stringify(t))),tt({drawing:t}),this.draw=[],this.canUndo=!0,this._endTime=0,this._mouseDown=!1,this._lastTimestamp=0},endStroke:function(){this.draw.push({role:this.role,width:0,x:this._lastPosition.x,y:this._lastPosition.y,t:0}),this.onPainting(),this._mouseDown=!1,this._endTime=Date.now()},placeIntersectPlane:function(t){if(!this.intersectPlane){var e=new THREE.PlaneGeometry(8e3,8e4,1,1);this.intersectPlane=new THREE.Mesh(e,new THREE.MeshBasicMaterial({transparent:!0,wireframe:!1,opacity:0,side:THREE.DoubleSide,depthTest:!1})),this.intersectPlane.lookAt(new THREE.Vector3(0,1,0)),this.intersectPlane.name="intersectPlane",x["objects"].model.add(this.intersectPlane)}if(t){this.intersectPlane.position.copy(t);var o=x["objects"].player.getDirection(null,x["objects"].player.camera);this.intersectPlane.lookAt(t.clone().add(o))}},onDrawStart:function(){var t=window.devicePixelRatio||1,e=this.canvas.getBoundingClientRect();this.ratio=1,this.canvas.width=e.width*t,this.canvas.height=e.height*t,this.context.scale(t,t),this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this._endTime=0,this._mouseDown=!1,this._lastTimestamp=0,this._lastLineWidth=-1,this._lastPosition={x:0,y:0},Yt["a"].convertScreenPositionToNDC(0,0,this.mouse);var o=Zt["a"].getMouseIntersect(x["objects"].player.camera,[x["objects"].model.skybox,x["objects"].sceneRenderer.scene.skyboxBG],this.mouse);this.placeIntersectPlane(o&&o.point)},transformTo2d:function(t){var e=[];return t.forEach((function(t){var o=new THREE.Vector3(t.pos3d.x,t.pos3d.y,t.pos3d.z),n=Zt["a"].getPos2d(o,x["objects"].player.camera);t.x=n.pos.x,t.y=n.pos.y,e.push(t)})),e},drawing:function(t){for(var e=this,o=function(o){t[o].t&&setTimeout((function(){e.context.beginPath(),e.context.strokeStyle=t[o].role==e.role?e.colorA:e.colorB,e.context.moveTo(t[o].x*e.ratio,t[o].y*e.ratio),e.context.lineTo(t[o+1].x*e.ratio,t[o+1].y*e.ratio),e.context.lineWidth=t[o].width*e.ratio,e.context.lineCap="round",e.context.linJoin="round",e.context.stroke()}),5)},n=0;n0:!!(this.showNavigations.guide&&this.roomLabels.length||this.showNavigations.pano||this.showNavigations.m2d||this.showNavigations.m3d)||void 0},disable:function(){return!!this.status.isPlaying||!this.canSwitch},isNotZH:function(){return"zh"!=this.$config.lang}}),watch:{isCollapse:function(){var t=this;this.$nextTick((function(){t.isCollapse?t.isGuides=!1:setTimeout((function(){t.isGuides=!0}),500)}))},isGuides:function(){this.$emit("show-guide",this.showGuides,this.isGuides)},showGuides:function(){this.$emit("show-guide",this.showGuides,this.isGuides)},"player.showToolbar":function(){var t=this;this.$nextTick((function(){0==t.player.showToolbar?t.isGuides=!1:setTimeout((function(){t.isGuides=!0}),500)}))},"player.showVR":function(){var t=this;this.$nextTick((function(){t.player.showVR?t.isGuides=!1:setTimeout((function(){t.isGuides=!0}),500)}))},roomLabels:{handler:function(t,e){var o=this;this.showNavigations.guide&&this.roomLabels.length&&this.$nextTick((function(){$(o.$el).find(".ctrls").length&&($(o.$el).find(".ctrls ul").outerWidth()<=window.innerWidth-30?$(o.$el).find(".ctrls").addClass("flex"):$(o.$el).find(".ctrls").removeClass("flex"),o.$refs.guides&&o.$refs.guides.reload())}))},immediate:!0}},methods:{onModeSwitch:function(t){var e=this;we&&(this.modeTips="",clearTimeout(we)),this.modeTips=t,we=setTimeout((function(){e.modeTips=""}),2e3),Object(u["flyToNewMode"])(t)},onGuidePlay:function(){0==this.isPlayed&&(this.isPlayed=!0),this.$refs.guides&&this.$refs.guides.onGuidePlay()},onCollapse:function(){0==this.player.showToolbar?(this.isCollapse=!1,this.$store.commit("SetPlayerOptions",{showMap:!0,showToolbar:!0,showMore:!1,showDescription:!1})):this.isCollapse=!this.isCollapse},onCheckPlaying:function(){this.status.isPlaying&&u["play"].pause()}}},Se=Oe,Ee=(o("013b"),Object(h["a"])(Se,_e,Pe,!1,null,"5e72852a",null)),ke=Ee.exports;function Te(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function je(t){for(var e=1;e