PageSourceSearch

https://cdn.archidekt.com/_next/static/chunks/pages/moderation/create-global-notification-7cf758f880a568f9.js

js archidekt.com collected 2026-09-25 18:52:37 UTC 3,384 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[671],{5761:e=>{e.exports={flex:"createGlobalNotification_flex__BYbDB",controls:"createGlobalNotification_controls__neOBE",container:"createGlobalNotification_container__qYqzT",content:"createGlobalNotification_content__zjfpi",form:"createGlobalNotification_form__nE37B",input:"createGlobalNotification_input__qF85l"}},44641:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var a=n(81639),o=n(36601),r=n(64708);class i extends o.B{unpackComments=e=>({...e,children:e.children?e.children.results?e.children.results.map(e=>this.unpackComments(e)):e.children.map(e=>this.unpackComments(e)):[],nextPage:"",activePage:e.page?e.page:1,featured:e.featured||null,type:e.type?e.type:0});list(e={}){return this.get(`/api/comments/?${a.stringify(e)}`)}forums(){return super.get("/api/comments/forum/")}sections(e){let t=(0,r.p)(e);return super.get(`/api/comments/${t}`)}hardDelete(e){return super.delete(`/api/comments/${e.id}/`)}details(e,t=1,n="-points"){return super.get(`/api/comments/${e}/?page=${t}&orderBy=${n}`).then(this.unpackComments)}update(e){return super.patch(`/api/comments/${e.id}/`,{text:e.text,archived:e.archived,locked:e.locked}).then(this.unpackComments)}vote(e,t){return super.put(`/api/comments/vote/${e.id}/`,t)}createComment(e,t){return super.post("/api/comments/createComment/",{parent:e,text:t}).then(this.unpackComments)}createGlobalNotification(e,t){return super.post("/api/comments/createGlobalNotification/",{threadId:e,text:t})}editCommentText(e,t){return super.patch(`/api/comments/${e}/`,{text:t,locked:!0}).then(this.unpackComments)}}let c=new i},64708:(e,t,n)=>{"use strict";function a(e){let t="?";for(let n of Object.keys(e)){let a=e[n];Array.isArray(a)&&a.length?t+=`${n}=${encodeURIComponent(a.join(`&${n}=`))}`:t+=`${n}=${encodeURIComponent(a)}`,t+="&"}return t}n.d(t,{p:()=>a})},64795:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>u,default:()=>d});var a=n(75038),o=n(76430),r=n(44641),i=n(21159),c=n(79761),s=n(56771),l=n(68835),m=n(5761),p=n.n(m),u=!0;let d=e=>{let[t,n]=(0,o.useState)(!1),[m,u]=(0,o.useState)(null),[d,h]=(0,o.useState)("");return(0,a.jsx)(c.A,{title:"User role management",robots:"noindex",className:p().container,children:(0,a.jsxs)("div",{className:p().content,children:[(0,a.jsx)("h2",{children:"Global notification management"}),(0,a.jsxs)("form",{className:p().form,onSubmit:e=>(e?.preventDefault(),m)?d?void(n(!0),r.A.createGlobalNotification(m,d).then(()=>i.A.create("Notification created","Moderator settings","success")).catch(e=>i.A.create(e.error,"Global notifiaction creation","error")).finally(()=>n(!1))):i.A.create("Please provide a notification text"):i.A.create("Please provide a thread id"),children:[(0,a.jsx)(s.A,{header:"Thread ID",value:m||"",onChange:e=>u(Number(e)),placeholder:"123456",containerClassName:p().input}),(0,a.jsx)(s.A,{header:"Notification text",value:d,onChange:h,placeholder:"Thread name - Snappy hook",containerClassName:p().input}),(0,a.jsx)("div",{className:p().controls,children:(0,a.jsx)(l.A,{type:"submit",color:"green",children:"Create global notification"})})]})]})})}}
1,68839:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/moderation/create-global-notification",function(){return n(64795)}])}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=68839)),_N_E=e.O()}]);
2//# sourceMappingURL=create-global-notification-7cf758f880a568f9.js.map

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.