PageSourceSearch

https://brownsboard.com/assets/modules/accounts-delete.542d89ad7d60d839d5ce.min.js

js brownsboard.com collected 2026-10-09 22:42:50 UTC 5,693 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunknodebb=self.webpackChunknodebb||[]).push([[1091,2067,3602,4271,5719,7212,8314,9127,9897],{7283(D,y,i){var l,d;l=[i(9897),i(5303),i(9930)],d=(function(o,c,a){const f={};f.account=function(g,h){w(g,"[[user:delete-this-account-confirm]]","/account","[[user:account-deleted]]",h)},f.content=function(g,h){w(g,"[[user:delete-account-content-confirm]]","/content","[[user:account-content-deleted]]",h)},f.purge=function(g,h){w(g,"[[user:delete-all-confirm]]","","[[user:account-deleted]]",h)};function w(g,h,_,I,t){c.confirm(h,function(r){r&&o.del(`/users/${encodeURIComponent(g)}${_}`,{}).then(()=>{if(a.success(I),typeof t=="function")return t()}).catch(a.error)})}return f}).apply(y,l),d!==void 0&&(D.exports=d)},9897(D,y,i){i.r(y),i.d(y,{del:()=>A,get:()=>I,head:()=>t,patch:()=>m,post:()=>r,put:()=>P});var l=i(1749),d=i.n(l),o=i(5303),c=i(7459),a=i.n(c),f=i(8636),w=i.n(f);const g=config.relative_path+"/api/v3";async function h(e,s){if(e.url=e.url.startsWith("/api")?config.relative_path+e.url:g+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 s=="function"){_(e).then(n=>s(null,n),n=>s(n));return}try{return await _(e)}catch(n){if(n.status===401){const{url:u}=await(0,l.fire)("filter:admin.reauth",{url:"login"}),O=await c.translate("[[error:api.reauth-required]]",config.userLang);(0,o.confirm)(O,M=>{M&&(f.setItem("location-hash",window.location.hash),ajaxify.go(u))})}throw n}}async function _(e){const{url:s}=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,l.fire)("filter:api.options",{options:e}),e.data&&(e.body=e.data,delete e.data);const n=await fetch(s,e),{headers:u}=n;if(u.get("x-redirect"))return _({url:u.get("x-redirect"),...e});const O=u.get("content-type"),M=O&&O.startsWith("application/json");let E;if(e.method!=="HEAD"&&(M?E=await n.json():E=await n.text()),!n.ok){let C=n.statusText;if(E){const T=M&&(E.status?.message||E.error||""),x=typeof E=="string"?E:n.statusText||`[[error:api.${n.status}]]`;C=M&&T?T:x}const L=new Error(C);throw L.status=n.status,L}return M&&E&&E.hasOwnProperty("status")&&E.hasOwnProperty("response")?E.response:E}function I(e,s,n){return h({url:e+(s&&Object.keys(s).length?"?"+$.param(s):"")},n)}function t(e,s,n){return h({url:e+(s&&Object.keys(s).length?"?"+$.param(s):""),method:"HEAD"},n)}function r(e,s,n,u){return v("POST",e,s,n,u)}function m(e,s,n,u){return v("PATCH",e,s,n,u)}function P(e,s,n,u){return v("PUT",e,s,n,u)}function A(e,s,n,u){return v("DELETE",e,s,n,u)}function v(e,s,n,u,O){return typeof u=="function"&&(O=u,u={}),h({url:s,method:e,data:n,headers:{"x-csrf-token":config.csrf_token,...u}},O)}},5303(D,y,i){i.r(y),i.d(y,{alert:()=>f,confirm:()=>w,dialog:()=>a,prompt:()=>g,promptPassword:()=>h});var l=i(3530),d=i.n(l),o=i(7459),c=i.n(o);l.setDefaults({locale:config.userLang}),o.translateKeys(["modules:bootbox.ok","modules:bootbox.cancel","modules:bootbox.confirm"]).then(t=>{l.addLocale(config.userLang,{OK:t[0],CANCEL:t[1],CONFIRM:t[2]}),l.setLocale(config.userLang)});async function a(t){const[r,m,P]=await Promise.all([o.translate(t.title||""),_(t)||"",I(t.buttons)]);return l.dialog({...t,title:r,message:m,buttons:P})}async function f(t,r){const[m,P]=await Promise.all([t&&t.title?o.translate(t.title):null,_(t)]);return r=typeof r=="function"?r:t.callback,l.alert({...t,title:m,message:P,callback:r})}async function w(t,r){const[m,P]=await Promise.all([t&&t.title?o.translate(t.title):null,_(t)]);return r=typeof r=="function"?r:t.callback,l.confirm({...t,title:m,message:P,callback:r})}async function g(t,r){const[m,P]=await Promise.all([o.translate(typeof t=="string"?t:t.title),t&&t.message?_(t):null]);return r=typeof r=="function"?r:t.callback,l.prompt({...t,title:m,message:P,callback:r})}async function h(t){return typeof t=="string"&&(t={title:t}),t=t||{title:"[[user:current-password]]",message:"[[user:emailUpdate.password-challenge]]"},await new Promise(r=>{g({...t,inputType:"password",required:!0,value:"",callback:r})})}function _(t){const r=t&&t.message?t.message:t;return r instanceof jQuery?r:o.translate(r||"")}async function I(t){if(!Object.keys(t||{}).length)return;const r=Object.values(t);return await Promise.all(r.map(async m=>({...m,label:await o.translateKey(m.label)})))}},8636(D,y,i){var l;l=(function(){function d(){this._store={},this._keys=[]}d.prototype.isMock=!0,d.prototype.setItem=function(a,f){a=String(a),this._keys.indexOf(a)===-1&&this._keys.push(a),this._store[a]=f},d.prototype.getItem=function(a){return a=String(a),this._keys.indexOf(a)===-1?null:this._store[a]},d.prototype.removeItem=function(a){a=String(a),this._keys=this._keys.filter(function(f){return f!==a}),this._store[a]=null},d.prototype.clear=function(){this._keys=[],this._store={}},d.prototype.key=function(a){return a=parseInt(a,10)||0,this._keys[a]},Object.defineProperty&&Object.defineProperty(d.prototype,"length",{get:function(){return this._keys.length}});let o;const c=Date.now().toString();try{if(o=window.localStorage,o.setItem(c,c),o.getItem(c)!==c)throw Error("localStorage behaved unexpectedly");return o.removeItem(c),o}
1catch(a){console.warn(a),console.warn("localStorage failed, falling back on sessionStorage");try{if(o=window.sessionStorage,o.setItem(c,c),o.getItem(c)!==c)throw Error("sessionStorage behaved unexpectedly");return o.removeItem(c),o}catch(f){return console.warn(f),console.warn("sessionStorage failed, falling back on memory storage"),new d}}}).call(y,i,y,D),l!==void 0&&(D.exports=l)}}]);

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.