1"use strict";(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["views/smb/account/index"],{1674(t,e,o){o.r(e),o.d(e,{default:()=>u});var a=o(787),n=o.n(a),s=o(95),l=o(1675);const i={id:n().string,dataUrl:n().string,operations:n().array,itemActions:n().object,columns:n().array,data:n().shape({data:n().array,state:n().object,pager:n().object,locale:n().object,additional:n().object,pathbar:n().any}),searchFilters:n().object,searchOveral:n().string,disabledSelectHint:n().string,isDisabledItem:n().func,onRedraw:n().func,emptyViewMode:n().oneOf(["all","items"]),emptyView:n().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)(s.List,{propsList:Object.keys(i),defaultProps:r});c.displayName="JswList",c.propTypes=i;const u=c},1675(t,e,o){o.r(e),o.d(e,{default:()=>s});var a=o(396),n=o(95);const s=(t,{propsList:e=[],setters:o={},defaultProps:s={}})=>l=>{const i=(0,a.useRef)(),r=(0,a.useRef)(),[c,u]=Object.entries({...s,...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,n.render)(i.current,r.current),()=>{r.current.remove(),r.current=null}),[u.key,...d]),(0,a.jsx)("div",{ref:i,...u})}},1962(t,e,o){o.r(e),o.d(e,{default:()=>d});var a=o(396),n=o(95),s=o(1674);const l=n.Locale.getSection("smb.controllers.account.index"),i=n.Locale.getSection("smb.components.lists.subscriptions"),r=()=>{document.querySelectorAll("span.hint.hint-info").forEach(({id:t})=>{new n.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,n.escapeHtml)(t):"—"},{header:i.lmsg("setupDate"),sortable:!0,dataIndex:"setupDate",renderer:({setupDate:t})=>t||"—"},{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)(s.default,{id:"subscriptions-list","aria-label":i.lmsg("subscription"),data:t,dataUrl:e,columns:o,onRedraw:r,isDisabledItem:c})};u.propTypes={data:s.default.propTypes.data.isRequired,dataUrl:s.default.propTypes.dataUrl.isRequired};const d=u},1960(t,e,o){o.r(e),o.d(e,{default:()=>m});var a=o(787),n=o.n(a),s=o(95),l=o(801),i=o(1674),r=o(1961),c=o(1962),u=o(396);const d=s.Locale.getTranslate("smb.controllers.account.index"),p=["myProfile","backupAll","custom"],b=({isClassicMode:t,allowAccountLocalOrFtpBackups:e,allowStickerCollection:o=!1,isOwnerClient:a,data:n,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,allowStickerCollection:o,isOwnerClient:a}),(0,u.jsx)(c.default,{data:n,dataUrl:s})]});b.propTypes={isClassicMode:n().bool.isRequired,allowAccountLocalOrFtpBackups:n().bool.isRequired,allowStickerCollection:n().bool,isOwnerClient:n().bool.isRequired,data:i.default.propT
1ypes.data.isRequired,dataUrl:i.default.propTypes.dataUrl.isRequired};const m=(0,l.withPageLayout)(b)},1959(t,e,o){o.r(e),o.d(e,{default:()=>a.default});var a=o(1960)},1961(t,e,o){o.r(e),o.d(e,{default:()=>u});var a=o(396),n=o(787),s=o.n(n),l=o(397),i=o(95),r=o(832);const c=({operations:t,domainId:e="",isClassicMode:o=!1,allowAccountLocalOrFtpBackups:n=!1,allowBackupRestoreManagement:s=!1,allowStickerCollection:c=!1,isOwnerClient:u=!1})=>{const{isShowMyProfileButton:d,isShowBackupAllButton:p,isShowBackupButton:b,isShowCustomButton:m}=(0,a.useMemo)(()=>({isShowMyProfileButton:t.includes("myProfile")&&!o,isShowBackupAllButton:t.includes("backupAll")&&n,isShowBackupButton:t.includes("backup")&&s,isShowCustomButton:t.includes("custom")&&u}),[n,s,o,u,t]);return(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:[d?(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,p||b?(0,a.jsxs)(l.ToolbarGroup,{title:(0,a.jsx)(l.Translate,{content:"toolbarGroupBackUpTitle"}),children:[p?(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,b?(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,m?(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,d&&c?(0,a.jsx)(l.ToolbarGroup,{title:(0,a.jsx)(l.Translate,{content:"buttonStickerCollection"}),children:(0,a.jsx)(l.Button,{"data-id":"stickerCollection",component:r.default,tooltip:(0,a.jsx)(l.Translate,{content:"buttonStickerCollectionHint"}),href:"/cp/sticker-collection",children:(0,a.jsx)(l.Translate,{content:"buttonStickerCollection"})},"accountToolbarStickerCollectionButton")}):null]})})})};c.propTypes={operations:s().arrayOf(s().string).isRequired,domainId:s().string,isClassicMode:s().bool,allowAccountLocalOrFtpBackups:s().bool,allowBackupRestoreManagement:s().bool,allowStickerCollection:s().bool,isOwnerClient:s().bool};const u=c}}]); 2//# sourceMappingURL=index.js.map?ca0c8980a02d67bb73d9
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.