1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[330],{30330:function(e,i,n){let r;n.r(i),n.d(i,{default:function(){return x}});var l=n(57437),t=n(60523),s=n(34757),u=n(2787),c=n(2265),o=n(42777);let d=(0,c.createContext)({getAllowedActions:e=>void 0});d.displayName="PermissionContext";let a=e=>{let{children:i}=e,{data:n}=(0,o.Qe)(),r=(0,c.useMemo)(()=>null==n?void 0:n.permissions.reduce((e,i)=>{var n;let{model:r,action:l}=i;return r in e||(e[r]=[]),null===(n=e[r])||void 0===n||n.push(l),e},{}),[null==n?void 0:n.permissions]),t=(0,c.useCallback)(e=>r&&e in r?r[e]:[],[r]);return(0,l.jsx)(d.Provider,{value:{getAllowedActions:t},children:i})};var h=n(86484),v=n(14438);function x(e){let{children:i,config:n}=e,c=(r||(r=new h.QueryClient({defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1,staleTime:1/0,cacheTime:1/0}}})),r);return(0,l.jsxs)(u.i,{initialConfig:n,children:[(0,l.jsx)(h.QueryClientProvider,{client:c,children:(0,l.jsx)(t.w,{children:(0,l.jsx)(s.H,{children:(0,l.jsx)(a,{children:i})})})}),(0,l.jsx)(v.x7,{})]})}}}]);
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.