"use strict";(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/smb/file-manager/index"],{970:(e,a,t)=>{t.r(a),t.d(a,{default:()=>c});var s=t(241),r=t.n(s),i=t(90),n=t(971);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,Object.keys(d));l.displayName="JswList",l.propTypes=d,l.defaultProps=o;const c=l},971:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i});var s=t(239),r=t(90);const i=(e,a=[],t={})=>i=>{const n=(0,s.useRef)(),d=(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]?(d.current?.[t[e]](a),null):a}));return(0,s.useLayoutEffect)((()=>(d.current=new e(o),(0,r.render)(n.current,d.current),()=>{d.current.remove(),d.current=null})),[l.key,...c]),(0,s.jsx)("div",{ref:n,...l})}},1154:(e,a,t)=>{t.r(a),t.d(a,{default:()=>m});var s=t(239),r=t(90),i=t(970),n=t(745),d=t(775);const o=r.Locale.getTranslate("smb.controllers.file-manager.index"),l=r.Locale.getSection("smb.components.lists.subscriptions"),c=({data:e,searchFilters:a})=>{const t=(0,d.useNavigateCallback)(),n=(0,s.useMemo)((()=>[{header:l.lmsg("primaryDomain"),sortable:!0,dataIndex:"domain",renderer:({id:e,domain:a})=>(0,r.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,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"))))))}]),[t]);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:a,searchOveral:"domain",columns:n})]})};c.propTypes={data:i.default.propTypes.data.isRequired,searchFilters:i.default.propTypes.searchFilters.isRequired};const m=(0,n.withPageLayout)(c)},1153:(e,a,t)=>{t.r(a),t.d(a,{default:()=>s.default});var s=t(1154)}}]);
//# sourceMappingURL=index.js.map?99e0a670dcf3d9161282