@alook/app 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/bundled/web/.open-next/.build/durable-objects/queue.js +5 -5
  2. package/bundled/web/.open-next/assets/BUILD_ID +1 -1
  3. package/bundled/web/.open-next/assets/_next/static/chunks/0-ak0pl36y6db.js +20 -0
  4. package/bundled/web/.open-next/assets/_next/static/chunks/06gnuekt8yuiq.js +1 -0
  5. package/bundled/web/.open-next/assets/_next/static/chunks/0_4sb50rx~3w-.js +1 -0
  6. package/bundled/web/.open-next/assets/_next/static/chunks/{12oay61-cq.qw.js → 0adva2eatithu.js} +1 -1
  7. package/bundled/web/.open-next/assets/_next/static/chunks/0iq-wdylmm182.js +1 -0
  8. package/bundled/web/.open-next/cache/{YGJyWNUCWhOqpFg-fDYKo → hVIZPE2F4QvJg_UJ73uCp}/_global-error.cache +1 -1
  9. package/bundled/web/.open-next/cache/{YGJyWNUCWhOqpFg-fDYKo → hVIZPE2F4QvJg_UJ73uCp}/_not-found.cache +1 -1
  10. package/bundled/web/.open-next/cache/{YGJyWNUCWhOqpFg-fDYKo → hVIZPE2F4QvJg_UJ73uCp}/sitemap.xml.cache +1 -1
  11. package/bundled/web/.open-next/cloudflare/cache-assets-manifest.sql +1 -1
  12. package/bundled/web/.open-next/cloudflare/init.js +1 -1
  13. package/bundled/web/.open-next/dynamodb-provider/dynamodb-cache.json +1 -1
  14. package/bundled/web/.open-next/middleware/handler.mjs +26 -26
  15. package/bundled/web/.open-next/server-functions/default/src/web/.next/BUILD_ID +1 -1
  16. package/bundled/web/.open-next/server-functions/default/src/web/.next/build-manifest.json +3 -3
  17. package/bundled/web/.open-next/server-functions/default/src/web/.next/prerender-manifest.json +3 -3
  18. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/invite/[token]/page_client-reference-manifest.js +1 -1
  19. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/studio/new/page_client-reference-manifest.js +1 -1
  20. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/activity/page_client-reference-manifest.js +1 -1
  21. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/chat/[convId]/page_client-reference-manifest.js +1 -1
  22. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/chat/page_client-reference-manifest.js +1 -1
  23. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/email/page_client-reference-manifest.js +1 -1
  24. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/files/page_client-reference-manifest.js +1 -1
  25. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/meetings/page_client-reference-manifest.js +1 -1
  26. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/page_client-reference-manifest.js +1 -1
  27. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/new/page_client-reference-manifest.js +1 -1
  28. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/page_client-reference-manifest.js +1 -1
  29. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/calendar/page_client-reference-manifest.js +1 -1
  30. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/help/email-setup/page_client-reference-manifest.js +1 -1
  31. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/home/page_client-reference-manifest.js +1 -1
  32. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/issues/page_client-reference-manifest.js +1 -1
  33. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/runtimes/page_client-reference-manifest.js +1 -1
  34. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/settings/page_client-reference-manifest.js +1 -1
  35. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/threads/[traceId]/page_client-reference-manifest.js +1 -1
  36. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/threads/page_client-reference-manifest.js +1 -1
  37. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/unread/page_client-reference-manifest.js +1 -1
  38. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/workspaces/page_client-reference-manifest.js +1 -1
  39. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(auth)/sign-in/page_client-reference-manifest.js +1 -1
  40. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  41. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/page_client-reference-manifest.js +1 -1
  42. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/templates/[id]/page_client-reference-manifest.js +1 -1
  43. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/templates/page_client-reference-manifest.js +1 -1
  44. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0-6p0uy._.js +2 -2
  45. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0ih-ceb._.js +2 -2
  46. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0_k8iss._.js +2 -2
  47. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0o6ydx5._.js +1 -1
  48. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0vhi1.k._.js +1 -1
  49. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0y.08ek._.js +1 -1
  50. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0yeokgf._.js +1 -1
  51. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_11h6ii1._.js +2 -2
  52. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_app_(auth)_sign-in_page_tsx_0jdlb-h._.js +1 -1
  53. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-build-manifest.js +3 -3
  54. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-manifest.json +5 -5
  55. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/server-reference-manifest.js +1 -1
  56. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/server-reference-manifest.json +1 -1
  57. package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs +16 -16
  58. package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs.meta.json +86 -86
  59. package/bundled/web/.open-next/server-functions/default/src/web/index.mjs +3 -3
  60. package/bundled/web/custom-worker.ts +2 -2
  61. package/package.json +1 -1
  62. package/bundled/web/.open-next/assets/_next/static/chunks/06ksvdw1qrvwk.js +0 -1
  63. package/bundled/web/.open-next/assets/_next/static/chunks/0lo_c9qps6nzn.js +0 -20
  64. package/bundled/web/.open-next/assets/_next/static/chunks/0p7q1v_ivmnag.js +0 -1
  65. package/bundled/web/.open-next/assets/_next/static/chunks/0xzbhdkkpaanc.js +0 -1
  66. /package/bundled/web/.open-next/assets/_next/static/{YGJyWNUCWhOqpFg-fDYKo → hVIZPE2F4QvJg_UJ73uCp}/_buildManifest.js +0 -0
  67. /package/bundled/web/.open-next/assets/_next/static/{YGJyWNUCWhOqpFg-fDYKo → hVIZPE2F4QvJg_UJ73uCp}/_clientMiddlewareManifest.js +0 -0
  68. /package/bundled/web/.open-next/assets/_next/static/{YGJyWNUCWhOqpFg-fDYKo → hVIZPE2F4QvJg_UJ73uCp}/_ssgManifest.js +0 -0
  69. /package/bundled/web/.open-next/cache/{YGJyWNUCWhOqpFg-fDYKo → hVIZPE2F4QvJg_UJ73uCp}/robots.txt.cache +0 -0
