{"version":3,"file":"WithWorkRowTitleUnderline.BeZ1k5vv.mjs","names":[],"sources":["https:/framerusercontent.com/modules/PSu3ljjGKswCF19dl6Vn/gUqgQSr6Brgfe5zRGdQK/WithWorkRowTitleUnderline.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";// Underlines the work-card title (the h3) in Foreground Muted when the whole\n// row is hovered, without moving the row. Applied to the card link layer.\n//\n// Touch handling: a raw `:hover` rule latches on touch devices (it stays lit\n// until you tap elsewhere, which looks stuck after the tap navigates away). So\n// hover is gated to real pointer devices, and touch gets a press state via\n// `:active` that lights only while the finger is down and releases cleanly.\nconst STYLE_ID=\"work-row-title-underline-style\";const UNDERLINE=`\n    text-decoration: underline;\n    text-decoration-color: var(--token-ac64408d-d250-4000-a417-37d6ca96530b, rgb(107, 106, 100));\n    text-decoration-thickness: 2px;\n    text-underline-offset: 8px;`;const CSS=`\n@media (hover: hover) and (pointer: fine) {\n    .work-row-title-underline:hover h3 {${UNDERLINE}\n    }\n}\n.work-row-title-underline:active h3 {${UNDERLINE}\n}`;export function withWorkRowTitleUnderline(Component){return props=>{useEffect(()=>{if(typeof document===\"undefined\")return;const existing=document.getElementById(STYLE_ID);if(existing){existing.textContent=CSS;return;}const style=document.createElement(\"style\");style.id=STYLE_ID;style.textContent=CSS;document.head.appendChild(style);},[]);const className=[\"work-row-title-underline\",props.className].filter(Boolean).join(\" \");return /*#__PURE__*/_jsx(Component,{...props,className:className});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withWorkRowTitleUnderline\":{\"type\":\"reactHoc\",\"name\":\"withWorkRowTitleUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WithWorkRowTitleUnderline.map"],"mappings":"kHAiBG,SAAgB,EAA0B,EAAU,CAAC,MAAO,IAAO,CAAC,MAAc,CAAC,GAAG,OAAO,SAAW,IAAY,OAAO,IAAM,EAAS,SAAS,eAAe,EAAS,CAAC,GAAG,EAAS,CAAC,EAAS,YAAY,EAAI,OAAQ,IAAM,EAAM,SAAS,cAAc,QAAQ,CAAC,EAAM,GAAG,EAAS,EAAM,YAAY,EAAI,SAAS,KAAK,YAAY,EAAM,EAAG,EAAE,CAAC,CAAC,IAAM,EAAU,CAAC,2BAA2B,EAAM,UAAU,CAAC,OAAO,QAAQ,CAAC,KAAK,IAAI,CAAC,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAgB,YAAU,CAAC,yBAjBtc,IAA6B,CAOlE,EAAS,iCAAuC,EAAU;;;;iCAIzB,EAAI;;0CAED,EAAU;;;uCAGb,EAAU"}