PageSourceSearch

https://www.astastrings.org/_next/static/chunks/pages/admin/community/moderation-0e51bb2788a38e15.js

js astastrings.org collected 2026-09-24 09:26:03 UTC 18,734 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2555],{12667:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/community/moderation",function(){return t(11125)}])},17625:function(e,n,t){"use strict";var r,o,i,a;t.d(n,{S:function(){return r},y:function(){return o}}),(i=r||(r={})).PENDING="PENDING",i.APPROVED="APPROVED",i.REJECTED="REJECTED",(a=o||(o={})).Reported="REPORTED",a.StrictGroup="STRICT_GROUP",a.ModeratedUser="MODERATED_USER"},90505:function(e,n,t){"use strict";function prettyPrintEnum(e){return e.split("_").map(e=>e.toLowerCase()).map(e=>"".concat(e.substring(0,1).toUpperCase()).concat(e.substring(1))).join(" ")}t.d(n,{_:function(){return prettyPrintEnum}})},85200:function(e,n,t){"use strict";t.d(n,{DY:function(){return AdminPage},hb:function(){return a},lm:function(){return AdminPageHeading},yG:function(){return AdminPageHeader}});var r=t(85893),o=t(48641),i=t(38655);t(67294);let AdminPage=e=>{let{children:n,...t}=e;return(0,r.jsx)(o.xu,{...t,children:n})},AdminPageHeader=e=>{let{children:n,...t}=e;return(0,r.jsx)(o.Kq,{direction:"row",spacing:"4",alignItems:"flex-start",...t,children:n})},AdminPageHeading=e=>{let{children:n,...t}=e;return(0,r.jsx)(o.X6,{size:"md",...t,children:n})},a=(0,i.Gp)((e,n)=>{let{children:t,...i}=e;return(0,r.jsx)(o.xu,{marginY:"5",...i,ref:n,children:t})})},39174:function(e,n,t){"use strict";t.d(n,{A:function(){return NoMatchPage}});var r=t(85893),o=t(48641),i=t(23887),a=t(47741),s=t(11163);t(67294);let NoMatchPage=()=>{let e=(0,s.useRouter)();return(0,r.jsxs)(o.gC,{p:"12",spacing:"4",textAlign:"center",children:[(0,r.jsx)(i.Ee,{src:"https://tradewing-public.s3.us-east-2.amazonaws.com/tradewing-logo.png",alt:"Tradewing",width:"50px",height:"50px"}),(0,r.jsx)(o.xv,{textStyle:"xlBodyStrong",children:"Page Not Found"}),(0,r.jsx)(o.xv,{children:"Please check that you have the correct URL and try again. If you need help finding and accessing your community, please contact [email protected]."}),(0,r.jsx)(a.zx,{onClick:()=>e.push("/"),children:"Return to Site"})]})}},14056:function(e,n,t){"use strict";t.d(n,{t:function(){return Pagination}});var r=t(85893),o=t(48641),i=t(47741);t(67294);var a=t(6491);let Pagination=e=>{let{currentPage:n,numberOfPages:t,onChange:s}=e,l=Math.ceil(2.5),d=Math.min(n-l>0?n-l:0,t-5>0?t-5:0),u=d+5;return t<2?null:(0,r.jsx)(o.M5,{mt:"6",children:(0,r.jsxs)(i.hE,{colorScheme:"gray",children:[(0,r.jsx)(i.hU,{isDisabled:1===n,icon:(0,r.jsx)(a.wyc,{}),"aria-label":"Next Page",onClick:()=>s(n-1),variant:"outline"}),Array.from({length:t},(e,n)=>n+1).slice(d,u).map(e=>(0,r.jsx)(i.zx,{variant:n===e?"solid":"ghost",onClick:()=>s(e),children:e},e)),(0,r.jsx)(i.hU,{isDisabled:n===t,icon:(0,r.jsx)(a.XCv,{}),"aria-label":"Previous Page",onClick:()=>s(n+1),variant:"outline"})]})})}},76722:function(e,n,t){"use strict";t.d(n,{t:function(){return r.t}});var r=t(14056)},82475:function(e,n,t){"use strict";t.d(n,{U:function(){return d}});var r=t(85893),o=t(83234),i=t(47741),a=t(38655),s=t(67294),l=t(6491);let d=s.forwardRef((e,n)=>{let{children:t,...s}=e,d=(0,o.NJ)(),u=(null==d?void 0:d.isDisabled)||s.isDisabled;return(0,r.jsx)(i.zx,{variant:"outline",colorScheme:"gray",backgroundColor:"white",fontWeight:"normal",rightIcon:(0,r.jsx)(l.v4q,{}),justifyContent:"space-between",borderColor:(null==d?void 0:d.isInvalid)?"red.500":void 0,border:(null==d?void 0:d.isInvalid)?"2px":void 0,_hover:{backgroundColor:"white"},w:"full",isDisabled:u,_expanded:{bg:"gray.200"},...s,ref:n,whiteSpace:"normal",textAlign:"left",children:(0,r.jsx)(a.m$.span,{noOfLines:1,wordBreak:"break-all",flex:"1",children:t})})});d.displayName="SelectMenuButton"},19598:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var r=t(38655);let o=(0,r.m$)("div",{baseStyle:{borderRadius:"8px",backgroundColor:"white",shadow:"base"}})},52670:function(e,n,t){"use strict";t.d(n,{Z:function(){return r.Z}});var r=t(19598)},11125:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return F}});var r=t(85893),o=t(48641),i=t(18034),a=t(67294),s=t(85200),l=t(52670),d=t(1
17625),u=t(82729),c=t(50456),m=t(1644),h=t(99052),p=t(76722),v=t(82475),_=t(47503),j=t(69171),g=t(6491),x=t(23279),f=t.n(x),M=t(70421),C=t(50319),E=t(80419),b=t(36696),P=t(47741),A=t(97026),T=t(27484),y=t.n(T),I=t(41664),S=t.n(I),O=t(90505),R=t(49517),D=t(39138),V=t.n(D);function _templateObject(){let e=(0,u._)(["\n  fragment ModerationItemAuthor_ModerationItem on ModerationItem {\n    _id\n    postV2 {\n      _id\n      author {\n        _id\n        displayName\n      }\n    }\n    comment {\n      _id\n      author {\n        _id\n        displayName\n      }\n      postV2 {\n        _id\n        author {\n          _id\n          displayName\n        }\n      }\n    }\n  }\n"]);return _templateObject=function(){return e},e}let ModerationItemAuthor=e=>{var n,t;let{moderationItem:i}=e;return(null===(n=i.comment)||void 0===n?void 0:n._id)?(0,r.jsx)(o.rU,{as:S(),href:"/members/".concat(i.comment.author._id),children:V()(i.comment.author.displayName,{length:35})||""}):(null===(t=i.postV2)||void 0===t?void 0:t._id)?(0,r.jsx)(o.rU,{as:S(),href:"/members/".concat(i.postV2.author._id),children:V()(i.postV2.author.displayName,{length:35})||""}):null};function ModerationItemContent_templateObject(){let e=(0,u._)(["\n  fragment ModerationItemContent_Post on PostV2 {\n    _id\n    ... on SimplePost {\n      _id\n      simplePostTitle: title\n      bodyPlainText\n    }\n    ... on QuestionV2 {\n      _id\n      questionTitle: title\n    }\n    ... on BlogV2 {\n      _id\n      blogTitle: title\n    }\n    ... on AnswerV2 {\n      _id\n      questionPost {\n        _id\n        title\n      }\n    }\n    ... on PollV2 {\n      _id\n      pollTitle: title\n    }\n    dateCreated\n    deleted\n  }\n"]);return ModerationItemContent_templateObject=function(){return e},e}function _templateObject1(){let e=(0,u._)(["\n  fragment ModerationItemContent_ModerationItem on ModerationItem {\n    _id\n    postV2 {\n      _id\n      ...ModerationItemContent_Post\n    }\n    comment {\n      _id\n      bodyPlainText\n      postV2 {\n        _id\n        ...ModerationItemContent_Post\n      }\n    }\n  }\n  ","\n"]);return _templateObject1=function(){return e},e}ModerationItemAuthor.moderationItemFragment=(0,c.Ps)(_templateObject());let N="(no content)",ModerationItemContent=e=>{var n,t,i,a,s,l,d,u,c;let{moderationItem:m}=e;if(null===(n=m.comment)||void 0===n?void 0:n._id)return(0,r.jsx)(S(),{href:"/post/".concat(null===(i=m.comment.postV2)||void 0===i?void 0:i._id),children:(0,r.jsx)(o.xv,{noOfLines:4,textStyle:"compact",children:V()(m.comment.bodyPlainText||N,{length:35})})});if(null===(t=m.postV2)||void 0===t?void 0:t._id){let e="/post/".concat(null===(a=m.postV2)||void 0===a?void 0:a._id);return(0,r.jsx)(S(),{href:e,children:(0,r.jsx)(o.xv,{noOfLines:4,textStyle:"compact",children:"AnswerV2"===m.postV2.__typename?"Answer to: ".concat(V()((null===(s=m.postV2.questionPost)||void 0===s?void 0:s.title)||N,{length:35})):V()("SimplePost"===m.postV2.__typename?(null===(l=m.postV2)||void 0===l?void 0:l.simplePostTitle)||(null===(d=m.postV2)||void 0===d?void 0:d.bodyPlainText)||N:"QuestionV2"===m.postV2.__typename?(null===(u=m.postV2)||void 0===u?void 0:u.questionTitle)||N:"BlogV2"===m.postV2.__typename?(null===(c=m.postV2)||void 0===c?void 0:c.blogTitle)||N:"PollV2"===m.postV2.__typename&&m.postV2.pollTitle||N,{length:35})})})}return null},w=(0,c.Ps)(ModerationItemContent_templateObject());function ModerationTable_templateObject(){let e=(0,u._)(["\n  mutation moderationTable_updateModerationItem(\n    $input: UpdateModerationItemInput!\n  ) {\n    updateModerationItem(input: $input) {\n      data {\n        _id\n      }\n    }\n  }\n"]);return ModerationTable_templateObject=function(){return e},e}function ModerationTable_templateObject1(){let e=(0,u._)(["\n  fragment ModerationTable_ModerationItem on ModerationItem {\n    _id\n    dateCreated\n    reason\n    resolutionState\n    reportingUser {\n      _id\n      displayName\n    }\n    postV2 {\n      _id\n      deleted\n    }\n    comment {\n      _id\n    }\n    ...ModerationItemAuthor_ModerationItem\n    ...ModerationItemContent_ModerationItem\n  }\n  ","\n  ","\n"]);
1return ModerationTable_templateObject1=function(){return e},e}ModerationItemContent.moderationItemFragment=(0,c.Ps)(_templateObject1(),w);let U=(0,c.Ps)(ModerationTable_templateObject()),ModerationTable=e=>{let{moderationItems:n,moderationState:t}=e,o=(0,E.pm)(),[i]=(0,C.D)(U,{refetchQueries:["moderationDataTable_moderationItems"],awaitRefetchQueries:!0}),actionOnClick=async(e,n)=>{try{await i({variables:{input:{id:n._id,data:{resolutionState:e}}}}),o({status:"success",description:"Successfully ".concat(e===d.S.APPROVED?"approved":"rejected"," moderated item")})}catch(n){(0,R.H)(n),o({status:"error",description:"Error encountered ".concat(e===d.S.APPROVED?"approving":"rejecting"," moderated item")})}};return(0,r.jsx)(l.Z,{overflow:"hidden",children:(0,r.jsx)(b.xJ,{children:(0,r.jsxs)(b.iA,{size:"sm",children:[(0,r.jsx)(b.hr,{children:(0,r.jsxs)(b.Tr,{children:[(0,r.jsx)(b.Th,{children:"Type"}),(0,r.jsx)(b.Th,{children:"Content"}),(0,r.jsx)(b.Th,{children:"Author"}),(0,r.jsx)(b.Th,{children:"Reason"}),(0,r.jsx)(b.Th,{children:"Created Date"}),(0,r.jsx)(b.Th,{children:"Reported by"}),(0,r.jsx)(b.Th,{children:"Actions"}),(0,r.jsx)(b.Th,{})]})}),(0,r.jsx)(b.p3,{children:n.map(e=>{var n,o,i,a;return(0,r.jsxs)(b.Tr,{_hover:{bg:"gray.50",cursor:"pointer"},children:[(0,r.jsx)(b.Td,{children:(null===(n=e.comment)||void 0===n?void 0:n._id)?"Comment":(null===(o=e.postV2)||void 0===o?void 0:o._id)?"SimplePost"===e.postV2.__typename?"Post":"QuestionV2"===e.postV2.__typename?"Question":"AnswerV2"===e.postV2.__typename?"Answer":"BlogV2"===e.postV2.__typename?"Article":"PollV2"===e.postV2.__typename?"Poll":"EventAlert"===e.postV2.__typename?"Event Alert":"":""}),(0,r.jsx)(b.Td,{children:(0,r.jsx)(ModerationItemContent,{moderationItem:e})}),(0,r.jsx)(b.Td,{children:(0,r.jsx)(ModerationItemAuthor,{moderationItem:e})}),(0,r.jsx)(b.Td,{children:(0,O._)(e.reason)}),(0,r.jsx)(b.Td,{children:y()(e.dateCreated).format("YYYY-MM-DD hh:mm a")}),(0,r.jsx)(b.Td,{children:(0,r.jsx)(S(),{href:"/members/".concat(null===(i=e.reportingUser)||void 0===i?void 0:i._id),children:(null===(a=e.reportingUser)||void 0===a?void 0:a.displayName)||""})}),(0,r.jsx)(b.Td,{children:(0,r.jsxs)(P.hE,{spacing:"0",isAttached:!0,children:[(0,r.jsx)(P.zx,{onClick:()=>actionOnClick(d.S.APPROVED,e),children:"Approve"}),t!==d.S.REJECTED&&(0,r.jsx)(P.zx,{variant:"outline",colorScheme:"gray",onClick:()=>actionOnClick(d.S.REJECTED,e),children:"Reject"})]})}),(0,r.jsx)(b.Td,{children:e.postV2&&e.postV2.deleted?(0,r.jsx)(A.u,{label:"This post was deleted.",children:(0,r.jsx)(g.go2,{color:"red.500"})}):null})]},e._id)})})]})})})};function ModerationDataTable_templateObject(){let e=(0,u._)(["\n  query moderationDataTable_moderationItems($input: GetModerationItemsInput!) {\n    getModerationItems(input: $input) {\n      results {\n        _id\n        dateCreated\n        reason\n        resolutionState\n        reportingUser {\n          _id\n          displayName\n        }\n        ...ModerationTable_ModerationItem\n      }\n      totalCount\n    }\n  }\n  ","\n"]);return ModerationDataTable_templateObject=function(){return e},e}ModerationTable.moderationItemFragment=(0,c.Ps)(ModerationTable_templateObject1(),ModerationItemAuthor.moderationItemFragment,ModerationItemContent.moderationItemFragment);let q=(0,c.Ps)(ModerationDataTable_templateObject(),ModerationTable.moderationItemFragment),k={[d.y.ModeratedUser]:"Moderated User",[d.y.Reported]:"Reported",[d.y.StrictGroup]:"Strict Group"},queryStateReducer=(e,n)=>"reason"in n?{...e,reason:n.reason,offset:0}:{...e,reason:null,offset:n.offset},G={offset:0,reason:null},ModerationDataTable=e=>{var n,t,i,s,u,c;let{moderationState:x}=e,C=a.useCallback(e=>{let n=e.reason?{resolutionState:{_eq:x},reason:{_eq:e.reason}}:{resolutionState:{_eq:x}};return{input:{filter:n,limit:25,offset:e.offset,sort:{dateCreated:_.oi.desc}}}},[x]),{refetch:E,...b}=(0,M.L)(q,{notifyOnNetworkStatusChange:!0,variables:C(G)}),[P,A]=function(e){let{refetch:n,stateToVariables:t,...r}=e,[o,i]=function(e){let{reducer:n,initialState:t,shouldDebounce:r,ms:o}=e,[i,s]=a.useReducer(n,t),[l,d]=a.useReducer(n,t),u=a.useCallback(f()(d,o||500),[]),c=a.useCallback(e=>{s(e),r(e)?u(e):d(e)},[]);return[{uiState:i,queryState:l},c]}(r),{uiState:s,queryState:l}=o;return a.useEffect(()=>{let e=t(l);n(e)},[n,l,t]),[s,i]}({reducer:queryStateReducer,initialState:G,shouldDebounce:()=>!1,refetch:E,stateToVariables:C}),T=null===(t=b.data)||void 0===t?void 0:null===(n=t.getModerationItems)||void 0===n?void 0:n.totalCount;return(0,r.jsxs)(l.Z,{p:"6",w:"full",children:[(0,r.jsxs)(o.Kq,{spacing:"4",children:[(0,r.jsxs)(h.v2,{children:[(0,r.jsx)(h.j2,{as:v.U,width:"3xs",children:(0,r.jsx)(o.xv,{noOfLines:1,children:P.reason?k[P.reason]:"All Reasons"})}),(0,r.jsx)(h.qy,{children:(0,r.jsxs)(h.__,{onChange:e=>{A({reason:e||null})},type:"radio",children:[(0,r.jsx)(h.ii,{value:"",children:"All Reasons"}),(0,r.jsx)(h.ii,{value:d.y.Reported,children:"Reported"}),(0,r.jsx)(h.ii,{value:d.y.StrictGroup,children:"Strict group"}),(0,r.jsx)(h.ii,{value:d.y.ModeratedUser,children:"Moderated user"})]})})]}),b.networkStatus===m.I.loading?(0,r.jsx)(j.g,{}):(null===(s=b.data)||void 0===s?void 0:null===(i=s.getModerationItems)||void 0===i?void 0:i.results)&&0===b.data.getModerationItems.results.length?(0,r.jsx)(l.Z,{children:(0,r.jsx)(o.M5,{color:"gray.500",minHeight:"72",children:(0,r.jsxs)(o.Kq,{alignItems:"center",children:[(0,r.jsx)(g.W1M,{}),(0,r.jsx)(o.xv,{children:"There are no results based on your current filters"})]})})}):(0,r.jsx)(ModerationTable,{moderationState:x,moderationItems:null!==(c=null===(u=b.data)||void 0===u?void 0:u.getModerationItems.results)&&void 0!==c?c:[]})]}),(0,r.jsx)(p.t,{currentPage:P.offset?Math.ceil(P.offset/25)+1:1,numberOfPages:T?Math.ceil(T/25):0,onChange:e=>{A({offset:25*(e-1)})}})]})};var L=t(96317),z=t(93064),F=(0,t(52609).z)(()=>{var e;let n;
1let[t,u]=a.useState(d.S.PENDING);return(e=n||(n={}))[e.Pending=0]="Pending",e[e.Rejected=1]="Rejected",(0,r.jsx)(L.C,{children:(0,r.jsxs)(s.DY,{maxWidth:"full",mx:"auto",children:[(0,r.jsx)(s.yG,{mb:"4",children:(0,r.jsx)(s.lm,{size:"md",children:"Moderation Items"})}),(0,r.jsxs)(o.gC,{children:[(0,r.jsx)(l.Z,{px:"4",w:"full",children:(0,r.jsxs)(o.Ug,{children:[(0,r.jsx)(i.mQ,{onChange:e=>u(0===e?d.S.PENDING:d.S.REJECTED),children:(0,r.jsxs)(i.td,{children:[(0,r.jsx)(i.OK,{children:"Pending"}),(0,r.jsx)(i.OK,{children:"Rejected"})]})}),(0,r.jsx)(o.LZ,{})]})}),(0,r.jsx)(ModerationDataTable,{moderationState:t},t)]})]})})},{requiresEvery:[z.lj.ADMIN_ROLE]})},52609:function(e,n,t){"use strict";t.d(n,{z:function(){return restrictedRoute}});var r=t(85893),o=t(11163),i=t(67294),a=t(39174),s=t(63205),l=t(62893),d=t(69171),u=t(47503),c=t(45893),m=t(93064);let h=new Map([[m.lj.AUTHENTICATION,e=>{var n;return!!(null===(n=e.user)||void 0===n?void 0:n._id)}],[m.lj.ADMIN_ROLE,e=>{var n,t;return(null===(n=e.user)||void 0===n?void 0:n.role)===u.uA.ADMIN||(null===(t=e.user)||void 0===t?void 0:t.role)===u.uA.MORGOTH}],[m.lj.MORGOTH_ROLE,e=>{var n;return(null===(n=e.user)||void 0===n?void 0:n.role)===u.uA.MORGOTH}],[m.lj.COMMUNITY_ACCESS,e=>{var n;return(null==e?void 0:null===(n=e.tenant)||void 0===n?void 0:n.communityAccessConfig)===u.iX.PUBLIC?!e.user||e.user.canAccessCommunity:!!e.user&&e.user.canAccessCommunity}],[m.lj.COMMUNITY_READ_ONLY_ACCESS,e=>{var n;return!!(null===(n=e.user)||void 0===n?void 0:n.canAccessCommunityReadOnly)}],[m.lj.SPONSOR_DASHBOARD_ACCESS,e=>{var n,t;return!!(null===(t=e.user)||void 0===t?void 0:null===(n=t.rosterOrganization)||void 0===n?void 0:n.currentUserOrganizationPermission.canManageOrganizationSponsorship)}],[m.lj.SPONSOR_DIRECTORY_ACCESS,e=>{var n,t,r;switch(null===(n=e.tenant)||void 0===n?void 0:n.sponsorDirectoryAccessConfig){case u.pZ.PUBLIC:return!0;case u.pZ.LOGGED_IN_USERS:return!!(null===(t=e.user)||void 0===t?void 0:t._id);case u.pZ.HIDDEN:return!1;default:throw Error("unknown sponsorDirectoryAccessConfig: ".concat(null===(r=e.tenant)||void 0===r?void 0:r.sponsorDirectoryAccessConfig))}}],[m.lj.MEMBER_DIRECTORY_ACCESS,e=>{var n;return!!(null===(n=e.tenant)||void 0===n?void 0:n.currentUserPermissions.canAccessMemberDirectory)}],[m.lj.EVENTS_FEED_ACCESS,e=>{var n;return!!(null===(n=e.tenant)||void 0===n?void 0:n.currentUserPermissions.canAccessEventsFeed)}],[m.lj.ORGANIZATION_DASHBOARD_ACCESS,e=>{var n,t;return!!(null===(t=e.user)||void 0===t?void 0:null===(n=t.rosterOrganization)||void 0===n?void 0:n.currentUserOrganizationPermission.canManageOrganizationProfile)}],[m.lj.DM_PAGE_ACCESS,e=>{var n;return!!(null===(n=e.user)||void 0===n?void 0:n.canAccessDMPage)}],[m.lj.ORGANIZATION_MEMBERSHIP_ACCESS,e=>{var n,t;return!!(null===(t=e.user)||void 0===t?void 0:null===(n=t.rosterOrganization)||void 0===n?void 0:n.currentUserOrganizationPermission.canManageOrganizationMembership)}],[m.lj.FEATURE_FLAG_CMS,e=>{var n,t;return!!(null===(t=e.tenant)||void 0===t?void 0:null===(n=t.featureFlags)||void 0===n?void 0:n.cms)}],[m.lj.FEATURE_FLAG_CONFERENCES,e=>{var n,t;return!!(null===(t=e.tenant)||void 0===t?void 0:null===(n=t.featureFlags)||void 0===n?void 0:n.conferences)}],[m.lj.FEATURE_FLAG_WEBFLOW,e=>{var n,t;return!!(null===(t=e.tenant)||void 0===t?void 0:null===(n=t.featureFlags)||void 0===n?void 0:n.webflow)}],[m.lj.PAID_MODULE_WEBSITE_BUILDER,e=>{var n,t;return!!(null===(t=e.tenant)||void 0===t?void 0:null===(n=t.paidModules)||void 0===n?void 0:n.websiteBuilder)}]]),useRequiredPermission=e=>{let n=(0,c.x)();if(!e.requiresEvery&&!e.requiresSome)return{hasPermission:!0,loading:!1};if(n.loading)return{hasPermission:!1,loading:!0};let t=null==e||!e.requiresEvery||(null==e?void 0:e.requiresEvery.map(e=>h.get(e)).every(e=>!e||e(n))),r=null==e||!e.requiresSome||(null==e?void 0:e.requiresSome.map(e=>h.get(e)).some(e=>!!e&&e(n)));return{hasPermission:t&&r,loading:!1}},restrictedRoute=(e,n,t)=>u=>{let c=(0,o.useRouter)(),m=useRequiredPermission(n),h=(0,l.T)(),p=(0,s.U)(),v=m.loading||h.isLoading||p.loading,_=!!t&&!!t.requiresMemberManagement&&!p.isActive;return(i.useEffect(()=>{v||m.hasPermission&&!_||h.isAuthenticated||!c.isReady||c.replace({pathname:"/login",query:{redirect:c.asPath}})},[v,c,_,h.isAuthenticated,m.hasPermission]),v)?(0,r.jsx)(d.g,{}):!m.hasPermission||_?h.isAuthenticated?(0,r.jsx)(a.A,{}):(0,r.jsx)(d.g,{}):(0,r.jsx)(e,{...u})}}},function(e){e.O(0,[34474,64986,96317,49774,92888,40179],function(){return e(e.s=12667)}),_N_E=e.O()}]);
2//# sourceMappingURL=moderation-0e51bb2788a38e15.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.