"use strict";(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/smb/file-manager/index"],{879:(e,a,t)=>{t.r(a);var r=t(210),s=t.n(r),i=t(88),n=t(880);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},880:(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})}},1063:(e,a,t)=>{t.r(a);var r=t(208),s=t(88),i=t(879),n=t(748),d=t(489);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)},1062:(e,a,t)=>{t.r(a),t.d(a,{default:()=>r.default});var r=t(1063)}}]);
//# sourceMappingURL=index.js.map?625a30018ea8a82abbbe