@@ -17,6 +17,6 @@ module.exports=[890255,a=>{"use strict";var b=a.i(749314),c=a.i(437199),d=a.i(20
17
17
  --nojs-bg: black !important;
18
18
  --nojs-fg: white !important;
19
19
  }
20
- }`,t=a.i(75118);function u({className:a,containerClassName:c,...d}){return(0,b.jsx)(q,{"data-slot":"input-otp",containerClassName:(0,t.cn)("cn-input-otp flex items-center has-disabled:opacity-50",c),spellCheck:!1,className:(0,t.cn)("disabled:cursor-not-allowed",a),...d})}function v({className:a,...c}){return(0,b.jsx)("div",{"data-slot":"input-otp-group",className:(0,t.cn)("flex items-center rounded-lg has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40",a),...c})}function w({index:a,className:d,...e}){let f=c.useContext(p),{char:g,hasFakeCaret:h,isActive:i}=f?.slots[a]??{};return(0,b.jsxs)("div",{"data-slot":"input-otp-slot","data-active":i,className:(0,t.cn)("relative flex size-8 items-center justify-center border-y border-r border-input text-sm transition-all outline-none first:rounded-l-lg first:border-l last:rounded-r-lg aria-invalid:border-destructive data-[active=true]:z-10 data-[active=true]:border-ring data-[active=true]:ring-3 data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40",d),...e,children:[g,h&&(0,b.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:(0,b.jsx)("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})}a.i(483250);var x=a.i(142261),y=a.i(76592),z=a.i(183189);function A({className:a,orientation:c="horizontal",...d}){return(0,b.jsx)(z.Separator,{"data-slot":"separator",orientation:c,className:(0,t.cn)("shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",a),...d})}function B({className:a,...c}){return(0,b.jsx)("div",{"data-slot":"field-group",className:(0,t.cn)("group/field-group @container/field-group flex w-full flex-col gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4",a),...c})}let C=(0,x.cva)("group/field flex w-full gap-2 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:"flex-col *:w-full [&>.sr-only]:w-auto",horizontal:"flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",responsive:"flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"}},defaultVariants:{orientation:"vertical"}});function D({className:a,orientation:c="vertical",...d}){return(0,b.jsx)("div",{role:"group","data-slot":"field","data-orientation":c,className:(0,t.cn)(C({orientation:c}),a),...d})}function E({className:a,...c}){return(0,b.jsx)(y.Label,{"data-slot":"field-label",className:(0,t.cn)("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border *:data-[slot=field]:p-2.5 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",a),...c})}function F({children:a,className:c,...d}){return(0,b.jsxs)("div",{"data-slot":"field-separator","data-content":!!a,className:(0,t.cn)("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",c),...d,children:[(0,b.jsx)(A,{className:"absolute inset-0 top-1/2"}),a&&(0,b.jsx)("span",{className:"relative mx-auto block w-fit bg-background px-2 text-muted-foreground","data-slot":"field-separator-content",children:a})]})}function G({className:a,children:d,errors:e,...f}){let g=(0,c.useMemo)(()=>{if(d)return d;if(!e?.length)return null;let a=[...new Map(e.map(a=>[a?.message,a])).values()];return a?.length==1?a[0]?.message:(0,b.jsx)("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:a.map((a,c)=>a?.message&&(0,b.jsx)("li",{children:a.message},c))})},[d,e]);return g?(0,b.jsx)("div",{role:"alert","data-slot":"field-error",className:(0,t.cn)("text-sm font-normal text-destructive",a),...f,children:g}):null}let H=c.forwardRef(function({title:a="GitHub",color:c="currentColor",size:d=24,...e},f){return"default"===c&&(c="#181717"),(0,b.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:d,height:d,fill:c,viewBox:"0 0 24 24",ref:f,...e,children:[(0,b.jsx)("title",{children:a}),(0,b.jsx)("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})]})}),I=c.forwardRef(function({title:a="Google",color:c="currentColor",size:d=24,...e},f){return"default"===c&&(c="#4285F4"),(0,b.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:d,height:d,fill:c,viewBox:"0 0 24 24",ref:f,...e,children:[(0,b.jsx)("title",{children:a}),(0,b.jsx)("path",{d:"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"})]})});var J=a.i(567264),K=a.i(482481);function L({postLoginUrl:a}){let[d,g]=(0,c.useState)(""),[i,j]=(0,c.useState)(""),[k,l]=(0,c.useState)(!1),[m,n]=(0,c.useState)(""),[o,p]=(0,c.useState)("email"),[q,r]=(0,c.useState)(null);(0,c.useEffect)(()=>{if(null==q)return;let a=setTimeout(()=>{r(a=>null==a||a<=1?null:a-1)},1e3);return()=>clearTimeout(a)},[q]);let s={onError:a=>{if(429===a.response.status){let b=function(a){let b=a.get("X-Retry-After")??a.get("Retry-After");if(!b)return null;let c=Number.parseInt(b,10);return Number.isFinite(c)&&c>0?c:null}(a.response.headers);null!=b&&r(b)}}};async function t(a){if(a.preventDefault(),null==q){j(""),r(null),l(!0);try{let{error:a}=await e.authClient.emailOtp.sendVerificationOtp({email:d,type:"sign-in",fetchOptions:s});a?429!==a.status&&j(a.message??"Failed to send code"):p("code")}catch{j("Failed to send code")}l(!1)}}async function x(b){if(n(b),6===b.length){j(""),l(!0);try{let{error:c}=await e.authClient.signIn.emailOtp({email:d,otp:b});if(c)j(c.message??"Invalid code"),n("");else{window.location.href=a;return}}catch{j("Invalid code"),n("")}l(!1)}}let y=null!=q,z=k?"Sending...":y?`Wait ${q}s`:"Send Code",A="code"===o?"Enter the code we sent you":"Enter your email — we’ll send you a verification code";return(0,b.jsxs)(B,{children:[(0,b.jsxs)("div",{className:"flex flex-col items-center gap-2 text-center",children:[(0,b.jsx)("h1",{className:"text-2xl font-bold",children:"Sign in"}),(0,b.jsx)("p",{className:"text-sm text-muted-foreground",children:"or create an account to get started"}),A&&(0,b.jsx)("p",{className:"text-balance text-muted-foreground",children:A})]}),y&&(0,b.jsxs)(G,{children:["Too many requests. Try again in ",q,"s."]}),i&&!y&&(0,b.jsx)(G,{children:i}),"email"===o?(0,b.jsx)("form",{onSubmit:t,children:(0,b.jsxs)(B,{children:[(0,b.jsxs)(D,{children:[(0,b.jsx)(E,{htmlFor:"email",children:"Email"}),(0,b.jsx)(h.Input,{id:"email",type:"email",placeholder:"you@example.com",value:d,onChange:a=>g(a.target.value),required:!0,autoFocus:!0})]}),(0,b.jsx)(D,{children:(0,b.jsx)(f.Button,{type:"submit",disabled:k||y,className:"w-full",children:z})})]})}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("p",{className:"text-sm text-muted-foreground text-center",children:["We sent a code to ",(0,b.jsx)("strong",{children:d})]}),(0,b.jsx)("div",{className:"flex justify-center",children:(0,b.jsx)(u,{maxLength:6,value:m,onChange:x,disabled:k,autoFocus:!0,children:(0,b.jsxs)(v,{children:[(0,b.jsx)(w,{index:0}),(0,b.jsx)(w,{index:1}),(0,b.jsx)(w,{index:2}),(0,b.jsx)(w,{index:3}),(0,b.jsx)(w,{index:4}),(0,b.jsx)(w,{index:5})]})})}),(0,b.jsx)(f.Button,{variant:"ghost",className:"w-full",onClick:()=>{p("email"),n(""),j("")},children:"Use a different email"})]}),(0,b.jsx)(F,{className:"*:data-[slot=field-separator-content]:bg-card",children:"Or continue with"}),(0,b.jsxs)(D,{className:"grid grid-cols-2 gap-4",children:[(0,b.jsxs)(f.Button,{variant:"outline",type:"button",onClick:()=>e.signIn.social({provider:"github",callbackURL:a}),children:[(0,b.jsx)(H,{className:"size-4"}),"GitHub"]}),(0,b.jsxs)(f.Button,{variant:"outline",type:"button",onClick:()=>e.signIn.social({provider:"google",callbackURL:a}),children:[(0,b.jsx)(I,{className:"size-4"}),"Google"]})]})]})}a.i(974936),a.i(988024),a.s(["default",0,function(){var a;let c=(a=(0,d.useSearchParams)().get("redirect"))&&a.startsWith("/")&&!a.startsWith("//")?a:"/workspaces?auto";return(0,b.jsxs)("div",{className:"relative flex min-h-svh flex-col items-center justify-center p-6 md:p-10",children:[(0,b.jsx)(J.GradientBackground,{}),(0,b.jsx)("div",{className:"w-full max-w-sm md:max-w-4xl",children:(0,b.jsx)("div",{className:"flex flex-col gap-6",children:(0,b.jsx)(g.Card,{className:"overflow-hidden p-0",children:(0,b.jsxs)(g.CardContent,{className:"grid p-0 md:grid-cols-2",children:[(0,b.jsx)("div",{className:"p-6 md:p-8 md:min-h-105 flex flex-col justify-center",children:(0,b.jsx)(L,{postLoginUrl:c})}),(0,b.jsx)("div",{className:"hidden bg-muted md:flex items-center justify-center overflow-visible min-h-80 pt-24",children:(0,b.jsx)(K.TypewriterVisual,{className:"scale-[0.65] shrink-0",emails:K.EMAILS_PLAYFUL,blobScale:2.5,blobBottom:"30%"})})]})})})})]})}],890255)}];
20
+ }`,t=a.i(75118);function u({className:a,containerClassName:c,...d}){return(0,b.jsx)(q,{"data-slot":"input-otp",containerClassName:(0,t.cn)("cn-input-otp flex items-center has-disabled:opacity-50",c),spellCheck:!1,className:(0,t.cn)("disabled:cursor-not-allowed",a),...d})}function v({className:a,...c}){return(0,b.jsx)("div",{"data-slot":"input-otp-group",className:(0,t.cn)("flex items-center rounded-lg has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40",a),...c})}function w({index:a,className:d,...e}){let f=c.useContext(p),{char:g,hasFakeCaret:h,isActive:i}=f?.slots[a]??{};return(0,b.jsxs)("div",{"data-slot":"input-otp-slot","data-active":i,className:(0,t.cn)("relative flex size-8 items-center justify-center border-y border-r border-input text-sm transition-all outline-none first:rounded-l-lg first:border-l last:rounded-r-lg aria-invalid:border-destructive data-[active=true]:z-10 data-[active=true]:border-ring data-[active=true]:ring-3 data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40",d),...e,children:[g,h&&(0,b.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:(0,b.jsx)("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})}a.i(483250);var x=a.i(142261),y=a.i(76592),z=a.i(183189);function A({className:a,orientation:c="horizontal",...d}){return(0,b.jsx)(z.Separator,{"data-slot":"separator",orientation:c,className:(0,t.cn)("shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",a),...d})}function B({className:a,...c}){return(0,b.jsx)("div",{"data-slot":"field-group",className:(0,t.cn)("group/field-group @container/field-group flex w-full flex-col gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4",a),...c})}let C=(0,x.cva)("group/field flex w-full gap-2 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:"flex-col *:w-full [&>.sr-only]:w-auto",horizontal:"flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",responsive:"flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"}},defaultVariants:{orientation:"vertical"}});function D({className:a,orientation:c="vertical",...d}){return(0,b.jsx)("div",{role:"group","data-slot":"field","data-orientation":c,className:(0,t.cn)(C({orientation:c}),a),...d})}function E({className:a,...c}){return(0,b.jsx)(y.Label,{"data-slot":"field-label",className:(0,t.cn)("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border *:data-[slot=field]:p-2.5 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",a),...c})}function F({children:a,className:c,...d}){return(0,b.jsxs)("div",{"data-slot":"field-separator","data-content":!!a,className:(0,t.cn)("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",c),...d,children:[(0,b.jsx)(A,{className:"absolute inset-0 top-1/2"}),a&&(0,b.jsx)("span",{className:"relative mx-auto block w-fit bg-background px-2 text-muted-foreground","data-slot":"field-separator-content",children:a})]})}function G({className:a,children:d,errors:e,...f}){let g=(0,c.useMemo)(()=>{if(d)return d;if(!e?.length)return null;let a=[...new Map(e.map(a=>[a?.message,a])).values()];return a?.length==1?a[0]?.message:(0,b.jsx)("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:a.map((a,c)=>a?.message&&(0,b.jsx)("li",{children:a.message},c))})},[d,e]);return g?(0,b.jsx)("div",{role:"alert","data-slot":"field-error",className:(0,t.cn)("text-sm font-normal text-destructive",a),...f,children:g}):null}let H=c.forwardRef(function({title:a="GitHub",color:c="currentColor",size:d=24,...e},f){return"default"===c&&(c="#181717"),(0,b.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:d,height:d,fill:c,viewBox:"0 0 24 24",ref:f,...e,children:[(0,b.jsx)("title",{children:a}),(0,b.jsx)("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})]})}),I=c.forwardRef(function({title:a="Google",color:c="currentColor",size:d=24,...e},f){return"default"===c&&(c="#4285F4"),(0,b.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:d,height:d,fill:c,viewBox:"0 0 24 24",ref:f,...e,children:[(0,b.jsx)("title",{children:a}),(0,b.jsx)("path",{d:"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"})]})});var J=a.i(567264),K=a.i(482481);a.i(974936);var L=a.i(988024);let M=!(0,t.isLocalMode)();function N({postLoginUrl:a}){let[d,g]=(0,c.useState)(""),[i,j]=(0,c.useState)(""),[k,l]=(0,c.useState)(!1),[m,n]=(0,c.useState)(""),[o,p]=(0,c.useState)("email"),[q,r]=(0,c.useState)(null);(0,c.useEffect)(()=>{if(null==q)return;let a=setTimeout(()=>{r(a=>null==a||a<=1?null:a-1)},1e3);return()=>clearTimeout(a)},[q]);let s={onError:a=>{if(429===a.response.status){let b=function(a){let b=a.get("X-Retry-After")??a.get("Retry-After");if(!b)return null;let c=Number.parseInt(b,10);return Number.isFinite(c)&&c>0?c:null}(a.response.headers);null!=b&&r(b)}}};async function t(a){if(a.preventDefault(),null==q){j(""),r(null),l(!0);try{let{error:a}=await e.authClient.emailOtp.sendVerificationOtp({email:d,type:"sign-in",fetchOptions:s});a?429!==a.status&&j(a.message??"Failed to send code"):p("code")}catch{j("Failed to send code")}l(!1)}}async function x(b){if(n(b),6===b.length){j(""),l(!0);try{let{error:c}=await e.authClient.signIn.emailOtp({email:d,otp:b});if(c)j(c.message??"Invalid code"),n("");else{window.location.href=a;return}}catch{j("Invalid code"),n("")}l(!1)}}async function y(b){b.preventDefault(),j(""),l(!0);let{error:c}=await e.signIn.email({email:d,password:L.DEV_PASSWORD},{onError:()=>{}});if(c){let{error:a}=await e.signUp.email({name:d.split("@")[0],email:d,password:L.DEV_PASSWORD},{onError:()=>{}});if(a){j(a.message??"Failed to sign in"),l(!1);return}}window.location.href=a}let z=null!=q,A=k?"Sending...":z?`Wait ${q}s`:"Send Code",C=M&&"code"===o?"Enter the code we sent you":M?"Enter your email — we’ll send you a verification code":void 0;return(0,b.jsxs)(B,{children:[(0,b.jsxs)("div",{className:"flex flex-col items-center gap-2 text-center",children:[(0,b.jsx)("h1",{className:"text-2xl font-bold",children:"Sign in"}),(0,b.jsx)("p",{className:"text-sm text-muted-foreground",children:"or create an account to get started"}),C&&(0,b.jsx)("p",{className:"text-balance text-muted-foreground",children:C})]}),z&&(0,b.jsxs)(G,{children:["Too many requests. Try again in ",q,"s."]}),i&&!z&&(0,b.jsx)(G,{children:i}),M?"email"===o?(0,b.jsx)("form",{onSubmit:t,children:(0,b.jsxs)(B,{children:[(0,b.jsxs)(D,{children:[(0,b.jsx)(E,{htmlFor:"email",children:"Email"}),(0,b.jsx)(h.Input,{id:"email",type:"email",placeholder:"you@example.com",value:d,onChange:a=>g(a.target.value),required:!0,autoFocus:!0})]}),(0,b.jsx)(D,{children:(0,b.jsx)(f.Button,{type:"submit",disabled:k||z,className:"w-full",children:A})})]})}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("p",{className:"text-sm text-muted-foreground text-center",children:["We sent a code to ",(0,b.jsx)("strong",{children:d})]}),(0,b.jsx)("div",{className:"flex justify-center",children:(0,b.jsx)(u,{maxLength:6,value:m,onChange:x,disabled:k,autoFocus:!0,children:(0,b.jsxs)(v,{children:[(0,b.jsx)(w,{index:0}),(0,b.jsx)(w,{index:1}),(0,b.jsx)(w,{index:2}),(0,b.jsx)(w,{index:3}),(0,b.jsx)(w,{index:4}),(0,b.jsx)(w,{index:5})]})})}),(0,b.jsx)(f.Button,{variant:"ghost",className:"w-full",onClick:()=>{p("email"),n(""),j("")},children:"Use a different email"})]}):(0,b.jsx)("form",{onSubmit:y,children:(0,b.jsxs)(B,{children:[(0,b.jsxs)(D,{children:[(0,b.jsx)(E,{htmlFor:"email",children:"Email"}),(0,b.jsx)(h.Input,{id:"email",type:"email",placeholder:"you@example.com",value:d,onChange:a=>g(a.target.value),required:!0,autoFocus:!0})]}),(0,b.jsx)(D,{children:(0,b.jsx)(f.Button,{type:"submit",disabled:k,className:"w-full",children:k?"Signing in...":"Sign in"})})]})}),(0,b.jsx)(F,{className:"*:data-[slot=field-separator-content]:bg-card",children:"Or continue with"}),(0,b.jsxs)(D,{className:"grid grid-cols-2 gap-4",children:[(0,b.jsxs)(f.Button,{variant:"outline",type:"button",onClick:()=>e.signIn.social({provider:"github",callbackURL:a}),children:[(0,b.jsx)(H,{className:"size-4"}),"GitHub"]}),(0,b.jsxs)(f.Button,{variant:"outline",type:"button",onClick:()=>e.signIn.social({provider:"google",callbackURL:a}),children:[(0,b.jsx)(I,{className:"size-4"}),"Google"]})]})]})}a.s(["default",0,function(){var a;let c=(a=(0,d.useSearchParams)().get("redirect"))&&a.startsWith("/")&&!a.startsWith("//")?a:"/workspaces?auto";return(0,b.jsxs)("div",{className:"relative flex min-h-svh flex-col items-center justify-center p-6 md:p-10",children:[(0,b.jsx)(J.GradientBackground,{}),(0,b.jsx)("div",{className:"w-full max-w-sm md:max-w-4xl",children:(0,b.jsx)("div",{className:"flex flex-col gap-6",children:(0,b.jsx)(g.Card,{className:"overflow-hidden p-0",children:(0,b.jsxs)(g.CardContent,{className:"grid p-0 md:grid-cols-2",children:[(0,b.jsx)("div",{className:"p-6 md:p-8 md:min-h-105 flex flex-col justify-center",children:(0,b.jsx)(N,{postLoginUrl:c})}),(0,b.jsx)("div",{className:"hidden bg-muted md:flex items-center justify-center overflow-visible min-h-80 pt-24",children:(0,b.jsx)(K.TypewriterVisual,{className:"scale-[0.65] shrink-0",emails:K.EMAILS_PLAYFUL,blobScale:2.5,blobBottom:"30%"})})]})})})})]})}],890255)}];
21
21
 
22
22
  //# sourceMappingURL=src_web_src_app_%28auth%29_sign-in_page_tsx_0jdlb-h._.js.map
@@ -7,9 +7,9 @@ globalThis.__BUILD_MANIFEST = {
7
7
  "static/chunks/03~yq9q893hmn.js"
8
8
  ],
9
9
  "lowPriorityFiles": [
10
- "static/YGJyWNUCWhOqpFg-fDYKo/_buildManifest.js",
11
- "static/YGJyWNUCWhOqpFg-fDYKo/_ssgManifest.js",
12
- "static/YGJyWNUCWhOqpFg-fDYKo/_clientMiddlewareManifest.js"
10
+ "static/hVIZPE2F4QvJg_UJ73uCp/_buildManifest.js",
11
+ "static/hVIZPE2F4QvJg_UJ73uCp/_ssgManifest.js",
12
+ "static/hVIZPE2F4QvJg_UJ73uCp/_clientMiddlewareManifest.js"
13
13
  ],
14
14
  "rootMainFiles": [
15
15
  "static/chunks/002w8zenjl89m.js",
@@ -25,11 +25,11 @@
25
25
  "wasm": [],
26
26
  "assets": [],
27
27
  "env": {
28
- "__NEXT_BUILD_ID": "YGJyWNUCWhOqpFg-fDYKo",
29
- "NEXT_SERVER_ACTIONS_ENCRYPTION_KEY": "U7TQ0gdBcrB3sWfvD3feBIb8m9hXxGuJ0Z/EqXbbr0U=",
30
- "__NEXT_PREVIEW_MODE_ID": "b962cd5decf6d124a463dd43140b8310",
31
- "__NEXT_PREVIEW_MODE_ENCRYPTION_KEY": "53de9b225a6b182096dee24e8e3423765c5e15a16bae007be14f56fa668c0f3a",
32
- "__NEXT_PREVIEW_MODE_SIGNING_KEY": "f9de11b97a6c1b4ca2716559286420a18c71c5e118840b79af542e9c00170552"
28
+ "__NEXT_BUILD_ID": "hVIZPE2F4QvJg_UJ73uCp",
29
+ "NEXT_SERVER_ACTIONS_ENCRYPTION_KEY": "RxuNtQTJEsEDTzibEVmBjN06l2FRjGGY0//Fv7bXxoY=",
30
+ "__NEXT_PREVIEW_MODE_ID": "81a1e6a1812b9126549b74b888d16514",
31
+ "__NEXT_PREVIEW_MODE_ENCRYPTION_KEY": "32d3f21a2692a528a8a7abc549d0d9d9f70e8c341a60cf0042227a5a297b19e8",
32
+ "__NEXT_PREVIEW_MODE_SIGNING_KEY": "dde5775316bd87a2c207822fa524c314ce3080bd5a528af6d3db31f62806ee20"
33
33
  }
34
34
  }
35
35
  },
@@ -1 +1 @@
1
- self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"U7TQ0gdBcrB3sWfvD3feBIb8m9hXxGuJ0Z/EqXbbr0U=\"\n}"
1
+ self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"RxuNtQTJEsEDTzibEVmBjN06l2FRjGGY0//Fv7bXxoY=\"\n}"
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "node": {},
3
3
  "edge": {},
4
- "encryptionKey": "U7TQ0gdBcrB3sWfvD3feBIb8m9hXxGuJ0Z/EqXbbr0U="
4
+ "encryptionKey": "RxuNtQTJEsEDTzibEVmBjN06l2FRjGGY0//Fv7bXxoY="
5
5
  }