"use strict";(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/smb/file-manager/index"],{869:(e,a,t)=>{t.r(a);var r=t(210),s=t.n(r),i=t(88),n=t(870);const d={id:s().string,dataUrl:s().string,operations:s().array,itemActions:s().object,columns:s().array,data:s().shape({data:s().array,state:s().object,pager:s().object,locale:s().object,additional:s().object,pathbar:s().any}),searchFilters:s().object,searchOveral:s().string,disabledSelectHint:s().string,isDisabledItem:s().func,onRedraw:s().func,emptyViewMode:s().oneOf(["all","items"]),emptyView:s().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,n.default)(i.List,Object.keys(d));l.displayName="JswList",l.propTypes=d,l.defaultProps=o,a.default=l},870:(e,a,t)=>{t.r(a);var r=t(208),s=t(88);a.default=(e,a=[],t={})=>i=>{const n=(0,r.useRef)(),d=(0,r.useRef)(),[o,l]=Object.entries(i).reduce(((e,[t,r])=>(e[a.includes(t)?0:1][t]=r,e)),[{},{}]),c=a.map((e=>{const a=o[e];return t[e]?(d.current?.[t[e]](a),null):a}));return(0,r.useLayoutEffect)((()=>(d.current=new e(o),(0,s.render)(n.current,d.current),()=>{d.current.remove(),d.current=null})),[l.key,...c]),(0,r.jsx)("div",{ref:n,...l})}},1051:(e,a,t)=>{t.r(a);var r=t(208),s=t(88),i=t(869),n=t(697),d=t(667);const o=s.Locale.getTranslate("smb.controllers.file-manager.index"),l=s.Locale.getSection("smb.components.lists.subscriptions"),c=({data:e,searchFilters:a})=>{const t=(0,d.useNavigateCallback)(),n=(0,r.useMemo)((()=>[{header:l.lmsg("primaryDomain"),sortable:!0,dataIndex:"domain",renderer:({id:e,domain:a})=>(0,s.createElement)("a",{href:`/smb/file-manager/list/domainId/${e}`,onclick:t},a)},{header:l.lmsg("addonDomains"),dataIndex:"addonDomains",renderer:({addonDomains:e})=>e.join("<br/>")},{header:l.lmsg("systemUser"),sortable:!0,dataIndex:"systemUser"},{header:"",renderer:({id:e})=>(0,s.createElement)("a",{href:`/smb/account/switch/id/${e}?hideNotice=1&returnUrl=${encodeURIComponent("/smb/ftp")}`,class:"s-btn sb-login"},(0,s.createElement)("i",(0,s.createElement)("i",(0,s.createElement)("i",(0,s.createElement)("span",l.lmsg("ftpAccess"))))))}]),[t]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{children:(0,r.jsx)(o,{content:"pageHint"})}),(0,r.jsx)(i.default,{id:"subscriptions-list",data:e,dataUrl:"/smb/file-manager/subscriptions-list-data",searchFilters:a,searchOveral:"domain",columns:n})]})};c.propTypes={data:i.default.propTypes.data.isRequired,searchFilters:i.default.propTypes.searchFilters.isRequired},a.default=(0,n.withPageLayout)(c)},1050:(e,a,t)=>{t.r(a),t.d(a,{default:()=>r.default});var r=t(1051)}}]);
//# sourceMappingURL=index.js.map?5189dc1f90e5b1c2d6d3