"use strict";(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/smb/file-manager/index"],{1194:(e,t,a)=>{a.r(t),a.d(t,{default:()=>c});var s=a(272),r=a.n(s),i=a(89),n=a(1195);const d={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,n.default)(i.List,{propsList:Object.keys(d),defaultProps:o});l.displayName="JswList",l.propTypes=d;const c=l},1195:(e,t,a)=>{a.r(t),a.d(t,{default:()=>i});var s=a(270),r=a(89);const i=(e,{propsList:t=[],setters:a={},defaultProps:i={}})=>n=>{const d=(0,s.useRef)(),o=(0,s.useRef)(),[l,c]=Object.entries({...i,...n}).reduce(((e,[a,s])=>(e[t.includes(a)?0:1][a]=s,e)),[{},{}]),m=t.map((e=>{const t=l[e];return a[e]?(o.current?.[a[e]](t),null):t}));return(0,s.useLayoutEffect)((()=>(o.current=new e(l),(0,r.render)(d.current,o.current),()=>{o.current.remove(),o.current=null})),[c.key,...m]),(0,s.jsx)("div",{ref:d,...c})}},1411:(e,t,a)=>{a.r(t),a.d(t,{default:()=>m});var s=a(270),r=a(89),i=a(1194),n=a(593),d=a(637);const o=r.Locale.getTranslate("smb.controllers.file-manager.index"),l=r.Locale.getSection("smb.components.lists.subscriptions"),c=({data:e,searchFilters:t})=>{const a=(0,d.useNavigateCallback)(),n=(0,s.useMemo)((()=>[{header:l.lmsg("primaryDomain"),sortable:!0,dataIndex:"domain",renderer:({id:e,domain:t})=>(0,r.createElement)("a",{href:`/smb/file-manager/list/domainId/${e}`,onclick:a},t)},{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,r.createElement)("a",{href:`/smb/account/switch/id/${e}?hideNotice=1&returnUrl=${encodeURIComponent("/smb/ftp")}`,class:"s-btn sb-login"},(0,r.createElement)("i",(0,r.createElement)("i",(0,r.createElement)("i",(0,r.createElement)("span",l.lmsg("ftpAccess"))))))}]),[a]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{children:(0,s.jsx)(o,{content:"pageHint"})}),(0,s.jsx)(i.default,{id:"subscriptions-list",data:e,dataUrl:"/smb/file-manager/subscriptions-list-data",searchFilters:t,searchOveral:"domain",columns:n})]})};c.propTypes={data:i.default.propTypes.data.isRequired,searchFilters:i.default.propTypes.searchFilters.isRequired};const m=(0,n.withPageLayout)(c)},1410:(e,t,a)=>{a.r(t),a.d(t,{default:()=>s.default});var s=a(1411)}}]);
//# sourceMappingURL=index.js.map?08cdf1d77e38f20c66b8