{"version":3,"file":"AgentInstallPanel.D5txMRxe.mjs","names":["React.useState","React.useRef","React.useId","React.Fragment","__esmMin","ie","navigator","init_npm_react_18_3_1","x","de","init_ssg_sandbox_shims","init_jsx_runtime","p","ce","_e","addPropertyControls","init_framer_CKT6jEEQ","ControlType","Arrow","Copy","copied","setCopied","timer","text","name","AgentInstallPanel","active","setActive","want","firstTab","AGENTS","a","id","CSS","step","next","N","i","MARKS","s","j","t","k","DOCS","SANS","MONO","SERVER","C","init_AgentInstallPanel"],"sources":["https:/framerusercontent.com/modules/ekTM2xUVRD8IzXIGQwrl/vY0icwGbBrLNkROxjNzE/AgentInstallPanel.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Connect Loops to an agent: one tab per client with its install action.\n * Facts come from loops.so/docs/mcp-server and /docs/quickstart-agents.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 576\n */const SANS=\"Inter, system-ui, -apple-system, sans-serif\";const MONO=\"ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace\";const DOCS=\"https://loops.so/docs\";const SERVER=\"https://mcp.loops.so\";const C={ink:\"var(--token-e5dd00a8-a1c8-408b-b050-1cf1ab615219, #21201c)\",sub:\"var(--token-9cede57e-cadf-4846-be38-7d76219e2cf3, #63635e)\",line:\"var(--token-1e04d518-8f8c-4db1-b052-31d69507827c, #dad9d6)\",line2:\"var(--token-a2f0540e-72ca-4cc9-865b-e7433ca93cb5, #e9e8e6)\",panel:\"var(--token-83f5fefd-8241-47f8-8f7c-5e6247fea9aa, #fdfdfc)\",sunken:\"var(--token-04e187b4-6515-4f0f-b3c0-d356152b5248, #f9f9f8)\"};const AGENTS=[{id:\"claude\",name:\"Claude\",mark:\"claude\",lead:\"Add the Loops connector in Claude, or the MCP server in Claude Code.\",steps:[{button:[\"Add to Claude\",\"https://claude.com/connectors/loops\"]},{label:\"Or in Claude Code\",command:`claude mcp add loops ${SERVER} --scope user --transport http`}],note:\"In Claude Code, run /mcp to sign in.\",guide:`${DOCS}/mcp-server#claude`},{id:\"chatgpt\",name:\"ChatGPT\",mark:\"openai\",lead:\"Install the Loops plugin in ChatGPT.\",steps:[{button:[\"Open in ChatGPT\",\"https://chatgpt.com/plugins/plugin_asdk_app_6a76060a3cbc81919eaaca7e37e830fe\"],alt:[\"Open in the desktop app\",\"https://chatgpt.com/plugins/plugin_asdk_app_6a76060a3cbc81919eaaca7e37e830fe?open_in_app\"]}],note:\"Click Install plugin, then sign in to Loops.\",guide:`${DOCS}/mcp-server#chatgpt`},{id:\"codex\",name:\"Codex\",mark:\"codex\",lead:\"Add the MCP server, then sign in when Codex asks.\",steps:[{command:`codex mcp add loops --url ${SERVER}`}],note:\"Needs Codex CLI 1.48.0 or later.\",guide:`${DOCS}/mcp-server#codex-cli`},{id:\"cursor\",name:\"Cursor\",mark:\"cursor\",lead:\"Cursor connects through the Loops CLI and agent skills. This installs both.\",steps:[{command:\"curl -fsSL https://install.loops.so/wizard | sh\"}],note:\"Then ask Cursor to set up Loops in your project.\",guide:`${DOCS}/quickstart-agents`},{id:\"other\",name:\"Other\",mark:\"plug\",lead:\"Add this URL as a remote MCP server, then sign in to Loops.\",steps:[{command:SERVER}],note:\"Guides cover Amp, OpenCode and VS Code.\",guide:`${DOCS}/mcp-server#other-mcp-clients`}];const N=AGENTS.length;const CSS=`\n.aip{container-type:inline-size;width:100%;display:flex;flex-direction:column;font-family:${SANS};color:${C.ink};-webkit-font-smoothing:antialiased}\n.aip *,.aip *::before,.aip *::after{box-sizing:border-box}\n.aip-card{flex:1 1 auto;display:flex;flex-direction:column;background:${C.panel};border:1px solid ${C.line};border-radius:16px;overflow:hidden}\n.aip-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:16px 20px 0}\n.aip-title{margin:0;font:500 15px/22px ${SANS};letter-spacing:-.005em}\n.aip-tabs{position:relative;display:grid;grid-template-columns:repeat(${N},minmax(0,1fr));margin:12px 12px 0;border-bottom:1px solid ${C.line2}}\n.aip-tab{appearance:none;border:0;background:transparent;color:${C.sub};font:500 13px/16px ${SANS};padding:10px 2px 12px;display:flex;flex-direction:column;align-items:center;gap:7px;cursor:pointer;border-radius:8px 8px 0 0;transition:color 160ms ease}\n.aip-tab:hover,.aip-tab[aria-selected=\"true\"]{color:${C.ink}}\n.aip-tab:focus-visible{outline:2px solid ${C.ink};outline-offset:-2px}\n.aip-tab svg{width:18px;height:18px;display:block}\n.aip-ind{position:absolute;left:0;bottom:-1px;width:calc(100% / ${N});height:2px;transform:translateX(calc(var(--i) * 100%));transition:transform 260ms cubic-bezier(.22,1,.36,1)}\n.aip-ind::after{content:\"\";position:absolute;left:18%;right:18%;top:0;bottom:0;border-radius:2px;background:${C.ink}}\n.aip-stack{flex:1 1 auto;display:grid;grid-template-columns:minmax(0,1fr)}\n.aip-panel{grid-area:1/1;display:flex;flex-direction:column;gap:14px;padding:20px;opacity:1;transition:opacity 180ms ease,transform 220ms cubic-bezier(.22,1,.36,1)}\n.aip-panel[data-active=\"false\"]{opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity 120ms ease,transform 120ms ease,visibility 0s 120ms}\n.aip-lead{margin:0;font:400 15px/22px ${SANS};color:${C.ink};text-wrap:pretty}\n.aip-step{display:flex;flex-direction:column;gap:6px}\n.aip-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px}\n.aip-row .aip-link{font:400 14px/20px ${SANS}}\n.aip-label{font:500 12px/16px ${SANS};color:${C.sub}}\n.aip-btn{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:999px;background:${C.ink};color:${C.panel};font:500 14px/1 ${SANS};text-decoration:none;transition:opacity 160ms ease}\n.aip-btn:hover{opacity:.85}\n.aip-btn svg{opacity:.7}\n.aip-cmd{display:flex;align-items:center;gap:8px;min-height:40px;padding:4px 4px 4px 12px;border:1px solid ${C.line2};border-radius:10px;background:${C.sunken}}\n.aip-cmd code{flex:1;min-width:0;font:12.5px/20px ${MONO};color:${C.ink};overflow-wrap:anywhere}\n.aip-cmd code span{display:inline-block;max-width:100%}\n.aip-copy{flex:none;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 10px;border:0;border-radius:7px;background:transparent;color:${C.sub};font:500 12.5px/1 ${SANS};cursor:pointer;transition:color 140ms ease,background-color 140ms ease}\n.aip-copy:hover{color:${C.ink};background:${C.line2}}\n.aip-copy .aip-ic{position:relative;width:14px;height:14px}\n.aip-copy .aip-ic svg{position:absolute;inset:0;transition:opacity 160ms ease,transform 200ms cubic-bezier(.22,1,.36,1)}\n.aip-copy .aip-ok{opacity:0;transform:scale(.5)}\n.aip-copy[data-copied=\"true\"]{color:${C.ink}}\n.aip-copy[data-copied=\"true\"] .aip-ok{opacity:1;transform:none}\n.aip-copy[data-copied=\"true\"] .aip-cp{opacity:0;transform:scale(.5)}\n.aip-meta{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font:400 13px/20px ${SANS};color:${C.sub}}\n.aip a.aip-link{color:${C.sub};text-decoration:none;display:inline-flex;align-items:center;gap:3px;white-space:nowrap;transition:color 140ms ease}\n.aip a.aip-link:hover{color:${C.ink}}\n.aip-btn:focus-visible,.aip-copy:focus-visible,.aip a.aip-link:focus-visible{outline:2px solid ${C.ink};outline-offset:2px}\n.aip-foot{display:flex;align-items:center;gap:12px;padding:12px 20px;border-top:1px solid ${C.line2};font:400 13px/20px ${SANS};color:${C.sub}}\n.aip-foot a.aip-link{color:${C.ink};font-weight:500}\n@container (max-width:479px){\n.aip-head{padding:14px 16px 0}\n.aip-tabs{margin:10px 6px 0}\n.aip-tab{font-size:12px;gap:6px;padding:10px 0 11px}\n.aip-panel{padding:16px}\n.aip-panel[data-active=\"false\"]{display:none}\n.aip-meta{flex-direction:column;gap:4px}\n.aip-foot{padding:12px 16px}\n}\n@media (prefers-reduced-motion:reduce){.aip-ind,.aip-panel,.aip-panel[data-active=\"false\"],.aip-copy .aip-ic svg{transition:none}.aip-panel[data-active=\"false\"]{transform:none}}\n`;function Arrow(){return /*#__PURE__*/_jsx(\"svg\",{width:\"11\",height:\"11\",viewBox:\"0 0 24 24\",fill:\"none\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M7 17L17 7M8 7h9v9\",stroke:\"currentColor\",strokeWidth:\"2.2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});}const MARKS={claude:/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 56 56\",\"aria-hidden\":\"true\",style:{color:\"#d97757\"},children:/*#__PURE__*/_jsx(\"path\",{fill:\"currentColor\",d:\"M10.9877 37.2283L22.001 31.052L22.1877 30.5153L22.001 30.2167H21.4667L19.6233 30.1047L13.328 29.9343L7.87033 29.708L2.583 29.4233L1.25067 29.141L0 27.496L0.128333 26.6747L1.24833 25.9257L2.849 26.0657L6.39567 26.306L11.711 26.6747L15.5657 26.901L21.28 27.496H22.1877L22.316 27.1297L22.0033 26.901L21.763 26.6747L16.261 22.9507L10.3063 19.012L7.189 16.744L5.49967 15.5983L4.65033 14.5203L4.28167 12.1683L5.81233 10.4837L7.868 10.6237L8.393 10.766L10.4767 12.3667L14.9287 15.8107L20.741 20.0877L21.5927 20.797L21.931 20.5567L21.9753 20.3863L21.5927 19.747L18.431 14.0397L15.057 8.22967L13.5543 5.82167L13.1577 4.37733C13.0065 3.8226 12.925 3.2512 12.915 2.67633L14.6603 0.312667L15.624 0L17.948 0.312667L18.928 1.162L20.3747 4.46133L22.7127 9.66233L26.341 16.7323L27.405 18.8277L27.972 20.769L28.1843 21.364H28.553V21.0233L28.8517 17.0427L29.4047 12.1543L29.9413 5.866L30.128 4.09267L31.0053 1.96933L32.7483 0.821333L34.111 1.47467L35.231 3.073L35.0747 4.109L34.4073 8.428L33.103 15.2017L32.2537 19.733H32.7483L33.3153 19.1683L35.6137 16.121L39.4683 11.305L41.1717 9.39167L43.155 7.28233L44.4313 6.27667H46.8417L48.615 8.911L47.8217 11.6317L45.339 14.7747L43.2833 17.4393L40.334 21.406L38.4907 24.5793L38.661 24.836L39.0997 24.7893L45.7637 23.3753L49.364 22.722L53.6597 21.987L55.6033 22.8923L55.8157 23.814L55.0503 25.697L50.456 26.831L45.0683 27.909L37.044 29.806L36.946 29.876L37.0603 30.0183L40.6747 30.359L42.2193 30.443H46.004L53.0507 30.968L54.894 32.186L56 33.6747L55.8157 34.8063L52.9807 36.253L49.154 35.3453L40.2197 33.222L37.1583 32.4543H36.7337V32.711L39.284 35.203L43.9647 39.4263L49.819 44.863L50.1153 46.2117L49.364 47.2733L48.5707 47.159L43.4257 43.2927L41.44 41.5497L36.946 37.7697H36.6473V38.1663L37.6833 39.6807L43.155 47.8963L43.4397 50.4163L43.043 51.24L41.6243 51.737L40.0657 51.4523L36.8597 46.9607L33.558 41.9043L30.891 37.3707L30.5643 37.5573L28.9917 54.4833L28.2543 55.3467L26.5533 56L25.137 54.9243L24.3857 53.1813L25.137 49.7373L26.0447 45.248L26.7797 41.678L27.447 37.2447L27.8437 35.77L27.8157 35.672L27.489 35.714L24.143 40.3037L19.0563 47.1753L15.029 51.4803L14.063 51.863L12.39 50.9997L12.5463 49.455L13.482 48.0807L19.054 40.9967L22.414 36.6053L24.584 34.0713L24.57 33.7027H24.4417L9.64133 43.3067L7.00467 43.6473L5.86833 42.5833L6.01067 40.8427L6.54967 40.2757L11.0017 37.2143L10.9877 37.2283Z\"})}),openai:/*#__PURE__*/_jsx(\"svg\",{viewBox:\"-0.5 -0.5 25 25\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{fill:\"currentColor\",fillRule:\"evenodd\",d:\"M9.205 8.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357 1.356-.523 2.117-.523 2.854 0 4.662 2.212 4.662 4.566 0 .167 0 .357-.024.547l-4.71-2.759a.797.797 0 00-.856 0l-5.97 3.473zm10.609 8.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473 1.95-1.118a.433.433 0 01.476 0l4.543 2.617c1.309.76 2.189 2.378 2.189 3.948 0 1.808-1.07 3.473-2.76 4.163zM7.802 12.703l-1.95-1.142c-.167-.095-.239-.238-.239-.428V5.899c0-2.545 1.95-4.472 4.591-4.472 1 0 1.927.333 2.712.928L8.23 5.067c-.285.166-.428.404-.428.737v6.898zM12 15.128l-2.795-1.57v-3.33L12 8.658l2.795 1.57v3.33L12 15.128zm1.796 7.23c-1 0-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974 1.142c.167.095.238.238.238.428v5.233c0 2.545-1.974 4.472-4.614 4.472zm-5.637-5.303l-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.482 4.482 0 014.21 6.327v5.423c0 .333.143.571.428.738l5.947 3.449-1.95 1.118a.432.432 0 01-.476 0zm-.262 3.9c-2.688 0-4.662-2.021-4.662-4.519 0-.19.024-.38.047-.57l4.686 2.71c.286.167.571.167.856 0l5.97-3.448v2.26c0 .19-.07.333-.237.428l-4.543 2.616c-.619.357-1.356.523-2.117.523zm5.899 2.83a5.947 5.947 0 005.827-4.756C22.287 18.339 24 15.84 24 13.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498 0-3.401-2.759-5.947-5.946-5.947-.642 0-1.26.095-1.88.31A5.962 5.962 0 0010.205 0a5.947 5.947 0 00-5.827 4.757C1.713 5.447 0 7.945 0 10.49c0 1.666.713 3.283 1.998 4.448-.119.5-.19 1-.19 1.499 0 3.401 2.759 5.946 5.946 5.946.642 0 1.26-.095 1.88-.309a5.96 5.96 0 004.162 1.713z\"})}),codex:/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 42 42\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{fill:\"currentColor\",d:\"M14.1489 0.803444C15.8349 0.109774 17.6703 -0.140845 19.4806 0.0754436C21.8139 0.343777 23.8929 1.33544 25.7176 3.05044C25.7409 3.07378 25.7736 3.09011 25.8039 3.09944C25.8369 3.10755 25.8713 3.10755 25.9042 3.09944C28.2764 2.48685 30.7875 2.71355 33.0116 3.74111L33.1212 3.79244L33.3919 3.92544C35.72 5.10543 37.536 7.09648 38.4972 9.52311C38.9849 10.7131 39.2276 11.9521 39.2322 13.2448C39.2673 14.2061 39.162 15.1675 38.9196 16.0984C38.9076 16.1454 38.9078 16.1947 38.92 16.2416C38.9322 16.2885 38.9562 16.3316 38.9896 16.3668C40.3756 17.7831 41.2949 19.4701 41.7499 21.4301C42.4242 24.7551 41.7336 27.7534 39.6802 30.4228L39.3629 30.8101C38.003 32.3668 36.218 33.4924 34.2272 34.0488C34.184 34.0614 34.1444 34.0841 34.1116 34.1149C34.0787 34.1457 34.0536 34.1838 34.0382 34.2261C33.5926 35.5118 33.1446 36.6131 32.3116 37.7121C30.2116 40.4818 27.1269 42.0194 23.6526 42.0008C20.8829 41.9868 18.4282 40.9741 16.2862 38.9628C16.254 38.9326 16.2143 38.9115 16.1713 38.9017C16.1283 38.8919 16.0834 38.8936 16.0412 38.9068C15.1359 39.1984 14.2212 39.2404 13.2319 39.2288C11.6561 39.2161 10.104 38.8443 8.69357 38.1414C7.21617 37.4093 5.92988 36.3428 4.9369 35.0264C4.58224 34.5551 4.2299 34.1118 3.9709 33.5868C3.61732 32.8664 3.32841 32.116 3.10757 31.3444C2.64137 29.5889 2.63013 27.7435 3.0749 25.9824C3.08953 25.9405 3.09432 25.8958 3.0889 25.8518C3.08091 25.8085 3.05875 25.7691 3.0259 25.7398C1.94806 24.6488 1.12425 23.3334 0.613236 21.8874C0.273388 20.9968 0.0757504 20.0582 0.0275696 19.1061C-0.0571982 17.8521 0.053798 16.5926 0.35657 15.3728C1.1429 12.7781 2.6479 10.7411 4.8669 9.26411C5.36157 8.93511 5.83057 8.67844 6.26924 8.49411C6.7709 8.28644 7.27257 8.11144 7.77657 7.96444C7.81259 7.95327 7.84528 7.93336 7.87175 7.90649C7.89821 7.87963 7.91761 7.84663 7.92824 7.81044C8.31093 6.43621 8.96904 5.15413 9.86257 4.04211C10.9889 2.6118 12.4653 1.49629 14.1489 0.803444ZM22.2736 25.4551C21.8944 25.4764 21.5377 25.642 21.2768 25.918C21.0159 26.1939 20.8705 26.5593 20.8705 26.9391C20.8705 27.3189 21.0159 27.6843 21.2768 27.9602C21.5377 28.2362 21.8944 28.4018 22.2736 28.4231H30.7576C30.9594 28.4344 31.1615 28.4044 31.3514 28.335C31.5413 28.2655 31.715 28.1581 31.862 28.0191C32.0089 27.8802 32.1259 27.7128 32.2059 27.5271C32.2859 27.3414 32.3272 27.1413 32.3272 26.9391C32.3272 26.7369 32.2859 26.5368 32.2059 26.3511C32.1259 26.1654 32.0089 25.998 31.862 25.8591C31.715 25.7202 31.5413 25.6127 31.3514 25.5432C31.1615 25.4738 30.9594 25.4438 30.7576 25.4551H22.2736ZM12.7442 14.5374C12.5423 14.2086 12.2204 13.9711 11.8465 13.8753C11.4727 13.7795 11.0762 13.8329 10.741 14.0241C10.4058 14.2154 10.1582 14.5295 10.0504 14.9001C9.94262 15.2706 9.98321 15.6686 10.1636 16.0098L13.1316 21.1991L10.1776 26.1831C10.0781 26.3509 10.0127 26.5366 9.98506 26.7296C9.95739 26.9227 9.96803 27.1193 10.0163 27.3082C10.0647 27.4971 10.1497 27.6747 10.2667 27.8308C10.3836 27.9868 10.5301 28.1183 10.6979 28.2178C10.8657 28.3172 11.0514 28.3826 11.2444 28.4103C11.4375 28.4379 11.6341 28.4273 11.823 28.379C12.0119 28.3307 12.1895 28.2456 12.3456 28.1287C12.5016 28.0117 12.6331 27.8652 12.7326 27.6974L16.1252 21.9691C16.259 21.7434 16.3306 21.4863 16.3326 21.224C16.3346 20.9617 16.2671 20.7035 16.1369 20.4758L12.7442 14.5374Z\"})}),cursor:/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 16 16\",fill:\"none\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsxs(\"g\",{stroke:\"currentColor\",strokeWidth:\"1.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:[/*#__PURE__*/_jsx(\"rect\",{x:\"1.75\",y:\"2.75\",width:\"12.5\",height:\"10.5\",rx:\"2.25\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M4.75 6.25 6.75 8l-2 1.75M8.75 10h2.5\"})]})}),plug:/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 24 24\",fill:\"none\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M9 7V3m6 4V3M6 7h12v4a6 6 0 0 1-12 0V7Zm6 10v4\",stroke:\"currentColor\",strokeWidth:\"1.8\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})};function Copy({text,name}){const[copied,setCopied]=React.useState(false);const timer=React.useRef(null);React.useEffect(()=>()=>{if(timer.current)clearTimeout(timer.current);},[]);const onClick=()=>{navigator.clipboard?.writeText(text);setCopied(true);if(timer.current)clearTimeout(timer.current);timer.current=setTimeout(()=>setCopied(false),1600);};return /*#__PURE__*/_jsxs(\"button\",{type:\"button\",className:\"aip-copy\",\"data-copied\":copied,onClick:onClick,\"aria-label\":`Copy the ${name} command`,children:[/*#__PURE__*/_jsxs(\"span\",{className:\"aip-ic\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsxs(\"svg\",{className:\"aip-cp\",viewBox:\"0 0 16 16\",fill:\"none\",children:[/*#__PURE__*/_jsx(\"rect\",{x:\"5.25\",y:\"5.25\",width:\"8\",height:\"8\",rx:\"1.75\",stroke:\"currentColor\",strokeWidth:\"1.4\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M10.75 3.25v-.5c0-.83-.67-1.5-1.5-1.5h-5.5c-.83 0-1.5.67-1.5 1.5v5.5c0 .83.67 1.5 1.5 1.5h.5\",stroke:\"currentColor\",strokeWidth:\"1.4\",strokeLinecap:\"round\"})]}),/*#__PURE__*/_jsx(\"svg\",{className:\"aip-ok\",viewBox:\"0 0 16 16\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M3.5 8.5l3 3 6-7\",stroke:\"currentColor\",strokeWidth:\"1.6\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})]}),/*#__PURE__*/_jsx(\"span\",{\"aria-live\":\"polite\",children:copied?\"Copied\":\"Copy\"})]});}export default function AgentInstallPanel({firstTab=\"claude\",style}){const[active,setActive]=React.useState(()=>{const want=String(firstTab).toLowerCase();return Math.max(0,AGENTS.findIndex(a=>a.id===want||a.name.toLowerCase()===want));});const id=React.useId();const onKeyDown=e=>{const step={ArrowRight:1,ArrowLeft:-1}[e.key];if(!step)return;e.preventDefault();const next=(active+step+N)%N;setActive(next);e.currentTarget.querySelectorAll(\"[role=tab]\")[next]?.focus();};return /*#__PURE__*/_jsxs(\"section\",{className:\"aip\",style:style,\"aria-labelledby\":`${id}-title`,children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:CSS}}),/*#__PURE__*/_jsxs(\"div\",{className:\"aip-card\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"aip-head\",children:/*#__PURE__*/_jsx(\"h2\",{className:\"aip-title\",id:`${id}-title`,children:\"Connect your agent\"})}),/*#__PURE__*/_jsxs(\"div\",{className:\"aip-tabs\",role:\"tablist\",\"aria-label\":\"Agents\",onKeyDown:onKeyDown,children:[AGENTS.map((a,i)=>/*#__PURE__*/_jsxs(\"button\",{type:\"button\",role:\"tab\",id:`${id}-tab-${i}`,\"aria-selected\":i===active,\"aria-controls\":`${id}-panel-${i}`,tabIndex:i===active?0:-1,className:\"aip-tab\",onClick:()=>setActive(i),children:[MARKS[a.mark],a.name]},a.id)),/*#__PURE__*/_jsx(\"span\",{className:\"aip-ind\",\"aria-hidden\":\"true\",style:{[\"--i\"]:active}})]}),/*#__PURE__*/_jsx(\"div\",{className:\"aip-stack\",children:AGENTS.map((a,i)=>/*#__PURE__*/_jsxs(\"div\",{role:\"tabpanel\",id:`${id}-panel-${i}`,\"aria-labelledby\":`${id}-tab-${i}`,\"data-active\":i===active,className:\"aip-panel\",children:[/*#__PURE__*/_jsx(\"p\",{className:\"aip-lead\",children:a.lead}),a.steps.map((s,k)=>/*#__PURE__*/_jsxs(\"div\",{className:\"aip-step\",children:[s.label?/*#__PURE__*/_jsx(\"span\",{className:\"aip-label\",children:s.label}):null,s.button?/*#__PURE__*/_jsxs(\"div\",{className:\"aip-row\",children:[/*#__PURE__*/_jsxs(\"a\",{className:\"aip-btn\",href:s.button[1],target:\"_blank\",rel:\"noopener\",children:[s.button[0],\" \",/*#__PURE__*/_jsx(Arrow,{})]}),s.alt?/*#__PURE__*/_jsxs(\"a\",{className:\"aip-link\",href:s.alt[1],target:\"_blank\",rel:\"noopener\",children:[s.alt[0],\" \",/*#__PURE__*/_jsx(Arrow,{})]}):null]}):null,s.command?/*#__PURE__*/_jsxs(\"div\",{className:\"aip-cmd\",children:[/*#__PURE__*/_jsx(\"code\",{children:s.command.split(\" \").map((t,j)=>/*#__PURE__*/_jsxs(React.Fragment,{children:[j?\" \":null,/*#__PURE__*/_jsx(\"span\",{children:t})]},j))}),/*#__PURE__*/_jsx(Copy,{text:s.command,name:s.label||a.name})]}):null]},k)),/*#__PURE__*/_jsxs(\"div\",{className:\"aip-meta\",children:[/*#__PURE__*/_jsx(\"span\",{children:a.note}),/*#__PURE__*/_jsxs(\"a\",{className:\"aip-link\",href:a.guide,target:\"_blank\",rel:\"noopener\",children:[\"Setup guide \",/*#__PURE__*/_jsx(Arrow,{})]})]})]},a.id))}),/*#__PURE__*/_jsx(\"div\",{className:\"aip-foot\",children:/*#__PURE__*/_jsxs(\"a\",{className:\"aip-link\",href:`${DOCS}/skills#api-skill`,target:\"_blank\",rel:\"noopener\",children:[\"Or install the API skill \",/*#__PURE__*/_jsx(Arrow,{})]})})]})]});}addPropertyControls(AgentInstallPanel,{firstTab:{type:ControlType.Enum,title:\"First tab\",options:AGENTS.map(a=>a.id),optionTitles:AGENTS.map(a=>a.name),defaultValue:\"claude\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AgentInstallPanel\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AgentInstallPanel.map"],"mappings":"A,2NA0DE,SAASkB,GAAO,CAAC,MAAoB,gBAAK,MAAM,CAAC,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,KAAK,OAAO,cAAc,OAAO,SAAsB,gBAAK,OAAO,CAAC,EAAE,qBAAqB,OAAO,eAAe,YAAY,MAAM,cAAc,QAAQ,eAAe,OAAO,CAAC,CAAC,CAAC,CAAE,CAAo9P,SAASC,EAAK,CAAC,OAAK,QAAM,CAAC,GAAK,CAACC,EAAOC,GAAWrB,EAAe,EAAK,EAAQsB,EAAMrB,EAAa,IAAI,EAAyP,OAAvPY,UAAwB,CAAIS,EAAM,SAAQ,aAAaA,EAAM,OAAO,CAAE,EAAE,CAAC,CAAC,EAAiM,gBAAM,SAAS,CAAC,KAAK,SAAS,UAAU,WAAW,cAAcF,EAAe,YAA7P,CAACd,EAAU,WAAW,UAAUiB,CAAI,EAAEF,EAAU,EAAI,EAAKC,EAAM,SAAQ,aAAaA,EAAM,OAAO,EAAE,EAAM,QAAQ,eAAeD,EAAU,EAAK,EAAE,IAAI,CAAE,EAA8G,aAAa,YAAYG,EAAK,UAAU,SAAS,CAAc,gBAAM,OAAO,CAAC,UAAU,SAAS,cAAc,OAAO,SAAS,CAAc,gBAAM,MAAM,CAAC,UAAU,SAAS,QAAQ,YAAY,KAAK,OAAO,SAAS,CAAc,gBAAK,OAAO,CAAC,EAAE,OAAO,EAAE,OAAO,MAAM,IAAI,OAAO,IAAI,GAAG,OAAO,OAAO,eAAe,YAAY,KAAK,CAAC,EAAe,gBAAK,OAAO,CAAC,EAAE,+FAA+F,OAAO,eAAe,YAAY,MAAM,cAAc,OAAO,CAAC,CAAC,CAAC,CAAC,EAAe,gBAAK,MAAM,CAAC,UA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