{"version":3,"file":"StaticCodeBlock._aQNB5FD.mjs","names":["React.useState","React.useRef","React.useCallback"],"sources":["https:/framerusercontent.com/modules/bDOGTrWktP57dbJjTptL/s6qEWGA6uIyrQAzJq6nu/CopyPrompt.js","https:/framerusercontent.com/modules/iPuWbzwUEkOonTfD5CZD/MchjBJE41K2l5imqEGsR/StaticCodeBlock.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Copies an install prompt to the clipboard — the text is written to be pasted\n * straight into an agent, not run in a shell.\n *\n * Falls back to a hidden textarea + execCommand where the async clipboard API\n * is unavailable (older Safari, and any non-secure origin), because a copy\n * button that silently does nothing is worse than no button.\n */const MONO='\"Geist Mono\", ui-monospace, SFMono-Regular, Menlo, monospace';function writeClipboard(text){if(typeof navigator!==\"undefined\"&&navigator.clipboard?.writeText){return navigator.clipboard.writeText(text).then(()=>true,()=>legacyCopy(text));}return Promise.resolve(legacyCopy(text));}function legacyCopy(text){if(typeof document===\"undefined\")return false;try{const ta=document.createElement(\"textarea\");ta.value=text;ta.setAttribute(\"readonly\",\"\");ta.style.position=\"fixed\";ta.style.top=\"-1000px\";ta.style.opacity=\"0\";document.body.appendChild(ta);ta.select();const ok=document.execCommand(\"copy\");document.body.removeChild(ta);return ok;}catch{return false;}}/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function CopyPrompt(props){const{label=\"Copy install prompt\",copiedLabel=\"Copied\",prompt=\"\",accent=\"#14EC77\",style}=props;const[state,setState]=React.useState(\"idle\");const timer=React.useRef(undefined);React.useEffect(()=>()=>{if(timer.current!==undefined)window.clearTimeout(timer.current);},[]);const onClick=React.useCallback(()=>{writeClipboard(prompt).then(ok=>{setState(ok?\"ok\":\"fail\");if(timer.current!==undefined)window.clearTimeout(timer.current);timer.current=window.setTimeout(()=>setState(\"idle\"),1900);});},[prompt]);const on=state===\"ok\";const bad=state===\"fail\";const text=on?copiedLabel:bad?\"Press ⌘C\":label;return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",...style},children:/*#__PURE__*/_jsxs(\"button\",{type:\"button\",onClick:onClick,\"aria-live\":\"polite\",style:{appearance:\"none\",cursor:\"pointer\",width:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:8,padding:\"10px 12px\",borderRadius:6,fontFamily:MONO,fontSize:10.5,fontWeight:500,letterSpacing:\"1.6px\",textTransform:\"uppercase\",color:on?accent:\"rgba(255,255,255,0.62)\",background:on?\"rgba(20,236,119,0.08)\":\"rgba(255,255,255,0.03)\",border:`1px solid ${on?accent:\"rgba(255,255,255,0.12)\"}`,transition:\"color .18s, border-color .18s, background .18s\"},children:[/*#__PURE__*/_jsx(\"svg\",{width:\"13\",height:\"13\",viewBox:\"0 0 20 20\",\"aria-hidden\":\"true\",style:{flex:\"none\"},children:on?/*#__PURE__*/_jsx(\"path\",{d:\"M4.5 10.6l3.6 3.6 7.4-8\",fill:\"none\",stroke:accent,strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}):/*#__PURE__*/_jsxs(\"g\",{fill:\"none\",stroke:\"rgba(255,255,255,0.55)\",strokeWidth:\"1.5\",strokeLinejoin:\"round\",children:[/*#__PURE__*/_jsx(\"rect\",{x:\"7\",y:\"2.6\",width:\"10.4\",height:\"10.4\",rx:\"2\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M13 17.4H4.6a2 2 0 0 1-2-2V7\"})]})}),text]})});}addPropertyControls(CopyPrompt,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Copy install prompt\"},copiedLabel:{type:ControlType.String,title:\"Copied\",defaultValue:\"Copied\"},prompt:{type:ControlType.String,title:\"Prompt\",displayTextArea:true,defaultValue:\"\"},accent:{type:ControlType.Color,title:\"Accent\",defaultValue:\"#14EC77\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CopyPrompt\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CopyPrompt.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function StaticCodeBlock(props){const{code,fontSize,lineHeight,textColor,fontFamily}=props;return /*#__PURE__*/_jsx(\"pre\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",margin:0,padding:0,border:\"none\",background:\"transparent\",color:textColor,fontSize:`${fontSize}px`,lineHeight,fontFamily,whiteSpace:\"pre-wrap\",overflowWrap:\"anywhere\",wordBreak:\"normal\",tabSize:4,textTransform:\"none\",textDecoration:\"none\",fontVariantLigatures:\"none\",fontFeatureSettings:'\"liga\" 0, \"calt\" 0',quotes:`\"\\\\0022\" \"\\\\0022\" \"\\\\0027\" \"\\\\0027\"`,WebkitTextSizeAdjust:\"100%\",overflow:\"hidden\",boxSizing:\"border-box\"},children:/*#__PURE__*/_jsx(\"code\",{style:{fontFamily:\"inherit\",fontSize:\"inherit\",lineHeight:\"inherit\",color:\"inherit\",whiteSpace:\"inherit\",overflowWrap:\"inherit\",wordBreak:\"inherit\",margin:0,padding:0,background:\"transparent\"},children:code})});}addPropertyControls(StaticCodeBlock,{code:{type:ControlType.String,title:\"Code\",displayTextArea:true,defaultValue:'curl -X POST \"https://api.example.com/mcp\" \\\\\\n  -H \"Authorization: Bearer YOUR_TOKEN\" \\\\\\n  -H \"Content-Type: application/json\" \\\\\\n  -d \"{\\\\\"query\\\\\": \\\\\"status\\\\\"}\"'},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:13,min:10,max:24,step:1},lineHeight:{type:ControlType.Number,title:\"Line Height\",defaultValue:1.45,min:1,max:2.2,step:.05},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#D1D5DB\"},fontFamily:{type:ControlType.String,title:\"Font Family\",defaultValue:'\"Geist Mono\", ui-monospace, \"SF Mono\", Menlo, Consolas, monospace'}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StaticCodeBlock\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StaticCodeBlock.map"],"mappings":"kNAO6E,SAAS,EAAe,EAAK,CAAoJ,OAAzI,IAAY,QAAa,EAAU,WAAW,UAAkB,EAAU,UAAU,UAAU,CAAI,CAAC,CAAC,SAAS,OAAS,EAAW,CAAI,CAAC,EAAU,QAAQ,QAAQ,EAAW,CAAI,CAAC,CAAE,CAAC,SAAS,EAAW,EAAK,CAAC,GAAG,OAAO,SAAW,IAAY,MAAO,GAAM,GAAG,CAAC,IAAM,EAAG,SAAS,cAAc,UAAU,EAAE,EAAG,MAAM,EAAK,EAAG,aAAa,WAAW,EAAE,EAAE,EAAG,MAAM,SAAS,QAAQ,EAAG,MAAM,IAAI,UAAU,EAAG,MAAM,QAAQ,IAAI,SAAS,KAAK,YAAY,CAAE,EAAE,EAAG,OAAO,EAAE,IAAM,EAAG,SAAS,YAAY,MAAM,EAAgC,OAA9B,SAAS,KAAK,YAAY,CAAE,EAAS,CAAG,MAAM,CAAC,MAAO,EAAM,CAAC,CAG7pB,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,QAAM,sBAAsB,cAAY,SAAS,SAAO,GAAG,SAAO,UAAU,SAAO,EAAW,CAAC,EAAM,GAAUA,EAAe,MAAM,EAAQ,EAAMC,EAAa,IAAA,EAAS,EAAE,UAAwB,CAAI,EAAM,UAAU,IAAA,IAAU,EAAO,aAAa,EAAM,O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