{"version":3,"file":"FetchPriorityHigh.o7MCOrkA.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/WkP8eNRLEzhN6nzGs04i/fli1lFF9pAd4Iul3tFff/FetchPriorityHigh.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect,useRef,useImperativeHandle}from\"react\";export function withFetchPriority(Component){return /*#__PURE__*/forwardRef((props,ref)=>{// Create your own ref to attach to the DOM\nconst internalRef=useRef(null);// Forward the ref methods/properties to the parent if needed\nuseImperativeHandle(ref,()=>internalRef.current,[]);// Function to add fetchpriority to the img\nconst addFetchPriority=()=>{console.log(\"Internal ref:\",internalRef);if(internalRef?.current){const img=internalRef.current.querySelector(\"img\");if(img){img.setAttribute(\"fetchpriority\",\"high\");console.log(\"Added fetchpriority to img:\",img);}else{console.log(\"No img found in component\");}}else{console.log(\"Internal ref current is null\");}};// Use in useEffect\nuseEffect(()=>{addFetchPriority();},[]);return /*#__PURE__*/_jsx(Component,{ref:internalRef,...props});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withFetchPriority\":{\"type\":\"reactHoc\",\"name\":\"withFetchPriority\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FetchPriorityHigh.map"],"mappings":"kLAA8G,SAAgB,EAAkB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CACvM,IAAM,EAAYA,EAAO,KAAK,CAC9B,EAAoB,MAAQ,EAAY,QAAQ,EAAE,CAAC,CACnD,IAAM,MAAqB,CAA0C,GAAzC,QAAQ,IAAI,gBAAgB,EAAY,CAAI,GAAa,QAAQ,CAAC,IAAM,EAAI,EAAY,QAAQ,cAAc,MAAM,CAAI,GAAK,EAAI,aAAa,gBAAgB,OAAO,CAAC,QAAQ,IAAI,8BAA8B,EAAI,EAAO,QAAQ,IAAI,4BAA4B,MAAQ,QAAQ,IAAI,+BAA+B,EAC1S,OAAxC,MAAc,CAAC,GAAkB,EAAG,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,IAAI,EAAY,GAAG,EAAM,CAAC,EAAG,kBAJ9D,IAAmE"}