1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`c884f511e2637bc8d4525c01a72d90f4a6056222`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`3ef096c9-bb9f-481e-81ad-775963d89ac0`,e._sentryDebugIdIdentifier=`sentry-dbid-3ef096c9-bb9f-481e-81ad-775963d89ac0`)}catch{}})();import{o as e}from"./rolldown-runtime-nEP6ovML.js";import{Cr as t,Sr as n}from"./_assets-BoGX2oZD.js";import{Er as r,nb as i}from"./payhawk-CMDa5uvV.js";import{t as a}from"./useAgentConversation-BED0-6hW.js";var o=e(t(),1),s=n(),c=6e4,l=(0,o.createContext)({optimisticallyLockedResources:new Set,lockResourceOptimistically:()=>{}}),u=({children:e})=>{let{conversationId:t}=r(),{data:n}=a(t),[u,d]=(0,o.useState)(new Set),f=(0,o.useMemo)(()=>{if(!n)return null;for(let e=n.messages.length-1;e>=0;e--)if(!i(n.messages[e].createdBy?.id))return n.messages[e].id;return null},[n]);(0,o.useEffect)(()=>{d(new Set)},[f]),(0,o.useEffect)(()=>{if(u.size===0)return;let e=setTimeout(()=>d(new Set),c);return()=>clearTimeout(e)},[u]);let p=(0,o.useCallback)(e=>{d(t=>{if(t.has(e))return t;let n=new Set(t);return n.add(e),n})},[]),m=(0,o.useMemo)(()=>({optimisticallyLockedResources:u,lockResourceOptimistically:p}),[u,p]);return(0,s.jsx)(l.Provider,{value:m,children:e})},d=()=>(0,o.useContext)(l);export{d as n,u as t}; 2//# sourceMappingURL=PageResourceLockContext-DN-5BBwx.js.map
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.