1"use strict";(globalThis.webpackChunkPlesk||=[]).push([["app/profile/webpros-account"],{3312(n,t,e){e.r(t),e.d(t,{default:()=>r});var c=e(342),o=e(95),a=e(1647),s=e(718),i=(e(3313),e(341));const l=["mcpSetupStepCopy","mcpSetupStepRun","mcpSetupStepStart","mcpSetupStepConfirmAccount","mcpSetupStepConfirmConnection"],r=({mcpServerName:n,mcpConfiguration:{type:t,url:e,oauth:{clientId:r,callbackPort:p}},mcpDocumentationUrl:d})=>{const m=["claude mcp add",`--transport ${t}`,n,e,`--client-id ${r}`,`--callback-port ${p}`].join(" ");return(0,i.jsxs)("div",{className:"mcp-connection","data-type":"mcp-connection",children:[(0,i.jsx)(c.Heading,{level:5,children:(0,i.jsx)(c.Translate,{content:"mcpCommand"})}),(0,i.jsxs)("div",{className:"mcp-connection__command",children:[(0,i.jsx)(a.default,{className:"mcp-connection__copy",id:"mcp-command",content:m,onCopy:()=>(0,s.addToast)({intent:"success",message:o.Locale.getSection("components.buttons").lmsg("copied")})}),(0,i.jsx)(c.ConsoleOutput,{className:"mcp-connection__code",autoscroll:!1,wide:!0,children:m})]}),(0,i.jsx)(c.Heading,{level:5,children:(0,i.jsx)(c.Translate,{content:"mcpSetup"})}),(0,i.jsx)("ol",{children:l.map(n=>(0,i.jsx)("li",{children:(0,i.jsx)(c.Translate,{content:n})},n))}),d?(0,i.jsxs)(c.Paragraph,{children:[(0,i.jsx)(c.Translate,{content:"mcpDocumentationNote"})," ",(0,i.jsx)(c.Link,{href:d,target:"_blank",children:(0,i.jsx)(c.Translate,{content:"mcpDocumentationLink"})})]}):null]})}},3311(n,t,e){e.r(t),e.d(t,{default:()=>c.default});var c=e(3312)},3310(n,t,e){e.r(t),e.d(t,{default:()=>l});var c=e(342),o=e(95),a=e(341),s=e(3311);const i=({label:n,description:t,action:e,actionUrl:s,name:i,isOn:l,disabled:r,tooltip:p})=>{const[d,m]=(0,a.useState)(!1),u=(0,a.jsx)(c.Link,{"data-action":`${l?"disable":"enable"}-${i}`,disabled:d||r,onClick:()=>{m(!0),(0,o.redirectPost)(s)},children:e});return(0,a.jsxs)(c.FormField,{label:n,description:t,children:[(0,a.jsx)(c.Status,{compact:!0,intent:l?"success":"inactive",children:o.Locale.getSection("components.elements.switch").lmsg(l?"onState":"offState")})," ",(0,a.jsx)(c.AuxiliaryActions,{children:p?(0,a.jsx)(c.Tooltip,{title:p,children:u}):u})]})},l=({isConnected:n,accountActionUrl:t,isMcpAvailable:e,isMcpConnected:o,mcpActionUrl:l,...r})=>{const[p,d]=(0,a.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i,{label:(0,a.jsx)(c.Translate,{content:"connected"}),action:(0,a.jsx)(c.Translate,{content:n?"unlink":"link"}),actionUrl:t,name:"webpros-account",isOn:n}),e?(0,a.jsx)(i,{label:(0,a.jsx)(c.Translate,{content:"mcpConnection"}),description:(0,a.jsx)(c.Translate,{content:"mcpConnectionDescription",params:{instructions:o?(0,a.jsx)(c.Link,{"data-action":p?"hide-mcp-instructions":"show-mcp-instructions",onClick:()=>d(!p),children:(0,a.jsx)(c.Translate,{content:p?"mcpShowLess":"mcpShowMore"})}):null}}),action:(0,a.jsx)(c.Translate,{content:o?"mcpDisconnect":"mcpConnect"}),actionUrl:l,name:"mcp-connection",isOn:o,disabled:!n,tooltip:n?void 0:(0,a.jsx)(c.Translate,{content:"mcpRequiresAccount"})}):null,e&&o&&p?(0,a.jsx)(s.default,{...r}):null]})}},3309(n,t,e){e.r(t),e.d(t,{default:()=>c.default});var c=e(3310)},3308(n,t,e){e.r(t),e.d(t,{default:()=>l});var c=e(344),o=e(342),a=e(95),s=e(3309),i=e(341);const l=({renderTo:n,...t})=>{const{messages:e}=a.Locale.getSection("components.forms.webpros-account");(0,c.createRoot)(document.getElementById(n)).render((0,i.jsx)(o.LocaleBetaProvider,{messages:e,children:(0,i.jsx)(s.default,{...t})}))};e.dn(l)},1647(n,t,e){e.r(t),e.d(t,{default:()=>i});var c=e(342),o=e(95),a=e(341);const s=o.Locale.getSection("components.buttons"),i=({id:n,content:t,icon:e="copy",className:o,tooltip:i=s.lmsg("copyToClipboard"),onCopy:l=()=>{},children:r})=>(0,a.jsx)(c.Button,{className:o,ghost:!0,icon:e,tooltip:i,tooltipAsLabel:!0,onClick:()=>{(0,c.copyToClipboard)(t),l()},"data-action":"copy-to-clipboard"+(n?`-${n}`:""),children:r})},3313(n,t,e){e.r(t)}}]); 2//# sourceMappingURL=webpros-account.js.map?acdc8cd1a382cda55b0a
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.