{"version":3,"file":"WithOfferingFocus.DT_GpNJ_.mjs","names":["__esmMin","init_ssg_sandbox_shims","init_npm_react_18_3_1","c","J","init_jsx_runtime","ce","window","withOfferingFocus","styleElement","STYLE_ELEMENT_ID","SCOPE_ATTRIBUTE","incomingClassName","props","className","SCOPE_CLASS_NAME","Component","init_WithOfferingFocus"],"sources":["https:/framerusercontent.com/modules/SsFbbLsGVONiXilrAp2A/Wcg0b2O3IBwsT346p3Y5/WithOfferingFocus.js"],"sourcesContent":["// User request: Create a small code override withOfferingFocus for existing native canvas link wrappers. Keep all structure/design editable; use a data attribute/class and scoped CSS injected safely with effect to give wrapper anchors or descendant anchors :focus-visible a 2px currentColor outline offset 4px, and mild hover opacity .8. Do not override links, sizing, clicks or content, no new widget. Handle existing className and refs appropriately. Only focus styling, avoid global styles affecting unrelated elements.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect}from\"react\";const STYLE_ELEMENT_ID=\"with-offering-focus-styles\";const SCOPE_ATTRIBUTE=\"data-offering-focus-scope\";const SCOPE_CLASS_NAME=\"with-offering-focus\";export function withOfferingFocus(Component){return /*#__PURE__*/forwardRef(function WithOfferingFocus(props,ref){useEffect(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\")return;let styleElement=document.getElementById(STYLE_ELEMENT_ID);if(!styleElement){styleElement=document.createElement(\"style\");styleElement.id=STYLE_ELEMENT_ID;styleElement.textContent=`\n[${SCOPE_ATTRIBUTE}]:is(a):focus-visible,\n[${SCOPE_ATTRIBUTE}] a:focus-visible {\n    outline: 2px solid currentColor;\n    outline-offset: 4px;\n}\n\n[${SCOPE_ATTRIBUTE}]:is(a):hover,\n[${SCOPE_ATTRIBUTE}] a:hover {\n    opacity: 0.8;\n}\n`;document.head.appendChild(styleElement);}},[]);const incomingClassName=typeof props.className===\"string\"?props.className.trim():\"\";const className=incomingClassName?`${incomingClassName} ${SCOPE_CLASS_NAME}`:SCOPE_CLASS_NAME;return /*#__PURE__*/_jsx(Component,{...props,ref:ref,className:className,[SCOPE_ATTRIBUTE]:\"\"});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withOfferingFocus\":{\"type\":\"reactHoc\",\"name\":\"withOfferingFocus\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WithOfferingFocus.map"],"mappings":"A,uIACsO,SAAgBQ,EAAkB,EAAU,CAAC,MAAoB,gBAAW,SAA2B,EAAM,EAAI,CAACF,MAAc,CAAC,GAAUC,IAAS,QAAa,OAAO,SAAW,IAAY,OAAO,IAAIE,EAAa,SAAS,eAAeC,CAAgB,EAAMD,IAAc,EAAa,SAAS,cAAc,OAAO,EAAE,EAAa,GAAGC,EAAiB,EAAa,YAAY;GAC7lBC,EAAgB;GAChBA,EAAgB;;;;;GAKhBA,EAAgB;GAChBA,EAAgB;;;EAGjB,SAAS,KAAK,YAAYF,CAAY,EAAG,EAAE,CAAC,CAAC,EAAE,IAAMG,EAAkB,OAAOC,EAAM,WAAY,SAASA,EAAM,UAAU,KAAK,EAAE,GAASC,EAAUF,EAAkB,GAAGA,EAAkB,GAAGG,IAAmBA,EAAiB,MAAoB,gBAAKC,EAAU,CAAC,GAAGH,EAAU,MAAc,aAAWF,GAAiB,EAAE,CAAC,CAAE,CAAC,CAAE,C,oDAX7O,EAAiB,6BAAmC,EAAgB,4BAAkC,EAAiB,qB"}