PageSourceSearch

https://dalathoa.com/assets/forum/flags-detail.28758b4b36ec3e4c41fa.min.js

js dalathoa.com collected 2026-10-08 19:28:55 UTC 7,852 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunknodebb=self.webpackChunknodebb||[]).push([[1091,5719,34271,36228,42289,99127],{10281(x,b,o){var m,g;m=[o(52473),o(17459),o(81335),o(28061),o(47283),o(49897),o(33530),o(29930)],g=(function(y,j,E,f,d,s,a,r){const i={};i.init=function(){$("#state").val(ajaxify.data.state).removeAttr("disabled"),$("#assignee").val(ajaxify.data.assignee).removeAttr("disabled"),$("#content > div").on("click","[data-action]",function(){const c=this.getAttribute("data-action"),t=$(this).parents("[data-uid]").attr("data-uid"),n=document.getElementById("note");switch(c){case"assign":$("#assignee").val(app.user.uid);case"update":{const e=$("#attributes").serializeArray().reduce((u,h)=>(u[h.name]=h.value,u),{});s.put(`/flags/${ajaxify.data.flagId}`,e).then(({history:u})=>{r.success("[[flags:updated]]"),i.reloadHistory(u)}).catch(r.error);break}case"addEditNote":{const e=this.closest('[component="flag/note"]');let u,h;if(e){u=e.getAttribute("data-datetime");const A=e.getAttribute("data-index");h=ajaxify.data.notes[A].content}a.prompt({title:`[[flags:${u?"edit":"add"}-note]]`,inputType:"textarea",rows:3,value:h,callback:A=>{A&&s.post(`/flags/${ajaxify.data.flagId}/notes`,{note:A,datetime:u}).then(l=>{r.success("[[flags:note-added]]"),i.reloadNotes(l.notes),i.reloadHistory(l.history)}).catch(r.error)}});break}case"appendNote":s.post(`/flags/${ajaxify.data.flagId}/notes`,{note:n.value,datetime:parseInt(n.getAttribute("data-datetime"),10)}).then(e=>{r.success("[[flags:note-added]]"),i.reloadNotes(e.notes),i.reloadHistory(e.history),n.removeAttribute("data-datetime")}).catch(r.error);break;case"delete-note":{const e=parseInt(this.closest("[data-datetime]").getAttribute("data-datetime"),10);a.confirm("[[flags:delete-note-confirm]]",function(u){u&&s.del(`/flags/${ajaxify.data.flagId}/notes/${e}`,{}).then(h=>{r.success("[[flags:note-deleted]]"),i.reloadNotes(h.notes),i.reloadHistory(h.history)}).catch(r.error)});break}case"chat":o.e(92619).then(function(){var e=[o(92619)];(function(u){u.newChat(t)}).apply(null,e)}).catch(o.oe);break;case"ban":f.banAccount(t,ajaxify.refresh);break;case"unban":f.unbanAccount(t);break;case"mute":f.muteAccount(t,ajaxify.refresh);break;case"unmute":f.unmuteAccount(t);break;case"delete-account":d.account(t,ajaxify.refresh);break;case"delete-content":d.content(t,ajaxify.refresh);break;case"delete-all":d.purge(t,ajaxify.refresh);break;case"delete-post":p("delete",s.del,`/posts/${ajaxify.data.target.pid}/state`);break;case"purge-post":p("purge",s.del,`/posts/${ajaxify.data.target.pid}`);break;case"restore-post":p("restore",s.put,`/posts/${ajaxify.data.target.pid}/state`);break;case"delete-flag":{a.confirm("[[flags:delete-flag-confirm]]",function(e){e&&s.del(`/flags/${ajaxify.data.flagId}`,{}).then(()=>{r.success("[[flags:flag-deleted]]"),ajaxify.go("flags")}).catch(r.error)});break}}})};function p(c,t,n){j.translate("[[topic:post-"+c+"-confirm]]",function(e){a.confirm(e,function(u){u&&t(n).then(ajaxify.refresh).catch(r.error)})})}return i.reloadNotes=function(c){ajaxify.data.notes=c,E.render("flags/detail",{notes:c},"notes").then(function(t){const n=y.get("flag/notes");n.empty(),n.html(t),n.find("span.timeago").timeago()})},i.reloadHistory=function(c){app.parseAndTranslate("flags/detail","history",{history:c},function(t){const n=y.get("flag/history");n.empty(),n.html(t),n.find("span.timeago").timeago()})},i}).apply(b,m),g!==void 0&&(x.exports=g)},47283(x,b,o){var m,g;m=[o(49897),o(33530),o(29930)],g=(function(y,j,E){const f={};f.account=function(s,a){d(s,"[[user:delete-this-account-confirm]]","/account","[[user:account-deleted]]",a)},f.content=function(s,a){d(s,"[[user:delete-account-content-confirm]]","/content","[[user:account-content-deleted]]",a)},f.purge=function(s,a){d(s,"[[user:delete-all-confirm]]","","[[user:account-deleted]]",a)};function d(s,a,r,i,p){j.confirm(a,function(c){c&&y.del(`/users/${encodeURIComponent(s)}${r}`,{}).then(()=>{if(E.success(i),typeof p=="function")return p()}).catch(E.error)})}return f}).apply(b,m),g!==void 0&&(x.exports=g)},28061(x,b,o){var m,g;m=[o(49897),o(33530),o(29930),o(17459)],g=(function(y,j,E,f){const d={};d.banAccount=function(a,r){a=a||ajaxify.data.theirid,s({tpl:"modals/temporary-ban",title:"[[user:ban-account]]",type:"ban",onSubmit:function(i){y.put("/users/"+encodeURIComponent(a)+"/ban",{until:i.until,reason:i.reason||""}).then(()=>
1{if(typeof r=="function")return r();ajaxify.refresh()}).catch(E.error)}})},d.unbanAccount=function(a){s({tpl:"modals/unban",title:"[[user:unban-account]]",type:"ban",onSubmit:function(r){y.del("/users/"+encodeURIComponent(a)+"/ban",{reason:r.reason||""}).then(()=>{ajaxify.refresh()}).catch(E.error)}})},d.muteAccount=function(a,r){a=a||ajaxify.data.theirid,s({tpl:"modals/temporary-mute",title:"[[user:mute-account]]",type:"mute",onSubmit:function(i){y.put("/users/"+a+"/mute",{until:i.until,reason:i.reason||""}).then(()=>{if(typeof r=="function")return r();ajaxify.refresh()}).catch(E.error)}})},d.unmuteAccount=function(a){s({tpl:"modals/unmute",title:"[[user:unmute-account]]",onSubmit:function(r){y.del("/users/"+a+"/mute",{reason:r.reason||""}).then(()=>{ajaxify.refresh()}).catch(E.error)}})};async function s(a){const r=await socket.emit("user.getCustomReasons",{type:a.type||""}),i=await app.parseAndTranslate(a.tpl,{reasons:r}),p=j.dialog({title:a.title,message:i,show:!0,onEscape:!0,buttons:{close:{label:"[[global:close]]",className:"btn-link"},submit:{label:a.title,callback:function(){const c=p.find("form").serializeArray().reduce(function(t,n){return t[n.name]=n.value,t},{});if(Object.hasOwn(c,"length")){const n=parseInt(c.unit,10)?24:1;c.until=c.length>0?Date.now()+c.length*36e5*n:0}else c.until=0;a.onSubmit(c)}}}});p.find("[data-key]").on("click",function(){const c=r.find(t=>String(t.key)===$(this).attr("data-key"));c&&c.body&&p.find('[name="reason"]').val(f.unescape(c.body))})}return d.throwModal=s,d}).apply(b,m),g!==void 0&&(x.exports=g)},49897(x,b,o){o.r(b),o.d(b,{del:()=>c,get:()=>s,head:()=>a,patch:()=>i,post:()=>r,put:()=>p});var m=o(91749),g=o.n(m),y=o(33530),j=o.n(y);const E=config.relative_path+"/api/v3";async function f(t,n){if(t.url=t.url.startsWith("/api")?config.relative_path+t.url:E+t.url,typeof n=="function"){d(t).then(e=>n(null,e),e=>n(e));return}try{return await d(t)}catch(e){if(e.message==="A valid login session was not found. Please log in and try again."){const{url:u}=await(0,m.fire)("filter:admin.reauth",{url:"login"});return(0,y.confirm)("[[error:api.reauth-required]]",h=>{h&&ajaxify.go(u)})}throw e}}async function d(t){const{url:n}=t;delete t.url,t.data&&!(t.data instanceof FormData)&&(t.data=JSON.stringify(t.data||{}),t.headers["content-type"]="application/json; charset=utf-8"),{options:t}=await(0,m.fire)("filter:api.options",{options:t}),t.data&&(t.body=t.data,delete t.data);const e=await fetch(n,t),{headers:u}=e;if(u.get("x-redirect"))return d({url:u.get("x-redirect"),...t});const h=u.get("content-type"),A=h&&h.startsWith("application/json");let l;if(t.method!=="HEAD"&&(A?l=await e.json():l=await e.text()),!e.ok){if(l){const D=A&&(l.status?.message||l.error||"");throw new Error(A&&D?D:l)}throw new Error(e.statusText)}return A&&l&&l.hasOwnProperty("status")&&l.hasOwnProperty("response")?l.response:l}function s(t,n,e){return f({url:t+(n&&Object.keys(n).length?"?"+$.param(n):"")},e)}function a(t,n,e){return f({url:t+(n&&Object.keys(n).length?"?"+$.param(n):""),method:"HEAD"},e)}function r(t,n,e){return f({url:t,method:"POST",data:n,headers:{"x-csrf-token":config.csrf_token}},e)}function i(t,n,e){return f({url:t,method:"PATCH",data:n,headers:{"x-csrf-token":config.csrf_token}},e)}function p(t,n,e){return f({url:t,method:"PUT",data:n,headers:{"x-csrf-token":config.csrf_token}},e)}function c(t,n,e){return f({url:t,method:"DELETE",data:n,headers:{"x-csrf-token":config.csrf_token}},e)}}}]);

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.