"use strict";(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["components/pages/VirtualDirectoryPage/ErrorDocList"],{2822:(e,t,r)=>{r.r(t),r.d(t,{default:()=>m});var o=r(580),a=r(579),s=r(286),n=r(89),c=r(1101),i=r(1182),l=r.n(i),d=r(285);const p=n.Locale.getTranslate("components.pages.VirtualDirectory.ErrorDocList"),u=n.Locale.getSection("components.pages.VirtualDirectory.errorDocType"),m=()=>{const{errorDocListKey:e}=(0,o.useLoaderData)(),{domainId:t}=(0,o.useParams)(),[r]=(0,a.useSearchParams)(),n=r.get("path")||"/",{listProps:i,listInput:m}=(0,c.useGraphQlList)({key:e,query:l(),variables:{domainId:btoa(`Domain:${t}`),path:n},extractList:e=>e.domain.hosting.virtualDirectory.errorDocs}),h=!!m.searchFilters?.search,y=(0,d.jsx)(c.GraphQlList,{...i,rowKey:"code",filtered:h,columns:[{key:"code",title:(0,d.jsx)(p,{content:"columnCode"}),sortable:!0,type:"title"},{key:"name",title:(0,d.jsx)(p,{content:"columnName"}),sortable:!0},{key:"type",title:(0,d.jsx)(p,{content:"columnType"}),sortable:!0,render:({type:e})=>u.lmsg(e.toLowerCase())},{key:"location",title:(0,d.jsx)(p,{content:"columnLocation"}),sortable:!0},{key:"actions",type:"actions",render:({code:e})=>(0,d.jsx)(s.ListActions,{children:(0,d.jsx)(s.ListAction,{primary:!0,icon:"pencil",component:a.Link,to:{...location,pathname:`${e}/edit`},"data-testid":"error-doc-edit",children:(0,d.jsx)(p,{content:"edit"})})})}],toolbar:(0,d.jsxs)(s.Toolbar,{children:[(0,d.jsx)(s.ToolbarExpander,{}),(0,d.jsx)(s.ToolbarGroup,{groupable:!1,children:(0,d.jsx)(c.GraphQlList.SearchBar,{name:"search"})})]})});return(0,d.jsxs)(d.Fragment,{children:[y,(0,d.jsx)(o.Outlet,{})]})}},2821:(e,t,r)=>{r.r(t),r.d(t,{default:()=>o.default});var o=r(2822)}}]);
//# sourceMappingURL=ErrorDocList.js.map?c88cd3e730041ffbcad9