spg.525c4102.js 38 KB

1
  1. (function(e){function t(t){for(var o,r,i=t[0],l=t[1],s=t[2],u=0,p=[];u<i.length;u++)r=i[u],Object.prototype.hasOwnProperty.call(a,r)&&a[r]&&p.push(a[r][0]),a[r]=0;for(o in l)Object.prototype.hasOwnProperty.call(l,o)&&(e[o]=l[o]);d&&d(t);while(p.length)p.shift()();return c.push.apply(c,s||[]),n()}function n(){for(var e,t=0;t<c.length;t++){for(var n=c[t],o=!0,r=1;r<n.length;r++){var l=n[r];0!==a[l]&&(o=!1)}o&&(c.splice(t--,1),e=i(i.s=n[0]))}return e}var o={},a={spg:0},c=[];function r(e){return i.p+"viewer/js/"+({"locale-en-json":"locale-en-json","locale-ja-json":"locale-ja-json","locale-kr-json":"locale-kr-json","locale-zh-json":"locale-zh-json"}[e]||e)+"."+{"locale-en-json":"d5aec3da","locale-ja-json":"fc9cb514","locale-kr-json":"d9300aba","locale-zh-json":"0f2280c1"}[e]+".js"}function i(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.e=function(e){var t=[],n=a[e];if(0!==n)if(n)t.push(n[2]);else{var o=new Promise((function(t,o){n=a[e]=[t,o]}));t.push(n[2]=o);var c,l=document.createElement("script");l.charset="utf-8",l.timeout=120,i.nc&&l.setAttribute("nonce",i.nc),l.src=r(e);var s=new Error;c=function(t){l.onerror=l.onload=null,clearTimeout(u);var n=a[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),c=t&&t.target&&t.target.src;s.message="Loading chunk "+e+" failed.\n("+o+": "+c+")",s.name="ChunkLoadError",s.type=o,s.request=c,n[1](s)}a[e]=void 0}};var u=setTimeout((function(){c({type:"timeout",target:l})}),12e4);l.onerror=l.onload=c,document.head.appendChild(l)}return Promise.all(t)},i.m=e,i.c=o,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var l=window["webpackJsonp"]=window["webpackJsonp"]||[],s=l.push.bind(l);l.push=t,l=l.slice();for(var u=0;u<l.length;u++)t(l[u]);var d=s;c.push([0,"chunk-vendors","chunk-common"]),n()})({0:function(e,t,n){e.exports=n("b21c")},"1f11":function(e,t,n){var o=n("3c10");t=o(!1),t.push([e.i,".rules-box[data-v-007bd5de]{position:fixed;z-index:1000;bottom:20px;left:50%;transform:translateX(-50%);min-width:150px}.rules-box .ui-button[data-v-007bd5de]{margin-bottom:10px}.rules-box .ui-button[data-v-007bd5de]:last-of-type{margin-bottom:0}.rules-box .ui-button.cancel[data-v-007bd5de]{background:rgba(92,92,92,.51)!important;color:#fff!important;border:none!important}",""]),e.exports=t},"22cc":function(e,t,n){var o=n("d891");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var a=n("0ed3").default;a("648afa68",o,!0,{sourceMap:!1,shadowMode:!1})},"238a":function(e,t,n){var o=n("6725");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var a=n("0ed3").default;a("6c9d5fe0",o,!0,{sourceMap:!1,shadowMode:!1})},"23a6":function(e,t,n){"use strict";n("a03f")},"2a08":function(e,t,n){"use strict";n("22cc")},"44d2":function(e,t,n){var o=n("3c10");t=o(!1),t.push([e.i,".back-view{width:40px;height:40px;background:rgba(0,0,0,.5);border-radius:50%;cursor:pointer;position:absolute;top:20px;left:20px;z-index:10}.back-view,.back-view .iconfont{display:flex;align-items:center;justify-content:center}.back-view .iconfont{font-size:24px;width:24px;height:24px;color:#fff}",""]),e.exports=t},"4c51":function(e,t,n){"use strict";n("c969")},"567a":function(e,t,n){var o=n("3c10"),a=n("a6c3"),c=n("5f1b");t=o(!1);var r=a(c);t.push([e.i,'.bottom-controls[data-v-7e7e6297]{width:100%;pointer-events:none;position:absolute;left:0;right:var(--editor-toolbox-width);bottom:20px;height:80px;display:flex;justify-content:space-between;transition:bottom .3s ease;background:linear-gradient(180deg,transparent,rgba(0,0,0,.2));z-index:100}[data-v-7e7e6297] .buttons{pointer-events:all;display:flex;align-items:center;justify-content:space-around;height:34px;border-radius:17px}[data-v-7e7e6297] .buttons>div{position:relative;margin-left:15px;margin-right:15px;cursor:pointer}[data-v-7e7e6297] .buttons>div.active{position:relative}[data-v-7e7e6297] .buttons>div.active:after{position:absolute;content:"";background:url('+r+") no-repeat;width:24px;height:1px;background-size:100% 100%;left:50%;transform:translateX(-50%);bottom:-5px}[data-v-7e7e6297] .buttons>div>i{font-size:24px}[data-v-7e7e6297] .buttons>div span{cursor:pointer;display:none;position:absolute;top:-20px;right:-15px;width:24px;height:24px;background-color:rgba(0,0,0,.5);border-radius:50%;align-items:center;justify-content:center;color:var(--editor-main-color);transition:all .1s}[data-v-7e7e6297] .buttons>div span:hover{transform:scale(1.2)}[data-v-7e7e6297] .buttons>div span.disable i{opacity:.5}",""]),e.exports=t},6725:function(e,t,n){var o=n("3c10");t=o(!1),t.push([e.i,'.clear-box[data-v-23d8405b]{width:34px;height:80px;position:absolute;bottom:0;right:20px;z-index:10000;color:#fff;font-size:18px;display:flex;align-items:flex-end;padding:0 0 20px 0;text-shadow:0 0 4px rgba(0,0,0,.4);transition:bottom .3s ease}.clear-box .clear-screen-btn[data-v-23d8405b]{width:34px;display:flex;align-items:center;justify-content:center;height:34px;cursor:pointer;font-size:24px}.share-code[data-v-23d8405b]{width:168px;height:194px;background:rgba(27,27,28,.9);box-shadow:0 4px 4px 0 rgba(0,0,0,.25),inset 0 0 0 2px hsla(0,0%,100%,.1);border-radius:4px 4px 4px 4px;opacity:1;border:1px solid #000;position:absolute;z-index:10;pointer-events:auto;right:0;top:-210px;padding:20px;box-sizing:border-box}.share-code[data-v-23d8405b]:after{content:"";position:absolute;left:1px;right:1px;bottom:1px;top:1px;border:1px solid hsla(0,0%,100%,.1);border-radius:4px;z-index:0;pointer-events:none}.share-code[data-v-23d8405b]:before{position:absolute;content:"";right:10px;bottom:-10px;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:10px solid rgba(0,0,0,.8)}.share-code canvas[data-v-23d8405b]{width:128px!important;height:128px!important;margin-bottom:10px}.share-code p[data-v-23d8405b]{font-size:12px;color:#fff;text-align:center;width:120%;margin-left:-10%}.controls-right-buttons[data-v-23d8405b]{pointer-events:auto;display:flex;align-items:flex-end;padding:0 62px 20px 0;text-shadow:0 0 4px rgba(0,0,0,.4)}.controls-right-buttons>div[data-v-23d8405b]{cursor:pointer;margin:0 15px 0 15px;display:flex;align-items:center;justify-content:center;height:34px;border-radius:50%;font-size:18px;position:relative}.controls-right-buttons>div .iconfont[data-v-23d8405b]{font-size:24px}',""]),e.exports=t},a03f:function(e,t,n){var o=n("1f11");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var a=n("0ed3").default;a("dfc9e800",o,!0,{sourceMap:!1,shadowMode:!1})},a7ac:function(e,t,n){"use strict";n("ccf9")},b21c:function(e,t,n){"use strict";n.r(t);n("9531"),n("26d3"),n("2007"),n("41ab"),n("399f");var o=n("a6a4"),a=n("617a"),c=n("1329");function r(e,t,n,o){e.addEventListener(t,(function(e){var t=e.target.closest(n);t&&o.call(t,e)}),!0)}var i=n("1112"),l=n("4430"),s=n("4360"),u=n("42c2"),d=(n("df26"),n("2aa5"),n("32f5"),n("2439")),p=n("1129"),b=n("5254"),m=n("b5ad"),f=n("78db"),v=n("1a0d"),j=(n("868d"),n("d6de"),n("8d0f"),n("cf45")),O=n("0003"),g=n("dbf2");Object(l["pushScopeId"])("data-v-05d19212");var h={class:"controls-left-buttons"},x={class:"tip"},y={class:"tour-btn bor"},k={key:0,class:"part-list"},w=["onClick","name"],V={class:"part-title"},C={key:1,class:"part-list frame-list"},S=["onClick","name"],B=Object(l["createElementVNode"])("div",{class:"part-title"},null,-1),M={key:0,class:"captions-title"},z={key:1,class:"captions-desc"};Object(l["popScopeId"])();var N={props:{isEdit:Boolean},setup:function(e){var t=Object(d["a"])(),n=null,o=Object(l["ref"])(!1),r=Object(f["b"])(),s=Object(l["ref"])(null),p=Object(l["computed"])((function(){return r.getters.mode})),b=Object(l["computed"])((function(){return r.getters["flying"]})),m=Object(l["computed"])((function(){return r.getters["scene/metadata"].controls||{}})),v=Object(l["computed"])((function(){return r.getters["tour/showTours"]})),N=Object(l["computed"])((function(){return r.getters.sceneUI})),_=Object(l["computed"])((function(){var e=r.getters["tour/partId"];return I.value&&$(),e})),E=Object(l["computed"])((function(){var e=r.getters["tour/frameId"];return I.value&&$(),e})),T=Object(l["ref"])(0),I=Object(l["computed"])((function(){var e=r.getters["tour/isPlay"],t=document.querySelector(".kankan-app div[xui_min_map]");return t&&(e?t.classList.add("disabled"):t.classList.remove("disabled")),e})),P=Object(l["ref"])(!1),D=Object(l["computed"])((function(){var e=r.getters["tour/tours"];return e.length>0&&s.value&&!P.value&&(P.value=!0,new c["c"](s.value,{onlyHorizontal:!0})),e}));Object(l["watch"])((function(){return N.value}),(function(e,t){v.value&&(e?r.commit("setControlsBottom","120px"):r.commit("setControlsBottom","0"))})),Object(l["watch"])((function(){return D.value}),(function(){}));var L=function(e){r.commit("setMode",e),Object(g["a"])("view-button",{eventType:"click",click:e})},R=function(){var e=Object(u["a"])(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])().TourManager.player;case 2:t=e.sent,I.value?(r.commit("tour/setData",{isPlay:!0}),t.pause()):(r.commit("tour/setData",{isPlay:!0}),t.play(_.value,E.value)),r.commit("tag/setData",{isFixed:!1,isClick:!1,flyClose:!1}),r.commit("tag/closeTag"),I.value&&(r.commit("tour/setData",{showTours:!0}),n="0px",n=v.value?"120px":"0px",r.commit("setControlsBottom",n),Object(l["nextTick"])((function(){I.value&&$()})));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),U=function(){n&&(KanKan.Animate.transitions.cancel(n),n=null)},$=function(){Object(l["nextTick"])((function(){var e=setTimeout((function(){clearTimeout(e);var t=D.value.length>1?_.value:E.value,n=document.querySelector('.part-item[name="'.concat(t,'"]'));n.scrollIntoView({block:"nearest",behavior:"smooth",inline:"center"})}),100)}))},F=!1,q=function(){var e=Object(u["a"])(regeneratorRuntime.mark((function e(){var n,o,c,l,s,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])().TourManager.player;case 2:n=e.sent,n.on("play",(function(e){F=!1,t.pause(!0),Object(g["a"])("view-tour",{eventType:"click",click:"play"})})),n.on("pause",(function(e){console.log("pause"),t.resume(),l=0,u=0,T.value=0,U(),r.commit("tour/setData",{isPlay:!1})})),n.on("end",(function(){F=!0,t.resume(),l=0,u=0,T.value=100,$(),r.commit("tour/setData",{isPlay:!1}),U(),a["a"].hasURLParam("tour_loop")&&setTimeout((function(){R()}),1e3),D.value[_.value].list[E.value].tagId&&Object(i["b"])().TagManager.open(D.value[_.value].list[E.value].tagId)})),o=null,c=null,l=0,s=0,u=0,n.on("progress",(function(e){F||(o==e.partId&&c==e.frameId||D.value[e.partId].list[e.frameId].tagId||r.commit("tag/closeTag"),1==D.value.length?(T.value=100*e.progress,o=e.partId,c=e.frameId):o!=e.partId?(l=0,u=0,T.value=0,o=e.partId,s=D.value[e.partId].list.length):(s=D.value[e.partId].list.length,c!=e.frameId?(c=e.frameId,u=l):l=e.progress/s*100+u,l>=100&&(l=100),T.value=l),r.commit("tour/setData",{partId:e.partId,frameId:e.frameId}))})),Object(i["b"])().TourManager.on("loaded",(function(){a["a"].hasURLParam("autoplay")&&setTimeout((function(){if(D.value.length){for(var e=!1,t=0;t<D.value.length;t++)D.value[t].music&&(e=!0);e||R()}}),500)}));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),A=function(){r.commit("tour/setData",{showTours:!v.value});var e="0px";e=v.value?"120px":"0px",r.commit("setControlsBottom",e),Object(l["nextTick"])((function(){I.value&&$()}))},K=function(){var e=Object(u["a"])(regeneratorRuntime.mark((function e(t,n){var o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r.commit("tag/closeTag"),T.value=0,e.next=4,Object(i["b"])().TourManager.player;case 4:o=e.sent,1==t?(Object(g["a"])("view-tour",{eventType:"click",click:"part"}),r.commit("tour/setData",{frameId:0,partId:n}),T.value=0,o.selectPart(n).then((function(){I.value&&(r.commit("tour/setData",{isPlay:!0}),o.play(n,E.value))}))):(Object(g["a"])("view-tour",{eventType:"click",click:"frame"}),r.commit("tour/setData",{frameId:n}),T.value=0,o.selectFrame(n).then((function(){I.value&&(r.commit("tour/setData",{isPlay:!0}),o.play(0,n))}))),$();case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),X=function(){var e=Object(u["a"])(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!I.value){e.next=6;break}return e.next=3,Object(i["b"])().TourManager.player;case 3:n=e.sent,n.pause(),t.resume();case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(l["onMounted"])((function(){Object(i["d"])().then((function(e){q()})),Object(l["nextTick"])((function(){var e=document.querySelector('.player[name="main"]');e.addEventListener("pointerdown",X)}))})),function(e,t){var n=Object(l["resolveComponent"])("ui-icon");return Object(l["openBlock"])(),Object(l["createElementBlock"])("div",h,[Object(l["unref"])(D).length>0?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",{key:0,class:Object(l["normalizeClass"])(["play-control",{disabled:Object(l["unref"])(b)&&!Object(l["unref"])(I)}])},[Object(l["createElementVNode"])("div",{class:"play-btn tour-btn",onClick:R},[Object(l["createElementVNode"])("div",{class:Object(l["normalizeClass"])(["animation-icon",{action:Object(l["unref"])(I)}]),style:Object(l["normalizeStyle"])("background-image: url(".concat(Object(l["unref"])(O["a"]).getStaticURL("static/images/walk_animation.png"),");"))},[Object(l["createElementVNode"])("p",x,Object(l["toDisplayString"])(Object(l["unref"])(I)?e.$t("common.pauseTour"):e.$t("common.playTour")),1)],6)]),Object(l["createElementVNode"])("div",y,[Object(l["createVNode"])(n,{type:"pull-down",onClick:A,class:Object(l["normalizeClass"])({active:Object(l["unref"])(v)})},null,8,["class"])]),Object(l["createElementVNode"])("div",{class:Object(l["normalizeClass"])(["tour-list",{ban:Object(l["unref"])(b)||o.value}]),style:Object(l["normalizeStyle"])("height:".concat(Object(l["unref"])(v)?"120px":"0px",";"))},[Object(l["createElementVNode"])("div",{class:"part-content",ref:s},[Object(l["unref"])(D).length>1?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",k,[(Object(l["openBlock"])(!0),Object(l["createElementBlock"])(l["Fragment"],null,Object(l["renderList"])(Object(l["unref"])(D),(function(e,t){return Object(l["openBlock"])(),Object(l["createElementBlock"])("div",{onClick:function(e){return K(1,t)},class:"part-item",name:t,style:Object(l["normalizeStyle"])("background-image:url(".concat(e.frameId&&e.list[e.frameId]?Object(l["unref"])(j["a"]).changeUrl(e.list[e.frameId].enter.cover):Object(l["unref"])(j["a"]).changeUrl(e.list[0].enter.cover),");"))},[Object(l["createElementVNode"])("div",V,Object(l["toDisplayString"])(e.name),1),Object(l["unref"])(_)==t&&T.value>0?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",{key:0,class:"precent",style:Object(l["normalizeStyle"])("width:".concat(T.value,"%;"))},null,4)):Object(l["createCommentVNode"])("",!0)],12,w)})),256))])):(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",C,[(Object(l["openBlock"])(!0),Object(l["createElementBlock"])(l["Fragment"],null,Object(l["renderList"])(Object(l["unref"])(D)[0].list,(function(e,t){return Object(l["openBlock"])(),Object(l["createElementBlock"])("div",{onClick:function(e){return K(2,t)},class:"part-item",name:t,style:Object(l["normalizeStyle"])("background-image:url(".concat(Object(l["unref"])(j["a"]).changeUrl(e.enter.cover),");"))},[B,Object(l["unref"])(E)==t&&T.value>0?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",{key:0,class:"precent",style:Object(l["normalizeStyle"])("width:".concat(T.value,"%;"))},null,4)):Object(l["createCommentVNode"])("",!0)],12,S)})),256))]))],512)],6)],2)):Object(l["createCommentVNode"])("",!0),Object(l["createElementVNode"])("div",{class:Object(l["normalizeClass"])(["buttons mode",{disabled:Object(l["unref"])(I)||Object(l["unref"])(b)}])},[Object(l["unref"])(m).showPanorama?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",{key:0,class:Object(l["normalizeClass"])({active:"panorama"==Object(l["unref"])(p)}),onClick:t[0]||(t[0]=function(e){return L("panorama")})},[Object(l["createVNode"])(n,{tip:e.$t("mode.panorama"),tipV:"top",type:"panorama"==Object(l["unref"])(p)?"show_roaming_s":"show_roaming_n"},null,8,["tip","type"])],2)):Object(l["createCommentVNode"])("",!0),Object(l["unref"])(m).showFloorplan?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",{key:1,class:Object(l["normalizeClass"])({active:"floorplan"==Object(l["unref"])(p)}),onClick:t[1]||(t[1]=function(e){return L("floorplan")})},[Object(l["createVNode"])(n,{tip:e.$t("mode.floorplan"),tipV:"top",type:"floorplan"==Object(l["unref"])(p)?"show_plane_s":"show_plane_n"},null,8,["tip","type"])],2)):Object(l["createCommentVNode"])("",!0),Object(l["unref"])(m).showDollhouse?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",{key:2,class:Object(l["normalizeClass"])({active:"dollhouse"==Object(l["unref"])(p)}),onClick:t[2]||(t[2]=function(e){return L("dollhouse")})},[Object(l["createVNode"])(n,{tip:e.$t("mode.dollhouse"),tipV:"top",type:"dollhouse"==Object(l["unref"])(p)?"show_3d_s":"show_3d_n"},null,8,["tip","type"])],2)):Object(l["createCommentVNode"])("",!0)],2),Object(l["unref"])(D).length>0&&Object(l["unref"])(I)?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",{key:1,class:Object(l["normalizeClass"])(["tours-captions",{active:Object(l["unref"])(v)}])},[Object(l["unref"])(D)[Object(l["unref"])(_)]&&Object(l["unref"])(D)[Object(l["unref"])(_)].title?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",M,Object(l["toDisplayString"])(Object(l["unref"])(D)[Object(l["unref"])(_)].title||""),1)):Object(l["createCommentVNode"])("",!0),Object(l["unref"])(D)[Object(l["unref"])(_)]&&Object(l["unref"])(D)[Object(l["unref"])(_)].description?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",z,Object(l["toDisplayString"])(Object(l["unref"])(D)[Object(l["unref"])(_)].description||""),1)):Object(l["createCommentVNode"])("",!0)],2)):Object(l["createCommentVNode"])("",!0)])}}};n("2a08");N.__scopeId="data-v-05d19212";var _=N,E=(n("d86f"),n("12cb"));Object(l["pushScopeId"])("data-v-007bd5de");var T={class:"rules-box"};Object(l["popScopeId"])();var I={emits:["close"],setup:function(e,t){var n=t.emit,o=Object(E["e"])({useScope:"global"}),a=o.t,r=Object(l["ref"])(1),s=function(){Object(i["b"])().MinMap.show(),d.value=!1,Object(i["b"])().TagManager.confirmMeasure(r.value),r.value<2?(c["a"].toast({content:a("toast.ruleConfirmTips")}),r.value++):u()},u=function(){Object(i["b"])().MinMap.show(),n("close"),r.value=1},d=Object(l["ref"])(!1);return Object(l["onMounted"])((function(){Object(i["b"])().TagManager.on("tagManager.markTagPos",(function(e){d.value=!0}))})),function(e,t){var n=Object(l["resolveComponent"])("ui-button");return Object(l["openBlock"])(),Object(l["createElementBlock"])("div",T,[Object(l["createVNode"])(n,{class:Object(l["normalizeClass"])({disabled:!d.value}),type:"primary",onClick:s},{default:Object(l["withCtx"])((function(){return[Object(l["createTextVNode"])(Object(l["toDisplayString"])(e.$t("common.confirm"))+Object(l["toDisplayString"])(r.value>=2?e.$t("common.endPoint"):e.$t("common.startPoint"))+"("+Object(l["toDisplayString"])(r.value)+"/2)",1)]})),_:1},8,["class"]),Object(l["createVNode"])(n,{type:"cancel",onClick:u},{default:Object(l["withCtx"])((function(){return[Object(l["createTextVNode"])(Object(l["toDisplayString"])(e.$t("common.cancel")),1)]})),_:1})])}}};n("23a6");I.__scopeId="data-v-007bd5de";var P=I,D=n("3871"),L=n.n(D);Object(l["pushScopeId"])("data-v-23d8405b");var R={class:"share-code"},U=Object(l["createElementVNode"])("canvas",{id:"qrcode-share-scene"},null,-1);Object(l["popScopeId"])();var $={setup:function(e){var t=Object(E["e"])({useScope:"global"}),n=t.t,o=Object(f["b"])(),a=Object(l["computed"])((function(){return o.getters["scene/metadata"].controls&&(S.value=o.getters["scene/metadata"].controls.showScale),o.getters["scene/metadata"].controls||{}})),r=(Object(l["computed"])((function(){return o.getters["enterLinkView"]})),Object(l["computed"])((function(){return o.getters["player"]}))),s=Object(l["computed"])((function(){return o.getters.controlsBottom})),u=Object(l["computed"])((function(){return o.getters.sceneUI})),p=Object(l["computed"])((function(){return o.getters.showClear}));Object(l["watch"])((function(){return u.value}),(function(e,t){var n=document.querySelector(".kankan-app div[xui_min_map]");n&&(r.value.showMap&&e?n.style.display="block":r.value.showMap&&!e&&(n.style.display="none"))}));var b=function(){u.value?o.commit("SetOptions",{sceneUI:!1}):o.commit("SetOptions",{sceneUI:!0})},m=Object(l["computed"])((function(){return o.getters["scene/metadata"].music})),v=Object(l["ref"])(!1),j=Object(d["a"])(),O=Object(l["ref"])(!1),h=Object(l["ref"])(!1),x=(Object(l["ref"])("local"),function(){if(Object(i["b"])().Camera.checkXRSupport())return o.commit("showVR");c["a"].toast(n("limit.viewInVr"))}),y=Object(l["ref"])(!1),k=Object(l["computed"])((function(){return o.getters["tour/isPlay"]})),w=function(){y.value=!1},V=function(){h.value=!1,Object(i["b"])().TagManager.cancelMeasure(),o.commit("SetOptions",{sceneUI:!0})},C=function(e){y.value=e,y.value&&N()},S=Object(l["ref"])(!1),B=function(){S.value=!S.value,S.value?Object(i["b"])().Scene.showRule():Object(i["b"])().Scene.hideRule()},M=function(){h.value=!0,Object(i["b"])().MinMap.hide(),Object(i["b"])().TagManager.startMeasure(),o.commit("SetOptions",{sceneUI:!1})},z=Object(l["computed"])((function(){var e=window.location.origin+window.location.pathname+"?m=".concat(Object(i["c"])(),"&lang=").concat(Object(E["b"])());return e})),N=function(){var e=document.getElementById("qrcode-share-scene"),t=z.value;L.a.toCanvas(e,t,(function(e){}))},_=function(){v.value?j.pause():j.play()};return Object(l["onMounted"])((function(){var e=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"];e.forEach((function(e,t){window.addEventListener(e,(function(){O.value=!O.value}))})),Object(i["d"])().then((function(e){e.TagManager.on("tagManager.firstMarkTagPosB",(function(){c["a"].toast(n("toast.clickLeft"))})),e.Scene.on("loaded",(function(e){o.commit("SetOptions",{showClear:!0})}))})),Object(l["nextTick"])((function(){window.addEventListener("click",w)}))})),j.on("play",(function(){v.value=!0,Object(g["a"])("editor-button",{eventType:"click",click:"music"})})),j.on("pause",(function(){return v.value=!1})),function(e,t){var n=Object(l["resolveComponent"])("ui-icon");return Object(l["openBlock"])(),Object(l["createElementBlock"])(l["Fragment"],null,[Object(l["createElementVNode"])("div",{class:Object(l["normalizeClass"])(["controls-right-buttons",{disabled:Object(l["unref"])(k)}])},[Object(l["unref"])(a).showVR?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",{key:0,onClick:x},[Object(l["createVNode"])(n,{type:"mode_vr",tip:e.$t("mode.vr"),tipV:"top"},null,8,["tip"])])):Object(l["createCommentVNode"])("",!0),Object(l["unref"])(m)?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",{key:1,onClick:_},[Object(l["createVNode"])(n,{type:"music_s",tip:e.$t("mode.music"),tipV:"top",showSwitch:!0,status:v.value},null,8,["tip","status"])])):Object(l["createCommentVNode"])("",!0),Object(l["unref"])(a).showScale?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",{key:2,onClick:B},[Object(l["createVNode"])(n,{tip:e.$t("mode.scale"),tipV:"top",type:"scaleplate_b",showSwitch:!0,status:S.value},null,8,["tip","status"])])):Object(l["createCommentVNode"])("",!0),Object(l["unref"])(a).showRule?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",{key:3,class:"rule",onClick:M},[Object(l["createVNode"])(n,{tip:e.$t("mode.rule"),tipV:"top",type:"measure_b"},null,8,["tip"])])):Object(l["createCommentVNode"])("",!0),Object(l["unref"])(a).showShare?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",{key:4,onMousemove:t[0]||(t[0]=function(e){return C(!0)}),onMouseleave:t[1]||(t[1]=function(e){return C(!1)})},[Object(l["createVNode"])(n,{type:"share"}),Object(l["createVNode"])(l["Transition"],{appear:"",name:"custom-classes-transition","enter-active-class":"animated animate__fadeIn short faster","leave-active-class":"animated animate__fadeOut short faster"},{default:Object(l["withCtx"])((function(){return[Object(l["withDirectives"])(Object(l["createElementVNode"])("div",R,[U,Object(l["createElementVNode"])("p",null,Object(l["toDisplayString"])(e.$t("share.shareVrScene")),1)],512),[[l["vShow"],y.value]])]})),_:1})],32)):Object(l["createCommentVNode"])("",!0)],2),(Object(l["openBlock"])(),Object(l["createBlock"])(l["Teleport"],{to:"body"},[Object(l["unref"])(p)?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",{key:0,class:Object(l["normalizeClass"])(["clear-box",{disabled:Object(l["unref"])(k)}]),style:Object(l["normalizeStyle"])({bottom:Object(l["unref"])(s)})},[Object(l["createElementVNode"])("div",{class:"clear-screen-btn",onClick:b},[Object(l["createVNode"])(n,{type:Object(l["unref"])(u)?"sreen_c":"sreen_o",tip:Object(l["unref"])(u)?e.$t("mode.clearScreen"):e.$t("mode.exit"),tipV:"top"},null,8,["type","tip"])])],6)):Object(l["createCommentVNode"])("",!0)])),(Object(l["openBlock"])(),Object(l["createBlock"])(l["Teleport"],{to:"body"},[h.value?(Object(l["openBlock"])(),Object(l["createBlock"])(Object(l["unref"])(P),{key:0,onClose:V})):Object(l["createCommentVNode"])("",!0)]))],64)}}};n("ece7");$.__scopeId="data-v-23d8405b";var F=$,q={setup:function(e){var t=Object(f["b"])(),n=Object(l["ref"])(!1),o=Object(l["ref"])(!1),a=Object(l["computed"])((function(){return t.getters.controlsBottom})),c=Object(l["computed"])((function(){return t.getters["enterLinkView"]}));return Object(i["d"])().then((function(e){e.Scene.on("loaded",(function(){return n.value=!0}))})),function(e,t){return Object(l["withDirectives"])((Object(l["openBlock"])(),Object(l["createElementBlock"])("div",{class:Object(l["normalizeClass"])(["bottom-controls",{hidden:o.value}]),style:Object(l["normalizeStyle"])({bottom:Object(l["unref"])(a)})},[Object(l["createVNode"])(Object(l["unref"])(v["a"])),Object(l["createVNode"])(Object(l["unref"])(_)),Object(l["createVNode"])(Object(l["unref"])(F))],6)),[[l["vShow"],n.value&&!Object(l["unref"])(c)]])}}};n("a7ac");q.__scopeId="data-v-7e7e6297";var A,K=q,X=n("219f"),J=n("50eb"),W=n("f3bd"),G=n("e5f0"),H=n("2ef0"),Q={setup:function(e){var t=Object(E["e"])({useScope:"global"}),n=t.t,o=Object(d["a"])(),c=Object(f["b"])(),r=Object(l["ref"])(!1),s=Object(l["ref"])(null),v=(Object(l["computed"])((function(){return c.getters["tour/tours"]})),Object(l["computed"])((function(){return c.getters["scene/metadata"]}))),j=Object(l["computed"])((function(){return c.getters["tour/isPlay"]})),O=Object(l["computed"])((function(){return c.getters["sceneUI"]})),h=Object(l["computed"])((function(){return c.getters["mode"]})),x=!1,y=function(){V.value=!0},k=Object(l["computed"])((function(){return c.getters["tag/hotData"]})),w=Object(l["computed"])((function(){return c.getters["enterLinkView"]})),V=Object(l["ref"])(!1),C=function(){V.value=!1,Object(i["b"])().Scene.unlock()},S=function(){var e;null===(e=Object(i["b"])().core.get("Player").currentPano.view)||void 0===e||e.backToPanorama()};return Object(l["onMounted"])((function(){var e={"model.enter":n("model.enter"),"common.about":n("common.about"),"common.meter":n("common.meter")},t=Object(i["a"])({num:a["a"].getURLParam("m"),dom:s.value,lang:Object(E["b"])(),langs:{en:e,ja:e},useShortcutKeys:!0});t.use("MinMap"),t.use("Tag"),t.use("TourPlayer"),t.TourManager.on("loaded",(function(e){c.commit("tour/loaded",e)})),t.Scene.lock(),t.Scene.on("ready",(function(){c.dispatch("scene/getDynamicPanels"),Object(i["b"])().core.get("Player").on("enteredView",(function(){c.commit("SetOptions",{enterLinkView:!0,showClear:!1});var e=document.querySelector("[xui_min_map]");e&&e.classList.add("collapse")})),Object(i["b"])().core.get("Player").on("leavedView",(function(){c.commit("SetOptions",{enterLinkView:!1,showClear:!0});var e=document.querySelector("[xui_min_map]");e&&e.classList.remove("collapse")})),Object(g["b"])("view-timing",{eventType:"time",time:"first"}),r.value=!0})),t.Scene.on("error",(function(e){switch(e.code){case 5033:window.location.replace("/5033.html?m="+a["a"].getURLParam("m")+"&lang="+(a["a"].getURLParam("lang")||"zh"));break;case 5034:window.location.replace("/5034.html?m="+a["a"].getURLParam("m")+"&lang="+(a["a"].getURLParam("lang")||"zh"));break;case 5009:window.location.replace("/5034.html?m="+a["a"].getURLParam("m")+"&lang="+(a["a"].getURLParam("lang")||"zh"));break;case 5005:window.location.replace("/#/404?m="+a["a"].getURLParam("m")+"&lang="+(a["a"].getURLParam("lang")||"zh"));break}})),t.store.on("links",(function(e){c.commit("link/setData",{links:e})})),t.Scene.on("loaded",(function(e){c.commit("setPanoId",e.id),Object(g["b"])("view-timing",{eventType:"time",time:"all"}),c.commit("setFloorId",e.floorIndex),Object(d["a"])()})),t.store.on("tags",(function(e){c.commit("tag/load",e)})),t.store.on("cameras",(function(e){c.commit("camera/setData",{cameras:e})})),t.store.on("metadata",(function(e){c.commit("scene/load",e),e.controls.showMap||t.MinMap.hide(!0)})),t.Scene.on("panorama.videorenderer.resumerender",(function(){x&&(o.pause(!0),x=!1)})),t.Scene.on("panorama.videorenderer.suspendrender",Object(u["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,Object(i["b"])().TourManager.player;case 2:if(t=e.sent,t.isPlaying||j.value){e.next=7;break}if(!k.value||"audio"!=k.value.type&&"video"!=k.value.type){e.next=6;break}return e.abrupt("return");case 6:o.resume();case 7:case"end":return e.stop()}}),e)})))),t.Camera.on("mode.beforeChange",(function(e){var t=e.fromMode;e.toMode,e.floorIndex;t&&c.commit("setFlying",!0)})),t.Camera.on("mode.afterChange",(function(e){e.toMode,e.floorIndex;c.commit("setFlying",!1)})),t.Camera.on("flying.started",(function(e){x=!0,c.commit("setFlying",!0)})),t.Camera.on("flying.ended",(function(e){var t=e.targetPano;"panorama"==h.value&&(t.hasVideo?Object(g["a"])("view-pano-type",{eventType:"click",click:2}):Object(g["a"])("view-pano-type",{eventType:"click",click:1})),c.commit("setFlying",!1),c.commit("setPanoId",t.id)})),t.store.on("flooruser",(function(e){return c.commit("scene/loadFloorData",e)})),t.render()})),function(e,t){var n=Object(l["resolveComponent"])("ui-icon");return Object(l["openBlock"])(),Object(l["createElementBlock"])(l["Fragment"],null,[Object(l["createVNode"])(X["a"],{onOpenEnterView:y}),Object(l["createVNode"])(J["a"],{thumb:!0}),Object(l["createElementVNode"])("div",{class:Object(l["normalizeClass"])(["ui-view-layout",{show:r.value}])},[Object(l["createElementVNode"])("div",{class:"scene",ref:s},null,512),Object(l["withDirectives"])(Object(l["createElementVNode"])("div",null,[Object(l["createVNode"])(Object(l["unref"])(p["a"])),Object(l["createVNode"])(Object(l["unref"])(m["a"])),Object(l["createVNode"])(Object(l["unref"])(K))],512),[[l["vShow"],Object(l["unref"])(O)]]),Object(l["unref"])(w)?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",{key:0,class:"back-view",onClick:S},[Object(l["createVNode"])(n,{type:"back"})])):Object(l["createCommentVNode"])("",!0)],2),Object(l["createVNode"])(Object(l["unref"])(b["a"])),Object(l["createVNode"])(Object(l["unref"])(W["a"])),Object(l["createVNode"])(Object(l["unref"])(G["a"])),V.value?(Object(l["openBlock"])(),Object(l["createBlock"])(H["a"],{key:0,info:Object(l["unref"])(v).started,onClose:C},null,8,["info"])):Object(l["createCommentVNode"])("",!0)],64)}}},Y=(n("4c51"),Q),Z=n("a068"),ee=n("f708");A=a["a"].detectChrome()||a["a"].detectSafari()||a["a"].detectFirefox()||a["a"].detectEdge()||a["a"].detectWeixin()||a["a"].detectWeixinMiniProgram()||a["a"].detectAlipay()?Y:ee["a"]?SMG:Z["a"];var te=Object(E["b"])();Object(E["c"])(E["a"],te).then((function(){Object(E["d"])(E["a"],te);var e=window.__app=Object(l["createApp"])(A);e.use(E["a"]),e.use(s["a"]),e.use(c["d"]),e.directive("click-outside",o["a"]),e.mount("#app");var t=function(){setTimeout((function(){Object(i["b"])().config.useShortcutKeys=!1}),200)},n=function(){setTimeout((function(){Object(i["b"])().config.useShortcutKeys=!0}),200)};r(document,"focus","input",(function(){return t()})),r(document,"focus","[contenteditable]",(function(){return t()})),r(document,"blur","input",(function(){return n()})),r(document,"blur","[contenteditable]",(function(){return n()}))}))},c969:function(e,t,n){var o=n("44d2");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var a=n("0ed3").default;a("7189f9c6",o,!0,{sourceMap:!1,shadowMode:!1})},ccf9:function(e,t,n){var o=n("567a");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var a=n("0ed3").default;a("6579ca24",o,!0,{sourceMap:!1,shadowMode:!1})},d891:function(e,t,n){var o=n("3c10");t=o(!1),t.push([e.i,'.tours-captions[data-v-05d19212]{position:absolute;bottom:64px;left:20px;width:480px;word-break:break-all;text-shadow:0 2px 4px rgba(0,0,0,.25);text-align:justify;color:#fff;pointer-events:none;z-index:1;transition:all .3s}.tours-captions .captions-title[data-v-05d19212]{font-size:28px;margin-bottom:10px;font-weight:700}.tours-captions .captions-desc[data-v-05d19212]{font-size:16px;line-height:24px}.controls-left-buttons[data-v-05d19212]{display:flex;align-items:flex-end;padding:0 0 20px 20px}.buttons.tour[data-v-05d19212]{margin-right:10px}.buttons.tour>div[data-v-05d19212]{margin-left:0;margin-right:0;padding:0 10px}.buttons.tour>div.show-list[data-v-05d19212]{border-left:solid 1px var(--editor-font-color)}.buttons.tour>div .icon-pull-down[data-v-05d19212]{font-size:12px}.buttons.tour>div span[data-v-05d19212]{right:-10px}.tour-list[data-v-05d19212]{width:100%;position:fixed;bottom:0;left:0;display:flex;align-items:center;justify-content:center;flex:1;height:120px;background-color:var(--editor-menu-back);pointer-events:all;left:var(--editor-toolbox-left);z-index:1;transition:all .3s ease}.tour-list[data-v-05d19212]:after{width:100%;position:absolute;content:"";top:0;left:0;border-bottom:1px solid hsla(0,0%,100%,.16);border-top:1px solid #000}.tour-list.ban[data-v-05d19212]{pointer-events:none}.tour-list .part-content[data-v-05d19212]{display:flex;flex-direction:row;overflow:hidden;width:100%;height:100%}.tour-list .part-content .part-list[data-v-05d19212]{width:100%;height:120px;display:flex;align-items:center;justify-content:flex-start;padding:0 10px;box-sizing:border-box}.tour-list .part-content .part-list .part-item[data-v-05d19212]{width:120px;height:80px;position:relative;cursor:pointer;margin-right:10px;background-repeat:no-repeat;background-size:100%;background-position:50%}.tour-list .part-content .part-list .part-item[data-v-05d19212]:last-of-type{margin-right:0}.tour-list .part-content .part-list .part-item[data-v-05d19212]:hover{opacity:.6}.tour-list .part-content .part-list .part-item .precent[data-v-05d19212]{width:0;height:3px;position:absolute;bottom:0;left:0;background:var(--editor-main-color);z-index:100}.tour-list .part-content .part-list .part-item .part-title[data-v-05d19212]{width:100%;height:24px;background:linear-gradient(180deg,rgba(0,0,0,.25),rgba(0,0,0,.5));position:absolute;bottom:0;left:0;display:flex;align-items:center;justify-content:center;font-size:14px;z-index:10}.play-control[data-v-05d19212]{pointer-events:all;height:34px;min-width:34px;border-radius:17px;position:relative;z-index:2}.play-control[data-v-05d19212],.play-control .tour-btn[data-v-05d19212]{display:flex;align-items:center;justify-content:center}.play-control .tour-btn[data-v-05d19212]{width:34px;height:22px;cursor:pointer}.play-control .tour-btn>.iconfont[data-v-05d19212]{font-size:14px}.play-control .tour-btn.play-btn[data-v-05d19212]{position:relative}.play-control .tour-btn.play-btn .animation-icon[data-v-05d19212]{width:24px;height:24px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-repeat:no-repeat;background-position:0 0;background-size:auto 24px}.play-control .tour-btn.play-btn .animation-icon:hover .tip[data-v-05d19212]{opacity:.8}.play-control .tour-btn.play-btn .animation-icon .tip[data-v-05d19212]{color:#fff;position:absolute;transform-origin:top center;background:#000;border-radius:4px;opacity:0;padding:10px;margin:10px;font-size:12px;transition:opacity .3s ease;pointer-events:none;white-space:nowrap;left:50%;transform:translateX(-50%);margin-left:0;margin-right:0;z-index:10;bottom:100%}.play-control .tour-btn.play-btn .animation-icon.action[data-v-05d19212]{-webkit-animation:humanAction-05d19212 1s steps(25) infinite;animation:humanAction-05d19212 1s steps(25) infinite}@-webkit-keyframes humanAction-05d19212{0%{background-position:0 0}to{background-position:100% 0}}@keyframes humanAction-05d19212{0%{background-position:0 0}to{background-position:100% 0}}.play-control .tour-btn.bor[data-v-05d19212]{height:16px;border-right:1px solid;-o-border-image:linear-gradient(180deg,hsla(0,0%,76.1%,.3),hsla(0,0%,100%,.3)) 1;border-image:linear-gradient(180deg,hsla(0,0%,76.1%,.3),hsla(0,0%,100%,.3)) 1;padding:0 34px;cursor:default}.play-control .tour-btn.bor>.iconfont[data-v-05d19212]{font-size:18px;transform:rotate(180deg);cursor:pointer}.play-control .tour-btn.bor>.iconfont.active[data-v-05d19212]{transform:rotate(0deg)}',""]),e.exports=t},ece7:function(e,t,n){"use strict";n("238a")}});