"use strict";(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["views/smb/file-manager/index"],{1674(e,a,t){t.r(a),t.d(a,{default:()=>c});var s=t(787),r=t.n(s),i=t(95),n=t(1675);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},1675(e,a,t){t.r(a),t.d(a,{default:()=>i});var s=t(396),r=t(95);const i=(e,{propsList:a=[],setters:t={},defaultProps:i={}})=>n=>{const d=(0,s.useRef)(),o=(0,s.useRef)(),[l,c]=Object.entries({...i,...n}).reduce((e,[t,s])=>(e[a.includes(t)?0:1][t]=s,e),[{},{}]),m=a.map(e=>{const a=l[e];return t[e]?(o.current?.[t[e]](a),null):a});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})}},1890(e,a,t){t.r(a),t.d(a,{default:()=>m});var s=t(396),r=t(95),i=t(1674),n=t(801),d=t(832);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)},1889(e,a,t){t.r(a),t.d(a,{default:()=>s.default});var s=t(1890)}}]);
//# sourceMappingURL=index.js.map?943660098742d16445cf