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