"use strict";(self["webpackChunk_zoom_client_email_desktop"]=self["webpackChunk_zoom_client_email_desktop"]||[]).push([[898],{21898:function(e,t,r){r.r(t),r.d(t,{default:function(){return f}});var n=function(){var e=this,t=e._self._c;return e.visible?t("div",{class:["response-reply-bar","button"===e.type&&"response-reply-bar--buttons","icon"===e.type&&"response-reply-bar--icons"]},[t("shortcut-reminder",{staticClass:"response-reply-bar__btn response-reply-bar__btn-reply",attrs:{preTooltip:e.isDecrypted?e.$t("operation.reply"):e.$t("common.decryptToDoTheAction"),placement:"top"}},[t("zm-button",{attrs:{disabled:!e.isDecrypted,"aria-expanded":void 0,"aria-label":e.$t("operation.reply"),"zm-ta":e.zoomTAFlag[e.RESPOND_TYPE.REPLY],ghost:"icon"===e.type},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.handleReplyButtonClick(e.RESPOND_TYPE.REPLY)}}},[t("section",{class:["button"===e.type&&"response-reply-bar__btn-inside"]},[t("SvgIcon",{attrs:{iconClass:"reply"}}),"button"===e.type?[t("div",{staticClass:"response-reply-bar__text"},[e._v(e._s(e.$t("operation.reply")))])]:e._e()],2)])],1),e.canReplyAll?t("shortcut-reminder",{staticClass:"response-reply-bar__btn response-reply-bar__btn-replyall",attrs:{preTooltip:e.isDecrypted?e.$t("operation.replyAll"):e.$t("common.decryptToDoTheAction"),placement:"top"}},[t("zm-button",{attrs:{disabled:!e.isDecrypted,"aria-expanded":void 0,"aria-label":e.$t("operation.replyAll"),"zm-ta":e.zoomTAFlag[e.RESPOND_TYPE.REPLY_ALL],ghost:"icon"===e.type},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.handleReplyButtonClick(e.RESPOND_TYPE.REPLY_ALL)}}},[t("section",{class:["button"===e.type&&"response-reply-bar__btn-inside"]},[t("svg-icon",{attrs:{iconClass:"replyall"}}),"button"===e.type?[t("div",{staticClass:"response-reply-bar__text"},[e._v(e._s(e.$t("operation.replyAll")))])]:e._e()],2)])],1):e._e(),t("shortcut-reminder",{staticClass:"response-reply-bar__btn response-reply-bar__btn-forward",attrs:{preTooltip:e.isDecrypted?e.$t("operation.forward"):e.$t("common.decryptToDoTheAction"),placement:"top"}},[t("zm-button",{attrs:{disabled:!e.isDecrypted,"aria-expanded":void 0,"aria-label":e.$t("operation.forward"),"zm-ta":e.zoomTAFlag[e.RESPOND_TYPE.FORWARD],ghost:"icon"===e.type},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.handleReplyButtonClick(e.RESPOND_TYPE.FORWARD)}}},[t("section",{class:["button"===e.type&&"response-reply-bar__btn-inside"]},[t("svg-icon",{attrs:{iconClass:"forward"}}),"button"===e.type?[t("div",{staticClass:"response-reply-bar__text"},[e._v(e._s(e.$t("operation.forward")))])]:e._e()],2)])],1)],1):e._e()},o=[],a=r(26274),l=r(34948),i=r(29648),s=r(96857),p=r(47657),c=r(21942),u=s.Enums.SystemDefinedMailLabelIds,d=s.Enums.RESPOND_TYPE,y={name:"ResponseReplyBar",components:{ShortcutReminder:p.Z,SvgIcon:c.Z},props:{type:{type:String,default:"button"},msgId:{type:String,required:!0},decryptionStatus:{type:String,required:!0},isUserScheduled:{type:Boolean,default:!1},from:{type:Object,default:function(){return{}}},to:{type:Array,default:function(){return[]}},cc:{type:Array,default:function(){return[]}},enableZoomTAFlag:{type:Boolean,default:!0}},data:function(){return{RESPOND_TYPE:Object.freeze(d)}},computed:(0,l.Z)((0,l.Z)((0,l.Z)({},(0,i.rn)({userEmail:function(e){return e.userProfile.userEmail},selectMailLabel:function(e){return e.selectMailLabel},currentInboxItem:function(e){return e.currentInboxItem}})),(0,i.Se)(["myEmailAddresses"])),{},{inOutbox:function(e){var t=e.selectMailLabel;return t.id===u.OUTBOX},inGroup:function(e){var t=e.selectMailLabel;return t.id===u.GROUP_APPROVAL},inEscrow:function(e){var t=e.selectMailLabel;return t.id===u.ESCROW},isDecrypted:function(e){var t=e.decryptionStatus;return s.Utils.isDecrypted(t)},inDisableLabel:function(e){var t=e.currentInboxItem;return null===t||void 0===t?void 0:t.threadHead.showLabelIds.some((function(e){return[u.ESCROW,u.GROUP_APPROVAL].includes(e)}))},visible:function(e){var t=e.inOutbox,r=e.inEscrow,n=e.inGroup,o=e.isUserScheduled,a=e.inDisableLabel;return!t&&!o&&!r&&!n&&!a},canReplyAll:function(e){var t=e.myEmailAddresses,r=e.from,n=e.to,o=e.cc;return s.Utils.canReplyAll({from:r,to:n,cc:o,userEmail:t})},zoomTAFlag:function(e){var t,r=e.type,n=e.msgId,o=e.enableZoomTAFlag;return t={},(0,a.Z)(t,d.REPLY,"button"===r?o?"detail-reply":"":"thread-item-header-reply-"+n),(0,a.Z)(t,d.REPLY_ALL,"button"===r?o?"detail-reply-all":"":"thread-item-header-reply-all-"+n),(0,a.Z)(t,d.FORWARD,"button"===r?o?"detail-forward":"":"thread-item-header-reply-forward-"+n),t}}),methods:{handleReplyButtonClick:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"reply";this.isDecrypted&&this.$emit("trigger",e)}}},b=y,_=r(93483),m=(0,_.Z)(b,n,o,!1,null,"05fb25b8",null),f=m.exports}}]);