(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9365085c"],{"0391":function(t,r,e){"use strict";e.d(r,"b",(function(){return n})),e.d(r,"a",(function(){return o}));e("99af"),e("fb6a"),e("d3b7"),e("25f0");var c="chat-record:",a=6e5;function n(t){var r="".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2));try{return localStorage.setItem("".concat(c).concat(r),JSON.stringify({url:t,expiresAt:Date.now()+a})),r}catch(e){return""}}function o(t){if(!t)return"";try{var r=localStorage.getItem("".concat(c).concat(t));if(!r)return"";var e=JSON.parse(r);return!e.expiresAt||e.expiresAt<Date.now()?(localStorage.removeItem("".concat(c).concat(t)),""):(localStorage.removeItem("".concat(c).concat(t)),e.url||"")}catch(a){return""}}},"81d5e":function(t,r,e){"use strict";var c=e("f8bc"),a=e.n(c);a.a},b73a:function(t,r,e){"use strict";e.r(r);var c=function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("ChatRecord",{attrs:{url:t.recordUrl},on:{close:t.goBack}})},a=[],n=(e("ac1f"),e("5319"),function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("div",{staticClass:"chat-record-overlay"},[e("button",{staticClass:"chat-record-close",attrs:{type:"button"},on:{click:t.close}},[t._v(" 返回列表 ")]),t.source?e("div",{staticClass:"chat-record-viewport"},[t.loading?e("div",{staticClass:"chat-record-loading"},[t._v("正在加载聊天记录...")]):t._e(),e("iframe",{staticClass:"chat-record-iframe",attrs:{src:t.source,title:"聊天记录",frameborder:"0"},on:{load:function(r){t.loading=!1}}})]):e("div",{staticClass:"chat-record-empty"},[t._v("聊天记录链接无效或已失效")])])}),o=[],i=(e("d3b7"),e("25f0"),e("3ca3"),e("ddb0"),e("2b3d"),{name:"ChatRecord",props:{url:{type:String,default:""}},data:function(){return{loading:!0}},computed:{source:function(){if(!this.url)return"";try{return new URL(this.url,window.location.origin).toString()}catch(t){return""}}},methods:{close:function(){this.$emit("close")}}}),s=i,u=(e("81d5e"),e("2877")),l=Object(u["a"])(s,n,o,!1,null,null,null),d=l.exports,f=e("0391"),h={name:"ChatRecordPage",components:{ChatRecord:d},data:function(){return{recordUrl:""}},created:function(){var t=this.$route.query.key,r=Array.isArray(t)?t[0]:t;this.recordUrl=Object(f["a"])(r),r&&this.$router.replace({name:"ChatRecord"}).catch((function(){}))},methods:{goBack:function(){window.close()}}},m=h,p=Object(u["a"])(m,c,a,!1,null,null,null);r["default"]=p.exports},f8bc:function(t,r,e){}}]);