"use strict";(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["views/smb/database/index"],{1568:(e,a,t)=>{t.r(a),t.d(a,{default:()=>c});var s=t(668),r=t.n(s),i=t(90),d=t(1569);const o={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},n={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,{propsList:Object.keys(o),defaultProps:n});l.displayName="JswList",l.propTypes=o;const c=l},1569:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i});var s=t(296),r=t(90);const i=(e,{propsList:a=[],setters:t={},defaultProps:i={}})=>d=>{const o=(0,s.useRef)(),n=(0,s.useRef)(),[l,c]=Object.entries({...i,...d}).reduce((e,[t,s])=>(e[a.includes(t)?0:1][t]=s,e),[{},{}]),u=a.map(e=>{const a=l[e];return t[e]?(n.current?.[t[e]](a),null):a});return(0,s.useLayoutEffect)(()=>(n.current=new e(l),(0,r.render)(o.current,n.current),()=>{n.current.remove(),n.current=null}),[c.key,...u]),(0,s.jsx)("div",{ref:o,...c})}},2299:(e,a,t)=>{t.r(a),t.d(a,{default:()=>s.default});var s=t(2300)},2300:(e,a,t)=>{t.r(a),t.d(a,{default:()=>p});var s=t(296),r=t(90),i=t(1568),d=t(675),o=t(718);const n=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,o.useNavigateCallback)(),d=(0,s.useMemo)(()=>[{header:n.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};const p=(0,d.withPageLayout)(u)}}]);
//# sourceMappingURL=index.js.map?b8decfbbaee100d3fd72