PageSourceSearch

https://mistarg.cn/assets/admin/settings-notifications.9e6a89eb6eb3f9428158.min.js

js mistarg.cn collected 2026-10-06 13:19:38 UTC 7,705 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunknodebb=self.webpackChunknodebb||[]).push([[1091,13417,18314,22067,34271,43602,49897,58087,87212,99127],{29821(p,_,s){var c,g;c=[s(34405)],g=(function(u){const f={};return f.init=function(){const o=$('[data-field="welcomeUid"]');u.user(o,function(E,A){setTimeout(function(){o.val(A.item.user.uid)})})},f}).apply(_,c),g!==void 0&&(p.exports=g)},49897(p,_,s){s.r(_),s.d(_,{del:()=>d,get:()=>v,head:()=>t,patch:()=>l,post:()=>e,put:()=>i});var c=s(91749),g=s.n(c),u=s(65303),f=s(17459),o=s.n(f),E=s(68636),A=s.n(E);const y=config.relative_path+"/api/v3";async function D(n,a){if(n.url=n.url.startsWith("/api")?config.relative_path+n.url:y+n.url,n.headers=n.headers||{},n.headers["x-return-to"]||(n.headers["x-return-to"]=`${window.location.pathname.slice(config.relative_path.length)}${window.location.search}`),typeof a=="function"){w(n).then(r=>a(null,r),r=>a(r));return}try{return await w(n)}catch(r){if(r.message===await f.translate("[[error:api.401]]",config.userLang)){const{url:h}=await(0,c.fire)("filter:admin.reauth",{url:"login"}),O=await f.translate("[[error:api.reauth-required]]",config.userLang);(0,u.confirm)(O,I=>{I&&(E.setItem("location-hash",window.location.hash),ajaxify.go(h))})}throw r}}async function w(n){const{url:a}=n;delete n.url,n.data&&!(n.data instanceof FormData)&&(n.data=JSON.stringify(n.data||{}),n.headers["content-type"]="application/json; charset=utf-8"),{options:n}=await(0,c.fire)("filter:api.options",{options:n}),n.data&&(n.body=n.data,delete n.data);const r=await fetch(a,n),{headers:h}=r;if(h.get("x-redirect"))return w({url:h.get("x-redirect"),...n});const O=h.get("content-type"),I=O&&O.startsWith("application/json");let P;if(n.method!=="HEAD"&&(I?P=await r.json():P=await r.text()),!r.ok){if(P){const M=I&&(P.status?.message||P.error||""),T=typeof P=="string"?P:r.statusText||`[[error:api.${r.status}]]`;throw new Error(I&&M?M:T)}throw new Error(r.statusText)}return I&&P&&P.hasOwnProperty("status")&&P.hasOwnProperty("response")?P.response:P}function v(n,a,r){return D({url:n+(a&&Object.keys(a).length?"?"+$.param(a):"")},r)}function t(n,a,r){return D({url:n+(a&&Object.keys(a).length?"?"+$.param(a):""),method:"HEAD"},r)}function e(n,a,r,h){return m("POST",n,a,r,h)}function l(n,a,r,h){return m("PATCH",n,a,r,h)}function i(n,a,r,h){return m("PUT",n,a,r,h)}function d(n,a,r,h){return m("DELETE",n,a,r,h)}function m(n,a,r,h,O){return typeof h=="function"&&(O=h,h={}),D({url:a,method:n,data:r,headers:{"x-csrf-token":config.csrf_token,...h}},O)}},34405(p,_,s){var c,g;c=[s(49897),s(29930),s(36e3),s(9787),s(35786)],g=(function(u,f,{Textcomplete:o},{TextareaEditor:E},{ContenteditableEditor:A}){const y={},D={delay:200,appendTo:null};y.init=t=>{const e={...D,...t},{input:l,onSelect:i}=e;app.loadJQueryUI(function(){l.autocomplete({position:w(),...e,open:function(){$(this).autocomplete("widget").css("z-index",100005)},select:function(d,m){v(l,i,d,m)}})})},y.user=function(t,e,l){typeof e=="function"&&(l=e,e={}),e=e||{},y.init({input:t,onSelect:l,source:(i,d)=>{e.query=i.term,u.get("/api/users",e,function(m,n){if(m)return f.error(m);if(n&&n.users){const a=n.users.map(function(r){return r&&{label:r.username,value:r.username,user:{uid:r.uid,name:r.username,slug:r.userslug,username:r.username,userslug:r.userslug,displayname:r.displayname,picture:r.picture,banned:r.banned,"icon:text":r["icon:text"],"icon:bgColor":r["icon:bgColor"]}}});d(a)}$(".ui-autocomplete a").attr("data-ajaxify","false")})}})},y.group=function(t,e){y.init({input:t,onSelect:e,source:(l,i)=>{u.get("/groups",{query:l.term},function(d,m){if(d)return f.error(d);if(m&&m.groups.length){const n=m.groups.map(function(a){return a&&{label:a.name,value:a.name,group:a}});i(n)}$(".ui-autocomplete a").attr("data-ajaxify","false")})}})},y.tag=function(t,e){y.init({input:t,onSelect:e,delay:100,source:(l,i)=>{socket.emit("topics.autocompleteTags",{query:l.term,cid:ajaxify.data.cid||0},function(d,m){if(d)return f.error(d);m&&i(m),$(".ui-autocomplete a").attr("data-ajaxify","false")})}})};function w(){const t=document.querySelector("html").getAttribute("data-dir")==="rtl"?"right":"left";return{my:`${t} top`,at:`${t} bottom`,collision:"none"}}function v(t,e,l,i){e=e||function(){};const d=jQuery.Event("keypress");d.which=13,d.keyCode=13,setTimeout(function(){t.trigger(d)},100),e(l,i)}return y.setup=function({element:t,strategies:e,options:l}){const i=t.get(0);if(!i)return;let d;if(i.nodeName==="TEXTAREA"||i.nodeName==="INPUT"?d=new E(i):i.nodeName==="DIV"&&i.getAttribute("contenteditable")==="true"&&(d=new A(i)),!d)throw new Error("unknown target element type");i.setAttribute("dir",document.querySelector("html").getAttribute("data-dir"));const m=new o(d,e,{dropdown:l});return m.on("rendered",function(){m.dropdown.items.length&&m.dropdown.items[0].activate()}),m},y}).apply(_,c),g!==void 0&&(p.exports=g)},65303(p,_,s){s.r(_),s.d(_,{alert:()=>E,confirm:()=>A,dialog:()=>o,prompt:()=>y,promptPassword:()=>D});var c=s(33530),g=s.n(c),u=s(17459),f=s.n(u);c.setDefaults({locale:config.userLang}),u.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 o(t){const[e,l,i]=await Promise.all([u.translate(t.title||""),w(t)||"",v(t.buttons)]);return c.dialog({...t,title:e,message:l,buttons:i})}async function E(t,e){const[l,i]=await Promise.all([t&&t.title?u.translate(t.title):null,w(t)]);return e=typeof e=="function"?e:t.callback,c.alert({...t,title:l,message:i,callback:e})}async function A(t,e){const[l,i]=await Promise.all([t&&t.title?u.translate(t.title):null,w(t)]);return e=typeof e=="function"?e:t.callback,c.confirm({...t,title:l,message:i,callback:e})}async function y(t,e){const[l,i]=await Promise.all([u.translate(typeof t=="string"?t:t.title),t&&t.message?w(t):null]);return e=typeof e=="function"?e:t.callback,c.prompt({...t,title:l,message:i,callback:e})}async function D(t){return typeof t=="string"&&(t={title:t}),t=t||{title:"[[user:current-password]]",message:"[[user:emailUpdate.password-challenge]]"},await new Promise(e=>{y({...t,inputType:"password",required:!0,value:"",callback:e})})}function w(t){const e=t&&t.message?t.message:t;return e instanceof jQuery?e:u.translate(e||"")}async function v(t){if(!Object.keys(t||{}).length)return;const e=Object.values(t);return await Promise.all(e.map(async l=>({...l,label:await u.translateKey(l.label)})))}},68636(p,_,s){var c;c=(function(){function g(){this._store={},this._keys=[]}g.prototype.isMock=!0,g.prototype.setItem=function(o,E){o=String(o),this._keys.indexOf(o)===-1&&this._keys.push(o),this._store[o]=E},g.prototype.getItem=function(o){return o=String(o),this._keys.indexOf(o)===-1?null:this._store[o]},g.prototype.removeItem=function(o){o=String(o),this._keys=this._keys.filter(function(E){return E!==o}),this._store[o]=null},g.prototype.clear=function(){this._keys=[],this._store={}},g.prototype.key=function(o){return o=parseInt(o,10)||0,this._keys[o]},Object.defineProperty&&Object.defineProperty(g.prototype,"length",{get:function(){return this._keys.length}});let u;const f=Date.now().toString();try{if(u=window.localStorage,u.setItem(f,f),u.getItem(f)!==f)throw Error("localStorage behaved unexpectedly");return u.removeItem(f),u}catch(o){console.warn(o),console.warn("localStorage failed, falling back on sessionStorage");try{if(u=window.sessionStorage,u.setItem(f,f),u.getItem(f)!==f)throw Error("sessionStorage behaved unexpectedly");return u.removeItem(f),u}catch(E){return console.warn(E),console.warn("sessionStorage failed, falling back on memory storage"),new g}}}).call(_,s,_,p),c!==void 0&&(p.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.