{"version":3,"file":"TopicAnchor.UMGheiSn.mjs","names":["__esmMin","p","c","init_jsx_runtime","addPropertyControls","init_framer_BWFVvmND","RenderTarget","ControlType","TopicAnchor","id","anchorId","style","offset","__FramerMetadata__","init_TopicAnchor","\"exports\"","\"default\"","\"type\"","\"name\"","\"slots\"","\"annotations\"","\"framerSupportedLayoutWidth\"","\"framerSupportedLayoutHeight\"","\"framerContractVersion\"","\"__FramerMetadata__\""],"sources":["https:/framerusercontent.com/modules/3fosK3gHnuqpiOU3lyK4/xIhZsjBcLuUCHTNZ4uGH/TopicAnchor.js"],"sourcesContent":["// A jump-to point for in-page links such as \"#running-a-startup\".\n// Put one just before a heading in a Resources entry's body; link to \"#<id>\".\n// Invisible on the site. scrollMarginTop keeps the heading below the sticky menu.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight fixed\n */export default function TopicAnchor({anchorId=\"topic\",offset=104,style}){const id=(anchorId||\"topic\").trim().toLowerCase().replace(/[^a-z0-9-]+/g,\"-\").replace(/^-+|-+$/g,\"\");const onCanvas=RenderTarget.current()===RenderTarget.canvas;if(onCanvas){return /*#__PURE__*/_jsx(\"div\",{style:{...style,height:1,overflow:\"visible\",position:\"relative\"},children:/*#__PURE__*/_jsxs(\"span\",{style:{position:\"absolute\",top:-9,left:0,fontSize:10,lineHeight:\"12px\",color:\"#2563eb\",fontFamily:\"Inter, sans-serif\",whiteSpace:\"nowrap\",opacity:.8},children:[\"#\",id]})});}return /*#__PURE__*/_jsx(\"div\",{id:id,\"aria-hidden\":\"true\",style:{...style,height:1,scrollMarginTop:offset}});}addPropertyControls(TopicAnchor,{anchorId:{type:ControlType.String,title:\"Anchor\",defaultValue:\"topic\",description:\"Link to it with #anchor\"},offset:{type:ControlType.Number,title:\"Offset\",defaultValue:104,min:0,max:300,unit:\"px\",description:\"Space left above, for the sticky menu\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TopicAnchor\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TopicAnchor.map"],"mappings":"A,2KAMG,SAAwBQ,EAAY,CAAC,WAAS,QAAQ,SAAO,IAAI,SAAO,CAAC,IAAMC,GAAIC,GAAU,QAAA,CAAS,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC,QAAQ,eAAe,GAAG,CAAC,CAAC,QAAQ,WAAW,EAAE,EAA6X,OAA5WJ,EAAa,QAAQ,IAAIA,EAAa,OAAwC,gBAAK,MAAM,CAAC,MAAM,CAAC,GAAGK,EAAM,OAAO,EAAE,SAAS,UAAU,SAAS,UAAU,EAAE,SAAsB,gBAAM,OAAO,CAAC,MAAM,CAAC,SAAS,WAAW,IAAI,GAAG,KAAK,EAAE,SAAS,GAAG,WAAW,OAAO,MAAM,UAAU,WAAW,oBAAoB,WAAW,SAAS,QAAQ,EAAE,EAAE,SAAS,CAAC,IAAIF,CAAE,CAAC,CAAC,CAAC,CAAC,EAAuB,gBAAK,MAAM,CAAI,KAAG,cAAc,OAAO,MAAM,CAAC,GAAGE,EAAM,OAAO,EAAE,gBAAgBC,CAAM,CAAC,CAAC,CAAE,C,4CAACR,EAAoBI,EAAY,CAAC,SAAS,CAAC,KAAKD,EAAY,OAAO,MAAM,SAAS,aAAa,QAAQ,YAAY,yBAAyB,EAAE,OAAO,CAAC,KAAKA,EAAY,OAAO,MAAM,SAAS,aAAa,IAAI,IAAI,EAAE,IAAI,IAAI,KAAK,KAAK,YAAY,uCAAuC,CAAC,CAAC,EACz6B,EAAqB,CAACQ,QAAU,CAACC,QAAU,CAACC,KAAO,iBAAiBC,KAAO,cAAcC,MAAQ,CAAC,EAAEC,YAAc,CAACC,2BAA6B,MAAMC,4BAA8B,QAAQC,sBAAwB,GAAG,CAAC,EAAEC,mBAAqB,CAACP,KAAO,UAAU,CAAC,CAAC,C"}