(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/uni-chat-detail/uni-chat-detail"],{"3e42":function(t,e,n){},"87fe":function(t,e,n){"use strict";var i=n("3e42"),o=n.n(i);o.a},a6fb:function(t,e,n){"use strict";n.r(e);var i=n("d752"),o=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=o.a},d752:function(t,e,n){"use strict";(function(t){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;i(n("3494")),n("26cb");var o={name:"UniChatDetail",props:{type:{type:String,default:"user"},item:{type:Object,default:{}},index:{type:Number,default:0},list:{type:Array,default:[]}},computed:{cssVars:function(){return{"--width":this.systemInfo.screenWidth-210}}},created:function(){this.chatDetailBoxMaxWidth=this.systemInfo.screenWidth-110},data:function(){return{chatDetailBoxMaxWidth:0,safeBottom:0,systemInfo:t.getSystemInfoSync(),onPlay:!1}},methods:{copy:function(e){if(e.isImg)return!1;t.setClipboardData({data:e.content.trim(),success:function(){console.log("复制成功!")}})},longpress:function(e){var n=this;t.showModal({title:"提示",content:"你确定要保存到本地吗?",success:function(t){t.confirm&&n.saveImage(e)}})},saveImage:function(e){var n=this;t.authorize({scope:"scope.writePhotosAlbum",success:function(){n.download(e)},fail:function(){t.getSetting({success:function(t){t.authSetting["scope.writePhotosAlbum"]||n.isAuth()}})}})},isAuth:function(){t.showModal({content:"由于您还没有允许保存图片到您相册里,无法进行保存,请点击确定允许授权",success:function(e){e.confirm&&t.openSetting({success:function(t){console.log(t.authSetting)}})}})},download:function(e){t.showLoading({title:"正在保存..."});t.downloadFile({url:e,success:function(e){console.log(e),t.saveImageToPhotosAlbum({filePath:e.tempFilePath,success:function(e){return t.showToast({title:"保存成功!",icon:"success",duration:1e3})},fail:function(e){return console.log(e),t.hideLoading(),t.showToast({title:"保存失败",icon:"error",duration:1e3})}})},fail:function(e){return console.log(e),t.hideLoading(),t.showToast({title:"保存失败",icon:"error",duration:1e3})}})},getAvatar:function(t){return this.$store.state.utils.getAvatar(t)},hide:function(){t.hideKeyboard()},showTime:function(t,e){var n=e-1;if(n>=0){var i=this.list[n]["createTime"],o=parseInt(t.toString().slice(0,-3))-parseInt(i.toString().slice(0,-3));return!(o<60)&&this.$store.state.utils.formatChatTime(t)}return this.$store.state.utils.formatChatTime(t)}}};e.default=o}).call(this,n("543d")["default"])},eba5:function(t,e,n){"use strict";n.r(e);var i=n("ec18"),o=n("a6fb");for(var s in o)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(s);n("87fe");var a=n("f0c5"),c=Object(a["a"])(o["default"],i["b"],i["c"],!1,null,"0f30a9df",null,!1,i["a"],void 0);e["default"]=c.exports},ec18:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.showTime(t.item.createTime,t.index)),i=n?t.showTime(t.item.createTime,t.index):null,o=t.item.isSend?t.getAvatar(t.item.isSend):null,s=t.item.isSend?null:t.getAvatar(t.item.isSend);t.$mp.data=Object.assign({},{$root:{m0:n,m1:i,m2:o,m3:s}})},o=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/uni-chat-detail/uni-chat-detail-create-component',
    {
        'components/uni-chat-detail/uni-chat-detail-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("eba5"))
        })
    },
    [['components/uni-chat-detail/uni-chat-detail-create-component']]
]);
