PageSourceSearch

https://app.codegpt.co/_next/static/chunks/app/%5Blang%5D/error-16e55581e5e4e91d.js

js codegpt.co collected 2026-09-25 04:22:33 UTC 8,099 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3450],{70390:function(e,t,r){Promise.resolve().then(r.bind(r,16372))},48712:function(e,t,r){"use strict";r.d(t,{U:function(){return a}});var n=r(52100),o=r(2265);let a=()=>{let e=(0,o.useContext)(n.J);if(!e)throw Error("Profile context error no provider");return e}},73960:function(e,t,r){"use strict";r.d(t,{cn:function(){return a}});var n=r(98099),o=r(18543);function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,o.m6)((0,n.W)(t))}},60220:function(e,t,r){"use strict";r.d(t,{e:function(){return s}});var n=r(10922),o=r(22193),a=r(25566);function s(e,t,r){let s=a.env.NEXT_PUBLIC_SENTRY_DSN;if(s){n.dk()||o.S1({dsn:s,tracesSampleRate:1,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,integrations:[]});try{(null!==t||null!==r)&&n.av({id:null!=t?t:"unknown",email:null!=r?r:"unknown"}),n.Tb(e),console.log("Error reported to Sentry")}catch(e){console.log(e)}}}},27902:function(e,t,r){"use strict";r.d(t,{cn:function(){return a}});var n=r(98099),o=r(18543);function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,o.m6)((0,n.W)(t))}},99485:function(e,t,r){"use strict";r.d(t,{default:function(){return o.a}});var n=r(77213),o=r.n(n)},16372:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return f}});var n=r(57437),o=r(99485),a=r(2265),s=r(73185),i=r(9790),l=r(73960);function d(e){let{children:t,size:r="md",align:o="center",position:a="center",text:s="center"}=e;return(0,n.jsx)("div",{className:(0,l.cn)("w-full grid grid-flow-row gap-8 py-12 px-2 lg:px-2","xl"===r&&"max-w-4xl","lg"===r&&"max-w-3xl","md"===r&&"max-w-2xl","sm"===r&&"max-w-xl","xs"===r&&"max-w-md","start"===o&&"items-start","center"===o&&"items-center","end"===o&&"items-end","center"===a&&"mx-auto","start"===a&&"mr-auto","end"===a&&"ml-auto","start"===s&&"text-start","center"===s&&"text-center","end"===s&&"text-end"),"data-sentry-component":"DashboardSection","data-sentry-source-file":"dash-section.tsx",children:t})}var u=r(48712),c=r(60220);function f(e){let{error:t}=e,{profile:r}=(0,u.U)();return(0,a.useEffect)(()=>{console.error(t),(0,c.e)(t,null==r?void 0:r.id,null==r?void 0:r.email)},[t,null==r?void 0:r.id,null==r?void 0:r.email]),(0,n.jsx)(i.default,{title:"Error",contentClassName:"items-center justify-center flex m-auto",className:"main-content overflow-hidden h-full flex flex-col","data-sentry-element":"DashboardPanel","data-sentry-component":"ErrorPage","data-sentry-source-file":"error.tsx",children:(0,n.jsx)(d,{"data-sentry-element":"DashboardSection","data-sentry-source-file":"error.tsx",children:(0,n.jsxs)("div",{className:"text-center grid gap-4",children:[(0,n.jsx)("p",{className:"text-2xl font-bold tracking-tight sm:text-4xl",children:"An unexpected error has occurred, we have sent a report to the team"}),(0,n.jsx)(s.Z,{as:o.default,href:"/",className:"w-fit mx-auto","data-sentry-element":"DashButton","data-sentry-source-file":"error.tsx",children:"Go Back Home"})]})})})}},73185:function(e,t,r){"use strict";var n=r(57437),o=r(27902),a=r(2265),s=r(99485);let i=(0,a.forwardRef)((e,t)=>{let{className:r,isLoading:a,style:i,onClick:l,as:d="button",type:u="button",variant:c,color:f,startContent:x,endContent:m,children:g,isIconOnly:h=!1,isDisabled:p=!1,href:b,shadow:v,size:y="md",id:w,target:j}=e,N=(0,n.jsx)(n.Fragment,{children:h?(0,n.jsx)(n.Fragment,{children:g}):(0,n.jsxs)(n.Fragment,{children:[x,g,m]})}),k=(0,o.cn)("z-0 group relative inline-flex items-center justify-center box-border appearance-none select-none whitespace-nowrap font-medium subpixel-antialiased overflow-hidden tap-highlight-transparent outline-none gap-2 border border-transparent transition-colors duration-fast motion-reduce:transition-none\nactive:translate-y-px\ndisabled:opacity-50\ndisabled:pointer-events-none\ndisabled:cursor-default\nfocus-visible:outline\nfocus-visible:outline-2\nfocus-visible:outline-offset-2\nfocus-visible:outline-ring\n[&>svg]:flex-shrink-0\n",{xs:"px-2 h-7 min-w-7 rounded-sm [&>svg]:size-3.5 text-xs",sm:"px-2.5 h-[30px] min-w-[30px] rounded-sm [&>svg]:size-3.5 text-[12.5px]",md:"px-3.5 h-9 min-w-9 rounded-md [&>svg]:size-4 text-sm",lg:"px-5 h-[42px] min-w-[42px] rounded-md [&>svg]:size-4 text-[15px]",xl:"px-7 h-12 min-w-12 rounded-full [&>svg]:size-4 text-base font-semibold"}[y],{default:"bg-muted text-foreground hover:bg-sunken",light:"bg-card text-foreground border-border-strong hover:bg-muted",bordered:"bg-card text-foreground border-border-strong hover:bg-muted",ghost:"bg-transparent text-foreground-2 hover:bg-muted hover:text-foreground",flat:"bg-foreground text-background hover:opacity-90"}[null!=c?c:"default"],{default:"",primary:"bg-primary text-primary-foreground border-transparent hover:bg-brand-600 dark:hover:bg-brand-300",secondary:"bg-muted text-foreground border-transparent hover:bg-sunken",success:"bg-success text-success-foreground border-transparent hover:brightness-[.92]",warning:"bg-warning text-warning-foreground border-transparent hover:brightness-[.92]",danger:"bg-danger text-danger-foreground border-transparent hover:brightness-[.92]"}[null!=f?f:"default"],v?"shadow-sm":"",r);return b?(0,n.jsx)(s.default,{id:w,href:b,passHref:!0,className:k,style:i,"data-variant":null!=c?c:"default","data-color":f,target:j,children:N}):(0,n.jsx)(d,{id:w,ref:t,disabled:p||a,style:i,onClick:p?void 0:l,type:u,"data-variant":null!=c?c:"default","data-color":f,className:k,children:N})});i.displayName="DashButton",t.Z=i},9790:function(e,t,r){"use strict";r.d(t,{default:function(){return a}});var n=r(57437);function o(e){let{title:t="CodeGPT",endContent:r,className:o="",stickyHeader:a=!0}=e;return(0,n.jsxs)("header",{className:"".concat(a&&"sticky top-0"," focus-visible:outline-none flex gap-2 items-center justify-between px-4 border-b h-12 bg-card z-50 ").concat(o),"data-sentry-component":"DashboardHeader","data-sentry-source-file":"dash-header.tsx",children:[(0,n.jsx)("div",{className:"mr-auto flex gap-2 items-center w-full",children:(0,n.jsx)("h3",{className:"w-full text-base font-semibold",children:t})}),(0,n.jsx)("div",{className:"ml-auto flex gap-2",children:r})]})}function a(e){let{children:t,title:r,endContent:a,className:s,contentClassName:i,stickyHeader:l,id:d}=e;return(0,n.jsxs)("div",{className:"main-content w-full overflow-hidden focu
1s-visible:outline-none ".concat(s?" ".concat(s):""),id:d,style:{height:"calc(100dvh - 3rem)"},"data-sentry-component":"DashboardPanel","data-sentry-source-file":"dash-panel.tsx",children:[r?(0,n.jsx)(o,{stickyHeader:l,title:null!=r?r:"CodeGPT",endContent:a}):null,(0,n.jsx)("div",{className:"".concat(null!=i?i:"flex flex-col gap-4 w-full lg:h-fit p-4"),children:t})]})}},52100:function(e,t,r){"use strict";r.d(t,{J:function(){return a},a:function(){return s}});var n=r(57437),o=r(2265);let a=(0,o.createContext)({profile:null,isLoading:!1,setProfile:()=>{},setIsLoading:()=>{},mutate:async()=>{}});function s(e){let{children:t,profile:r}=e,[s,l]=(0,o.useState)(r),[d,u]=(0,o.useState)(!1),c=async()=>{u(!0),l(await i()),u(!1)};return(0,o.useEffect)(()=>{c()},[]),(0,n.jsx)(a.Provider,{value:{profile:s,isLoading:d,setProfile:l,setIsLoading:e=>{u(e)},mutate:c},"data-sentry-element":"ProfileContext.Provider","data-sentry-component":"ProfileProvider","data-sentry-source-file":"profile-context.tsx",children:t})}async function i(){try{let e=await fetch("/api/user");if(!e.ok){let{error:t}=await e.json();throw Error(t)}return await e.json()}catch(e){return console.log("Error getting profile client",e),null}}},98099:function(e,t,r){"use strict";function n(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t){if(Array.isArray(t)){var a=t.length;for(r=0;r<a;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n)}return o}(e))&&(n&&(n+=" "),n+=t);return n}r.d(t,{W:function(){return n}}),t.Z=n}},function(e){e.O(0,[7213,8543,991,2971,5582,1744],function(){return e(e.s=70390)}),_N_E=e.O()}]);

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.