(function(s,b,g,m,e,v,u,w,f,i){"use strict";functionx(n,a){if(!(ninstanceofa))thrownewTypeError("Cannot call a class as a function")}functionp(n,a,r){returnainn?Object.defineProperty(n,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[a]=r,n}constR=g.findByStoreName("UserStore"),{FormInput:F,FormDivider:h,FormText:I,FormIcon:o,FormRow:E,FormSection:_,FormSwitchRow:B}=w.Forms,y=e.stylesheet.createThemedStyleSheet({avatar:{height:36,width:36,borderRadius:18},button:{marginRight:12}});functionS(n){let{callback:a}=n;returne.React.createElement(i.TouchableOpacity,{onPress:a},e.React.createElement(I,{style:y.button},"ADD"))}functionT(n){let{onFinish:a}=n;const[r,l]=f.useState(""),d=function(){!isNaN(parseInt(r))&&R.getUser(r)&&!t.exempted.includes(r)&&(t.exempted=[...t.exempted,r],l("")),a()};returne.React.createElement(E,{leading:e.React.createElement(o,{source:u.getAssetIDByName("ic_add_friend")}),label:e.React.createElement(F,{autoFocus:!0,title:"User ID",placeholder:"123456789012345678",value:r,keyboardType:"numeric",onChangeText:function(c){returnl(c.replace(/[^0-9]/g,"").trim())},returnKeyType:"done"}),trailing:e.React.createElement(i.TouchableOpacity,{onPress:d},e.React.createElement(o,{source:u.getAssetIDByName("ic_add_24px")}))})}functionk(){v.useProxy(t);const[n,a]=f.useState(!1),r=e.NavigationNative.useNavigation();returnf.useEffect(function(){r.setOptions({headerRight:function(){returne.React.createElement(S,{callback:function(){returna(!0)}})}})},[]),e.React.createElement(i.ScrollView,null,e.React.createElement(B,{label:"Enable blacklist mode",subLabel:"If enabled, only users in the exempted list will be affected by the plugin.",leading:e.React.createElement(o,{source:u.getAssetIDByName("ic_block")}),value:t.isBlacklistMode,onValueChange:function(l){returnt.isBlacklistMode=l}}),e.React.createElement(_,{title:"Exempted Users"},t.exempted?.length>0&&e.React.createElement(i.FlatList,{data:t.exempted,keyExtractor:function(l){returnl},renderItem:function(l){let{item:d}=l;constc=R.getUser(d);if(!c)thrownewError("User not found/is not cached");returne.React.createElement(E,{label:c.username,leading:e.React.createElement(i.Image,{style:y.avatar,source:{uri:c.getAvatarURL()}}),trailing:e.React.createElement(i.TouchableOpacity,{onPress:function(){t.exempted=t.exempted.filter(function(D){returnD!==d})}},e.React.createElement(o,{source:u.getAssetIDByName("Small"),disableColor:!0}))})},ItemSeparatorComponent:h}),n&&e.React.createElement(e.React.Fragment,null,e.React.createElement(h,null),e.React.createElement(T,{onFinish:function(){returna(!1)}}))))}constt=m.storage,P=g.findByProps("createPendingReply");t.isBlacklistMode??=!1,t.exempted??=[];varU=newfunctionn(){x(this,n),p(this,"settings",k),p(this,"onUnload",b.patcher.before("createPendingReply",P,function(a){let[r]=a;constl=t.exempted.includes(r.message?.author?.id);r.shouldMention&&=t.isBlacklistMode?!l:l}))};returns.default=U,s.settings=t,Object.defineProperty(s,"__esModule",{value:!0}),s})({},vendetta,vendetta.metro,vendetta.plugin,vendetta.metro.common,vendetta.storage,vendetta.ui.assets,vendetta.ui.components,window.React,vendetta.metro.common.ReactNative);