X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=priv%2Fstatic%2Fpacks%2Fflavours%2Fglitch%2Fasync%2Freport_modal.js;h=92601ff8cb7a458e49f9883964aab8ada3dfe5b3;hb=841e4e4d835b8d1cecb33102356ca045571ef1fc;hp=ff8054b6f996868baa52e81bdad5f38a556b14cc;hpb=04b1c135543965860029557fc216eb38fd63b6c7;p=akkoma diff --git a/priv/static/packs/flavours/glitch/async/report_modal.js b/priv/static/packs/flavours/glitch/async/report_modal.js index ff8054b6f..92601ff8c 100644 --- a/priv/static/packs/flavours/glitch/async/report_modal.js +++ b/priv/static/packs/flavours/glitch/async/report_modal.js @@ -1,2 +1,2 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[74],{711:function(e,t,a){"use strict";a.r(t);var n,o,i,d=a(1),c=a(6),r=a(0),s=a(2),l=a(3),u=a.n(l),b=a(20),p=a(92),g=a(32),h=a(5),m=a.n(h),O=a(26),j=a.n(O),v=a(169),f=a(7),w=a(391),_=a.n(w),y=a(965),C=a.n(y),k=a(111),I=a(43),M=a(283),N=function(e){function t(){return e.apply(this,arguments)||this}return Object(c.a)(t,e),t.prototype.render=function(){var e=this.props,t=e.status,a=e.checked,n=e.onToggle,o=e.disabled,i=null;if(t.get("reblog"))return null;if(00)if(t.get("media_attachments").some((function(e){return"unknown"===e.get("type")})));else if("video"===t.getIn(["media_attachments",0,"type"])){var s=t.getIn(["media_attachments",0]);i=Object(r.a)(M.a,{fetchComponent:I.Q,loading:this.renderLoadingVideoPlayer},void 0,(function(e){return Object(r.a)(e,{preview:s.get("preview_url"),blurhash:s.get("blurhash"),src:s.get("url"),alt:s.get("description"),width:239,height:110,inline:!0,sensitive:t.get("sensitive"),revealed:!1,onOpenVideo:C.a})}))}else i=Object(r.a)(M.a,{fetchComponent:I.C,loading:this.renderLoadingMediaGallery},void 0,(function(e){return Object(r.a)(e,{media:t.get("media_attachments"),sensitive:t.get("sensitive"),revealed:!1,height:110,onOpenMedia:C.a})}));return Object(r.a)("div",{className:"status-check-box"},void 0,Object(r.a)("div",{className:"status-check-box__status"},void 0,Object(r.a)(k.a,{status:t,media:i})),Object(r.a)("div",{className:"status-check-box-toggle"},void 0,Object(r.a)(_.a,{checked:a,onChange:n,disabled:o})))},t}(u.a.PureComponent),S=a(4),x=Object(b.connect)((function(e,t){var a=t.id;return{status:e.getIn(["statuses",a]),checked:e.getIn(["reports","new","status_ids"],Object(S.Set)()).includes(a)}}),(function(e,t){var a=t.id;return{onToggle:function(t){e(Object(p.m)(a,t.target.checked))}}}))(N),R=a(18),q=a(66),F=a(39);a.d(t,"default",(function(){return T}));var K=Object(f.f)({close:{id:"lightbox.close",defaultMessage:"Close"},placeholder:{id:"report.placeholder",defaultMessage:"Additional comments"},submit:{id:"report.submit",defaultMessage:"Submit"}}),T=Object(b.connect)((function(){var e=Object(j.d)();return function(t){var a=t.getIn(["reports","new","account_id"]);return{isSubmitting:t.getIn(["reports","new","isSubmitting"]),account:e(t,a),comment:t.getIn(["reports","new","comment"]),forward:t.getIn(["reports","new","forward"]),statusIds:Object(S.OrderedSet)(t.getIn(["timelines","account:"+a+":with_replies","items"])).union(t.getIn(["reports","new","status_ids"]))}}}))(n=Object(f.g)((i=o=function(e){function t(){for(var t,a=arguments.length,n=new Array(a),o=0;o