PageSourceSearch

https://kopern.ai/_next/static/chunks/315c62ce38e4c50b.js?dpl=dpl_5Fg45TmRWFQkKW9jZ15jgdRrEv9E

js kopern.ai collected 2026-10-05 12:24:07 UTC 7,937 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,515288,e=>{"use strict";var t=e.i(843476),a=e.i(975157);function i({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"card",className:(0,a.cn)("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",e),...i})}function r({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,a.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...i})}function o({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,a.cn)("leading-none font-semibold",e),...i})}function s({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,a.cn)("text-sm text-muted-foreground",e),...i})}function n({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,a.cn)("px-6",e),...i})}e.s(["Card",()=>i,"CardContent",()=>n,"CardDescription",()=>s,"CardHeader",()=>r,"CardTitle",()=>o])},793479,e=>{"use strict";var t=e.i(843476),a=e.i(975157);function i({className:e,type:i,...r}){return(0,t.jsx)("input",{type:i,"data-slot":"input",className:(0,a.cn)("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",e),...r})}e.s(["Input",()=>i])},110204,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(248425),r=a.forwardRef((e,a)=>(0,t.jsx)(i.Primitive.label,{...e,ref:a,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));r.displayName="Label",e.s(["Label",()=>r,"Root",()=>r],973741);var o=e.i(973741),o=o,s=e.i(975157);function n({className:e,...a}){return(0,t.jsx)(o.Root,{"data-slot":"label",className:(0,s.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...a})}e.s(["Label",()=>n],110204)},618566,(e,t,a)=>{t.exports=e.r(976562)},807088,e=>{"use strict";var t=e.i(618566),a=e.i(874394),i=e.i(271645);function r(){let e=(0,t.useRouter)(),r=(0,a.useLocale)(),o=(0,i.useCallback)(t=>{e.push(`/${r}${t}`)},[e,r]),s=(0,i.useCallback)(t=>{e.replace(`/${r}${t}`)},[e,r]),n=(0,i.useCallback)(()=>{e.back()},[e]);return(0,i.useMemo)(()=>({push:o,replace:s,back:n,locale:r}),[o,s,n,r])}e.s(["useLocalizedRouter",()=>r])},792774,e=>{"use strict";var t=e.i(843476),a=e.i(846932);function i({children:e,delay:i=0,duration:r=.3,...o}){return(0,t.jsx)(a.motion.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:r,delay:i},...o,children:e})}e.s(["FadeIn",()=>i])},772436,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(248425),r="horizontal",o=["horizontal","vertical"],s=a.forwardRef((e,a)=>{var s;let{decorative:n,orientation:l=r,...d}=e,c=(s=l,o.includes(s))?l:r;return(0,t.jsx)(i.Primitive.div,{"data-orientation":c,...n?{role:"none"}:{"aria-orientation":"vertical"===c?c:void 0,role:"separator"},...d,ref:a})});s.displayName="Separator",e.s(["Root",()=>s,"Separator",()=>s],886392);var n=e.i(886392),n=n,l=e.i(975157);function d({className:e,orientation:a="horizontal",decorative:i=!0,...r}){return(0,t.jsx)(n.Root,{"data-slot":"separator",decorative:i,orientation:a,className:(0,l.cn)("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...r})}e.s(["Separator",()=>d],772436)},714206,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(618566),r=e.i(920636);e.i(151718);var o=e.i(618357);e.i(436180);var s=e.i(98925),n=e.i(528623),l=e.i(874394),d=e.i(807088),c=e.i(519455),u=e.i(793479),p=e.i(110204),h=e.i(515288),m=e.i(772436),x=e.i(846696),f=e.i(792774),g=e.i(924417);function b(){return(0,t.jsx)(a.Suspense,{children:(0,t.jsx)(v,{})})}function v(){let e=(0,d.useLocalizedRouter)(),b=(0,i.useSearchParams)().get("from"),v=(0,l.useDictionary)(),[j,w]=(0,a.useState)(""),[y,N]=(0,a.useState)(""),[C,S]=(0,a.useState)(!1),[k,I]=(0,a.useState)(!1);async function L(){if("monitor"===b)try{let e=(0,o.getAuth)().currentUser;if(e){let t=await e.getIdToken();await fetch("/api/monitor/setup-team",{method:"POST",headers:{Authorization:`Bearer ${t}`}})}}catch{}e.push("/dashboard")}async function R(e){try{if("google"===e)await (0,r.signInWithGoogle)();else{let{result:e,githubAccessToken:t}=await (0,r.signInWithGithub)();t&&e.user&&await (0,s.setDoc)((0,n.userDoc)(e.user.uid),{githubAccessToken:t,updatedAt:(0,s.serverTimestamp)()},{merge:!0})}await L()}catch(t){if(console.error("OAuth error:",t),"auth/popup-closed-by-user"===t.code||"auth/cancelled-popup-request"===t.code)return;if("github_needs_google_first"===t.message||"auth/account-exists-with-different-credential"===t.code)return void x.toast.error(v.auth.githubNeedsGoogle,{duration:8e3});if("auth/popup-blocked"===t.code)return void x.toast.error(v.auth.popupBlocked);x.toast.error(v.auth.failedOAuth.replace("{provider}",e))}}async function T(e){e.preventDefault(),I(!0);try{C?await (0,r.signUpWithEmail)(j,y):await (0,r.signInWithEmail)(j,y),await L()}catch(e){x.toast.error(C?v.auth.failedSignUp:v.auth.failedSignIn)}finally{I(!1)}}return(0,t.jsx)(f.FadeIn,{children:(0,t.jsxs)(h.Card,{className:"w-full max-w-md",children:[(0,t.jsxs)(h.CardHeader,{className:"text-center",children:[(0,t.jsx)(g.LocalizedLink,{href:"/",className:"mx-auto mb-2 block hover:opacity-80 transition-opacity",children:(0,t.jsx)("img",{src:"/logo_pix.png",alt:"Kopern",className:"h-12"})}),(0,t.jsx)(h.CardTitle,{className:"text-2xl",children:v.auth.title}),(0,t.jsx)(h.CardDescription,{children:v.auth.subtitle})]}),(0,t.jsxs)(h.CardContent,{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,t.jsx)(c.Button,{variant:"outline",onClick:()=>R("google"),children:v.auth.google}),(0,t.jsx)(c.Button,{variant:"outline",onClick:()=>R("github"),children:v.auth.github})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(m.Separator,{}),(0,t.jsx)("span",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 bg-card px-2 text-xs text-muted-foreground",children:"or"})]}),(0,t.jsxs)("form",{onSubmit:T,className:"space-y-3",children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)(p.Label,{htmlFor:"email",children:v.auth.email}),(0,t.jsx)(u.Input,{id:"email",type:"email",value:j,onChange:e=>w(e.target.value),placeholder:v.auth.emailPlaceholder,required:!0})]}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)(p.Label,{htmlFor:"password",children:v.auth.password}),(0,t.jsx)(u.Input,{id:"password",type:"password",value:y,onChange:e=>N(e.target.value),placeholder:v.auth.passwordPlaceholder,required:!0,minLength:6})]}),(0,t.jsx)(c.Button,{type:"submit",className:"w-full",disabled:k,children:k?v.common.loading:C?v.auth.signUpBtn:v.auth.signInBtn})]}),(0,t.jsxs)("p",{className:"text-center text-sm text-muted-foreground",children:[C?v.auth.switchToSignIn:v.auth.switchToSignUp," ",(0,t.jsx)("button",{type:"button",className:"text-primary underline-offset-4 hover:underline",onClick:()=>S(!C),children:C?v.common.signIn:v.auth.signUp})]})]})]})})}e.s(["default",()=>b])}]);

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.