"use strict";(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/smb/database/index"],{869:(e,a,t)=>{t.r(a);var s=t(210),r=t.n(s),i=t(88),d=t(870);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,d.default)(i.List,Object.keys(n));l.displayName="JswList",l.propTypes=n,l.defaultProps=o,a.default=l},870:(e,a,t)=>{t.r(a);var s=t(208),r=t(88);a.default=(e,a=[],t={})=>i=>{const d=(0,s.useRef)(),n=(0,s.useRef)(),[o,l]=Object.entries(i).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)(d.current,n.current),()=>{n.current.remove(),n.current=null})),[l.key,...c]),(0,s.jsx)("div",{ref:d,...l})}},1158:(e,a,t)=>{t.r(a);var s=t(208),r=t(88),i=t(869),d=t(697),n=t(667);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)(),d=(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)(i.default,{id:"database-list",data:e,dataUrl:"/smb/database/subscriptions-list-data",searchFilters:a,searchOveral:"domain",columns:d})]})};u.propTypes={data:i.default.propTypes.data.isRequired,searchFilters:i.default.propTypes.searchFilters.isRequired},a.default=(0,d.withPageLayout)(u)},1157:(e,a,t)=>{t.r(a),t.d(a,{default:()=>s.default});var s=t(1158)}}]);
//# sourceMappingURL=index.js.map?6a2c03c23230bb3b4254