"use strict";(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/smb/database/index"],{1033:(e,a,t)=>{t.r(a),t.d(a,{default:()=>c});var s=t(247),r=t.n(s),d=t(90),i=t(1034);const n={id:r().string,dataUrl:r().string,operations:r().array,itemActions:r().object,columns:r().array,data:r().shape({data:r().array,state:r().object,pager:r().object,locale:r().object,additional:r().object,pathbar:r().any}),searchFilters:r().object,searchOveral:r().string,disabledSelectHint:r().string,isDisabledItem:r().func,onRedraw:r().func,emptyViewMode:r().oneOf(["all","items"]),emptyView:r().any},o={id:void 0,dataUrl:void 0,operations:void 0,itemActions:void 0,columns:void 0,data:void 0,searchFilters:void 0,searchOveral:void 0,disabledSelectHint:void 0,isDisabledItem:void 0,onRedraw:void 0,emptyViewMode:void 0,emptyView:void 0},l=(0,i.default)(d.List,Object.keys(n));l.displayName="JswList",l.propTypes=n,l.defaultProps=o;const c=l},1034:(e,a,t)=>{t.r(a),t.d(a,{default:()=>d});var s=t(245),r=t(90);const d=(e,a=[],t={})=>d=>{const i=(0,s.useRef)(),n=(0,s.useRef)(),[o,l]=Object.entries(d).reduce(((e,[t,s])=>(e[a.includes(t)?0:1][t]=s,e)),[{},{}]),c=a.map((e=>{const a=o[e];return t[e]?(n.current?.[t[e]](a),null):a}));return(0,s.useLayoutEffect)((()=>(n.current=new e(o),(0,r.render)(i.current,n.current),()=>{n.current.remove(),n.current=null})),[l.key,...c]),(0,s.jsx)("div",{ref:i,...l})}},1743:(e,a,t)=>{t.r(a),t.d(a,{default:()=>p});var s=t(245),r=t(90),d=t(1033),i=t(751),n=t(787);const o=r.Locale.getSection("smb.controllers.database.index"),l=r.Locale.getTranslate("smb.controllers.database.index"),c=r.Locale.getSection("smb.components.lists.subscriptions"),u=({data:e,searchFilters:a})=>{const t=(0,n.useNavigateCallback)(),i=(0,s.useMemo)((()=>[{header:o.lmsg("subscription"),sortable:!0,renderer:({id:e,domain:a})=>(0,r.createElement)("a",{href:(0,r.prepareUrl)(`/smb/database/list/domainId/${e}`),onclick:t},a)},{header:c.lmsg("addonDomains"),dataIndex:"addonDomains",renderer:({addonDomains:e})=>e.join("<br/>")}]),[t]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{children:(0,s.jsx)(l,{content:"pageHint"})}),(0,s.jsx)(d.default,{id:"database-list",data:e,dataUrl:"/smb/database/subscriptions-list-data",searchFilters:a,searchOveral:"domain",columns:i})]})};u.propTypes={data:d.default.propTypes.data.isRequired,searchFilters:d.default.propTypes.searchFilters.isRequired};const p=(0,i.withPageLayout)(u)},1742:(e,a,t)=>{t.r(a),t.d(a,{default:()=>s.default});var s=t(1743)}}]);
//# sourceMappingURL=index.js.map?f24f3280aa642a3c4d75