(window.webpackJsonp=window.webpackJsonp||[]).push([[372],{1018:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return O}));var s,o=a(0),n=a(1),c=a.n(n),l=a(12),d=a(4),i=a(35),r=a(46),m=a(52),_=a.n(m),u=a(985),b=a(32),p=a(93),j=a(1447);let O=Object(l.connect)(((e,t)=>{let{statusId:a}=t;return{versions:e.getIn(["history",a,"items"])}}),(e=>({onClose(){e(Object(i.c)())}})))(s=class extends c.a.PureComponent{render(){const{index:e,versions:t,onClose:a}=this.props,s=t.get(e),n=s.get("emojis").reduce(((e,t)=>(e[":"+t.get("shortcode")+":"]=t.toJS(),e)),{}),l={__html:Object(r.default)(s.get("content"),n)},i={__html:Object(r.default)(_()(s.get("spoiler_text")),n)},m=Object(o.a)(p.default,{timestamp:s.get("created_at"),short:!1}),O=Object(o.a)(u.a,{accountId:s.get("account")}),g=s.get("original")?Object(o.a)(d.b,{id:"status.history.created",defaultMessage:"{name} created {date}",values:{name:O,date:m}}):Object(o.a)(d.b,{id:"status.history.edited",defaultMessage:"{name} edited {date}",values:{name:O,date:m}});return Object(o.a)("div",{className:"modal-root__modal compare-history-modal"},void 0,Object(o.a)("div",{className:"report-modal__target"},void 0,Object(o.a)(b.a,{className:"report-modal__close",icon:"times",onClick:a,size:20}),g),Object(o.a)("div",{className:"compare-history-modal__container"},void 0,Object(o.a)("div",{className:"status__content"},void 0,s.get("spoiler_text").length>0&&Object(o.a)(c.a.Fragment,{},void 0,Object(o.a)("div",{className:"translate",dangerouslySetInnerHTML:i}),Object(o.a)("hr",{})),Object(o.a)("div",{className:"status__content__text status__content__text--visible translate",dangerouslySetInnerHTML:l}),!!s.get("poll")&&Object(o.a)("div",{className:"poll"},void 0,Object(o.a)("ul",{},void 0,s.getIn(["poll","options"]).map((e=>Object(o.a)("li",{},e.get("title"),Object(o.a)("span",{className:"poll__input disabled"}),Object(o.a)("span",{className:"poll__option__text translate",dangerouslySetInnerHTML:{__html:Object(r.default)(_()(e.get("title")),n)}})))))),Object(o.a)(j.a,{status:s}))))}})||s}}]);
//# sourceMappingURL=compare_history_modal-a7b36f74586db70f8477.chunk.js.map