"use strict";(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["components/pages/VirtualDirectoryPage/ErrorDocList"],{3035(e,t,o){o.r(t),o.d(t,{default:()=>u});var r=o(715),a=o(397),s=o(95),n=o(1241),i=o(1319),c=o.n(i),l=o(396);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,{})]})}},3034(e,t,o){o.r(t),o.d(t,{default:()=>r.default});var r=o(3035)}}]);
//# sourceMappingURL=ErrorDocList.js.map?7967349be75423b189c3