PageSourceSearch

https://nesma.eu/cp/javascript/views/smb/account/index.js?cac6532e90e648e3b777

js nesma.eu collected 2026-10-09 01:48:18 UTC 6,719 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["views/smb/account/index"],{1620(t,e,o){o.r(e),o.d(e,{default:()=>u});var a=o(786),s=o.n(a),n=o(95),l=o(1621);const i={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},r={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},c=(0,l.default)(n.List,{propsList:Object.keys(i),defaultProps:r});c.displayName="JswList",c.propTypes=i;const u=c},1621(t,e,o){o.r(e),o.d(e,{default:()=>n});var a=o(396),s=o(95);const n=(t,{propsList:e=[],setters:o={},defaultProps:n={}})=>l=>{const i=(0,a.useRef)(),r=(0,a.useRef)(),[c,u]=Object.entries({...n,...l}).reduce((t,[o,a])=>(t[e.includes(o)?0:1][o]=a,t),[{},{}]),d=e.map(t=>{const e=c[t];return o[t]?(r.current?.[o[t]](e),null):e});return(0,a.useLayoutEffect)(()=>(r.current=new t(c),(0,s.render)(i.current,r.current),()=>{r.current.remove(),r.current=null}),[u.key,...d]),(0,a.jsx)("div",{ref:i,...u})}},1908(t,e,o){o.r(e),o.d(e,{default:()=>d});var a=o(396),s=o(95),n=o(1620);const l=s.Locale.getSection("smb.controllers.account.index"),i=s.Locale.getSection("smb.components.lists.subscriptions"),r=()=>{document.querySelectorAll("span.hint.hint-info").forEach(({id:t})=>{new s.DynamicPopupHint.Instance({title:l.lmsg("subscriptionsHintTitle"),waitMsg:l.lmsg("subscriptionsHintWaitMessage"),url:`/account/stats-hint/id/${t.replace("hint-item-","")}`,placement:"right",target:t})})},c=t=>0===Number(t.id),u=({data:t,dataUrl:e})=>{const o=(0,a.useMemo)(()=>[{header:i.lmsg("subscription"),sortable:!0,dataIndex:"domain",renderer({isMyResources:t,domain:e,id:o}){let a=`<a href="/smb/account/switch/id/${o}?hideNotice=1&returnUrl=${encodeURIComponent(`/smb/account/show/id/${o}`)}">${e}</a> <span class="hint hint-info" id="hint-item-${o}" role="button" tabindex="0" aria-label="${i.lmsg("subscriptionStatsHint")}"><span aria-hidden="true">(?)</span></span>`;return t&&(a=`<a href="/smb/account/my-resources">${e}</a>`),a}},{header:i.lmsg("planName"),sortable:!0,dataIndex:"planName",renderer:({planName:t})=>t?(0,s.escapeHtml)(t):"&mdash;"},{header:i.lmsg("setupDate"),sortable:!0,dataIndex:"setupDate",renderer:({setupDate:t})=>t||"&mdash;"},{header:i.lmsg("actions"),cls:"text-right sr-only-header",renderer:({isMyResources:t,id:e})=>t?"":`<span><span class="tooltipData" role="tooltip" id="tooltip-switch-${e}">${i.lmsg("switchToLinkHint")}</span><a href="/smb/account/switch/all/false/id/${e}" class="s-btn sb-switch" aria-describedby="tooltip-switch-${e}"><span>${i.lmsg("switchToLink")}</span></a></span>`}],[]);return(0,a.jsx)(n.default,{id:"subscriptions-list","aria-label":i.lmsg("subscription"),data:t,dataUrl:e,columns:o,onRedraw:r,isDisabledItem:c})};u.propTypes={data:n.default.propTypes.data.isRequired,dataUrl:n.default.propTypes.dataUrl.isRequired};const d=u},1906(t,e,o){o.r(e),o.d(e,{default:()=>m});var a=o(786),s=o.n(a),n=o(95),l=o(800),i=o(1620),r=o(1907),c=o(1908),u=o(396);const d=n.Locale.getTranslate("smb.controllers.account.index"),p=["myProfile","backupAll","custom"],b=({isClassicMode:t,allowAccountLocalOrFtpBackups:e,isOwnerClient:o,data:a,dataUrl:s})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("p",{children:(0,u.jsx)(d,{content:"accountOverviewHint"})}),(0,u.jsx)(r.default,{operations:p,isClassicMode:t,allowAccountLocalOrFtpBackups:e,isOwnerClient:o}),(0,u.jsx)(c.default,{data:a,dataUrl:s})]});b.propTypes={isClassicMode:s().bool.isRequired,allowAccountLocalOrFtpBackups:s().bool.isRequired,isOwnerClient:s().bool.isRequired,data:i.default.propTypes.data.isRequired,dataUrl:i.default.propTypes.dataUrl.isRequired};const m=(0,l.withPageLayout)(b)},1905(t,e,o){o.r(e),o.d(e,{default:()=>a.default});var a=o(1906)},1907(t,e,o){o.r(e),o.d(e,{default:()=>u});var a=o(396),s=o(786),n=o.n(s),l=o(397),i=o(95),r=o(831);const c=({operations:t,domainId:e="",isClassicMode:o=!1,allowAccountLocalOrFtpBackups:s=!1,allowBackupRestoreManagement:n=!1,isOwnerClient:c=!1})=>{const{isShowMyProfileButton:u,isShowBackupAllButton:d,isShowBackupButton:p,isShowCustomButton:b}=(0,a.useMemo)(()=>({isShowMyProfileButton:t.includes("myProfile")&&!o,isShowBackupAllButton:t.includes("backupAll")&&s,isShowBackupButton:t.includes("backup")&&n,isShowCustomButton:t.includes("custom")&&c}),[s,n,o,c,t]);
1return(0,a.jsx)(l.LocaleProvider,{messages:i.Locale.getSection("smb.controllers.account._shared").messages,children:(0,a.jsx)(l.Toolbar,{children:(0,a.jsxs)(l.ToolbarGroup,{title:(0,a.jsx)(l.Translate,{content:"toolbarGroupActionsTitle"}),children:[u?(0,a.jsx)(l.ToolbarGroup,{title:(0,a.jsx)(l.Translate,{content:"toolbarGroupProfileTitle"}),children:(0,a.jsx)(l.Button,{"data-id":"accountToolbarMyProfileButton",component:r.default,tooltip:(0,a.jsx)(l.Translate,{content:"buttonProfileHint"}),href:"/smb/my-profile",children:(0,a.jsx)(l.Translate,{content:"buttonProfile"})},"accountToolbarMyProfileButton")}):null,d||p?(0,a.jsxs)(l.ToolbarGroup,{title:(0,a.jsx)(l.Translate,{content:"toolbarGroupBackUpTitle"}),children:[d?(0,a.jsx)(l.Button,{"data-id":"accountToolbarBackupAllButton",component:r.default,tooltip:(0,a.jsx)(l.Translate,{content:"buttonBackupAllHint"}),href:"/smb/backup",children:(0,a.jsx)(l.Translate,{content:"buttonBackupAll"})},"accountToolbarBackupAllButton"):null,p?(0,a.jsx)(l.Button,{"data-id":"accountToolbarBackupButton",component:r.default,tooltip:(0,a.jsx)(l.Translate,{content:"buttonBackupSubscriptionHint"}),href:`/smb/backup/list/domainId/${e}`,children:(0,a.jsx)(l.Translate,{content:"buttonBackupSubscription"})},"accountToolbarBackupButton"):null]}):null,b?(0,a.jsx)(l.ToolbarGroup,{title:(0,a.jsx)(l.Translate,{content:"toolbarGroupServicesTitle"}),children:(0,a.jsx)(l.Button,{"data-id":"accountToolbarCustomButton",component:r.default,tooltip:(0,a.jsx)(l.Translate,{content:"buttonCustomButtonsHint"}),href:"/smb/custom-buttons/list",children:(0,a.jsx)(l.Translate,{content:"buttonCustomButtons"})},"accountToolbarCustomButton")}):null]})})})};c.propTypes={operations:n().arrayOf(n().string).isRequired,domainId:n().string,isClassicMode:n().bool,allowAccountLocalOrFtpBackups:n().bool,allowBackupRestoreManagement:n().bool,isOwnerClient:n().bool};const u=c}}]);
2//# sourceMappingURL=index.js.map?cac6532e90e648e3b777

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.