1import{J as e,Q as t,t as n}from"./jsx-runtime-BqgtD8fB.js";import{o as r}from"./analytics-C9N8WMi8.js";var i=t(e(),1),a=n(),o=[`vanilla`,`react`,`vue`,`angular`],s=(0,i.createContext)(void 0),c=`blok-docs-framework`,l=`framework`,u=`vanilla`,d=e=>e!==null&&o.includes(e),f=()=>{if(typeof window>`u`)return u;let e=localStorage.getItem(c);return d(e)?e:u},p=({children:e})=>{let[t,n]=r(),o=t.get(l),[p,m]=(0,i.useState)(f),h=d(o)?o:p,g=(0,i.useCallback)(e=>{n(t=>{let n=new URLSearchParams(t);return e===u?n.delete(l):n.set(l,e),n},{replace:!0})},[n]),_=(0,i.useCallback)(e=>{m(e),typeof window<`u`&&localStorage.setItem(c,e),g(e)},[g]);(0,i.useEffect)(()=>{h!==u&&o!==h&&g(h)},[h,o,g]);let v=(0,i.useMemo)(()=>({framework:h,setFramework:_}),[h,_]);return(0,a.jsx)(s.Provider,{value:v,children:e})},m=()=>{let e=(0,i.useContext)(s);if(e===void 0)throw Error(`useFramework must be used within a FrameworkProvider`);return e};export{p as n,m as r,o as t};
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.