1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4abcab2a"],{"0584":function(e,t,o){"use strict";var n=o("b3df"),a=o.n(n);a.a},"05bc":function(e,t,o){},1565:function(e,t,o){},"1b27":function(e,t,o){"use strict";var n=o("77c8"),a=o.n(n);a.a},"1db6":function(e,t,o){},"28eb":function(e,t,o){},"29b2":function(e,t,o){"use strict";var n;o.d(t,"a",(function(){return a})),o.d(t,"b",(function(){return i}));var a={Data:"jsondata",Send:"getJson",Connection:"connection",Disconnect:"disconnect"};function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=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||e.url,a=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||e.path;return n=io(o,{path:a||"/",query:t}),n}},"2e3e":function(e,t,o){"use strict";var n=o("1565"),a=o.n(n);a.a},"39ca":function(e,t,o){"use strict";var n=o("05bc"),a=o.n(n);a.a},"3d1b":function(e,t,o){},"3e47":function(e,t,o){},"45d7":function(e,t,o){"use strict";var n=o("6be0"),a=o.n(n);a.a},"496a":function(e,t,o){"use strict";var n=o("3e47"),a=o.n(n);a.a},"516b":function(e,t,o){},"5d48":function(e,t,o){"use strict";var n=o("cd0f"),a=o.n(n);a.a},6135:function(e,t,o){},"6be0":function(e,t,o){},"6dc3":function(e,t,o){},7064:function(e,t,o){"use strict";var n=o("f149"),a=o.n(n);a.a},"733a":function(e,t,o){"use strict";var n=o("3d1b"),a=o.n(n);a.a},7463:function(e,t,o){},"77c8":function(e,t,o){},8229:function(e,t,o){"use strict";var n=o("28eb"),a=o.n(n);a.a},8605:function(e,t,o){},"86a5":function(e,t,o){"use strict";var n=o("f18e"),a=o.n(n);a.a},"8d72":function(e,t,o){},"94ba":function(e,t,o){},"98f1":function(e,t,o){},"9a39":function(e,t,o){"use strict";o.d(t,"e",(function(){return m})),o.d(t,"d",(function(){return P})),o.d(t,"b",(function(){return k})),o.d(t,"a",(function(){return x})),o.d(t,"c",(function(){return O}));var n=o("53ca"),a=(o("7f7f"),o("ac6a"),o("6b54"),o("c75e")),i=o("617a"),s=o("c7b2"),r=o("80c5"),c=o("eb02"),l=o("29b2"),u=null,d=!1,p=null,h=null,f=null,m=i["a"].urlQueryValue("role"),v=i["a"].urlQueryValue("user_id"),y=i["a"].urlQueryValue("room_id");function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";u.emit(t||l["a"].Send,{role:m,roomId:y,userId:v,content:e})}function w(e){if(null==p)return _(e),!1;if(p.mode!=e.mode)return _(e),!1;if(p.mode==r["a"].PANORAMA)return!!p.qua.equals(e.qua)||(_(e),!1);if(p.mode==r["a"].DOLLHOUSE){var t=!0;return e.qua&&p.qua&&(p.qua.equals(e.qua)||(t=!1)),e.pos&&p.pos&&(p.pos.equals(e.pos)||(t=!1)),e.target&&p.target&&(p.target.equals(e.target)||(t=!1)),p.zoom&&(p.zoom.equals(e.zoom)||(t=!1)),t||_(e),t}var o=!0;return p.qua.equals(e.qua)?(p.pos&&(p.pos.equals(e.pos)||(o=!1)),p.zoom&&p.zoom!=e.zoom&&(o=!1)):o=!1,o||_(e),o}function _(e){p={},p.mode=e.mode,e.pos&&(p.pos=new THREE.Vector3,p.pos.set(e.pos.x,e.pos.y,e.pos.z)),e.qua&&(p.qua=new THREE.Quaternion,p.qua.set(e.qua._x,e.qua._y,e.qua._z,e.qua._w)),e.target&&(p.target=new THREE.Vector3,p.target.set(e.target.x,e.target.y,e.target.z)),e.zoom&&(p.zoom=e.zoom)}function b(){var e=c["a"].getters["scene/metadata"],t=0;e.entry&&(t=e.entry.pano);var o=new THREE.Quaternion;e.entry&&e.entry.camera&&(o=e.entry.camera.quaternion),C(t,o)}function C(e,t){if(s["app"].player.mode!=r["a"].PANORAMA||e!=s["app"].player.currentPano.id){var o;o=t instanceof Array?(new THREE.Quaternion).fromArray(t):(new THREE.Quaternion).set(t._x,t._y,t._z,t._w);var n={mode:r["a"].PANORAMA,pano:e,qua:o};isNaN(n.qua.x)&&console.log("NaN??????"),s["app"].player.flyToItem(n,null)}}function P(){u?u.emit("startCall"):(u=Object(l["b"])({url:"",path:"/vr-node"},{role:m,roomId:y,userId:v,scene_num:i["a"].urlQueryValue("m"),customContent:window._houseInfo?window._houseInfo.customContent:""}),u.on(l["a"].Connection,(function(e){console.log(e)})),u.on(l["a"].Disconnect,(function(){s["app"].play.control.onUpdate=!0,d=!1,!1,!1,h&&clearInterval(h),f&&clearInterval(f)})),u.on("vr_request",(function(e){h&&clearInterval(h),f&&clearInterval(f),d=!1,!1,!1;var t=!1,o=!1;if(u.emit("startCall"),e.persons&&e.persons.forEach((function(e){"agent"==e.role?t=!0:"customer"==e.role&&(o=!0,a["a"].emit("vrhouse/socket/action","userId",e.userId))})),t&&o){b();var n=0,i=3;h=setInterval((function(){--i>=1?a["a"].emit("player/counting",i):(a["a"].emit("player/counting",0),d=!0,s["app"].play.control.onUpdate=!1,"agent"==m&&!0,"customer"==m&&!0,clearInterval(h),f=setInterval((function(){a["a"].emit("vrhouse/socket/action","time",++n)}),1e3),a["a"].emit("vrhouse/socket/action","time",n))}),1e3),a["a"].emit("player/counting",i),a["a"].emit("vrhouse/socket/action","sync",!0)}else a["a"].emit("vrhouse/socket/action","sync",!1),a["a"].emit("vrhouse/socket/action","time",-1)})),u.on("action",(function(e){e&&("string"===typeof e?a["a"].emit("vrhouse/socket/action",e):a["a"].emit("vrhouse/socket/action",e.name,e.data,e.role))})),u.on("vr_response",(function(e){if(e.content.drawing)a["a"].emit("vrhouse/socket/action","drawing",e);else if(d&&s["app"].player.cameraControls.activeControl){if(e.role==m)return;if("undefined"!=typeof e.content.onUpdate&&(s["app"].play.control.onUpdate=e.content.onUpdate,console.log(s["app"].play.control.onUpdate),"agent"!=m||s["app"].play.control.onUpdate||a["a"].emit("vrhouse/socket/action","operation-tips")),"undefined"!=typeof e.content.scale&&(s["app"].player.cameraControls.activeControl.absoluteScale=e.content.scale,s["app"].player.cameraControls.activeControl.updateZoom()),s["app"].play.control.onUpdate)return;if(e.content.item){if(w(e.content.item))return;(e.content.item.mode!=s["app"].player.mode||e.content.item.mode==s["app"].player.mode&&e.content.item.mode==r["a"].PANORAMA)&&C(e.content.item.pano,e.content.item.qua),s["app"].player.copyCameraProp(s["app"].player.cameraControls.activeControl,e.content.item),s["app"].player.adjustControlAngel()}else if(e.content.toPano)e.content.toPano.pano=s["app"].player.model.panos.get(e.content.toPano.panoId),s["app"].player.adjustControlAngel({target:new THREE.Vector3(s["app"].player.cameraControls.activeControl.target.x,s["app"].player.cameraControls.activeControl.target.y,s["app"].player.cameraControls.activeControl.target.z)}),s["app"].player.currentPano.id!=e.content.toPano&&s["app"].player.flyToPano(e.content.toPano);else if(e.content.newModeInfo){if(e.content.newModeInfo.panoId&&(e.content.newModeInfo.pano=s["app"].player.model.panos.get(e.content.newModeInfo.panoId)),e.content.newModeInfo.quaternion){var t=e.content.newModeInfo.quaternion;e.content.newModeInfo.quaternion=new THREE.Quaternion,e.content.newModeInfo.quaternion.set(t._x,t._y,t._z,t._w)}s["app"].player.flyToNewMode(e.content.newModeInfo)}else console.warn(e)}})))}function k(){f&&clearInterval(f),a["a"].emit("vrhouse/socket/action","time",-1),u&&(u.emit("stopCall"),u.disconnect(),u=null,"customer"==m&&a["a"].emit("vrhouse/socket/action","sync",!1))}function x(e){u&&("object"===Object(n["a"])(e)&&(e.role=m),g({action:e}))}function O(e){g({drawing:e})}s["app"].player.cameraControls.on("vr_freedom",(function(e){d&&!s["app"].play.control.onUpdate&&(u.emit(l["a"].Send,{role:m,roomId:y,userId:v,content:{onUpdate:!1}}),s["app"].play.control.onUpdate=!0)})),s["app"].player.on("vr_Rotate",(function(e){if(d){var t={};t.qua=e.quaternion,t.mode=e.mode,t.pos=e.position,e.cameraControls.activeControl.currentScale&&(t.zoom=e.cameraControls.activeControl.currentScale/($("#player").width()/$("#player").height())),t.type="Rotate",w(t)||(e.mode==r["a"].PANORAMA?t.pano=e.currentPano.id:e.mode==r["a"].FLOORPLAN&&(t.pos=(new THREE.Vector3).set(e.position.x,e.position.y,e.position.z),t.zoom=e.cameraControls.activeControl.currentScale/($("#player").width()/$("#player").height())),e.cameraControls.activeControl.target&&(t.pos=e.position,t.target=e.cameraControls.activeControl.target),s["app"].play.control.onUpdate&&u.emit(l["a"].Send,{role:m,roomId:y,userId:v,content:{item:t}}))}})),s["app"].player.on("vr_Zoom",(function(e){if(d){var t=e.cameraControls.activeControl.absoluteScale;u.emit(l["a"].Send,{role:m,roomId:y,userId:v,content:{scale:t}})}})),s["app"].player.on("vr_FlyToPano",(function(e){d&&(e.socketed=!0,u.emit(l["a"].Send,{role:m,roomId:y,userId:v,content:{toPano:e}}),console.log("flytopano"+e.toString()))})),s["app"].player.on("vr_FlyToNewMode",(function(e){d&&(e.socketed=!0,u.emit(l["a"].Send,{role:m,roomId:y,userId:v,content:{newModeInfo:e}}),s["app"].play.control.onUpdate=!1)})),a["a"].on("vrhouse/painting",(function(e){u.emit(l["a"].Send,{role:m,roomId:y,userId:v,content:{drawing:e}})}))},"9c10":function(e,t,o){},"9c66":function(e,t,o){"use strict";var n=o("1db6"),a=o.n(n);a.a},"9f87":function(e,t,o){"use strict";var n=o("8d72"),a=o.n(n);a.a},aede:function(e,t,o){"use strict";var n=o("6135"),a=o.n(n);a.a},b040:function(e,t,o){},b3df:function(e,t,o){},ccb8:function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"app-layout"},[o("div",{staticClass:"app-player"},[o("player"),o("Floor")],1),e.show?o("app-header",{style:{zIndex:e.showGoods?1:9999}}):e._e(),e.show?o("app-main"):e._e()],1)},a=[],i=(o("8e6e"),o("ac6a"),o("456d"),o("ade3")),s=o("2f62"),r=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("player",{ref:"player"})},c=[],l=o("b31b"),u=o("c7b2"),d={components:{Player:l["a"]},created:function(){var e=this;this.$store.commit("SetPlayerOptions",{showUI:!1}),this.$bus.on("ready",(function(){u["app"].player.tagManager.hideAllTags(),e.$bus.emit("rule/Visible",!1,"vrhouse")}))},mounted:function(){var e=this;this.$refs.player.start(),u["app"].player.on("player/flyToNext",(function(t){e.$bus.emit("shop/player/mode",t)}))},methods:{init:function(){}}},p=d,h=o("2877"),f=Object(h["a"])(p,r,c,!1,null,null,null),m=f.exports,v=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"header",class:{disable:e.disable}},[e.showHeader?[o("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],staticClass:"bg",on:{click:e.bgClick}}),e.showTitle?o("div",[o("h2",{staticClass:"title",class:{active:e.show},on:{click:e.changeShow}},[o("p",[e._v("\n "+e._s(e.tempdata.title)+"\n "),o("i",{directives:[{name:"show",rawName:"v-show",value:e.tempdata.description,expression:"tempdata.description"}],staticClass:"iconfont iconscene_tit_arrow"})])]),e.newView?[o("div",{staticClass:"banner-layer"},[e.show?o("Banner",{staticClass:"banner",attrs:{screens:e.banner,type:0,index:e.index},on:{changeIndex:e.changeBanner},scopedSlots:e._u([{key:"item",fn:function(t){var n=t.data;return o(n.component,e._b({tag:"component",staticClass:"item",on:{cb:function(e){return n.cb&&n.cb(e)}}},"component",n.data,!1))}}],null,!1,3555985452)}):e._e()],1),e.imgsShow?o("Dialog",{staticClass:"imgs-dialog"},[o("ImgQuery",{attrs:{info:e.info},on:{quit:e.quitImgs}})],1):e._e(),e.mapShow?o("Dialog",{on:{quit:e.quitMap}},[o("Gaode",{attrs:{lat:e.info.latitude,lng:e.info.longitude}})],1):e._e()]:o("div",{staticClass:"description",class:{show:e.show},on:{click:e.changeShow}},[o("div",[o("div",{staticClass:"stitle"},[e._v(e._s(e.tempdata.title))]),o("div",{staticClass:"content",domProps:{innerHTML:e._s(e.tempdata.description)}})])])],2):e._e(),e.isMiniprogram?o("div",{staticClass:"share",on:{click:function(t){return t.stopPropagation(),e.onShare(t)},touchstart:function(e){e.stopPropagation()}}},[o("i",{staticClass:"iconfont iconscene_tit_share"})]):e._e(),o("Map",{directives:[{name:"show",rawName:"v-show",value:!e.show,expression:"!show"}],ref:"map"})]:o("span",{staticClass:"back",on:{click:e.onBack}},[o("i",{staticClass:"iconfont icon_back"})])],2)},y=[],g=(o("96cf"),o("1da1")),w=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"map",class:{hide:e.isSide,hyaline:!e.show}},[o("div",{directives:[{name:"show",rawName:"v-show",value:"pano"!=e.mode,expression:"mode!='pano'"}],staticClass:"tab-layer"},[o("div",{staticClass:"tabs",class:{disable:!e.modeCanSwitch}},[o("span",{class:{active:"2d"===e.mode},on:{click:function(t){return e.changeMode("2d")}}},[o("i",{staticClass:"iconfont iconscene_map_2d"}),e._v("\n "+e._s(e.$t("show.switch_2d"))+"\n ")]),o("span",{class:{active:"3d"===e.mode},on:{click:function(t){return e.changeMode("3d")}}},[o("i",{staticClass:"iconfont iconscene_map_3d"}),e._v("\n "+e._s(e.$t("show.switch_3d"))+"\n ")])])]),o("div",{directives:[{name:"show",rawName:"v-show",value:"pano"==e.mode,expression:"mode=='pano'"}],staticClass:"map-layer",on:{click:function(t){return e.changeMode("2d")}}},[o("div",{ref:"cad",staticClass:"cad",staticStyle:{width:"90px",height:"110px"}}),o("p",{staticClass:"change",on:{click:function(t){return t.stopPropagation(),e.changeMode("3d")}}},[o("i",{staticClass:"iconfont iconscene_map_3d"}),e._v("\n "+e._s(e.$t("show.switch_3d"))+"\n ")])]),o("span",{directives:[{name:"show",rawName:"v-show",value:"pano"==e.mode,expression:"mode=='pano'"}],staticClass:"btn-side",on:{click:function(t){t.stopPropagation(),e.isSide=!e.isSide}}},[o("i",{staticClass:"iconfont",class:[e.isSide?"icon_back":"icon_forward"]})])])},_=[],b=o("26d4"),C=o("6860");o("9a39");function P(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function k(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?P(Object(o),!0).forEach((function(t){Object(i["a"])(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):P(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var x={props:["area"],data:function(){return{show:!0,isLock:!1,isSide:!1}},computed:k({},Object(s["b"])({mode:"mode",floor:"scene/houstFloor",modeCanSwitch:"modeCanSwitch"})),methods:{changeMode:function(e){Object(u["flyToNewMode"])(e)},hideMap:function(){this.isSide=!0}},watch:{floor:function(){var e=this;this.cad.adapt(),this.cad.loadData(this.floor),this.cad.toCanvas((function(){return e.cad.adapt()})),this.show=!0,this.cad.setSign({x:app.firstView.position.x,y:app.firstView.position.z},app.cameraControls.controls.panorama.lon),this.$bus.emit("sign/Set/angle",this.cad.processing.data.dire)}},mounted:function(){var e=this;this.cad=Object(b["a"])({data:this.floor,layer:this.$refs.cad,edit:!1,padding:1,isCanvas:!0}),this.cad.hideDire(),this.cad.setDefaultPointStyle({fillColor:"rgba(0,0,0,0)",storkeColor:"rgba(0,0,0,0)"}),this.cad.toCanvas(),this.listen=function(t){var o=t.x,n=t.y,a=t.lon;return e.cad.setSign({x:o,y:n},a)},this.$bus.on("player/position/change",this.listen),this.$bus.on("shop/player/mode",(function(t){e.isSide=!0})),this.$bus.on("shop/tag/onshow",(function(t){t&&(e.isSide=!0)}))},beforeDestroy:function(){this.cad.destroy(),this.$bus.off("player/position/change",this.listen)}},O=x,S=(o("733a"),Object(h["a"])(O,w,_,!1,null,"e7ba5d5c",null)),T=S.exports,E=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"img-query"},[o("i",{staticClass:"iconfont iconclose",on:{click:function(t){return e.$emit("quit")}}}),o("div",{staticClass:"content"},[e._t("default")],2)])},I=[],A=(o("86a5"),{}),j=Object(h["a"])(A,E,I,!1,null,"cba874bc",null),M=j.exports,V=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"layer"},[o("div",{staticClass:"layer head-banner"},[o("div",{staticClass:"swiper-wrapper"},e._l(e.screens,(function(t,n){return o("div",{key:n,staticClass:"swiper-slide"},[e._t("item",null,{data:t,index:n})],2)})),0)]),0===e.type?o("div",{staticClass:"head-pages"},[o("span",{style:{width:e.barWidth+"%",left:e.barWidth*e.current+"%"}})]):o("div",{staticClass:"number-pages"},[o("span",[e._v(e._s(e.current+1)+"/"+e._s(e.total))])])])},L=[];function R(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function D(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?R(Object(o),!0).forEach((function(t){Object(i["a"])(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):R(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var U={props:["screens","type","index"],data:function(){return{total:0,current:this.index||0,args:[{effect:"coverflow",grabCursor:!0,centeredSlides:!0,slidesPerView:"auto",coverflowEffect:{rotate:40,stretch:0,depth:100,modifier:1,slideShadows:!0}}]}},computed:{barWidth:function(){return 1/this.total*100}},watch:{current:function(){this.swiper.slideTo(this.current),this.current!==this.index&&this.$emit("changeIndex",this.current)},index:function(){this.current=this.index}},mounted:function(){var e=this,t=this.args[this.type]?D({},this.args[this.type]):{};this.swiper=new Swiper(".head-banner",D(D({},t),{},{on:{slideChange:function(){e.current=this.activeIndex}}})),this.swiper=Array.isArray(this.swiper)?this.swiper[swiper.length-1]:this.swiper,e.total=this.swiper.slidesGrid.length,this.swiper.slideTo(this.current)}},q=U,H=(o("45d7"),Object(h["a"])(q,V,L,!1,null,"6d18a214",null)),N=H.exports,B=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"layer"},[o("h3",[e._v(e._s(e.info.brandName))]),o("div",{staticClass:"types"},[o("span",[e._v(e._s(e.info.typeName))])]),o("div",{staticClass:"content"},[e._v("\n "+e._s(e.info.simpleDesc.length>280?e.info.simpleDesc.substr(0,280)+"...":e.info.simpleDesc)+"\n ")]),e.info.introduceVideo?o("div",{staticClass:"video"},[o("ivideo",{attrs:{info:e.info}})],1):e._e()])},z=[],F=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"video-layer"},[o("div",{on:{click:e.clickHandle}},[o("video",{ref:"video",attrs:{src:e.info.introduceVideo,poster:e.info.introduceVideoCover,"x5-video-player-type":"h5-page",controlslist:"nodownload",disablepictureinpicture:"","webkit-playsinline":"","x-webkit-airplay":"",playsinline:""}}),e.paused?o("span",{staticClass:"pause"},[o("i",{staticClass:"iconfont iconrinfo_play"})]):o("span",{staticClass:"play"},[o("i",{staticClass:"iconfont iconCombinedShape"})])])])},Q=[],G={props:["info"],data:function(){return{paused:!0}},methods:{clickHandle:function(){this.paused?this.$refs.video.play():this.$refs.video.pause()}},mounted:function(){var e=this;this.onPlay=function(){return e.paused=!1},this.onPause=function(){return e.paused=!0},this.$refs.video.addEventListener("play",this.onPlay,!1),this.$refs.video.addEventListener("pause",this.onPause,!1)},beforeDestroy:function(){this.$refs.video.pause(),this.$refs.video.removeEventListener("play",this.onPlay,!1),this.$refs.video.removeEventListener("pause",this.onPause,!1)}},W=G,J=(o("e93e"),Object(h["a"])(W,F,Q,!1,null,"4125d536",null)),K=J.exports,Y={0:"服饰",1:"家具",2:"数码",3:"娱乐",4:"其他"},Z={props:["info"],computed:{typeName:function(){return Y[this.info.type]}},components:{ivideo:K}},X=Z,ee=(o("2e3e"),Object(h["a"])(X,B,z,!1,null,"10cfb278",null)),te=ee.exports,oe=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"img-layer"},[o("i",{staticClass:"iconfont iconclose",on:{click:function(t){return e.$emit("quit")}}}),e.current?o("div",{staticClass:"banner-layer",on:{touchstart:function(e){e.stopPropagation()}}},[e.showBanner?o("Banner",{staticClass:"banner",attrs:{screens:e.current,index:e.index},on:{changeIndex:e.changeIndex},scopedSlots:e._u([{key:"item",fn:function(t){var n=t.data;return o("div",{staticClass:"item"},[o("img",{attrs:{src:~e.origins.indexOf(n)?n.origin:n.abridge,alt:""}})])}}],null,!1,619343202)}):e._e(),o("a",{directives:[{name:"show",rawName:"v-show",value:!~e.origins.indexOf(e.current[e.index]),expression:"!~origins.indexOf(current[index])"}],staticClass:"query-origin",on:{click:function(t){return e.clickLoadding()}}},[~e.loads.indexOf(e.current[e.index])?[o("i",{staticClass:"iconfont icon_loading_"}),e._v("加载中\n ")]:[e._v("查看原图")]],2)],1):e._e()])},ne=[],ae=(o("7514"),o("28a5"),[]),ie={props:["info","estate"],data:function(){return{left:0,index:0,showBanner:!0,current:null,screens:[],origins:ae,loads:[]}},watch:{current:function(){var e=this;this.showBanner=!1,this.index=0,this.$nextTick((function(){return e.showBanner=!0}))},info:function(){this.extract()}},methods:{clickLoadding:function(){this.loading()},loading:function(){var e=this,t=this.current[this.index];if(!~this.loads.indexOf(t)){var o=new Image;o.onload=function(){ae.push(t),e.origins.push(t),e.loads.splice(e.loads.indexOf(t),1)},o.onerror=function(e){console.log("-0-",e)},o.src=t.origin,this.loads.push(t)}},changeIndex:function(e){this.index=e},changeCurrent:function(e,t){this.left=e.target.offsetLeft+"px",this.current=t},extract:function(){var e=this.info.picList.split("#$#"),t=[];t=e.map((function(e){return{abridge:e,origin:e}})),this.origins=t.filter((function(e){return ae.some((function(t){return t.origin===e.origin}))})),console.log(this.origins,ae),this.current=t}},mounted:function(){this.extract()},components:{Banner:N}},se=ie,re=(o("fa0f"),Object(h["a"])(se,oe,ne,!1,null,"0fadf222",null)),ce=re.exports,le=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"album",on:{click:e.clickHandle}},[o("div",{staticClass:"single",style:e.images[0]&&{backgroundImage:"url("+e.images[0]+")"}}),e.images.length>=2?o("div",{staticClass:"more"},[e.images[1]?o("div",{style:e.images[1]&&{backgroundImage:"url("+e.images[1]+")"}}):e._e(),o("div",{style:e.images[2]&&{backgroundImage:"url("+e.images[2]+")"}},[e.images[2]?o("div",[o("span",[o("b",[e._v("+"+e._s(e.picList.length))]),e._v("\n 查看更多\n ")])]):e._e()])]):e._e()])},ue=[],de={props:["info"],data:function(){return{images:[],picList:[]}},methods:{clickHandle:function(){this.$emit("cb")},extract:function(){console.log(this.info.picList),this.picList=this.info.picList.split("#$#"),this.images=this.info.picList.split("#$#").splice(0,3)}},watch:{info:function(){this.extract()}},mounted:function(){this.extract()}},pe=de,he=(o("e037"),Object(h["a"])(pe,le,ue,!1,null,"49de09ce",null)),fe=he.exports,me=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{ref:"layer",staticClass:"map-layer",class:{abridge:e.abridge},on:{click:e.clickHandle}},[e.abridge?[o("img",{attrs:{src:e.img}}),e._m(0)]:o("div",{ref:"map",staticClass:"container"})],2)},ve=[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("span",[e._v("\n 查看周边\n "),o("i",{staticClass:"iconfont iconmaps_enlarge"})])}],ye="e661b00bdf2c44cccf71ef6070ef41b8",ge="3bddec1685d461c2271a6099cde02fd2";function we(){return new Promise((function(e,t){if(window.AMap)e(window.AMap);else{var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src="https://webapi.amap.com/maps?v=1.4.15&key=".concat(ye,"&plugin=AMap.Geocoder&callback=initAMap"),o.onerror=t,document.head.appendChild(o)}window.initAMap=function(){e(window.AMap)}}))}var _e="http://webapi.amap.com/theme/v1.3/markers/n/mark_b.png",be={props:["abridge","lat","lng"],data:function(){return{width:0,height:0,zoom:13}},methods:{initAMap:function(){var e=Object(g["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,we();case 2:t=e.sent,this.map=new t.Map(this.$refs.map,{resizeEnable:!0,zoom:this.zoom,center:[this.lng,this.lat]}),new t.Marker({position:new t.LngLat(this.lng,this.lat),map:this.map,icon:_e,clickable:!1});case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),clickHandle:function(){this.$emit("cb")}},computed:{img:function(){return 0===this.width||0===this.height?"":"https://restapi.amap.com/v3/staticmap?location=".concat(this.lng,",").concat(this.lat,"&zoom=").concat(this.zoom,"&size=").concat(this.width,"*").concat(this.height,"&key=").concat(ge,"&markers=-1,").concat(_e,",:").concat(this.lng,",").concat(this.lat)}},mounted:function(){this.abridge?(this.width=this.$refs.layer.offsetWidth,this.height=this.$refs.layer.offsetHeight):this.initAMap()}},Ce=be,Pe=(o("9f87"),Object(h["a"])(Ce,me,ve,!1,null,"4aecea1a",null)),ke=Pe.exports,xe=o("617a"),Oe=o("c75e"),Se=o("80c5"),Te=o("29b2"),Ee=xe["a"].urlQueryValue("role")||"leader",$e=xe["a"].urlQueryValue("user_id"),Ie=xe["a"].urlQueryValue("room_id");var Ae,je=null,Me=!1,Ve=null,Le=!1;function Re(){Ae&&clearTimeout(Ae)&&(Ae=null),u["app"].player.model.fadePanoMarkers(null,null,{vrCustomer:!1})}function De(){u["app"].player.model?(u["app"].player.model.fadePanoMarkers(0,0,{vrCustomer:!0,hideVideoFlag:!0}),Ae=null):Ae=setTimeout((function(){De()}),30)}function Ue(e,t){("leader"==Ee||t)&&je&&je.emit("webSyncAction",e)}function qe(e,t){je&&je.emit("clientSyncAction",{sender:"h5",type:e,data:t})}function He(e){if(null==Ve)return Ne(e),!1;if(Ve.mode!=e.mode)return Ne(e),!1;if(Ve.mode==Se["a"].PANORAMA)return!!Ve.qua.equals(e.qua)||(Ne(e),!1);if(Ve.mode==Se["a"].DOLLHOUSE){var t=!0;return e.qua&&Ve.qua&&(Ve.qua.equals(e.qua)||(t=!1)),e.pos&&Ve.pos&&(Ve.pos.equals(e.pos)||(t=!1)),e.target&&Ve.target&&(Ve.target.equals(e.target)||(t=!1)),Ve.zoom&&(Ve.zoom.equals(e.zoom)||(t=!1)),t||Ne(e),t}var o=!0;return Ve.qua.equals(e.qua)?(Ve.pos&&(Ve.pos.equals(e.pos)||(o=!1)),Ve.zoom&&Ve.zoom!=e.zoom&&(o=!1)):o=!1,o||Ne(e),o}function Ne(e){Ve={},Ve.mode=e.mode,e.pos&&(Ve.pos=new THREE.Vector3,Ve.pos.set(e.pos.x,e.pos.y,e.pos.z)),e.qua&&(Ve.qua=new THREE.Quaternion,Ve.qua.set(e.qua._x,e.qua._y,e.qua._z,e.qua._w)),e.target&&(Ve.target=new THREE.Vector3,Ve.target.set(e.target.x,e.target.y,e.target.z)),e.zoom&&(Ve.zoom=e.zoom)}function Be(e,t,o,n,a,i){var s;console.log(arguments),s=t instanceof Array?(new THREE.Quaternion).fromArray(t):(new THREE.Quaternion).set(t._x,t._y,t._z,t._w);var r={mode:o,pano:e,qua:s,pos:n,target:a,zoom:i};isNaN(r.qua.x)&&console.log("NaN??????"),u["app"].player.flyToItem(r,(function(){u["app"].play.control.noFly=!0,Le=!0}))}function ze(e){if(!je&&Ie&&$e){var t={url:"",path:"/vr-node"},o={role:Ee,roomId:Ie,userId:$e,sceneNum:xe["a"].urlQueryValue("m"),userLimitNum:5},n=xe["a"].urlHashValue("socket");if(n)try{n=JSON.parse(decodeURIComponent(n)),t={url:n.socketHost,path:n.path},o.userLimitNum=n.options.userLimitNum}catch(a){console.error("socket参数转换出错")}je=Object(Te["b"])(t,o),je.on("connect",(function(){e&&(qe("cart",!0),qe("ready",xe["a"].urlQueryValue("m")))})),je.on("disconnect",(function(){})),je.on("webSyncAction",(function(e){if(e.type&&Oe["a"].emit("shop/sync/action",e),"leader"==Ee&&e.init){var t={follow:1,mode:u["app"].player.mode,qua:u["app"].player.quaternion,panoId:u["app"].player.currentPano.id};"floorplan"==t.mode&&(t.zoom=u["app"].player.cameraControls.activeControl.currentScale/($("#player").width()/$("#player").height())),("floorplan"==t.mode||"dollhouse"==t.mode)&&(t.target=u["app"].player.cameraControls.activeControl.target,t.pos=u["app"].player.cameraControls.activeControl.camera.position),Ue(t)}if(Me&&u["app"].player.cameraControls.activeControl){if(e.follow){var o=u["app"].model.panos.get(e.panoId);return void(o||u["app"].player.linkViewManager.inited?Be(e.panoId,e.qua,e.mode,e.pos,e.target,e.zoom):Oe["a"].on("link/data/load",(function(){Be(e.panoId,e.qua,e.mode,e.pos,e.target,e.zoom)})))}if("undefined"!=typeof e.onUpdate&&(u["app"].play.control.onUpdate=e.onUpdate,"leader"!=Ee||u["app"].play.control.onUpdate||Oe["a"].emit("vrhouse/socket/action","operation-tips")),"undefined"!=typeof e.scale&&(u["app"].player.cameraControls.activeControl.absoluteScale=e.scale,u["app"].player.cameraControls.activeControl.updateZoom()),u["app"].play.control.onUpdate)return;if(e.item){if(He(e.item))return;Le?e.item.mode==Se["a"].PANORAMA&&e.item.pano!=u["app"].player.currentPano.id?a():(u["app"].player.copyCameraProp(u["app"].player.cameraControls.activeControl,e.item,{transitionQua:!0}),u["app"].player.adjustControlAngel()):e.item.pano==u["app"].player.currentPano.id?(Le=!0,u["app"].player.copyCameraProp(u["app"].player.cameraControls.activeControl,e.item),u["app"].player.adjustControlAngel()):a()}else if(e.toPano){if(e.toPano.pano=u["app"].player.model.panos.get(e.toPano.panoId),u["app"].player.currentPano.id!=e.toPano){if(e.toPano.follow=!0,e.toPano.quaternion){var n=e.toPano.quaternion;e.toPano.quaternion=new THREE.Quaternion(n._x,n._y,n._z,n._w)}u["app"].player.flyToPano(e.toPano,(function(){Le=!0}))}}else if(e.newModeInfo){if(e.newModeInfo.panoId&&(e.newModeInfo.pano=u["app"].player.model.panos.get(e.newModeInfo.panoId)),e.newModeInfo.follow=!0,e.newModeInfo.callback=function(){Le=!0},e.newModeInfo.quaternion){n=e.newModeInfo.quaternion;e.newModeInfo.quaternion=new THREE.Quaternion(n._x,n._y,n._z,n._w)}u["app"].player.flyToNewMode(e.newModeInfo)}}function a(){var t;t=e.item.qua instanceof Array?(new THREE.Quaternion).fromArray(e.item.qua):(new THREE.Quaternion).set(e.item.qua._x,e.item.qua._y,e.item.qua._z,e.item.qua._w);var o={mode:Se["a"].PANORAMA,pano:e.item.pano,qua:t};isNaN(o.qua.x)&&console.log("NaN??????"),u["app"].play.control.noFly=!1,u["app"].player.flyToItem(o,(function(){Le=!0})),u["app"].play.control.noFly=!0}})),je.on("clientSyncAction",(function(e){"sync"==e.type?Qe():"back"==e.type?Ge():"newRoom"==e.type&&e.data&&e.data.roomId&&("customer"==Ee&&Re(),Ee="leader",Ie=e.data.roomId,$e=e.data.userId,Fe(),setTimeout((function(){ze(!0)}),100)),Oe["a"].emit("shop/app/action",e)})),je.on("changeVoiceStatus",(function(e){Oe["a"].emit("shop/sync/action",{type:"users",data:e.roomsPerson})})),je.on("roomIn",(function(e){Me=!0,!0,!0,"customer"==Ee&&(u["app"].play.control.onUpdate=!1,setTimeout((function(){u["app"].ready?Ue({init:1},!0):Oe["a"].on("loaded",(function(){Ue({init:1},!0)}))}),100)),Oe["a"].emit("shop/sync/action",{type:"users",data:e.roomsPerson})})),je.on("roomInFail",(function(e){setTimeout((function(){Oe["a"].emit("shop/sync/action",{type:e.type})}),1500)})),je.on("roomClose",(function(e){Me=!1,!1,!1,e&&"3002"==e.code?Oe["a"].emit("shop/sync/action",{type:"dissolve"}):Oe["a"].emit("shop/sync/action",{type:"close"})})),je.on("someOneInRoom",(function(e){Oe["a"].emit("shop/sync/action",{type:"users",user:e.user,data:e.roomsPerson}),Oe["a"].emit("shop/sync/action",{type:"online",user:e.user,isOnline:!0})})),je.on("someOneLeaveRoom",(function(e){Oe["a"].emit("shop/sync/action",{type:"users",user:e.user,data:e.roomsPerson}),Oe["a"].emit("shop/sync/action",{type:"online",user:e.user,isOnline:!1})})),je.on("roomPersonChange",(function(e){Oe["a"].emit("shop/sync/action",{type:"userChange",data:e.roomsPerson,user:e.user,isOnline:"inRoom"==e.actionName})})),je.on("action",(function(e){}))}}function Fe(){je&&(Ge(),je.close(),je=null)}function Qe(){je&&je.emit("startCall"),"customer"==Ee&&De()}function Ge(){je&&je.emit("stopCall"),u["app"].play.control.noFly=!1,Me=!1,!1,!1,u["app"].play.control.onUpdate=!0}function We(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Je(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?We(Object(o),!0).forEach((function(t){Object(i["a"])(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):We(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}u["app"].player.cameraControls.on("vr_freedom",(function(e){Me&&("customer"==Ee?u["app"].play.control.onUpdate=!0:Ue({onUpdate:!1}))})),u["app"].player.on("vr_Rotate",(function(e){if(Me&&null!=e&&null!=e.currentPano&&"customer"!=Ee){var t={};t.qua=e.quaternion,t.mode=e.mode,t.pos=e.position,e.cameraControls.activeControl.currentScale&&(t.zoom=e.cameraControls.activeControl.currentScale/($("#player").width()/$("#player").height())),t.type="Rotate",He(t)||(e.mode==Se["a"].PANORAMA?t.pano=e.currentPano.id:e.mode==Se["a"].FLOORPLAN&&(t.pos=(new THREE.Vector3).set(e.position.x,e.position.y,e.position.z),t.zoom=e.cameraControls.activeControl.currentScale/($("#player").width()/$("#player").height())),e.cameraControls.activeControl.target&&(t.pos=e.position,t.target=e.cameraControls.activeControl.target),u["app"].play.control.onUpdate&&Ue({item:t}))}})),u["app"].player.on("vr_Zoom",(function(e){if(Me){var t=e.cameraControls.activeControl.absoluteScale;Ue({scale:t})}})),u["app"].player.on("vr_FlyToPano",(function(e){Me&&(e.socketed=!0,e.quaternion=u["app"].player.quaternion,"customer"==Ee&&(u["app"].play.control.noFly=!0),Ue({toPano:e,onUpdate:!1}))})),u["app"].player.on("vr_FlyToTag",(function(e){"customer"==Ee&&e.follow&&(u["app"].play.control.noFly=!1),"leader"==Ee&&(u["app"].play.control.noFly=!1)})),u["app"].player.on("vr_FlyToNewMode",(function(e){Me&&(e.socketed=!0,e.quaternion=Ue({newModeInfo:e}))}));var Ke=xe["a"].urlQueryValue("brandId"),Ye=xe["a"].urlQueryValue("m"),Ze={data:function(){return{showTitle:!0,show:!1,newView:!1,imgsShow:!1,mapShow:!1,index:0,info:null,isMiniprogram:!1,disable:!1,showHeader:!0}},computed:Je(Je({},Object(s["b"])({tempdata:"scene/tempdata"})),{},{banner:function(){var e=this.info.picList?[{component:"Album",cb:this.showImgQuery.bind(this),data:{info:this.info}}]:[];return[{component:"Info",data:{info:this.info}}].concat(e,[{component:"Gaode",cb:this.showMap.bind(this),data:{abridge:!0,lat:this.info.latitude,lng:this.info.longitude}}])}}),methods:{onBack:function(){this.$bus.emit("vrhouse/back"),this.$bus.emit("shop/header/showHeader",!0)},bgClick:function(){this.show=!1,qe("cart",!0)},changeShow:function(){this.show=!this.show,this.show&&(this.$refs.map.model=null,this.$bus.emit("shop/tag/show",!1,!0)),qe("cart",!this.show)},onShare:function(){var e=this;this._share||(qe("share"),this._share=!0,setTimeout((function(){e._share=!1}),500))},showImgQuery:function(e){this.imgsShow=!0,this.show=!1,qe("cart",!1)},showMap:function(e){this.mapShow=!0,this.show=!1,qe("cart",!1)},quitImgs:function(){this.imgsShow=!1,qe("cart",!0)},quitMap:function(){this.mapShow=!1,qe("cart",!0)},changeBanner:function(e){this.index=e}},mounted:function(){var e=Object(g["a"])(regeneratorRuntime.mark((function e(){var t,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(Ke){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.$http.get("".concat("","/4dage/shop/getBrandInfo?brandId=").concat(Ke,"&sceneNum=").concat(Ye));case 4:if(t=e.sent,o=t.data,o){e.next=8;break}return e.abrupt("return");case 8:this.newView=!0,this.info=o;case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),components:{Map:T,ImgQuery:ce,Dialog:M,Gaode:ke,Banner:N,Info:te,Album:fe,Video:K},created:function(){var e=this;xe["a"].detectWeixin()&&window.parent.wx.miniProgram.getEnv((function(t){t.miniprogram&&(e.isMiniprogram=!0)})),this.$bus.on("shop/header/showHeader",(function(t){e.showHeader=t})),this.$bus.on("shop/header/disable",(function(t){e.disable=t,e.disable&&e.$refs.map.changeMode("pano")})),this.$bus.on("shop/header/hidemap",(function(){e.$refs.map.hideMap()})),this.$bus.on("shop/header/titleStatus",(function(t){e.showTitle=t}))}},Xe=Ze,et=(o("e694"),o("9c66"),Object(h["a"])(Xe,v,y,!1,null,"54c213fc",null)),tt=et.exports,ot=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("transition",{attrs:{mode:"out-in"}},[o("div",[e.showCheckBrowser?o("checkBrowser"):e._e(),"dialogIndex"==e.dialog?o("dialogIndex",{on:{closeDialog:e.closeDialog}}):e._e(),"dialogShare"==e.dialog?o("dialogShare",{attrs:{shareLink:e.shareLink},on:{closeDialog:e.closeDialog}}):e._e(),e.showCreated?o("createdRoom",{on:{closeCreated:e.closeCreated,createdConfirm:function(t){return e.createdConfirm()}}}):e._e(),e.show?o(e.page,{tag:"component",on:{openDialog:e.openDialog}}):e._e()],1)])},nt=[],at=function(){var e=this,t=e.$createElement,o=e._self._c||t;return"fashilong"==e.orgin||e.hideToolBar?e._e():o("div",{staticClass:"navigation",style:{zIndex:e.showEnvTips?99999:99,left:e.showMore?"":-e.iconListWidth+"px"}},[e.tabBarShow?o("div",{staticClass:"tabBar"},[o("div",{staticClass:"iconList",attrs:{id:"iconList"}},[e.plays.length>0?o("div",{staticClass:"iconfont ",class:[this.status.isPlaying?"iconscene_stop":"iconguided"],style:e.status.isPlaying?"color:#ED5D18;":"",on:{click:function(t){return e.tabBarClick(1)}}},[1==e.tabBarType&&e.showTabbarTip&&e.status.isPlaying?o("div",{staticClass:"iconTip"},[e._v(e._s(e.$t("rtcLive.openGuided")))]):e._e(),1==e.tabBarType&&e.showTabbarTip&&!e.status.isPlaying?o("div",{staticClass:"iconTip"},[e._v(e._s(e.$t("rtcLive.closeGuided")))]):e._e()]):e._e(),o("div",{staticClass:"iconfont iconshowing",on:{click:function(t){return e.tabBarClick(2)}}}),o("div",{staticClass:"iconfont iconhot_spot",style:e.hotSpot?"color:#ED5D18;":"",on:{click:function(t){return e.tabBarClick(3)}}},[3==e.tabBarType&&e.showTabbarTip&&e.hotSpot?o("div",{staticClass:"iconTip"},[e._v(e._s(e.$t("rtcLive.openHotSpot")))]):e._e(),3==e.tabBarType&&e.showTabbarTip&&!e.hotSpot?o("div",{staticClass:"iconTip"},[e._v(e._s(e.$t("rtcLive.closeHotSpot")))]):e._e()]),o("div",{staticClass:"iconfont iconvr",on:{click:function(t){return e.tabBarClick(4)}}})]),o("div",{staticClass:"tabBtn iconfont iconarrows",class:{hide:!e.showMore},on:{click:e.onShowMore}})]):e._e()])},it=[],st=o("f121"),rt=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("popup",{attrs:{show:e.show,"is-close":e.showClose},on:{close:function(t){return e.$emit("close")}}},[o("div",{staticClass:"share-x-window",style:{height:e.height},on:{touchstart:function(e){e.stopPropagation()}}},[e.showClose?o("div",{staticClass:"header"},[o("span",{staticClass:"close",on:{click:function(t){return t.stopPropagation(),e.$emit("close")},touchstart:function(t){return t.stopPropagation(),e.$emit("close")}}})]):e._e(),o("div",{staticClass:"main"},[e._t("default")],2),o("div",{staticClass:"footer"},[e._t("footer")],2)])])},ct=[],lt=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("transition",{attrs:{appear:"",name:"custom-classes-transition","enter-active-class":"animated fadeIn faster","leave-active-class":"animated fadeOut faster"}},[e.show?o("div",{staticClass:"x-popup-layer",style:{"z-index":e.zIndex,"background-color":e.bgColor},on:{touchmove:function(e){e.preventDefault()},touchstart:e.onClick}},[e._t("default")],2):e._e()])},ut=[],dt=999;function pt(){return++dt}var ht={name:"x-popup-layer",props:{show:Boolean,isClose:Boolean,bgColor:String},data:function(){return{zIndex:pt()}},methods:{onClick:function(){this.isClose&&this.$emit("close")}}},ft=ht,mt=(o("fff0"),Object(h["a"])(ft,lt,ut,!1,null,"069790dc",null)),vt=mt.exports,yt={components:{Popup:vt},props:{show:Boolean,height:String,showClose:{type:Boolean,default:function(){return!0}}}},gt=yt,wt=(o("496a"),Object(h["a"])(gt,rt,ct,!1,null,"3d9d5ea3",null)),_t=wt.exports,bt=o("ff11");function Ct(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Pt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(o),!0).forEach((function(t){Object(i["a"])(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ct(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var kt={components:{XWindow:_t},data:function(){return{tabBarShow:!0,orgin:xe["a"].urlQueryValue("origin").toLowerCase(),showMore:!0,hideToolBar:xe["a"].urlHasValue("hideToolBar"),showCoupon:!1,showEnvTips:!1,iconListWidth:0,hotSpot:!1,tabbarList:[{title:"导览",icon:"iconguided",type:1},{title:"一起逛",icon:"iconshowing",type:2},{title:"热点",icon:"iconhot_spot",type:3},{title:"VR模式",icon:"iconvr",type:4}],tabBarType:0,showTabbarTip:!1,timer:null}},watch:{plays:{handler:function(e,t){qe("guide",{length:this.plays.length})},immediate:!0},"status.isPlaying":function(){qe("guide",{playing:this.status.isPlaying})}},computed:Pt({},Object(s["b"])({plays:"guide/plays",status:"guide/status",medias:"guide/medias"})),created:function(){var e=this;this.$once("hook:beforeDestroy",(function(){e.$bus.off("vrhouse/back",e.vrBack)})),this.$bus.on("vrhouse/back",this.vrBack),u["play"].on("guide/play/start",(function(t){e.$store.commit("guide/SetStatus",{isPlaying:!0})})),u["play"].on("guide/play/pause",(function(t){e.$store.commit("guide/SetStatus",{isPlaying:!1})})),u["play"].on("guide/play/stop",(function(){e.$store.commit("guide/SetStatus",{isPlaying:!1})})),u["play"].on("guide/play/playing",(function(t){e.$store.commit("guide/SetIndex",t)})),u["play"].on("guide/play/flyToStart",(function(t){e.$store.commit("guide/SetIndex",t)}))},mounted:function(){var e=this;this.$bus.on("ready",(function(){if(e.plays.length){var t="soundsync"===e.status.audio?"sync":e.status.audio;e.medias.links[t]&&bt["c"].setSRC(e.$config.getPublishResource(e.medias.links[t]))}})),this.$nextTick((function(){$("#player").on("touchstart",(function(){e.status.isPlaying&&u["play"].pause()}))}))},methods:{vrBack:function(){var e=this;this.tabBarShow=!0,this.$store.commit("SetVR",!1),this.$nextTick((function(){e.hotSpot?C["objects"].tagManager.showAllTags():C["objects"].tagManager.hideAllTags()}))},tabBarClick:function(e){var t=this;switch(this.tabBarType=e,e){case 1:this.onPlayGuide();break;case 2:u["play"].pause(),this.$parent.showCreated=!0,this.$config.isTyping=!0;break;case 3:this.hotSpot=!this.hotSpot,this.hotSpot?C["objects"].tagManager.showAllTags():C["objects"].tagManager.hideAllTags();break;case 4:u["play"].pause(),this.tabBarShow=!1,this.$bus.emit("vrhouse/enterVR"),this.$store.commit("SetVR",!0),this.$bus.emit("shop/header/showHeader",!1);break;default:break}this.showTabbarTip=!0,this.timer=setTimeout((function(){t.showTabbarTip=!1,clearTimeout(t.timer),t.timer=null}),3e3)},onShowMore:function(){this.iconListWidth=document.getElementById("iconList").clientWidth,this.showMore=!this.showMore},onPlayGuide:function(){this.status.isPlaying?u["play"].pause():u["play"].start()}}},xt=kt,Ot=(o("8229"),Object(h["a"])(xt,at,it,!1,null,"44b8a8ce",null)),St=Ot.exports,Tt=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"PageRtcLive"}},[o("div",{staticClass:"member_number"},[o("div",{staticClass:"members"}),o("span",[e._v(e._s(this.user_list.length)+e._s(e.$t("rtcLive.look")))])]),o("chat",{directives:[{name:"show",rawName:"v-show",value:e.chatShow,expression:"chatShow"}],ref:"chat",attrs:{chatList:e.chatList,user_info:e.user_info}}),o("div",{directives:[{name:"show",rawName:"v-show",value:!e.hideVideoTop,expression:"!hideVideoTop"}],staticClass:"videoBox userVideo",attrs:{id:"userVideo"}},[e.userVideoShow?e._e():o("img",{attrs:{src:e.$config.getStaticResource("img/apps/rtcLive/avatar_small@2x.png"),alt:""}}),e.userVideoShow?e._e():o("img",{staticClass:"loadingTip",attrs:{src:e.$config.getStaticResource("img/apps/rtcLive/loading@2x.png"),alt:""}}),o("div",{staticClass:"micBox"},[e.hideMicTop?o("i",{staticClass:"iconfont iconscene_mic_off1"}):o("i",{staticClass:"speak_mic"})])]),o("div",{directives:[{name:"show",rawName:"v-show",value:"1"==e.mode&&!e.hideVideoBottom,expression:"mode=='1' && !hideVideoBottom"}],staticClass:"videoBox myVideo",attrs:{id:"myVideo"}},[e.myVideoShow?e._e():o("img",{attrs:{src:e.$config.getStaticResource("img/apps/rtcLive/avatar_small@2x.png"),alt:""}}),e.myVideoShow?e._e():o("img",{staticClass:"loadingTip",attrs:{src:e.$config.getStaticResource("img/apps/rtcLive/loading@2x.png"),alt:""}}),o("div",{staticClass:"micBox"},[e.hideMic?o("i",{staticClass:"iconfont iconscene_mic_off1"}):o("i",{staticClass:"speak_mic"})])]),e.showInput?e._e():o("div",{staticClass:"contorlBar"},[o("div",{staticClass:"saySomething",class:{disable:!e.user_info.can_speak},on:{click:e.onFocus}},[e.user_info.can_speak?o("span",[e._v("\n "+e._s(e.$t("rtcLive.speakSome"))+"\n ")]):o("span",[e._v(e._s(e.$t("rtcLive.cant_speakSome")))])]),o("div",{staticClass:"contorl_btn"},[e.isBrushes?o("div",{staticClass:"brushesBack",class:{disable:!e.canUndo},on:{click:e.onDrawUndo}}):e._e(),"leader"==e.user_info.role?o("div",{staticClass:"brushes ",class:{brushesed:e.isBrushes},on:{click:e.onDraw}}):e._e(),e.user_list.length<2&&"1"==e.mode||"2"==e.mode&&e.user_list.length<30?o("div",{staticClass:"invitation",on:{click:function(t){return e.openDialog("dialogShare",e.shareLink)}}}):e._e(),"2"==e.mode&&"leader"==e.role?o("div",{staticClass:" members",on:{click:e.openMember}}):e._e(),0==e.audioDevices.length||e.disableMic?e._e():o("div",{staticClass:"mic_on ",class:{mic_off:e.hideMic},on:{click:function(t){return e.changeMedia("audio",e.hideMic)}}}),0==e.audioDevices.length||e.disableMic?o("div",{staticClass:"mic_no "}):e._e(),"leader"==e.role&&0!=e.videoDevices.length||"1"==e.mode&&0!=e.videoDevices.length?o("div",{staticClass:" video_on ",class:{video_off:e.hideVideo},on:{click:function(t){return e.changeMedia("video",e.hideVideo)}}}):e._e(),0==e.videoDevices.length&&"1"==e.mode||"leader"==e.role&&0==e.videoDevices.length?o("div",{staticClass:"video_no "}):e._e(),o("div",{staticClass:" exit",on:{click:function(t){return e.openDialog("dialogIndex")}}})])]),e.showInput?o("div",{staticClass:"layer",on:{click:e.closeInput}},[o("div",{staticClass:"inputBox",on:{click:function(e){e.stopPropagation()}}},[o("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.text,expression:"text",modifiers:{trim:!0}}],attrs:{id:"input_msg",type:"text",maxlength:"200",placeholder:e.$t("rtcLive.speakSome")+"~"},domProps:{value:e.text},on:{input:function(t){t.target.composing||(e.text=t.target.value.trim())},blur:function(t){return e.$forceUpdate()}}}),o("i",{staticClass:"iconfont iconsend",class:{active:""!=e.text},on:{click:e.sendText}})])]):e._e(),e.showMember?o("div",{staticClass:"layer",on:{click:function(t){return t.target!==t.currentTarget?null:e.closeMember(t)}}},[o("div",{staticClass:"memberContent animated ",class:e.animateActive?"fadeInUpBig":"fadeOutDownBig"},[o("div",{staticClass:"blurBox"}),o("div",{staticClass:"content"},[o("div",{staticClass:"memberHeader"},[o("span",[e._v(" "+e._s(e.$t("rtcLive.member"))+"("+e._s(this.user_list.length)+")")]),o("i",{staticClass:"iconfont"})]),o("div",{staticClass:"memberList"},[o("div",{staticClass:"memberItem"},[o("div",{staticClass:"userMsg"},[o("div",{staticClass:"avatar"},[o("img",{attrs:{src:e.$config.getStaticResource("img/apps/rtcLive/avatar_small@2x.png"),alt:""}})]),"leader"==e.user_info.role?o("div",{staticClass:"name"},[e._v(e._s(e.user_info.userName)+" ("+e._s(e.$t("rtcLive.leader"))+","+e._s(e.$t("rtcLive.customer"))+")")]):o("div",{staticClass:"name"},[e._v(e._s(e.user_info.userName)+" ("+e._s(e.$t("rtcLive.customer"))+")")])]),"leader"==e.user_info.role?o("div",{staticClass:"button"},[o("div",{staticClass:"micBtn mute_all_mic",class:{open_all_mic:!e.all_mute_mic},on:{click:function(t){return e.onMemberMuted(e.all_mute_mic)}}})]):e._e()]),e._l(e.user_list,(function(t){return o("div",{directives:[{name:"show",rawName:"v-show",value:e.user_info.userId!=t.userId&&"leader"!=t.role,expression:"user_info.userId!=i.userId && i.role!='leader' "}],key:t.userId,staticClass:"memberItem"},[o("div",{staticClass:"userMsg"},[o("div",{staticClass:"avatar"},[o("img",{attrs:{src:e.$config.getStaticResource("img/apps/rtcLive/avatar_small@2x.png"),alt:""}})]),o("div",{staticClass:"name"},[e._v(e._s(t.userName))])]),"leader"==e.user_info.role?o("div",{staticClass:"button"},[o("div",{staticClass:"micBtn ",class:t.can_speak?"ban_speak_on":"ban_speak_off",on:{click:function(o){return e.userCanSpeak(t)}}}),o("div",{staticClass:"outBtn icon_remove",on:{click:function(o){return e.userGetOut(t.userId)}}}),o("div",{staticClass:"micBtn ",class:t.muted?"mute_one_mic_off":"mute_one_mic_on",on:{click:function(o){return e.onMemberMuted(!t.muted,t.userId)}}})]):e._e()])}))],2)])])]):e._e(),o("Draw",{ref:"draw",attrs:{"show-paint":e.showPaint},on:{sendCanUndo:e.sendCanUndo}})],1)},Et=[],$t=(o("7f7f"),o("386d"),o("a481"),function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"paint"},[o("canvas",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],ref:"canvas"})])}),It=[],At=decodeURIComponent(xe["a"].urlHashValue("name")),jt=decodeURIComponent(xe["a"].urlHashValue("userId")),Mt=xe["a"].urlHashValue("roomId")||"",Vt=xe["a"].urlHashValue("mode"),Lt=xe["a"].urlHashValue("role")||"leader",Rt=!1;function Dt(){return Lt}var Ut=null,qt=!1,Ht=null,Nt=!1;function Bt(e,t){("leader"==Lt||t)&&Ut&&Ut.emit("webSyncAction",e)}function zt(e,t){Ut&&Ut.emit("clientSyncAction",{sender:"h5",type:e,data:t})}function Ft(e,t){Ut&&Ut.emit("action",{sender:"h5",type:e,data:t})}function Qt(e){if(null==Ht)return Gt(e),!1;if(Ht.mode!=e.mode)return Gt(e),!1;if(Ht.mode==Se["a"].PANORAMA)return!!Ht.qua.equals(e.qua)||(Gt(e),!1);if(Ht.mode==Se["a"].DOLLHOUSE){var t=!0;return e.qua&&Ht.qua&&(Ht.qua.equals(e.qua)||(t=!1)),e.pos&&Ht.pos&&(Ht.pos.equals(e.pos)||(t=!1)),e.target&&Ht.target&&(Ht.target.equals(e.target)||(t=!1)),Ht.zoom&&(Ht.zoom.equals(e.zoom)||(t=!1)),t||Gt(e),t}var o=!0;return Ht.qua.equals(e.qua)?(Ht.pos&&(Ht.pos.equals(e.pos)||(o=!1)),Ht.zoom&&Ht.zoom!=e.zoom&&(o=!1)):o=!1,o||Gt(e),o}function Gt(e){Ht={},Ht.mode=e.mode,e.pos&&(Ht.pos=new THREE.Vector3,Ht.pos.set(e.pos.x,e.pos.y,e.pos.z)),e.qua&&(Ht.qua=new THREE.Quaternion,Ht.qua.set(e.qua._x,e.qua._y,e.qua._z,e.qua._w)),e.target&&(Ht.target=new THREE.Vector3,Ht.target.set(e.target.x,e.target.y,e.target.z)),e.zoom&&(Ht.zoom=e.zoom)}function Wt(e,t,o,n,a,i){var s;console.log(arguments),s=t instanceof Array?(new THREE.Quaternion).fromArray(t):(new THREE.Quaternion).set(t._x,t._y,t._z,t._w);var r={mode:o,pano:e,qua:s,pos:n,target:a,zoom:i};isNaN(r.qua.x)&&console.log("NaN??????"),u["app"].player.flyToItem(r,(function(){u["app"].play.control.noFly=!0,Nt=!0}))}function Jt(){var e={url:"",path:"/im-rtc"};At=decodeURIComponent(xe["a"].urlHashValue("name")),Mt=xe["a"].urlHashValue("roomId")||"",Vt=xe["a"].urlHashValue("mode"),Lt=xe["a"].urlHashValue("role")||"leader",jt=xe["a"].urlHashValue("userId")||"",Rt=xe["a"].urlIsHasHash("muted");var t={userName:At,mode:Vt,roomId:Mt,role:Lt,userId:jt,muted:Rt};Ut=Object(Te["b"])(e,t),Ut.on("connect",(function(){})),Ut.on("full",(function(){console.log("满员了"),Oe["a"].emit("socket/full")})),Ut.on("join",(function(e){Oe["a"].emit("socket/join",e)})),Ut.on("userJoin",(function(e){Oe["a"].emit("socket/userJoin",e),"1"==Vt&&Oe["a"].emit("socket/socket_changeMedia",{type:"video",status:!0})})),Ut.on("userLeave",(function(e){Oe["a"].emit("socket/userLeave",e),"1"==Vt&&Oe["a"].emit("socket/socket_changeMedia",{type:"video",status:!1})})),Ut.on("muted",(function(e,t){Oe["a"].emit("socket/muted",e,t)})),Ut.on("mutedChanged",(function(e,t){console.log("mutedChanged"),Oe["a"].emit("socket/mutedChanged",e,t)})),Ut.on("getOut",(function(e){console.log("有人被踢了"),Oe["a"].emit("socket/getOut",e)})),Ut.on("msg",(function(e){Oe["a"].emit("socket/receive_msg",e)})),Ut.on("socket_changeMedia",(function(e){Oe["a"].emit("socket/socket_changeMedia",e)})),Ut.on("forbidden",(function(e){Oe["a"].emit("socket/forbidden",e)})),Ut.on("disconnect",(function(){})),Ut.on("webSyncAction",(function(e){if(console.log("webSyncAction"),console.log(e),e.type&&Oe["a"].emit("shop/sync/action",e),"floor"==e.name&&Oe["a"].emit("rtcLive/action",e),"leader"==Lt&&e.init){var t={follow:1,mode:u["app"].player.mode,qua:u["app"].player.quaternion,panoId:u["app"].player.currentPano.id};"floorplan"==t.mode&&(t.zoom=u["app"].player.cameraControls.activeControl.currentScale/($("#player").width()/$("#player").height())),("floorplan"==t.mode||"dollhouse"==t.mode)&&(t.target=u["app"].player.cameraControls.activeControl.target,t.pos=u["app"].player.cameraControls.activeControl.camera.position),Bt(t)}if(qt&&u["app"].player.cameraControls.activeControl){if(e.follow){var o=u["app"].model.panos.get(e.panoId);return void(o||u["app"].player.linkViewManager.inited?Wt(e.panoId,e.qua,e.mode,e.pos,e.target,e.zoom):Oe["a"].on("link/data/load",(function(){Wt(e.panoId,e.qua,e.mode,e.pos,e.target,e.zoom)})))}if("undefined"!=typeof e.onUpdate&&(u["app"].play.control.onUpdate=e.onUpdate,"leader"!=Lt||u["app"].play.control.onUpdate||Oe["a"].emit("vrhouse/socket/action","operation-tips")),"undefined"!=typeof e.scale&&(u["app"].player.cameraControls.activeControl.absoluteScale=e.scale,u["app"].player.cameraControls.activeControl.updateZoom()),u["app"].play.control.onUpdate)return;if(e.item){if(Qt(e.item))return;Nt?e.item.mode==Se["a"].PANORAMA&&e.item.pano!=u["app"].player.currentPano.id?a():(u["app"].player.copyCameraProp(u["app"].player.cameraControls.activeControl,e.item,{transitionQua:!0}),u["app"].player.adjustControlAngel()):e.item.pano==u["app"].player.currentPano.id?(Nt=!0,u["app"].player.copyCameraProp(u["app"].player.cameraControls.activeControl,e.item),u["app"].player.adjustControlAngel()):a()}else if(e.toPano){if(e.toPano.pano=u["app"].player.model.panos.get(e.toPano.panoId),u["app"].player.currentPano.id!=e.toPano){if(e.toPano.follow=!0,e.toPano.quaternion){var n=e.toPano.quaternion;e.toPano.quaternion=new THREE.Quaternion(n._x,n._y,n._z,n._w)}u["app"].player.flyToPano(e.toPano,(function(){Nt=!0}))}}else if(e.newModeInfo){if(e.newModeInfo.panoId&&(e.newModeInfo.pano=u["app"].player.model.panos.get(e.newModeInfo.panoId)),e.newModeInfo.follow=!0,e.newModeInfo.callback=function(){Nt=!0},e.newModeInfo.quaternion){n=e.newModeInfo.quaternion;e.newModeInfo.quaternion=new THREE.Quaternion(n._x,n._y,n._z,n._w)}u["app"].player.flyToNewMode(e.newModeInfo)}}function a(){var t;t=e.item.qua instanceof Array?(new THREE.Quaternion).fromArray(e.item.qua):(new THREE.Quaternion).set(e.item.qua._x,e.item.qua._y,e.item.qua._z,e.item.qua._w);var o={mode:Se["a"].PANORAMA,pano:e.item.pano,qua:t};isNaN(o.qua.x)&&console.log("NaN??????"),u["app"].play.control.noFly=!1,u["app"].player.flyToItem(o,(function(){Nt=!0})),u["app"].play.control.noFly=!0}})),Ut.on("join",(function(e){qt=!0,!0,!0,"customer"==Lt&&(u["app"].play.control.onUpdate=!1,setTimeout((function(){u["app"].ready?Bt({init:1},!0):Oe["a"].on("loaded",(function(){Bt({init:1},!0)}))}),100)),Oe["a"].emit("shop/sync/action",{type:"users",data:e.roomsPerson})})),Ut.on("action",(function(e){Oe["a"].emit("rtcLive/action",e)}))}function Kt(){Ut&&(Ut.close(),Ut=null)}function Yt(e){Ut&&Ut.emit("getOut",e),console.log("老板要踢人啦")}function Zt(e){Ut&&Ut.emit("msg",e)}function Xt(e){Ut&&Ut.emit("socket_changeMedia",e)}function eo(e,t){Ut&&Ut.emit("muted",e,t)}function to(e){Ut&&Ut.emit("forbidden",e)}u["app"].player.cameraControls.on("vr_freedom",(function(e){qt&&("customer"==Lt?u["app"].play.control.onUpdate=!0:Bt({onUpdate:!1}))})),u["app"].player.on("vr_Rotate",(function(e){if(qt&&null!=e&&null!=e.currentPano&&"customer"!=Lt){var t={};t.qua=e.quaternion,t.mode=e.mode,t.pos=e.position,e.cameraControls.activeControl.currentScale&&(t.zoom=e.cameraControls.activeControl.currentScale/($("#player").width()/$("#player").height())),t.type="Rotate",Qt(t)||(e.mode==Se["a"].PANORAMA?t.pano=e.currentPano.id:e.mode==Se["a"].FLOORPLAN&&(t.pos=(new THREE.Vector3).set(e.position.x,e.position.y,e.position.z),t.zoom=e.cameraControls.activeControl.currentScale/($("#player").width()/$("#player").height())),e.cameraControls.activeControl.target&&(t.pos=e.position,t.target=e.cameraControls.activeControl.target),u["app"].play.control.onUpdate&&Bt({item:t}))}})),u["app"].player.on("vr_Zoom",(function(e){if(qt){var t=e.cameraControls.activeControl.absoluteScale;Bt({scale:t})}})),u["app"].player.on("vr_FlyToPano",(function(e){qt&&(e.socketed=!0,e.quaternion=u["app"].player.quaternion,"customer"==Lt&&(u["app"].play.control.noFly=!0),Bt({toPano:e,onUpdate:!1}))})),u["app"].player.on("vr_FlyToTag",(function(e){"customer"==Lt&&e.follow&&(u["app"].play.control.noFly=!1),"leader"==Lt&&(u["app"].play.control.noFly=!1)})),u["app"].player.on("vr_FlyToNewMode",(function(e){qt&&(e.socketed=!0,e.quaternion=Bt({newModeInfo:e}))})),Oe["a"].on("socket/memberAudioMuted",(function(e,t){Ut&&Ut.emit("mutedChanged",e,t)}));var oo,no=o("bc19"),ao=o("4c16"),io={props:{showPaint:Boolean},data:function(){return{role:Dt(),show:!1,canUndo:!1,colorA:"#02c8ae",colorB:"#2e98fe"}},watch:{showPaint:function(){this.showPaint&&(this.role=Dt())},show:function(){zt("cart",!this.show),this.$bus.emit("shop/header/disable",this.show)}},created:function(){var e=this;this.$bus.on("shop/sync/action",(function(t){if("drawStart"==t.type)e.show=!0,e.draw=[],e.drawHistory=[],e.$nextTick((function(){e.onDrawStart()}));else if("drawStop"==t.type)e.show=!1,e.draw=null,e.drawHistory=null;else if("drawing"==t.type){var o=e.transformTo2d(t.data.drawing);t.data.role!=e.role&&(e.drawHistory.push(JSON.parse(JSON.stringify(o))),e.drawing(o))}else"drawUndo"==t.type&&e.drawUndo(t.data.role)}))},mounted:function(){var e,t=this;this.canvas=this.$refs.canvas,this.context=this.canvas.getContext("2d"),this.canvas.onmousedown=function(e){t.show&&(e.preventDefault(),t.beginStroke({x:e.clientX,y:e.clientY}))},this.canvas.onmouseup=function(e){t.show&&(e.preventDefault(),t.endStroke())},this.canvas.onmouseout=function(e){t.show&&(e.preventDefault(),t.endStroke())},this.canvas.onmousemove=function(e){t.show&&(e.preventDefault(),t._mouseDown&&t.moveStroke({x:e.clientX,y:e.clientY}))},this.canvas.addEventListener("touchstart",(function(o){t.show&&"leader"==t.role&&(o.preventDefault(),e=o.touches[0],t.beginStroke({x:e.pageX,y:e.pageY}))})),this.canvas.addEventListener("touchmove",(function(o){t.show&&"leader"==t.role&&(o.preventDefault(),t._mouseDown&&(e=o.touches[0],t.moveStroke({x:e.pageX,y:e.pageY})))})),this.canvas.addEventListener("touchend",(function(e){t.show&&"leader"==t.role&&(e.preventDefault(),t.endStroke())})),this.mouse=new THREE.Vector2},methods:{transformTo3d:function(e){var t=this,o=[];return 0==e.length?[]:(e.forEach((function(e,n){no["a"].convertScreenPositionToNDC(e.x,e.y,t.mouse);var a=ao["a"].getMouseIntersect(C["objects"].player.camera,[t.intersectPlane],t.mouse);a?(e.pos3d=a.point,o.push(e)):console.error("no intersect ??")})),o)},transformTo2d:function(e){var t=[];return e.forEach((function(e){var o=new THREE.Vector3(e.pos3d.x,e.pos3d.y,e.pos3d.z),n=ao["a"].getPos2d(o,C["objects"].player.camera);e.x=n.pos.x,e.y=n.pos.y,t.push(e)})),t},onDraw:function(e){var t=this;if("drawStart"==e)this.show=!0,this.draw=[],this.drawHistory=[],this.$nextTick((function(){t.onDrawStart()}));else if("drawStop"==e)this.show=!1,this.draw=null,this.drawHistory=null;else if("drawing"==e){var o=this.transformTo2d(data.content.drawing);data.role!=role&&this.drawHistory.push(JSON.parse(JSON.stringify(o)))}else"drawUndo"==e&&this.drawUndo(this.role);Bt({type:e,data:{role:this.role}})},onPainting:function(){var e=this.transformTo3d(this.draw);this.drawHistory.push(JSON.parse(JSON.stringify(e))),Bt({type:"drawing",data:{drawing:e}}),this.draw=[],this.canUndo=!0,this._endTime=0,this._mouseDown=!1,this._lastTimestamp=0,this.$emit("sendCanUndo",this.canUndo)},beginStroke:function(e){this._mouseDown=!0,this._lastTimestamp=Date.now(),this._lastPosition=this.windowToCanvas(e.x,e.y),this.draw.push({role:this.role,width:0,x:this._lastPosition.x,y:this._lastPosition.y,t:5})},onDrawStart:function(){var e=window.devicePixelRatio||1,t=this.canvas.getBoundingClientRect();this.ratio=1,this.canvas.width=t.width*e,this.canvas.height=t.height*e,this.context.scale(e,e),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},no["a"].convertScreenPositionToNDC(0,0,this.mouse);var o=ao["a"].getMouseIntersect(C["objects"].player.camera,[C["objects"].model.skybox,C["objects"].sceneRenderer.scene.skyboxBG],this.mouse);this.placeIntersectPlane(o&&o.point)},moveStroke:function(e){var t=Date.now(),o=this.windowToCanvas(e.x,e.y),n=this.calcDistance(o,this._lastPosition),a=t-this._lastTimestamp,i=this.calcLineWidth(a,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:i,x:o.x,y:o.y,t:5}),this.context.strokeStyle=this.colorA,this.context.lineWidth=i,this.context.lineCap="round",this.context.linJoin="round",this.context.stroke(),this._lastPosition=o,this._lastTimestamp=t,this._lastLineWidth=i},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(e,t){var o,n=t/e;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(e,t){return Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))},windowToCanvas:function(e,t){var o=this.canvas.getBoundingClientRect();return{x:Math.round(e-o.left),y:Math.round(t-o.top)}},drawing:function(e){for(var t=this,o=function(o){e[o].t&&setTimeout((function(){t.context.beginPath(),t.context.strokeStyle=e[o].role==t.role?t.colorA:t.colorB,t.context.moveTo(e[o].x*t.ratio,e[o].y*t.ratio),t.context.lineTo(e[o+1].x*t.ratio,e[o+1].y*t.ratio),t.context.lineWidth=e[o].width*t.ratio,t.context.lineCap="round",t.context.linJoin="round",t.context.stroke()}),5)},n=0;n<e.length-1;n++)o(n)},drawUndo:function(e){var t=this;this.context.clearRect(0,0,this.canvas.width,this.canvas.height);for(var o=this.drawHistory.length-1;o>=0;o--)if(this.drawHistory[o][0].role==e){this.drawHistory.splice(o,1);break}this.drawHistory.forEach((function(e){for(var o=0;o<e.length-1;o++)e[o].t&&(t.context.beginPath(),t.context.strokeStyle=e[o].role==t.role?t.colorA:t.colorB,t.context.moveTo(e[o].x*t.ratio,e[o].y*t.ratio),t.context.lineTo(e[o+1].x*t.ratio,e[o+1].y*t.ratio),t.context.lineWidth=e[o].width*t.ratio,t.context.lineCap="round",t.context.linJoin="round",t.context.stroke())})),this.canUndo=this.drawHistory.some((function(e){return e[0].role==t.role}))},placeIntersectPlane:function(e){if(!this.intersectPlane){var t=new THREE.PlaneGeometry(8e3,8e4,1,1);this.intersectPlane=new THREE.Mesh(t,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",C["objects"].model.add(this.intersectPlane)}if(e){this.intersectPlane.position.copy(e);var o=C["objects"].player.getDirection(null,C["objects"].player.camera);this.intersectPlane.lookAt(e.clone().add(o))}}}},so=io,ro=(o("d85e"),Object(h["a"])(so,$t,It,!1,null,"0e712e44",null)),co=ro.exports,lo=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"chat"}},[o("div",{attrs:{id:"contents"}},e._l(e.chatList,(function(t,n){return o("div",{key:n,staticClass:"chat-item"},[o("div",{staticClass:"chat-msg"},[o("span",{staticClass:"chat-name",class:{my:t.userId==e.user_info.userId}},[e._v(" "+e._s(t.userName)+" ")]),o("span",{staticClass:"chat-content"},[e._v(" "+e._s(t.text))])])])})),0)])},uo=[],po={data:function(){return{}},props:{user_info:{type:Object,default:{}},chatList:{type:Array,default:[]}},components:{},methods:{autoScroll:function(){var e=document.getElementById("chat"),t=document.getElementById("chat").clientHeight,o=document.getElementById("contents").clientHeight;e.scrollTo(0,t+o)}}},ho=po,fo=(o("e3b9"),Object(h["a"])(ho,lo,uo,!1,null,"683a2e2a",null)),mo=fo.exports,vo=(o("6b54"),decodeURIComponent(xe["a"].urlHashValue("name")),xe["a"].urlHashValue("roomId"),xe["a"].urlHashValue("mode")),yo=xe["a"].urlHashValue("role")||"leader",go=1,wo="",_o={client:null,localAudioTrack:null,localVideoTrack:null},bo={videoTrackEnabled:!0,audioTrackEnabled:!0};function Co(){_o={client:null,localAudioTrack:null,localVideoTrack:null},bo={videoTrackEnabled:!0,audioTrackEnabled:!0}}function Po(){return new Promise((function(e,t){AgoraRTC.getDevices().then((function(t){e(t)})).catch((function(e){t(e)}))}))}function ko(){return AgoraRTC.checkSystemRequirements()}function xo(e,t){return Oo.apply(this,arguments)}function Oo(){return Oo=Object(g["a"])(regeneratorRuntime.mark((function e(t,o){var n,a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(AgoraRTC.setLogLevel(go),_o.client){e.next=55;break}return vo=xe["a"].urlHashValue("mode"),decodeURIComponent(xe["a"].urlHashValue("name")),yo=xe["a"].urlHashValue("role"),t=xe["a"].urlHashValue("roomId")||"",n={appId:"a1c48a64ba9e40ec8252f11506fe7cc5",channel:t,token:null},_o.client=AgoraRTC.createClient({mode:"rtc",codec:-1!=wo.indexOf("H264")?"h264":"vp8"}),e.next=10,_o.client.join(n.appId,n.channel,n.token,null);case 10:if(a=e.sent,_o.client.on("user-published",function(){var e=Object(g["a"])(regeneratorRuntime.mark((function e(t,o){var n,a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,_o.client.subscribe(t,o);case 2:console.log("subscribe success"),"video"===o&&(Oe["a"].emit("rtc/video_play",2),n=t.videoTrack,a=document.createElement("div"),a.id=t.uid.toString(),a.className="videoPlayer",a.style.width="1.94rem",a.style.height="1.94rem",document.getElementById("userVideo").append(a),n.play(a)),"audio"===o&&(i=t.audioTrack,i.play());case 5:case"end":return e.stop()}}),e)})));return function(t,o){return e.apply(this,arguments)}}()),_o.client.on("user-unpublished",(function(e,t){if(console.log("user-unpublished"),"video"===t){var o=document.getElementById(e.uid.toString());o.remove()}})),_o.client.on("connection-state-change",(function(e,t){console.log("connection-state-change"),console.log(e,t)})),"1"!=vo){e.next=26;break}return e.next=17,AgoraRTC.createMicrophoneAudioTrack();case 17:return _o.localAudioTrack=e.sent,e.next=20,AgoraRTC.createCameraVideoTrack();case 20:return _o.localVideoTrack=e.sent,e.next=23,_o.client.publish([_o.localAudioTrack,_o.localVideoTrack]);case 23:console.log("publish success!"),e.next=49;break;case 26:if("leader"!=yo){e.next=42;break}if(!(o.videoDevices.length>0)){e.next=33;break}return e.next=30,AgoraRTC.createCameraVideoTrack();case 30:return _o.localVideoTrack=e.sent,e.next=33,_o.client.publish([_o.localVideoTrack]);case 33:if(!(o.audioDevices.length>0)){e.next=39;break}return e.next=36,AgoraRTC.createMicrophoneAudioTrack();case 36:return _o.localAudioTrack=e.sent,e.next=39,_o.client.publish([_o.localAudioTrack]);case 39:console.log("publish success!"),e.next=49;break;case 42:if(!(o.audioDevices.length>0)){e.next=48;break}return e.next=45,AgoraRTC.createMicrophoneAudioTrack();case 45:return _o.localAudioTrack=e.sent,e.next=48,_o.client.publish([_o.localAudioTrack]);case 48:console.log(" publish success!");case 49:i=document.createElement("div"),i.id=a.toString(),i.className="videoPlayer",i.style.width="1.94rem",i.style.height="1.94rem","1"==vo?(Oe["a"].emit("rtc/video_play",1),document.getElementById("myVideo").append(i),_o.localVideoTrack.play(i)):"leader"==yo&&o.videoDevices.length>0&&(Oe["a"].emit("rtc/video_play",2),document.getElementById("userVideo").append(i),_o.localVideoTrack.play(i));case 55:case"end":return e.stop()}}),e)}))),Oo.apply(this,arguments)}function So(e,t){return To.apply(this,arguments)}function To(){return To=Object(g["a"])(regeneratorRuntime.mark((function e(t,o){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("video"!=t){e.next=8;break}if(_o.localVideoTrack){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,_o.localVideoTrack.setEnabled(o);case 5:bo.videoTrackEnabled=o,e.next=13;break;case 8:if(_o.localAudioTrack){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,_o.localAudioTrack.setEnabled(o);case 12:bo.audioTrackEnabled=o;case 13:Oe["a"].emit("rtc/change_media",{type:t,status:o});case 14:case"end":return e.stop()}}),e)}))),To.apply(this,arguments)}function Eo(e,t){return $o.apply(this,arguments)}function $o(){return $o=Object(g["a"])(regeneratorRuntime.mark((function e(t,o){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(_o.localAudioTrack){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,_o.localAudioTrack.setEnabled(!t);case 4:bo.audioTrackEnabled=!t,Oe["a"].emit("socket/memberAudioMuted",t,o);case 6:case"end":return e.stop()}}),e)}))),$o.apply(this,arguments)}function Io(){return Ao.apply(this,arguments)}function Ao(){return Ao=Object(g["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,_o.client.leave();case 2:try{_o.localAudioTrack.close(),_o.localVideoTrack.close()}catch(t){}Co();case 4:case"end":return e.stop()}}),e)}))),Ao.apply(this,arguments)}function jo(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Mo(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?jo(Object(o),!0).forEach((function(t){Object(i["a"])(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):jo(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Vo=(oo={data:function(){return{showPaint:!0,isBrushes:!1,hideVideo:!1,hideVideoBottom:!1,hideVideoTop:!0,hideMic:!1,hideMicTop:!1,showInput:!1,showMember:!1,animateActive:!1,socket:null,myVideoShow:!1,userVideoShow:!1,user_info:{},user_list:[],mode:xe["a"].urlHashValue("mode"),role:xe["a"].urlHashValue("role"),chatList:[],text:"",shareLink:"",canUndo:!1,audioDevices:[1],videoDevices:[1],disableMic:!1,leaderInfo:null,chatShow:!0,all_mute_mic:!0}},computed:Mo(Mo({},Object(s["b"])({player:"player"})),{},{chekcLeaderInfo:function(){var e=this;this.user_list.filter((function(t){"leader"==t.role&&(e.leaderInfo=t)}))}}),watch:{},components:{chat:mo,Draw:co},beforeCreate:function(){var e=this;this.$bus.on("socket/full",(function(){e.closeSocket(),e.$tips({content:e.$t("rtcLive.roomFull")})}))}},Object(i["a"])(oo,"watch",{user_list:function(e,t){var o=this;"customer"==this.role&&(this.leaderInfo=null,this.user_list.filter((function(e){"leader"==e.role&&(o.leaderInfo=e)})))}}),Object(i["a"])(oo,"created",(function(){var e=this;this.$bus.on("chatShow",(function(t){e.chatShow=t}))})),Object(i["a"])(oo,"mounted",(function(){var e=this,t=this;function o(e){Bt({name:"floor",data:{id:e,role:t.role}})}function n(e){console.log(e),e.userId==t.user_info.userId&&(t.user_info.can_speak=!e.can_speak,e.can_speak?t.$tips({content:t.$t("rtcLive.set_cant_speakSome")}):t.$tips({content:t.$t("rtcLive.set_can_speakSome")}));for(var o=0;o<t.user_list.length;o++)if(t.user_list[o].userId==e.userId){t.user_list[o].can_speak=!e.can_speak;break}}this.$nextTick((function(){e.$bus.emit("shop/header/titleStatus",!1),C["objects"].tagManager.hideAllTags(),Jt()})),this.$bus.on("socket/connect",(function(e){console.log(e)})),this.$bus.on("socket/join",(function(t){console.log("成功进入",t),e.user_info=t.user,e.user_list=t.users;var o="";"leader"==e.role?(xe["a"].urlHashValue("roomId")||(o+="&roomId="+e.user_info.roomId),xe["a"].urlHashValue("userId")||(o+="&userId="+e.user_info.userId)):xe["a"].urlHashValue("userId")||(o+="&userId="+e.user_info.userId),window.location.replace(window.location.href+o),e.shareLink=window.location.origin+window.location.pathname+window.location.search+"#/?mode="+e.mode+"&role=customer&roomId="+e.user_info.roomId,ko()?Po().then((function(t){e.audioDevices=t.filter((function(e){return"audioinput"===e.kind})),e.videoDevices=t.filter((function(e){return"videoinput"===e.kind})),console.log("audioDevices",e.audioDevices),console.log("videoDevices",e.videoDevices),xo(e.user_info.roomId,{videoDevices:e.videoDevices,audioDevices:e.audioDevices})})).catch((function(t){console.log(t),xo(e.user_info.roomId,{videoDevices:e.videoDevices,audioDevices:e.audioDevices})})):e.$parent.showCheckBrowser=!0})),this.$bus.on("rtc/video_play",(function(t){1==t?(e.myVideoShow=!0,e.hideVideoBottom=!1):(e.userVideoShow=!0,e.hideVideoTop=!1)})),this.$bus.on("socket/userJoin",(function(t){console.log("有人进来了",t),e.user_list=t.users;var o=t.user.userName;"leader"==t.user.role&&(o=e.$t("rtcLive.leader"),e.hideMicTop=!1,e.$tips({content:e.$t("rtcLive.userJoin")}));var n={role:t.user.role,mode:e.mode,userName:o,userId:t.user.userId,text:e.$t("rtcLive.enterRoom")};e.chatList.push(n),e.$nextTick((function(){try{e.$refs["chat"].autoScroll()}catch(t){}}))})),this.$bus.on("socket/userLeave",(function(t){console.log("有人离开了",t);var o=t.user.userName;"leader"==t.user.role&&(o=e.$t("rtcLive.leader"),e.$tips({content:e.$t("rtcLive.leaderLeave")}),e.isBrushes||e.$refs["draw"].onDraw("drawStop"));var n={role:t.user.role,mode:e.mode,userName:o,userId:t.user.userId,text:e.$t("rtcLive.exitRoom")};e.chatList.push(n),e.$nextTick((function(){try{e.$refs["chat"].autoScroll()}catch(t){}})),e.user_list=t.users,"leader"==t.user.role&&(e.hideVideoTop=!0)})),this.$bus.on("socket/getOut",(function(t){console.log("有人被踢了",t),e.handleGetOut(t)})),this.$bus.on("socket/muted",(function(t,o){o?o==e.user_info.userId&&(console.log(1,t,o),Eo(t,o),e.hideMic=t,e.disableMic=t,e.hideMic?e.$tips({content:e.$t("rtcLive.leaderSetMuted")}):e.$tips({content:e.$t("rtcLive.leaderSetSpeak")})):(console.log(2,t,o),"leader"!=e.role&&(e.hideMic=t,e.disableMic=t,e.hideMic?e.$tips({content:e.$t("rtcLive.leaderSetMuted")}):e.$tips({content:e.$t("rtcLive.leaderSetSpeak")}),Eo(t,o)))})),this.$bus.on("socket/mutedChanged",(function(t,o){if(console.log(t),o){for(var n=0;n<e.user_list.length;n++)if(e.user_list[n].userId==o){e.user_list[n].muted=t;break}}else e.user_list.forEach((function(o){"leader"!=o.role?o.muted=t:e.all_mute_mic=!t}))})),this.$bus.on("socket/socket_changeMedia",(function(t){if(console.log("改变媒体了",t),"close_rtc"==t.type)e.hideVideoTop=!t.status;else if("video"==t.type)e.hideVideo=!t.status,e.hideVideoTop=!t.status;else if("customer"==e.role)e.hideMicTop=!t.status;else for(var o=0;o<e.user_list.length;o++)if(e.user_list[o].userId==t.userId){e.user_list[o].muted=!t.muted;break}})),this.$bus.on("rtc/change_media",(function(t){console.log("主持人改变媒体状态了",t),"video"==t.type?(e.hideVideo=!t.status,"1"==e.mode?e.hideVideoBottom=!t.status:e.hideVideoTop=!t.status):(e.user_info.muted=!t.status,e.hideMic=!t.status,"1"==e.mode||"leader"==e.role&&(e.hideMicTop=!t.status))})),this.$bus.on("socket/receive_msg",(function(t){console.log(t),"leader"==t.role&&(t.userName=e.$t("rtcLive.leader")),e.chatList.push(t),e.$nextTick((function(){try{e.$refs["chat"].autoScroll()}catch(t){}}))})),this.$bus.on("rtcLive/action",(function(t){if("paint"==t.type)if("2"==e.mode){var o="";o=t.data?e.$t("rtcLive.leaderOpenPaint"):e.$t("rtcLive.leaderClosePaint"),e.$tips({content:e.$t(o)})}else e.isBrushes=t.data;else"floor"==t.name&&(console.log(t),e.role!=t.data.role&&("all"==t.data.id?u["app"].director.allFloors():u["app"].player.gotoFloor(t.data.id),e.$store.commit("scene/SetFloorId",t.data.id)))})),this.$bus.on("player/floor",o),this.$once("hook:beforeDestroy",(function(){e.$bus.off("player/floor",o),e.$bus.off("socket/forbidden",n)})),this.$bus.on("socket/forbidden",n)})),Object(i["a"])(oo,"methods",{onMemberMuted:function(e,t){this.user_list.length>1&&(this.$tips({content:this.$t("rtcLive.actionSuccess")}),eo(e,t))},sendCanUndo:function(e){this.canUndo=e},onDraw:function(){this.isBrushes=!this.isBrushes,Ft("paint",this.isBrushes),this.isBrushes?(this.$refs["draw"].onDraw("drawStart"),this.canUndo=this.$refs["draw"].canUndo):this.$refs["draw"].onDraw("drawStop")},onDrawUndo:function(){this.$refs["draw"].onDraw("drawUndo"),this.canUndo=this.$refs["draw"].canUndo},closeSocket:function(){Kt(),Io(),window.location.replace(window.location.href.split("#")[0]+"#/"),this.$parent.page="Home"},handleGetOut:function(e){e==this.user_info.userId&&(this.closeSocket(),this.$tips({content:this.$t("rtcLive.isRemove")}))},sendText:function(){var e=this;if(""!=this.text){var t={role:this.role,mode:this.mode,userName:this.user_info.userName,userId:this.user_info.userId,text:this.text};Zt(t),this.chatList.push(t),this.$nextTick((function(){try{e.$refs["chat"].autoScroll()}catch(t){}e.closeInput()}))}},changeMedia:function(e,t){So(e,t),Xt(Mo({type:e,status:t},this.user_info))},userGetOut:function(e){Yt(e),this.$tips({content:this.$t("rtcLive.removeSuccess")})},userCanSpeak:function(e){to(e)},openDialog:function(e,t){this.$emit("openDialog",e,t)},closeInput:function(){this.showInput=!1,st["a"].isTyping=!1,this.text=""},openMember:function(){this.showMember=!0,this.animateActive=!0},closeMember:function(){var e=this;this.animateActive=!1;setTimeout((function(){e.showMember=!1}),200)},onFocus:function(){this.showInput=!0,this.$nextTick((function(){var e=document.getElementById("input_msg");e.focus(),st["a"].isTyping=!0}))}}),oo),Lo=Vo,Ro=(o("0584"),Object(h["a"])(Lo,Tt,Et,!1,null,"54a10bdd",null)),Do=Ro.exports,Uo=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"createdRoom"}},[o("div",{staticClass:"created_dialog"},[o("div",{staticClass:"blurBox"}),o("div",{staticClass:"content"},["leader"==e.role?o("div",{staticClass:"dialog_title"},[e._v(" "+e._s(e.$t("rtcLive.create_VR")))]):o("div",{staticClass:"dialog_title"},[e._v(" "+e._s(e.$t("rtcLive.enter_VR")))]),o("div",{staticClass:"user_name"},[o("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.userName,expression:"userName",modifiers:{trim:!0}}],staticClass:"input_name",attrs:{maxlength:"8",type:"text",placeholder:e.$t("rtcLive.inputName")},domProps:{value:e.userName},on:{input:function(t){t.target.composing||(e.userName=t.target.value.trim())},blur:function(t){return e.$forceUpdate()}}})]),o("div",{staticClass:"created_btn"},[o("div",{staticClass:"created_cancel",on:{click:e.closeCreated}},[e._v(e._s(e.$t("rtcLive.cancel")))]),o("div",{staticClass:"created_confirm",on:{click:e.createdConfirm}},[e._v(e._s(e.$t("rtcLive.confirm")))])])])])])},qo=[];function Ho(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function No(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ho(Object(o),!0).forEach((function(t){Object(i["a"])(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ho(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Bo={data:function(){return{role:xe["a"].urlHashValue("role")||"leader",mode:xe["a"].urlHashValue("mode")||2,modeList:[{mode:1,title:this.$t("rtcLive.oneMode")},{mode:2,title:this.$t("rtcLive.moreMode")}],userName:"",roomId:xe["a"].urlHashValue("roomId")}},computed:No({},Object(s["b"])({tempdata:"scene/tempdata"})),components:{},methods:{chooseMode:function(e){this.mode=e},closeCreated:function(){this.$emit("closeCreated"),this.$config.isTyping=!1,window.location.replace(window.location.href.split("#")[0]+"#/")},createdConfirm:function(){var e=this;if(""!=this.userName){var t=encodeURIComponent(this.userName);"customer"==this.role?window.location.replace(window.location.href.split("#")[0]+"#/?mode="+this.mode+"&name="+t+"&role=customer&roomId="+this.roomId):window.location.replace(window.location.href.split("#")[0]+"#/?mode="+this.mode+"&name="+t+"&role=leader"),this.$nextTick((function(){e.$parent.page="rtcLive",e.$emit("closeCreated"),e.$config.isTyping=!1}))}else this.$tips({content:this.$t("rtcLive.inputName")})}}},zo=Bo,Fo=(o("5d48"),Object(h["a"])(zo,Uo,qo,!1,null,"fe63b452",null)),Qo=Fo.exports,Go=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"dialog_index"}},[o("div",{staticClass:"created_dialog"},[o("div",{staticClass:"blurBox"}),o("div",{staticClass:"content"},[o("div",{staticClass:"dialog_title"},[e._v(" "+e._s(e.title))]),o("p",{staticClass:"dialog_desc"},[e._v(e._s(e.desc))]),o("div",{staticClass:"created_btn"},[o("div",{staticClass:"created_cancel",on:{click:e.closeCreated}},[e._v(e._s(e.$t("rtcLive.cancel")))]),o("div",{staticClass:"created_confirm",on:{click:e.createdConfirm}},[e._v(e._s(e.$t("rtcLive.end")))])])])])])},Wo=[],Jo=o("9923"),Ko={data:function(){return{role:xe["a"].urlHashValue("role")}},props:{title:{type:String,default:Jo["a"].t("rtcLive.endTip")},desc:{type:String,default:Jo["a"].t("rtcLive.isEnd")}},computed:{},components:{},methods:{closeCreated:function(){this.$emit("closeDialog")},createdConfirm:function(){Kt(),Io(),window.location.href=window.location.href.split("#")[0]+"#/",this.$parent.page="Home",this.$emit("closeDialog"),this.$bus.emit("shop/header/titleStatus",!0),"customer"==this.role&&window.location.reload()}}},Yo=Ko,Zo=(o("d1e2"),Object(h["a"])(Yo,Go,Wo,!1,null,"bb3f761a",null)),Xo=Zo.exports,en=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"dialog_index"}},[o("div",{staticClass:"created_dialog"},[o("div",{staticClass:"blurBox"}),o("div",{staticClass:"content"},[o("div",{staticClass:"dialog_title"},[e._v(" "+e._s(e.title))]),o("div",{staticClass:"dialog_link"},[o("p",[e._v("\n "+e._s(e.shareLink)+"\n ")])]),o("div",{staticClass:"created_btn"},[o("div",{staticClass:"created_cancel",on:{click:e.closeCreated}},[e._v(e._s(e.$t("rtcLive.cancel")))]),o("div",{staticClass:"created_confirm ",attrs:{"data-clipboard-text":e.shareLink},on:{click:e.createdConfirm}},[e._v(e._s(e.$t("rtcLive.copyShare")))])])])])])},tn=[],on={data:function(){return{}},props:{title:{type:String,default:Jo["a"].t("rtcLive.shareTitle")},shareLink:{type:String,default:""}},computed:{},components:{},mounted:function(){var e=this;new ClipboardJS(this.$el.querySelector(".created_confirm")).on("success",(function(t){e.$tips({content:e.$t("rtcLive.copySuccess")}),t.clearSelection()}))},methods:{closeCreated:function(){this.$emit("closeDialog")},createdConfirm:function(){this.$emit("closeDialog")}}},nn=on,an=(o("7064"),Object(h["a"])(nn,en,tn,!1,null,"71bb7b12",null)),sn=an.exports,rn=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"checkBrowser"}},[o("i",{staticClass:"iconfont iconshow_cancel",on:{click:e.closeCheckBrowser}}),o("p",{staticClass:"title"},[e._v(e._s(e.$t("rtcLive.browserTip")))]),o("div",{staticClass:"browser_list"},e._l(e.browserList,(function(t,n){return o("div",{key:n,staticClass:"item"},[o("div",{staticClass:"browser_icon"},[o("img",{attrs:{src:e.$config.getStaticResource("img/apps/rtcLive/"+t.icon+".png"),alt:""}})]),o("div",{staticClass:"browser_name"},[e._v(e._s(t.name))])])})),0)])},cn=[],ln={data:function(){return{browserList:[{icon:"chrome",name:"Chrome",version:"60"},{icon:"firefox",name:"Firefox",version:"55"},{icon:"edge",name:"Edge",version:"40"},{icon:"safari",name:"Safari",version:"11"}]}},components:{},methods:{closeCheckBrowser:function(){this.$parent.showCheckBrowser=!1}}},un=ln,dn=(o("1b27"),Object(h["a"])(un,rn,cn,!1,null,"7b318742",null)),pn=dn.exports;function hn(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function fn(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?hn(Object(o),!0).forEach((function(t){Object(i["a"])(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):hn(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var mn={components:{Home:St,rtcLive:Do,Draw:co,createdRoom:Qo,dialogIndex:Xo,dialogShare:sn,checkBrowser:pn},data:function(){return{dialog:"",page:"Home",show:!0,showPaint:!0,showCreated:!1,roomId:xe["a"].urlHashValue("roomId"),role:xe["a"].urlHashValue("role"),userName:xe["a"].urlHashValue("name"),showCheckBrowser:!1}},computed:fn({},Object(s["b"])({plays:"guide/plays",status:"guide/status",medias:"guide/medias",player_mode:"mode",isMultiFloor:"scene/isMultiFloor"})),watch:{player_mode:function(e,t){"pano"!=this.player_mode?this.isMultiFloor&&this.$bus.emit("chatShow",!1):this.$bus.emit("chatShow",!0)}},created:function(){var e=this;this.$bus.on("ready",(function(){if(e.plays.length){var t="soundsync"===e.status.audio?"sync":e.status.audio;e.medias.links[t]&&bt["c"].setSRC(e.$config.getPublishResource(e.medias.links[t]))}})),this.roomId&&!this.userName?(this.showCreated=!0,this.$config.isTyping=!0):this.roomId&&this.userName&&(this.page="rtcLive")},mounted:function(){},methods:{setPage:function(e){this.page=e},closeCreated:function(){this.showCreated=!1},openDialog:function(e,t){this.shareLink=t,this.dialog=e},closeDialog:function(){this.dialog=""},createdConfirm:function(){this.showCreated=!1}}},vn=mn,yn=(o("aede"),Object(h["a"])(vn,ot,nt,!1,null,null,null)),gn=yn.exports,wn=o("3b09");function _n(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function bn(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?_n(Object(o),!0).forEach((function(t){Object(i["a"])(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):_n(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Cn={components:{Player:m,AppHeader:tt,AppMain:gn,Floor:wn["a"]},data:function(){return{show:!1,isGuide:!1,showGoods:!1,showPassword:!1}},created:function(){var e=this;localStorage.getItem("user_guide")?this.isGuide=!0:this.$config.isMobile?this.$bus.on("player/user/guided",(function(){return e.show=!0})):this.isGuide=!0,this.$bus.on("shop/app/action",(function(e){"openTag"==e.type&&__api.tag.openById(e.data)})),this.$bus.on("shop/tag/onshow",(function(t){e.showGoods=t})),window.addEventListener("message",(function(t){t.data.cmd&&("scene"==t.data.cmd?qe("scene",{cmd:t.data.data,num:e.$config.projectNum}):"showTabs"==t.data.cmd&&qe(t.data.cmd,t.data.data))}))},watch:{"player.progres":function(){-1==this.player.progres&&(document.title=this.tempdata.title,this.isGuide&&!this.show&&(this.show=!0))}},computed:bn({},Object(s["b"])({player:"player",tempdata:"scene/tempdata"})),mounted:function(){ze()},methods:{onPasswordCancel:function(){this.showPassword=!1,qe("back")}}},Pn=Cn,kn=(o("cb0c"),o("39ca"),o("e0f5"),Object(h["a"])(Pn,n,a,!1,null,"418f5e4d",null));t["default"]=kn.exports},cd0f:function(e,t,o){},d1e2:function(e,t,o){"use strict";var n=o("94ba"),a=o.n(n);a.a},d85e:function(e,t,o){"use strict";var n=o("8605"),a=o.n(n);a.a},e037:function(e,t,o){"use strict";var n=o("9c10"),a=o.n(n);a.a},e0f5:function(e,t,o){"use strict";var n=o("b040"),a=o.n(n);a.a},e3b9:function(e,t,o){"use strict";var n=o("f187"),a=o.n(n);a.a},e694:function(e,t,o){"use strict";var n=o("98f1"),a=o.n(n);a.a},e93e:function(e,t,o){"use strict";var n=o("7463"),a=o.n(n);a.a},f149:function(e,t,o){},f187:function(e,t,o){},f18e:function(e,t,o){},fa0f:function(e,t,o){"use strict";var n=o("6dc3"),a=o.n(n);a.a},fff0:function(e,t,o){"use strict";var n=o("516b"),a=o.n(n);a.a}}]);
|