"use strict";(self["webpackChunk_zoom_client_email_desktop"]=self["webpackChunk_zoom_client_email_desktop"]||[]).push([[814],{38542:function(a,t,s){s.r(t),s.d(t,{JsHooks:function(){return r},default:function(){return d}});var e=function(){var a=this,t=a._self._c;return t("div",{class:[a.JsHooks.TEMPLATE_CSS_INDICATOR,a.JsHooks.TEMPLATE_WRAP,"shared-mail-wrap"]},[t("div",{class:[a.JsHooks.TEMPLATE_HEADER,"shared-mail-header"]},[t("span",{staticClass:"shared-mail-subject"},[a._v(" "+a._s(a.$root.mailDetail.mailHead.subject)+" ")]),t("span",{staticClass:"shared-mail-from-tag"},[a._v(" From "+a._s(a.$root.mailDetail.from.displayName)+" ")])]),t("div",{class:[a.JsHooks.TEMPLATE_BODY,"shared-mail-body"]},[t("div",{staticClass:"mail-preview-wrap"},[t("div",{staticClass:"mail-preview-left"},[t("div",{staticClass:"shared-mail-from-avatar-wrap"},[a.$root.avatarText?t("span",[a._v(a._s(a.$root.avatarText))]):a.$root.avatarImg?t("img",{style:{height:"32px",width:"32px"},attrs:{src:a.$root.avatarImg}}):a._e()])]),t("div",{staticClass:"mail-preview-right"},[t("div",{staticClass:"shared-mail-from-info"},[a._v(" "+a._s(a.$root.mailDetail.from.displayName)+" <"+a._s(a.$root.mailDetail.from.emailAddr)+"> ")]),a.$root.mailDetail.to.length?t("div",{staticClass:"shared-mail-recipes-wrap"},[t("span",{staticClass:"shared-mail-recipes-label"},[a._v("To:")]),t("div",{staticClass:"shared-mail-recipes"},a._l(a.$root.mailDetail.to,(function(s){return t("span",{key:s.emailAddr,staticClass:"shared-mail-recipe"},[a._v(" "+a._s(s.displayName)+" <"+a._s(s.emailAddr)+"> ")])})),0)]):a._e(),a.$root.mailDetail.cc.length?t("div",{staticClass:"shared-mail-recipes-wrap"},[t("span",{staticClass:"shared-mail-recipes-label"},[a._v("Cc:")]),t("div",{staticClass:"shared-mail-recipes"},a._l(a.$root.mailDetail.cc,(function(s){return t("span",{key:s.emailAddr,staticClass:"shared-mail-recipe"},[a._v(" "+a._s(s.displayName)+" <"+a._s(s.emailAddr)+"> ")])})),0)]):a._e(),a.$root.mailDetail.bcc.length?t("div",{staticClass:"shared-mail-recipes-wrap"},[t("span",{staticClass:"shared-mail-recipes-label"},[a._v("Bcc:")]),t("div",{staticClass:"shared-mail-recipes"},a._l(a.$root.mailDetail.bcc,(function(s){return t("span",{key:s.emailAddr,staticClass:"shared-mail-recipe"},[a._v(" "+a._s(s.displayName)+" <"+a._s(s.emailAddr)+"> ")])})),0)]):a._e(),t("div",{staticClass:"shared-mail-content",domProps:{innerHTML:a._s(a.mailContent)}}),a.attachmentsCount?t("div",{staticClass:"shared-mail-attachments"},[t("span",{staticClass:"shared-mail-attachments-info"},[a._v(a._s(a.attachmentsCount)+" attachments")]),t("span",{staticClass:"shared-mail-attachments-tip"},[a._v("Unable to view attachments for forwarded emails in chat")])]):a._e()])])]),t("div",{class:[a.JsHooks.TEMPLATE_FOOTER,"shared-mail-footer"]})])},i=[],l=(s(37348),s(60659)),r={TEMPLATE_CSS_INDICATOR:"J_PACKAGE_MAIL_TEMPLATE_CSS_INDICATOR",TEMPLATE_WRAP:"J_PACKAGE_MAIL_TEMPLATE_WRAP",TEMPLATE_HEADER:"J_PACKAGE_MAIL__TEMPLATE_HEADER",TEMPLATE_BODY:"J_PACKAGE_MAIL__TEMPLATE_BODY",TEMPLATE_FOOTER:"J_PACKAGE_MAIL__TEMPLATE_FOOTER"},o={name:"MailContentTemplate",components:{},props:{},data:function(){return{JsHooks:r}},computed:{attachmentsCount:function(){return this.$root.mailDetail.attachments.filter((function(a){return!a.isInlineAttachment})).length},mailContent:function(){var a=(0,l.Z)(this.$root.mailContent);return a.sanitize({filterDarkModeStyles:!0,filterThirdPartyLinks:!1,callback:null,purifyOptions:{WHOLE_DOCUMENT:!1}}).generate()}},watch:{"$root.mailDetail":{handler:function(a){a.from.emailAddr},immediate:!0}},mounted:function(){},methods:{getAvatar:function(a){window.zoomSdk.postJsMsgWithTimeout({functionName:"mailui_getavatarpath",params:{email:a},noDelete:!0,timeout:3e3}).then((function(a){}))}}},n=o,m=s(93483),c=(0,m.Z)(n,e,i,!1,null,null,null),d=c.exports}}]);