PageSourceSearch

https://brownsboard.com/assets/modules/accounts-moderate.e39b733fb9e8e90a6c6e.min.js

js brownsboard.com collected 2026-10-09 22:41:22 UTC 6,946 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunknodebb=self.webpackChunknodebb||[]).push([[1091,2067,2289,3602,4271,7212,8314,9127,9897],{8061(D,O,s){var c,h;c=[s(9897),s(5303),s(9930),s(1335)],h=(function(o,m,a,y){const w={};w.banAccount=function(i,l){i=i||ajaxify.data.theirid,_({tpl:"modals/temporary-ban",title:"[[user:ban-account]]",type:"ban",onSubmit:function(P){o.put("/users/"+encodeURIComponent(i)+"/ban",{until:P.until,reason:P.reason||""}).then(()=>{if(typeof l=="function")return l();ajaxify.refresh()}).catch(a.error)}})},w.unbanAccount=function(i){_({tpl:"modals/unban",title:"[[user:unban-account]]",type:"ban",onSubmit:function(l){o.del("/users/"+encodeURIComponent(i)+"/ban",{reason:l.reason||""}).then(()=>{ajaxify.refresh()}).catch(a.error)}})},w.muteAccount=function(i,l){i=i||ajaxify.data.theirid,_({tpl:"modals/temporary-mute",title:"[[user:mute-account]]",type:"mute",onSubmit:function(P){o.put("/users/"+i+"/mute",{until:P.until,reason:P.reason||""}).then(()=>{if(typeof l=="function")return l();ajaxify.refresh()}).catch(a.error)}})},w.unmuteAccount=function(i){_({tpl:"modals/unmute",title:"[[user:unmute-account]]",onSubmit:function(l){o.del("/users/"+i+"/mute",{reason:l.reason||""}).then(()=>{ajaxify.refresh()}).catch(a.error)}})};async function _(i){const l=await socket.emit("user.getCustomReasons",{type:i.type||""}),P=await y.render(i.tpl,{reasons:l}),t=await m.dialog({title:i.title,message:P,onEscape:!0,buttons:{close:{label:"[[global:close]]",className:"btn-link"},submit:{label:i.title,callback:function(){const n=t.find("form").serializeArray().reduce(function(f,g){return f[g.name]=g.value,f},{});if(Object.hasOwn(n,"length")){const g=parseInt(n.unit,10)?24:1;n.until=n.length>0?Date.now()+n.length*36e5*g:0}else n.until=0;i.onSubmit(n)}}}});return t.find("[data-key]").on("click",function(){const n=l.find(f=>String(f.key)===$(this).attr("data-key"));n&&n.body&&t.find('[name="reason"]').val(n.body)}),t}return w.throwModal=_,w}).apply(O,c),h!==void 0&&(D.exports=h)},9897(D,O,s){s.r(O),s.d(O,{del:()=>A,get:()=>P,head:()=>t,patch:()=>f,post:()=>n,put:()=>g});var c=s(1749),h=s.n(c),o=s(5303),m=s(7459),a=s.n(m),y=s(8636),w=s.n(y);const _=config.relative_path+"/api/v3";async function i(e,u){if(e.url=e.url.startsWith("/api")?config.relative_path+e.url:_+e.url,e.headers=e.headers||{},e.headers["x-return-to"]||(e.headers["x-return-to"]=`${window.location.pathname.slice(config.relative_path.length)}${window.location.search}`),typeof u=="function"){l(e).then(r=>u(null,r),r=>u(r));return}try{return await l(e)}catch(r){if(r.status===401){const{url:d}=await(0,c.fire)("filter:admin.reauth",{url:"login"}),b=await m.translate("[[error:api.reauth-required]]",config.userLang);(0,o.confirm)(b,M=>{M&&(y.setItem("location-hash",window.location.hash),ajaxify.go(d))})}throw r}}async function l(e){const{url:u}=e;delete e.url,e.data&&!(e.data instanceof FormData)&&(e.data=JSON.stringify(e.data||{}),e.headers["content-type"]="application/json; charset=utf-8"),{options:e}=await(0,c.fire)("filter:api.options",{options:e}),e.data&&(e.body=e.data,delete e.data);const r=await fetch(u,e),{headers:d}=r;if(d.get("x-redirect"))return l({url:d.get("x-redirect"),...e});const b=d.get("content-type"),M=b&&b.startsWith("application/json");let E;if(e.method!=="HEAD"&&(M?E=await r.json():E=await r.text()),!r.ok){let v=r.statusText;if(E){const x=M&&(E.status?.message||E.error||""),C=typeof E=="string"?E:r.statusText||`[[error:api.${r.status}]]`;v=M&&x?x:C}const p=new Error(v);throw p.status=r.status,p}return M&&E&&E.hasOwnProperty("status")&&E.hasOwnProperty("response")?E.response:E}function P(e,u,r){return i({url:e+(u&&Object.keys(u).length?"?"+$.param(u):"")},r)}function t(e,u,r){return i({url:e+(u&&Object.keys(u).length?"?"+$.param(u):""),method:"HEAD"},r)}function n(e,u,r,d){return I("POST",e,u,r,d)}function f(e,u,r,d){return I("PATCH",e,u,r,d)}function g(e,u,r,d){return I("PUT",e,u,r,d)}function A(e,u,r,d){return I("DELETE",e,u,r,d)}function I(e,u,r,d,b){return typeof d=="function"&&(b=d,d={}),i({url:u,method:e,data:r,headers:{"x-csrf-token":config.csrf_token,...d}},b)}},5303(D,O,s){s.r(O),s.d(O,{alert:()=>y,confirm:()=>w,dialog:()=>a,prompt:()=>_,promptPassword:()=>i});var c=s(3530),h=s.n(c),o=s(7459),m=s.n(o);c.setDefaults({locale:config.userLang}),o.translateKeys(["modules:bootbox.ok","modules:bootbox.cancel","modules:bootbox.confirm"]).then(t=>{c.addLocale(config.userLang,{OK:t[0],CANCEL:t[1],CONFIRM:t[2]}
1),c.setLocale(config.userLang)});async function a(t){const[n,f,g]=await Promise.all([o.translate(t.title||""),l(t)||"",P(t.buttons)]);return c.dialog({...t,title:n,message:f,buttons:g})}async function y(t,n){const[f,g]=await Promise.all([t&&t.title?o.translate(t.title):null,l(t)]);return n=typeof n=="function"?n:t.callback,c.alert({...t,title:f,message:g,callback:n})}async function w(t,n){const[f,g]=await Promise.all([t&&t.title?o.translate(t.title):null,l(t)]);return n=typeof n=="function"?n:t.callback,c.confirm({...t,title:f,message:g,callback:n})}async function _(t,n){const[f,g]=await Promise.all([o.translate(typeof t=="string"?t:t.title),t&&t.message?l(t):null]);return n=typeof n=="function"?n:t.callback,c.prompt({...t,title:f,message:g,callback:n})}async function i(t){return typeof t=="string"&&(t={title:t}),t=t||{title:"[[user:current-password]]",message:"[[user:emailUpdate.password-challenge]]"},await new Promise(n=>{_({...t,inputType:"password",required:!0,value:"",callback:n})})}function l(t){const n=t&&t.message?t.message:t;return n instanceof jQuery?n:o.translate(n||"")}async function P(t){if(!Object.keys(t||{}).length)return;const n=Object.values(t);return await Promise.all(n.map(async f=>({...f,label:await o.translateKey(f.label)})))}},8636(D,O,s){var c;c=(function(){function h(){this._store={},this._keys=[]}h.prototype.isMock=!0,h.prototype.setItem=function(a,y){a=String(a),this._keys.indexOf(a)===-1&&this._keys.push(a),this._store[a]=y},h.prototype.getItem=function(a){return a=String(a),this._keys.indexOf(a)===-1?null:this._store[a]},h.prototype.removeItem=function(a){a=String(a),this._keys=this._keys.filter(function(y){return y!==a}),this._store[a]=null},h.prototype.clear=function(){this._keys=[],this._store={}},h.prototype.key=function(a){return a=parseInt(a,10)||0,this._keys[a]},Object.defineProperty&&Object.defineProperty(h.prototype,"length",{get:function(){return this._keys.length}});let o;const m=Date.now().toString();try{if(o=window.localStorage,o.setItem(m,m),o.getItem(m)!==m)throw Error("localStorage behaved unexpectedly");return o.removeItem(m),o}catch(a){console.warn(a),console.warn("localStorage failed, falling back on sessionStorage");try{if(o=window.sessionStorage,o.setItem(m,m),o.getItem(m)!==m)throw Error("sessionStorage behaved unexpectedly");return o.removeItem(m),o}catch(y){return console.warn(y),console.warn("sessionStorage failed, falling back on memory storage"),new h}}}).call(O,s,O,D),c!==void 0&&(D.exports=c)}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.