{"version":3,"file":"inlineLinks.DFNk0WeB.mjs","names":["useState","_Fragment","__esmMin","_e","init_jsx_runtime","c","p","init_npm_react_18_3_1","surfaceInk","focusCss","init_tokens","init_Section","useSection","InlineLink","hover","setHover","ink","tone","href","external","l","renderInline","out","last","key","plain","s","i","line","m","LINK_RE","text","paragraphs","init_inlineLinks"],"sources":["https:/framerusercontent.com/modules/tXSwCsyVq6z0PAi6yLBQ/T4Se4dwGJk5SwKiPbiVp/inlineLinks.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState}from\"react\";import{surfaceInk,focusCss}from\"https://framerusercontent.com/modules/HDAkrahb3ethcU2GAef2/DkF8oqFSecx6ZaRXcaSg/tokens.js\";import{useSection}from\"https://framerusercontent.com/modules/QAOPTtLoApnb5MkIYZk8/dc3QSbcDf1WpIWW4hTIx/Section.js\";// Inline links inside plain-text props.\n// Write a link as [visible text](/projects/some-slug) or [text](https://example.com).\n// One system-wide style: thin underline, inherits text colour. Hover follows the surface (2026-09-23):\n// red text on cream, yellow on slate; on yellow/red/ember the colour stays and the underline thickens.\n// Focus: highlighter fill (tokens.tsx focusCss). Outside a <Section> the surface defaults to cream.\nexport function InlineLink({href,children}){const[hover,setHover]=useState(false);const{tone}=useSection();const ink=surfaceInk(tone);const isMail=/^mailto:/.test(href);const external=/^https?:\\/\\//.test(href);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:focusCss(\".wof-inline-link\",\"link\",tone)}),/*#__PURE__*/_jsx(\"a\",{className:\"wof-inline-link\",href:href,target:external?\"_blank\":undefined,rel:external?\"noopener noreferrer\":undefined,onPointerEnter:e=>{if(e.pointerType!==\"touch\")setHover(true);},onPointerLeave:()=>setHover(false),style:{color:hover&&!ink.linkHoverUnderline?ink.linkHover:\"inherit\",textDecoration:\"underline\",textDecorationThickness:hover&&ink.linkHoverUnderline?\"2px\":\"1px\",textUnderlineOffset:\"3px\",transition:\"color 0.2s ease\"},children:children})]});}const LINK_RE=/\\[([^\\]]+)\\]\\(([^)\\s]+)\\)/g;// Line breaks (2026-11-09, so Marlies can break a line inside a paragraph): one Return in a text field is a line break,\n// an empty line starts a new paragraph (paragraphs below). Components without paragraphs show Returns with\n// white-space: pre-line, which gives the same result.\nexport function renderInline(text){const out=[];let last=0;let key=0;const plain=s=>s.split(\"\\n\").forEach((line,i)=>{if(i)out.push(/*#__PURE__*/_jsx(\"br\",{},key++));if(line)out.push(line);});let m;LINK_RE.lastIndex=0;while(m=LINK_RE.exec(text)){if(m.index>last)plain(text.slice(last,m.index));out.push(/*#__PURE__*/_jsx(InlineLink,{href:m[2],children:m[1]},key++));last=m.index+m[0].length;}if(last<text.length)plain(text.slice(last));return out;}// Splits a multi-line prop into paragraphs at empty lines. A single Return stays inside the paragraph as a line break\n// (renderInline). Until 2026-11-09 every Return started a paragraph; the texts that relied on that were converted.\nexport function paragraphs(text){return(text||\"\").split(/\\n\\s*\\n/).map(s=>s.split(\"\\n\").map(l=>l.trim()).join(\"\\n\").trim()).filter(Boolean);}export default function InlineLinks(){return null;}\nexport const __FramerMetadata__ = {\"exports\":{\"paragraphs\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"InlineLink\":{\"type\":\"reactComponent\",\"name\":\"InlineLink\",\"slots\":[\"children\"],\"annotations\":{\"framerContractVersion\":\"1\"}},\"renderInline\":{\"type\":\"reactComponent\",\"name\":\"renderInline\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,0MAKA,SAAgBa,EAAW,CAAC,OAAK,YAAU,CAAC,GAAK,CAACC,EAAMC,GAAUf,EAAS,EAAK,EAAO,CAAC,QAAMY,EAAW,EAAQI,EAAIR,EAAWS,CAAI,EAAe,WAAW,KAAKC,CAAI,EAAE,IAAMC,EA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