(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3826],{18042:(e,r,o)=>{"use strict";o.r(r),o.d(r,{default:()=>t});var a=o(95155),l=o(12115),s=o(25086),n=o(75095);function t(){return(0,a.jsx)(l.Suspense,{fallback:(0,a.jsx)(s.CardSkeleton,{}),children:(0,a.jsx)(u,{})})}function u(){let[e,r]=(0,l.useState)({loading:!0,role:null,showQuotaTracker:!0});return((0,l.useEffect)(()=>{let e=!1;return fetch("/api/auth/me",{cache:"no-store"}).then(e=>e.json()).then(o=>{if(!e){if("sub_user"===o.role&&!1===o.showQuotaTracker){window.location.href="/dashboard/user";return}r({loading:!1,role:o.role||null,showQuotaTracker:!1!==o.showQuotaTracker})}}).catch(()=>{e||r({loading:!1,role:null,showQuotaTracker:!0})}),()=>{e=!0}},[]),e.loading)?(0,a.jsx)(s.CardSkeleton,{}):(0,a.jsx)(n.A,{readOnly:"sub_user"===e.role,allowCodexActivation:"sub_user"===e.role})}},61034:(e,r,o)=>{Promise.resolve().then(o.bind(o,18042))}},e=>{e.O(0,[2574,3862,1051,1321,5497,5095,8441,3794,7358],()=>e(e.s=61034)),_N_E=e.O()}]);