PageSourceSearch

https://mistarg.cn/assets/modules/flags.e12fb9c89b654dddf4d4.min.js

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

1"use strict";(self.webpackChunknodebb=self.webpackChunknodebb||[]).push([[1091,6574,18314,22067,34271,43602,47282,49897,87212,99127],{49897(D,_,l){l.r(_),l.d(_,{del:()=>p,get:()=>A,head:()=>e,patch:()=>c,post:()=>t,put:()=>h});var i=l(91749),E=l.n(i),o=l(65303),d=l(17459),a=l.n(d),f=l(68636),O=l.n(f);const g=config.relative_path+"/api/v3";async function y(n,s){if(n.url=n.url.startsWith("/api")?config.relative_path+n.url:g+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 s=="function"){m(n).then(r=>s(null,r),r=>s(r));return}try{return await m(n)}catch(r){if(r.message===await d.translate("[[error:api.401]]",config.userLang)){const{url:u}=await(0,i.fire)("filter:admin.reauth",{url:"login"}),w=await d.translate("[[error:api.reauth-required]]",config.userLang);(0,o.confirm)(w,M=>{M&&(f.setItem("location-hash",window.location.hash),ajaxify.go(u))})}throw r}}async function m(n){const{url:s}=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,i.fire)("filter:api.options",{options:n}),n.data&&(n.body=n.data,delete n.data);const r=await fetch(s,n),{headers:u}=r;if(u.get("x-redirect"))return m({url:u.get("x-redirect"),...n});const w=u.get("content-type"),M=w&&w.startsWith("application/json");let P;if(n.method!=="HEAD"&&(M?P=await r.json():P=await r.text()),!r.ok){if(P){const I=M&&(P.status?.message||P.error||""),L=typeof P=="string"?P:r.statusText||`[[error:api.${r.status}]]`;throw new Error(M&&I?I:L)}throw new Error(r.statusText)}return M&&P&&P.hasOwnProperty("status")&&P.hasOwnProperty("response")?P.response:P}function A(n,s,r){return y({url:n+(s&&Object.keys(s).length?"?"+$.param(s):"")},r)}function e(n,s,r){return y({url:n+(s&&Object.keys(s).length?"?"+$.param(s):""),method:"HEAD"},r)}function t(n,s,r,u){return v("POST",n,s,r,u)}function c(n,s,r,u){return v("PATCH",n,s,r,u)}function h(n,s,r,u){return v("PUT",n,s,r,u)}function p(n,s,r,u){return v("DELETE",n,s,r,u)}function v(n,s,r,u,w){return typeof u=="function"&&(w=u,u={}),y({url:s,method:n,data:r,headers:{"x-csrf-token":config.csrf_token,...u}},w)}},6574(D,_,l){var i,E;i=[l(91749),l(52473),l(49897),l(29930)],E=(function(o,d,a,f){const O={};let g,y,m;O.showFlagModal=function(t){t.remote=URL.canParse(t.id)?new URL(t.id).hostname:!1,app.parseAndTranslate("modals/flag",t,function(c){g=c,g.on("hidden.bs.modal",function(){g.remove()}),y=g.find("#flag-post-commit"),m=g.find("#flag-reason-custom"),g.on("click",'input[name="flag-reason"]',function(){$(this).attr("id")==="flag-reason-other"?(m.removeAttr("disabled"),m.val().length||y.attr("disabled",!0)):(m.attr("disabled",!0),y.removeAttr("disabled"))}),y.on("click",function(){const h=$('input[name="flag-reason"]:checked');let p=h.val();h.attr("id")==="flag-reason-other"&&(p=m.val());const v=$('input[name="flag-notify-remote"]').is(":checked");A(t.type,t.id,p,v)}),g.on("click","#flag-reason-other",function(){m.focus()}),g.modal("show"),o.fire("action:flag.showModal",{modalEl:g,type:t.type,id:t.id,remote:t.remote}),g.find("#flag-reason-custom").on("keyup blur change",e)})},O.resolve=function(t){a.put(`/flags/${t}`,{state:"resolved"}).then(()=>{f.success("[[flags:resolved]]"),o.fire("action:flag.resolved",{flagId:t})}).catch(f.error)},O.rescind=function(t){a.del(`/flags/${t}/report`).then(()=>{f.success("[[flags:report-rescinded]]"),o.fire("action:flag.rescinded",{flagId:t})}).catch(f.error)},O.purge=function(t){a.del(`/flags/${t}`).then(()=>{f.success("[[flags:purged]]"),o.fire("action:flag.purged",{flagId:t})}).catch(f.error)};function A(t,c,h,p=!1){if(!t||!c||!h)return;const v={type:t,id:c,reason:h,notifyRemote:p};a.post("/flags",v,function(n,s){if(n)return f.error(n);if(g.modal("hide"),f.success("[[flags:modal-submit-success]]"),t==="post"){const r=d.get("post","pid",c);r.find('[component="post/flag"]').addClass("hidden").parent().attr("hidden",""),r.find('[component="post/already-flagged"]').removeClass("hidden").parent().attr("hidden",null)}o.fire("action:flag.create",{flagId:s,data:v})})}function e(){g.find("#flag-reason-custom").val()?y.removeAttr("disabled"):y.attr("disabled",!0)}return O}).apply(_,i),E!==void 0&&(D.exports=E)},65303(D,_,l){l.r(_),l.d(_,{alert:()=>f,confirm:()=>O,dialog:()=>a,prompt:()=>g,promptPassword:()=>y});var i=l(33530),E=l.n(i),o=l(17459),d=l.n(o);i.setDefaults({locale:config.userLang}),o.translateKeys(["modules:bootbox.ok","modules:bootbox.cancel","modules:bootbox.confirm"]).then(e=>{i.addLocale(config.userLang,{OK:e[0],CANCEL:e[1],CONFIRM:e[2]}),i.setLocale(config.userLang)});async function a(e){const[t,c,h]=await Promise.all([o.translate(e.title||""),m(e)||"",A(e.buttons)]);return i.dialog({...e,title:t,message:c,buttons:h})}async function f(e,t){const[c,h]=await Promise.all([e&&e.title?o.translate(e.title):null,m(e)]);return t=typeof t=="function"?t:e.callback,i.alert({...e,title:c,message:h,callback:t})}async function O(e,t){const[c,h]=await Promise.all([e&&e.title?o.translate(e.title):null,m(e)]);return t=typeof t=="function"?t:e.callback,i.confirm({...e,title:c,message:h,callback:t})}async function g(e,t){const[c,h]=await Promise.all([o.translate(typeof e=="string"?e:e.title),e&&e.message?m(e):null]);return t=typeof t=="function"?t:e.callback,i.prompt({...e,title:c,message:h,callback:t})}async function y(e){return typeof e=="string"&&(e={title:e}),e=e||{title:"[[user:current-password]]",message:"[[user:emailUpdate.password-challenge]]"},await new Promise(t=>{g({...e,inputType:"password",required:!0,value:"",callback:t})})}function m(e){const t=e&&e.message?e.message:e;return t instanceof jQuery?t:o.translate(t||"")}async function A(e){if(!Object.keys(e||{}).length)return;const t=Object.values(e);return await Promise.all(t.map(async c=>({...c,label:await o.translateKey(c.label)})))}},68636(D,_,l){var i;i=(function(){function E(){this._store={},this._keys=[]}E.prototype.isMock=!0,E.prototype.setItem=function(a,f){a=String(a),this._keys.indexOf(a)===-1&&this._keys.push(a),this._store[a]=f},E.prototype.getItem=function(a){return a=String(a),this._keys.indexOf(a)===-1?null:this._store[a]},E.prototype.removeItem=function(a){a=String(a),this._keys=this._keys.filter(function(f){return f!==a}),this._store[a]=null},E.prototype.clear=function(){this._keys=[],this._store={}},E.prototype.key=function(a){return a=parseInt(a,10)||0,this._keys[a]},Object.defineProperty&&Object.defineProperty(E.prototype,"length",{get:function(){return this._keys.length}});let o;const d=Date.now().toString();try{if(o=window.localStorage,o.setItem(d,d),o.getItem(d)!==d)throw Error("localStorage behaved unexpectedly");return o.removeItem(d),o}
1catch(a){console.warn(a),console.warn("localStorage failed, falling back on sessionStorage");try{if(o=window.sessionStorage,o.setItem(d,d),o.getItem(d)!==d)throw Error("sessionStorage behaved unexpectedly");return o.removeItem(d),o}catch(f){return console.warn(f),console.warn("sessionStorage failed, falling back on memory storage"),new E}}}).call(_,l,_,D),i!==void 0&&(D.exports=i)}}]);

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.