1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5897],{70846:function(e,n,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/comments",function(){return a(60807)}])},88489:function(e,n,a){"use strict";var l=a(30012),t=a(66643),i=a(77527),r=a(44001);let o=(0,l.Z)({createStyledComponent:(0,i.ZP)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,n)=>{let{ownerState:a}=e;return[n.root,n["maxWidth".concat((0,t.Z)(String(a.maxWidth)))],a.fixed&&n.fixed,a.disableGutters&&n.disableGutters]}}),useThemeProps:e=>(0,r.i)({props:e,name:"MuiContainer"})});n.Z=o},91194:function(e,n,a){"use strict";a(67294);var l=a(30139),t=a(85893);n.Z=(0,l.Z)((0,t.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft")},59367:function(e,n,a){"use strict";a(67294);var l=a(30139),t=a(85893);n.Z=(0,l.Z)((0,t.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight")},22131:function(e,n,a){"use strict";var l,t,i,r,o,d;a.r(n);let u={fragment:{argumentDefinitions:[l={defaultValue:null,kind:"LocalArgument",name:"after"},t={defaultValue:null,kind:"LocalArgument",name:"first"},i={defaultValue:null,kind:"LocalArgument",name:"order"},r={defaultValue:null,kind:"LocalArgument",name:"where"}],kind:"Fragment",metadata:null,name:"useCnCommentTableData_commentsQuery",selections:d=[{alias:null,args:[{kind:"Variable",name:"after",variableName:"after"},{kind:"Variable",name:"first",variableName:"first"},{kind:"Variable",name:"order",variableName:"order"},{kind:"Variable",name:"where",variableName:"where"}],concreteType:"SearchCommentsConnection",kind:"LinkedField",name:"searchComments",plural:!1,selections:[{alias:null,args:null,concreteType:"SearchCommentsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Comment",kind:"LinkedField",name:"node",plural:!1,selections:[o={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"body",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"author",plural:!1,selections:[o,{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Post",kind:"LinkedField",name:"parent",plural:!1,selections:[o,{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dateCreated",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"totalCount",storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[t,l,r,i],kind:"Operation",name:"useCnCommentTableData_commentsQuery",selections:d},params:{cacheID:"63b796ffe48afbb699841a03b45b5616",id:null,metadata:{},name:"useCnCommentTableData_commentsQuery",operationKind:"query",text:"query useCnCommentTableData_commentsQuery(\n $first: Int\n $after: String\n $where: CommentFilterInput\n $order: [CommentSortInput!]\n) {\n searchComments(first: $first, after: $after, where: $where, order: $order) {\n edges {\n node {\n id\n body\n author {\n id\n displayName\n }\n parent {\n id\n title\n }\n dateCreated\n }\n }\n pageInfo {\n endCursor\n }\n totalCount\n }\n}\n"}};u.hash="036c833bda86e5c6c8ec72f1c0c642c0",n.default=u},69946:function(e,n,a){"use strict";var l,t,i;a.r(n);let r={fragment:{argumentDefinitions:l=[{defaultValue:null,kind:"LocalArgument",name:"id"}],kind:"Fragment",metadata:null,name:"useCnCommentTableData_deleteCommentMutation",selections:[{alias:null,args:t=[{fields:[{kind:"Variable",name:"id",variableName:"id"}],kind:"ObjectValue",name:"input"}],concreteType:"DeleteCommentPayload",kind:"LinkedField",name:"deleteComment",plural:!1,selections:[{alias:null,args:null,concreteType:"Comment",kind:"LinkedField",name:"comment",plural:!1,selections:[i={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:l,kind:"Operation",name:"useCnCommentTableData_deleteCommentMutation",selections:[{alias:null,args:t,concreteType:"DeleteCommentPayload",kind:"LinkedField",name:"deleteComment",plural:!1,selections:[{alias:null,args:null,concreteType:"Comment",kind:"LinkedField",name:"comment",plural:!1,selections:[i,{alias:null,args:null,filters:null,handle:"deleteRecord",key:"",kind:"ScalarHandle",name:"id"}],storageKey:null}],storageKey:null}]}
1,params:{cacheID:"3ab9e1d36691e47ab557c20deaea8ce5",id:null,metadata:{},name:"useCnCommentTableData_deleteCommentMutation",operationKind:"mutation",text:"mutation useCnCommentTableData_deleteCommentMutation(\n $id: ID!\n) {\n deleteComment(input: {id: $id}) {\n comment {\n id\n }\n }\n}\n"}};r.hash="c1d4b7ad8bb90c9d79d492928f6021dc",n.default=r},60807:function(e,n,a){"use strict";a.r(n),a.d(n,{__N_SSP:function(){return m},default:function(){return c}});var l=a(35944),t=a(88489),i=a(67294),r=a(63190),o=()=>{let[e]=(0,r.Db)(a(69946));return{deleteCommentAsync:e,commentsQuery:a(22131)}},d=()=>{let{deleteCommentAsync:e,commentsQuery:n}=o();return{commentsQuery:n,processRowBulkDelete:(0,i.useCallback)(n=>{let{rows:a}=n;if(window.confirm("確å®è¦åªé¤é¸æççè¨åï¼"))return a.map(n=>{let{id:a}=n;return e({variables:{id:a}})})},[e])}},u=a(99778),s=()=>{let{commentsQuery:e,processRowBulkDelete:n}=d();return(0,l.tZ)(u.Z,{columns:[{field:"id",type:"id",headerName:"ID"},{field:"dateCreated",type:"dateTime",headerName:"å»ºç«æé",filterable:!1,sortField:"id"},{field:"author",type:"user",headerName:"ä½è
",filterField:"authorId",sortable:!1,width:200},{field:"body",headerName:"çè¨å
§å®¹",sortable:!1,minWidth:300,flex:1},{field:"parent",type:"post",headerName:"æç« ",filterable:!1,sortable:!1,minWidth:300,flex:1}],defaultSort:{id:"DESC"},quickFilterMapper:e=>({body:{contains:e}}),gqlQuery:e,paginationType:"cursor",initialState:{columns:{columnVisibilityModel:{id:!1}},sorting:{sortModel:[{field:"dateCreated",sort:"desc"}]}},processRowBulkDelete:n})},m=!0,c=()=>(0,l.tZ)(t.Z,{maxWidth:"xl",children:(0,l.tZ)(s,{})})}},function(e){e.O(0,[6128,6167,6924,5914,3641,1722,3421,2988,9778,2888,9774,179],function(){return e(e.s=70846)}),_N_E=e.O()}]);
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.