(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[10],{"68c4":function(t,e,s){},c859:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"enterprise-mytpl-iframe"}})},n=[],o=s("2f62"),c=s("beeb"),r={data(){return{isLoadMyJs:!1,isLoadOfficeJs:!1}},computed:{...Object(o["c"])("user",["isClientLogin","userInfo"])},beforeRouteEnter(t,e,s){s(e=>{e.$nextTick(()=>{let s=t&&t.query||{};e.initEntry(s)})})},beforeRouteUpdate(t,e,s){let i=t&&t.query||{};this.initEntry(i),s()},methods:{initEntry(t){this.isLoadOfficeJs&&this.isLoadMyJs?this.sdkShow(t):this.loadJs(t)},sdkShow({type:t="private",tab:e,source:s=""}){e=e||{wpp:"ppt",et:"excel",wps:"word"}[c["e"].name]||"all",this.isLoadOfficeJs&&this.isLoadMyJs&&window.$$ent_MyTemplateSdk&&window.$$ent_MyTemplateSdk.show({domBox:document.getElementById("enterprise-mytpl-iframe"),type:t,tab:e,option:{source:s}})},loadJs(t){const e=document.createElement("script");document.body.appendChild(e),e.setAttribute("crossorigin","anonymous"),e.integrity="sha384-6gz7YZlwNQ4YE2KJHrh9Rp6Haxo72rWTBU8DIAtvBE1tcSFCviFaxm3qZfIGbY8l",e.onload=()=>{this.isLoadOfficeJs=!0,this.sdkShow(t)},e.src="https://qn.cache.wpscdn.cn/encs/kgp2/enterprise-tempates/lib/web-office-sdk-v1.1.19.umd.js";const s="mytemplate_load_callback";window[s]=()=>{this.isLoadMyJs=!0,this.sdkShow(t)};const i=document.createElement("script");fetch("https://kuc.wps.cn/encs/kgp2/enterprise-tempates/mytemplate.integrity.json").then(t=>t.json()).then(t=>{const e=t.integrity;i.setAttribute("crossorigin","anonymous"),e&&(i.integrity=e),document.body.appendChild(i),i.src="https://kuc.wps.cn/encs/kgp2/enterprise-tempates/mytemplate.entry.js?_callback="+s}).catch(t=>{console.log(t)}),this.isLoadJs=!0}}},a=r,d=(s("d033"),s("2877")),p=Object(d["a"])(a,i,n,!1,null,null,null);e["default"]=p.exports},d033:function(t,e,s){"use strict";s("68c4")}}]);