{"version":3,"file":"GuideCode.BawHMRB_.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/ZUgqoOE3x3sumJTT2Ban/kV7ClBrFoesTplLjxT3f/GuideCode.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Plain, copyable code and checklists that remain readable without a syntax highlighter.\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function GuideCode({code=\"\",payload=\"\",language=\"Code\",style}){let content=code;if(payload){try{content=new TextDecoder().decode(Uint8Array.from(atob(payload),character=>character.charCodeAt(0)));}catch{}}const[label,setLabel]=useState(\"Copy\");async function copy(){try{await navigator.clipboard.writeText(content);setLabel(\"Copied\");}catch{setLabel(\"Select text to copy\");}}return /*#__PURE__*/_jsxs(\"div\",{style:{...style,position:\"relative\",width:\"100%\",borderRadius:12,background:\"#2A2A27\",color:\"#FAFAF7\",overflow:\"hidden\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"space-between\",gap:12,padding:\"12px 18px\",borderBottom:\"1px solid #595952\",fontFamily:'\"Inter Variable\", Inter, sans-serif',fontSize:12},children:[/*#__PURE__*/_jsx(\"span\",{children:language===\"Markdown\"||language===\"text\"?\"Copyable text\":language}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:copy,\"aria-label\":\"Copy this block\",style:{font:\"inherit\",color:\"inherit\",background:\"transparent\",border:0,padding:\"0 2px\",cursor:\"pointer\",textDecoration:\"underline\",textUnderlineOffset:3},children:label})]}),/*#__PURE__*/_jsx(\"pre\",{tabIndex:0,\"aria-label\":language+\" block\",style:{margin:0,padding:18,maxWidth:\"100%\",overflowX:\"auto\",fontFamily:'\"Geist Mono\", ui-monospace, monospace',fontSize:13,lineHeight:1.65,whiteSpace:\"pre\",tabSize:2},children:/*#__PURE__*/_jsx(\"code\",{children:content})})]});}addPropertyControls(GuideCode,{code:{type:ControlType.String,title:\"Code\",displayTextArea:true},payload:{type:ControlType.String,title:\"Imported code\",defaultValue:\"\",displayTextArea:true,description:\"UTF-8 base64 used by the manuscript importer. Clear this to use the editable Code field.\"},language:{type:ControlType.String,title:\"Language\",defaultValue:\"Code\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GuideCode\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GuideCode.map"],"mappings":"+LAIG,SAAwB,EAAU,CAAC,OAAK,GAAG,UAAQ,GAAG,WAAS,OAAO,SAAO,CAAC,IAAI,EAAQ,EAAK,GAAG,EAAS,GAAG,CAAC,EAAQ,IAAI,YAAY,CAAC,CAAC,OAAO,WAAW,KAAK,KAAK,CAAO,EAAE,GAAW,EAAU,WAAW,CAAC,CAAC,CAAC,CAAE,MAAM,CAAC,CAAE,GAAK,CAAC,EAAM,GAAUA,EAAS,MAAM,EAAE,eAAe,GAAM,CAAC,GAAG,CAAC,MAAM,EAAU,UAAU,UAAU,CAAO,EAAE,EAAS,QAAQ,CAAE,MAAM,CAAC,EAAS,qBAAqB,CAAE,CAAC,CAAC,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,SAAS,WAAW,MAAM,OAAO,aAAa,GAAG,WAAW,UAAU,MAAM,UAAU,SAAS,QAAQ,EAAE,SAAS,CAAc,EAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,eAAe,gBAAgB,IAAI,GAAG,QAAQ,YAAY,aAAa,oBAAoB,WAAW,sCAAsC,SAAS,EAAE,EAAE,SAAS,CAAc,EAAK,OAAO,CAAC,SAAS,IAAW,YAAY,IAAW,OAAO,gBAAgB,CAAQ,CAAC,EAAe,EAAK,SAAS,CAAC,KAAK,SAAS,QA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