"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[9908],{2735:function(e,t,r){r.d(t,{Qj:function(){return P},zx:function(){return w}});var l=r(65443),n=r.n(l),a=r(94159),o=r(6285);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;tn()("leading-none","align-middle","py-2","px-4","no-select",e.className,{[u]:"pill"===e.buttonStyle,[d]:"roundrect"===e.buttonStyle,[b]:"authn"===e.buttonStyle,[g]:"cherry"===e.color,[h]:"strawberry"===e.color,[y]:"mango"===e.color,[p]:"not-black"===e.color,[f]:"red"===e.color,[x]:"accent"===e.color,[E]:"green"===e.color,[v]:"secondary"===e.color,[N]:"authn-primary"===e.color,[S]:"authn-other"===e.color}),w=a.forwardRef((({buttonStyle:e,color:t,className:r,...l},n)=>{const o=k({buttonStyle:e,color:t,className:r,...l});return a.createElement("button",c({},l,{className:o,ref:n}),l.children)}));w.displayName="Button";const P=a.forwardRef((({buttonStyle:e,color:t,...r},l)=>{const n=k({buttonStyle:e,color:t,...r});return a.createElement("a",c({},r,{className:n,ref:l}),r.children)}));P.displayName="LinkButton"},21341:function(e,t,r){r.r(t);var l=r(8227),n=r(12093),a=r(94159),o=r(990),c=r(90275),i=r(2735);t.default=()=>{const{modMode:e}=(0,l.Pc)();return a.createElement(a.Fragment,null,a.createElement(c.ql,{title:"moderation"}),a.createElement("div",null,e?null:a.createElement("div",{className:"mb-2 flex flex-row items-start gap-4\n rounded-lg border-2 border-red-700 bg-red-200 p-4\n text-notBlack prose-p:my-2"},a.createElement("p",{className:"flex-shrink-0"},a.createElement(o.Z,{className:"inline h-6 w-6 text-red-700"})),a.createElement("div",null,a.createElement("p",null,"NOTICE! You are logged in as an account with moderator permissions but are not currently active in Mod Mode! Several of the pages listed here WILL NOT WORK outside of Mod Mode!"),a.createElement("p",null,"Please visit the"," ",a.createElement("a",{href:n.ZP.public.userSettings().toString()},"user settings page")," ","to fix this!"))),a.createElement("h1",null,"moderation phone book"),a.createElement("h2",null,"Invites (mod mode not required)"),a.createElement("ul",null,a.createElement("li",null,a.createElement("a",{href:n.ZP.public.invites.manage().toString()},"Invite management"))),a.createElement("h2",null,"Maintenance"),a.createElement("ul",null,a.createElement("li",null,a.createElement("a",{href:n.ZP.public.moderation.cacheMaintenance().toString()},"Cache maintenance")),a.createElement("li",null,a.createElement("a",{href:n.ZP.public.moderation.createOAuthClient().toString()},"Create a new OAuth client record"))),a.createElement("h2",null,"Activation"),a.createElement("ul",null,a.createElement("li",null,a.createElement("a",{href:n.ZP.public.moderation.bulkActivate().toString()},"Bulk activate users"))),a.createElement("h2",null,"Artist Alley"),a.createElement("ul",null,a.createElement("li",null,a.createElement("a",{href:n.ZP.public.moderation.artistAlleyPendingQueue().toString()},"Pending queue"))),a.createElement("h2",{className:"mb-0"},"Manage users"),a.createElement("div",{className:"flex flex-col"},a.createElement("form",{method:"GET",action:n.ZP.public.moderation.manageUser({}).toString(),className:"flex flex-col"},a.createElement("h4",null,"by email"),a.createElement("div",{className:"flex flex-row gap-3"},a.createElement("input",{type:"email",name:"email",placeholder:"email",required:!0}),a.createElement(i.zx,{type:"submit",buttonStyle:"pill",color:"cherry"},"submit"))),a.createElement("form",{method:"GET",action:n.ZP.public.moderation.manageUser({}).toString(),className:"flex flex-col"},a.createElement("h4",null,"by user ID"),a.createElement("div",{className:"flex flex-row gap-3"},a.createElement("input",{type:"number",name:"userId",placeholder:"user ID",required:!0,min:1,step:1}),a.createElement(i.zx,{type:"submit",buttonStyle:"pill",color:"cherry"},"submit")))),a.createElement("h2",{className:"mb-0"},"Manage pages"),a.createElement("div",{className:"flex flex-col"},a.createElement("form",{method:"GET",action:n.ZP.public.moderation.manageProject({}).toString(),className:"flex flex-col"},a.createElement("h4",null,"by handle"),a.createElement("div",{className:"flex flex-row gap-3"},a.createElement("input",{type:"text",name:"handle",placeholder:"handle",required:!0}),a.createElement(i.zx,{type:"submit",buttonStyle:"pill",color:"cherry"},"submit")))),a.createElement("h2",{className:"mb-0"},"Manage ask"),a.createElement("div",{className:"flex flex-col"},a.createElement("form",{method:"GET",action:n.ZP.public.moderation.manageAsk({}).toString(),className:"flex flex-col"},a.createElement("h4",null,"by handle"),a.createElement("div",{className:"flex flex-row gap-3"},a.createElement("input",{type:"text",name:"askId",placeholder:"ask ID",required:!0}),a.createElement(i.zx,{type:"submit",buttonStyle:"pill",color:"cherry"},"submit")))),a.createElement("h2",{className:"mb-0"},"Tag ontology"),a.createElement("ul",null,a.createElement("li",null,a.createElement("a",{href:n.ZP.public.moderation.tagOntology.pendingRequests().toString()},"Pending requests")),a.createElement("li",null,a.createElement("a",{href:n.ZP.public.moderation.tagOntology.manageTags().toString()},"Manage tags")))))}}}]); //# sourceMappingURL=client-preact-components-pages-moderation-home.bb885b9c05165652720e.js.map