PageSourceSearch

https://www.eu.vc/assets/useNonRevalidatingFetcher-CaohiMMR.js

js eu.vc collected 2026-10-02 04:39:35 UTC 1,734 bytes, 5 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="89bef5fb-cc96-5cbb-ade9-16dbca28666e")}catch(e){}}();
3import{s as e}from"./jsx-runtime-D4ePz0Hl.js";import{t}from"./react-BXH-GOAS.js";import{n}from"./CsrfContext-ByWWfcRz.js";var r=e(t(),1);function i(){let[e,t]=(0,r.useState)(`idle`),[i,o]=(0,r.useState)(void 0),s=n(),c=(0,r.useRef)(null),l=async e=>{c.current=e;let n=new AbortController;t(`loading`);try{let t=await fetch(e,{signal:n.signal});if(!t.ok)throw Error(`Network response was not ok`);let r=await t.json();a(r),o(r)}catch(e){console.error(`Fetch error:`,e),o(void 0)}finally{t(`idle`)}return()=>{n.abort()}};return(0,r.useEffect)(()=>{let e=()=>{c.current&&l(c.current)};return window.addEventListener(`beehiiv:mockChanged`,e),()=>window.removeEventListener(`beehiiv:mockChanged`,e)},[]),{state:e,data:i,load:l,submit:async(e,n)=>{t(`submitting`);try{let t=new Headers(n.headers);n.encType===`application/json`&&t.set(`Content-Type`,`application/json`),s&&!t.has(`X-CSRF-Token`)&&t.set(`X-CSRF-Token`,s);let r=await fetch(n?.action??`.`,{...n,body:e,headers:t}),i=await r.text(),c;try{c=i.length>0?JSON.parse(i):void 0}catch{c=void 0}return c!==void 0&&a(c),o(c),{ok:r.ok,status:r.status,data:c}}catch(e){return console.error(`Fetch error:`,e),o(void 0),{ok:!1,status:0,data:void 0}}finally{t(`idle`)}},Form:`form`}}function a(e){if(e&&typeof e==`object`&&`$$error`in e)throw e?.$$error}export{i as t};
4//# sourceMappingURL=useNonRevalidatingFetcher-CaohiMMR.js.map
5//# debugId=89bef5fb-cc96-5cbb-ade9-16dbca28666e

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.