"use strict";(self.webpackChunkmattermost_webapp=self.webpackChunkmattermost_webapp||[]).push([[7672],{7672(a,e,t){t.d(e,{default:()=>_});var n=t(36418),o=t(14778),s=t(37270),l=t(14696),r=t(52729),i=t(7711),d=t(67416),c=t(81444),m=t(92008);const _=function({postId:a,onExited:e,onHide:t}){const _=(0,o.useIntl)(),g=(0,s.useSelector)(e=>(0,r.f5)(e,a));if(!g)return null;const u=(0,m.AT)(g,_.locale),w=u?.source_lang||"unknown";return n.createElement(l.zW,{id:"showTranslationModal",className:"ShowTranslationModal a11y__modal",show:!0,onHide:()=>{t&&t()},onExited:e,ariaLabelledby:"showTranslationModalLabel",compassDesign:!0,modalHeaderText:_.formatMessage({id:"show_translation.modal.title",defaultMessage:"Show Translation"})},n.createElement("div",{className:"ShowTranslationModal__content"},n.createElement("div",{className:"ShowTranslationModal__messageBlock ShowTranslationModal__messageBlock--original"},n.createElement("div",{className:"ShowTranslationModal__badgeContainer"},n.createElement("span",{className:"ShowTranslationModal__languageText"},"unknown"===w?_.formatMessage({id:"show_translation.unknown_language",defaultMessage:"Unknown"}):_.formatDisplayName(w,{type:"language"})),n.createElement(d.A,{text:_.formatMessage({id:"show_translation.original_badge",defaultMessage:"ORIGINAL"}),variant:"info",size:"xs"})),n.createElement("div",{className:"ShowTranslationModal__postContent"},n.createElement(i.A,{post:g,isChannelAutotranslated:!1,location:c.Hc.MODAL,preventClickInteraction:!0}))),n.createElement("div",{className:"ShowTranslationModal__messageBlock ShowTranslationModal__messageBlock--translated"},n.createElement("div",{className:"ShowTranslationModal__badgeContainer"},n.createElement("span",{className:"ShowTranslationModal__languageText"},_.formatDisplayName(_.locale,{type:"language"})),n.createElement(d.A,{text:_.formatMessage({id:"show_translation.auto_translated_badge",defaultMessage:"AUTO-TRANSLATED"}),variant:"default",size:"xs"})),n.createElement("div",{className:"ShowTranslationModal__postContent"},n.createElement(i.A,{post:g,isChannelAutotranslated:!0,location:c.Hc.MODAL,preventClickInteraction:!0})))))}}}]);
//# sourceMappingURL=7672.8f8bace017c8f88441bf.js.map