@alook/app 0.1.34 → 0.1.35

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 (86) 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/0xk3goeel2v01.js +5 -0
  4. package/bundled/web/.open-next/assets/_next/static/chunks/0y253sbff4i0b.js +20 -0
  5. package/bundled/web/.open-next/assets/_next/static/chunks/1f_v2q_s63hoh.js +1 -0
  6. package/bundled/web/.open-next/assets/_next/static/chunks/{3dt849e0jwtu9.js → 1qn5hcu4pid1i.js} +1 -1
  7. package/bundled/web/.open-next/assets/_next/static/chunks/{0uwa452_gtwuc.js → 2sds_4pfwxfef.js} +1 -1
  8. package/bundled/web/.open-next/assets/_next/static/chunks/{3qq-56a5hmhjv.js → 30ia458y2m-z9.js} +1 -1
  9. package/bundled/web/.open-next/assets/_next/static/chunks/{2eysjnlp6hn65.js → 3gbp8j1j9xqt5.js} +1 -1
  10. package/bundled/web/.open-next/cache/{JPtCnLnN72EaJMxDUPROm → cF14NSMWpDLveF91ebqUj}/_global-error.cache +1 -1
  11. package/bundled/web/.open-next/cache/{JPtCnLnN72EaJMxDUPROm → cF14NSMWpDLveF91ebqUj}/_not-found.cache +1 -1
  12. package/bundled/web/.open-next/cache/{JPtCnLnN72EaJMxDUPROm → cF14NSMWpDLveF91ebqUj}/c/me/bots.cache +1 -1
  13. package/bundled/web/.open-next/cache/{JPtCnLnN72EaJMxDUPROm → cF14NSMWpDLveF91ebqUj}/c/me/friends.cache +1 -1
  14. package/bundled/web/.open-next/cache/{JPtCnLnN72EaJMxDUPROm → cF14NSMWpDLveF91ebqUj}/c/me/machines.cache +1 -1
  15. package/bundled/web/.open-next/cache/{JPtCnLnN72EaJMxDUPROm → cF14NSMWpDLveF91ebqUj}/c/me.cache +1 -1
  16. package/bundled/web/.open-next/cache/{JPtCnLnN72EaJMxDUPROm → cF14NSMWpDLveF91ebqUj}/c/onboarding-preview.cache +1 -1
  17. package/bundled/web/.open-next/cache/{JPtCnLnN72EaJMxDUPROm → cF14NSMWpDLveF91ebqUj}/c.cache +1 -1
  18. package/bundled/web/.open-next/cache/{JPtCnLnN72EaJMxDUPROm → cF14NSMWpDLveF91ebqUj}/device.cache +1 -1
  19. package/bundled/web/.open-next/cache/{JPtCnLnN72EaJMxDUPROm → cF14NSMWpDLveF91ebqUj}/onboarding-preview.cache +1 -1
  20. package/bundled/web/.open-next/cache/{JPtCnLnN72EaJMxDUPROm → cF14NSMWpDLveF91ebqUj}/privacy.cache +1 -1
  21. package/bundled/web/.open-next/cloudflare/cache-assets-manifest.sql +1 -1
  22. package/bundled/web/.open-next/cloudflare/init.js +1 -1
  23. package/bundled/web/.open-next/dynamodb-provider/dynamodb-cache.json +1 -1
  24. package/bundled/web/.open-next/middleware/handler.mjs +4 -4
  25. package/bundled/web/.open-next/server-functions/default/src/web/.next/BUILD_ID +1 -1
  26. package/bundled/web/.open-next/server-functions/default/src/web/.next/build-manifest.json +3 -3
  27. package/bundled/web/.open-next/server-functions/default/src/web/.next/prerender-manifest.json +3 -3
  28. package/bundled/web/.open-next/server-functions/default/src/web/.next/required-server-files.json +2 -2
  29. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/invite/[token]/page_client-reference-manifest.js +1 -1
  30. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/studio/new/page_client-reference-manifest.js +1 -1
  31. 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
  32. 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
  33. 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
  34. 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
  35. 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
  36. 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
  37. 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
  38. 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
  39. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/page_client-reference-manifest.js +1 -1
  40. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/calendar/page_client-reference-manifest.js +1 -1
  41. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/flags/page_client-reference-manifest.js +1 -1
  42. 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
  43. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/home/page_client-reference-manifest.js +1 -1
  44. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/issues/page_client-reference-manifest.js +1 -1
  45. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/page_client-reference-manifest.js +1 -1
  46. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/runtimes/page_client-reference-manifest.js +1 -1
  47. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/settings/page_client-reference-manifest.js +1 -1
  48. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/traces/[traceId]/page_client-reference-manifest.js +1 -1
  49. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/traces/page_client-reference-manifest.js +1 -1
  50. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/unread/page_client-reference-manifest.js +1 -1
  51. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/workspaces/page_client-reference-manifest.js +1 -1
  52. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(auth)/sign-in/page_client-reference-manifest.js +1 -1
  53. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/channels/[serverId]/[channelId]/page_client-reference-manifest.js +1 -1
  54. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/channels/[serverId]/page_client-reference-manifest.js +1 -1
  55. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/channels/[serverId]/settings/page_client-reference-manifest.js +1 -1
  56. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/invite/[token]/page_client-reference-manifest.js +1 -1
  57. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/me/[dmId]/page_client-reference-manifest.js +1 -1
  58. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/me/bots/page_client-reference-manifest.js +1 -1
  59. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/me/friends/page_client-reference-manifest.js +1 -1
  60. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/me/machines/page_client-reference-manifest.js +1 -1
  61. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/me/page_client-reference-manifest.js +1 -1
  62. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/onboarding-preview/page_client-reference-manifest.js +1 -1
  63. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/page_client-reference-manifest.js +1 -1
  64. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__1exc8lx._.js +1 -1
  65. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_06ly4t9._.js +1 -1
  66. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_1dpddg5._.js +1 -1
  67. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_1n-91sn._.js +1 -1
  68. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_0-2rpii._.js +1 -1
  69. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_0tk6041._.js +1 -1
  70. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_app_(app)_w_[slug]_settings_0ag2edj._.js +1 -1
  71. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-build-manifest.js +3 -3
  72. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-manifest.json +5 -5
  73. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/server-reference-manifest.js +1 -1
  74. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/server-reference-manifest.json +1 -1
  75. package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs +9 -9
  76. package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs.meta.json +37 -37
  77. package/bundled/web/.open-next/server-functions/default/src/web/index.mjs +4 -4
  78. package/package.json +1 -1
  79. package/bundled/web/.open-next/assets/_next/static/chunks/0mu9kud4850o1.js +0 -5
  80. package/bundled/web/.open-next/assets/_next/static/chunks/2tl7jjpykd3mi.js +0 -1
  81. package/bundled/web/.open-next/assets/_next/static/chunks/41xwnd9igyovr.js +0 -20
  82. /package/bundled/web/.open-next/assets/_next/static/{JPtCnLnN72EaJMxDUPROm → cF14NSMWpDLveF91ebqUj}/_buildManifest.js +0 -0
  83. /package/bundled/web/.open-next/assets/_next/static/{JPtCnLnN72EaJMxDUPROm → cF14NSMWpDLveF91ebqUj}/_clientMiddlewareManifest.js +0 -0
  84. /package/bundled/web/.open-next/assets/_next/static/{JPtCnLnN72EaJMxDUPROm → cF14NSMWpDLveF91ebqUj}/_ssgManifest.js +0 -0
  85. /package/bundled/web/.open-next/cache/{JPtCnLnN72EaJMxDUPROm → cF14NSMWpDLveF91ebqUj}/favicon.ico.cache +0 -0
  86. /package/bundled/web/.open-next/cache/{JPtCnLnN72EaJMxDUPROm → cF14NSMWpDLveF91ebqUj}/robots.txt.cache +0 -0
@@ -1,20 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,32586,e=>{"use strict";let t=(0,e.i(494916).default)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);e.s(["default",0,t])},150801,e=>{"use strict";var t=e.i(274570),a=e.i(318151),n=e.i(735642),i=e.i(23055),r=e.i(577992),l=e.i(381153),s=e.i(186339),o=e.i(934351),c=e.i(410763),u=e.i(903477),d=e.i(182149);function g({email:e,error:a,onChange:n}){return(0,t.jsxs)(c.Field,{"data-invalid":!!a,children:[(0,t.jsx)(c.FieldLabel,{htmlFor:"email",children:"Email"}),(0,t.jsx)(u.Input,{id:"email",type:"email",placeholder:"you@example.com",value:e,onChange:n,"aria-invalid":!!a,"aria-describedby":a?"sign-in-email-error":void 0,required:!0,autoFocus:!0}),a&&(0,t.jsx)(c.FieldError,{id:"sign-in-email-error",children:a})]})}function p({code:e,error:a,loading:n,onChange:i}){return(0,t.jsx)(c.Field,{"data-invalid":!!a,children:(0,t.jsxs)("div",{"data-slot":"sign-in-otp-field",className:"mx-auto flex w-fit! flex-col items-center gap-2",children:[(0,t.jsx)(d.InputOTP,{maxLength:6,value:e,onChange:i,disabled:n,"aria-label":"Verification code","aria-invalid":!!a,"aria-describedby":a?"sign-in-otp-error":void 0,autoFocus:!0,children:(0,t.jsxs)(d.InputOTPGroup,{children:[(0,t.jsx)(d.InputOTPSlot,{index:0}),(0,t.jsx)(d.InputOTPSlot,{index:1}),(0,t.jsx)(d.InputOTPSlot,{index:2}),(0,t.jsx)(d.InputOTPSlot,{index:3}),(0,t.jsx)(d.InputOTPSlot,{index:4}),(0,t.jsx)(d.InputOTPSlot,{index:5})]})}),a&&(0,t.jsx)(c.FieldError,{id:"sign-in-otp-error",className:"w-full text-center",children:a})]})})}e.i(954194);var m=e.i(824863),h=e.i(568294),M=e.i(71561);let x=a.forwardRef(function({title:e="Google",color:a="currentColor",size:n=24,...i},r){return"default"===a&&(a="#4285F4"),(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,fill:a,viewBox:"0 0 24 24",ref:r,...i,children:[(0,t.jsx)("title",{children:e}),(0,t.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 f=e.i(667274),N=e.i(88723),v=e.i(552731),j=e.i(395207);let w=N.nativeOauthProofSchema.extend({candidateId:v.z.string(),code:v.z.string().nullable(),status:v.z.string().nullable(),wasDispatched:v.z.boolean()}).strict();async function T(e,t){return fetch(e,{method:void 0===t?"GET":"POST",credentials:"same-origin",cache:"no-store",headers:void 0===t?void 0:{"Content-Type":"application/json"},body:void 0===t?void 0:JSON.stringify(t),signal:AbortSignal.timeout(15e3)})}let D={invoke:m.tauriInvoke,async listen(e){let t=window.__TAURI__,a=t?.core?.Channel;if(!a)throw Error("native_bridge_unavailable");let n=new a;n.onmessage=e;let i=await (0,m.tauriInvoke)("native_oauth_listen",{channel:n});return()=>{(0,m.tauriInvoke)("native_oauth_unlisten",{registrationId:i}).catch(()=>{})}},async post(e,t){let a=await T(`/api/auth/native/${e}`,t);return{ok:a.ok,data:await a.json()}},async hasSession(){let e=await T("/api/auth/get-session?disableCookieCache=true"),t=v.z.object({session:v.z.object({id:v.z.string()}).passthrough().nullable()}).passthrough().safeParse(await e.json());return e.ok&&t.success&&null!==t.data.session},navigate(e){window.location.assign(e)}},b={start_failed:"Couldn't open sign-in. Try again.",expired:"This sign-in attempt expired. Try again.",denied:"Sign-in was cancelled in your browser. You can try again.",invalid_callback:"That sign-in link wasn't valid. Waiting for your browser to finish.",retry_required:"Couldn't confirm sign-in. Try again to start a new attempt.",unavailable:"Sign-in is unavailable. Try again or use email.",apple_update_required:"Update Alook to continue with Apple. GitHub, Google, and email still work."};function I({postLoginUrl:e,appleEnabled:n=!1}){let r=(0,a.useRef)(null),[l,o]=(0,a.useState)(null),u=(0,a.useRef)("github");(0,a.useEffect)(()=>{let e,t,a,n,i,l,s,c,u,d,g,p,M,x,f,T;if(!(0,m.isTauri)())return;let b=(a={phase:"initializing",attempt:null},n=0,i=!1,l=!1,s=!1,c=!1,u=Promise.resolve(),d=e=>{a=e,i||(p(e.attempt),o(e))},g=e=>!i&&n===e,p=e=>{clearTimeout(t),e&&(t=setTimeout(()=>{i||a.attempt?.attemptId!==e.attemptId||(n+=1,d({phase:"error",message:"expired",attempt:null}),D.invoke("native_oauth_snapshot").catch(()=>{}))},Math.max(0,e.expiresAt-Date.now())))},M=async()=>j.nativeOauthSnapshotSchema.nullable().parse(await D.invoke("native_oauth_snapshot")),x=async(e,t)=>{await D.invoke("native_oauth_finish",{attemptId:e,candidateId:t})},f=async()=>{try{return await D.hasSession()}catch{return!1}},T=async()=>{if(i||!l)return;if(s){c=!0;return}s=!0;let e=n;try{do{c=!1;let t=w.nullable().parse(await D.invoke("native_oauth_pending_exchange"));if(!g(e)||!t)return;let a=await M();if(!g(e))return;if(!a||a.attemptId!==t.attemptId)continue;let{attemptId:n,state:i,verifier:r,candidateId:l}=t,s={attemptId:n,state:i,verifier:r};if(t.wasDispatched&&t.code){if(await f()){if(!g(e))return;await x(n,l),g(e)&&D.navigate(a.redirectPath)}else g(e)&&d({phase:"error",message:"retry_required",attempt:a});return}d({phase:t.code?"exchanging":"checking_status",attempt:a});try{if(t.code){let i=N.nativeOauthExchangeSchema.parse({...s,code:t.code}),r=await D.post("exchange",i);if(!g(e))return;let o=v.z.object({redirectPath:v.z.string().refine(h.isSafeRedirectPath)}).strict().safeParse(r.data);if(r.ok&&o.success){await x(n,l),g(e)&&D.navigate(o.data.redirectPath);return}if(!v.z.object({error:v.z.literal("invalid_handoff")}).strict().safeParse(r.data).success)throw Error("exchange_unconfirmed");if(await D.invoke("native_oauth_reject_candidate",{attemptId:n,candidateId:l}),!g(e))return;d({phase:"waiting",message:"invalid_callback",attempt:a}),c=!0;continue}let i=await D.post("status",s);if(!g(e))return;let r=v.z.object({status:v.z.enum(["pending","opened","ready","exchanging","consumed","failed","cancelled","replaced","expired","unknown"]),failure:v.z.string().optional()}).strict().parse(i.data);if(!i.ok)throw Error("status_unavailable");if(["failed","cancelled","replaced","expired","unknown","consumed"].includes(r.status)){let t="consumed"===r.status&&await f();if(!g(e)||(await x(n,l),!g(e)))return;p(null),t?D.navigate(a.redirectPath):d({phase:"error",message:"access_denied"===r.failure?"denied":"retry_required",attempt:null});return}if(await D.invoke("native_oauth_reject_candidate",{attemptId:n,candidateId:l}),!g(e))return;d({phase:"waiting",message:"invalid_callback",attempt:a}),c=!0}catch{let i=!!t.code&&await f();if(!g(e))return;i?(await x(n,l),g(e)&&D.navigate(a.redirectPath)):d({phase:"error",message:"retry_required",attempt:a});return}}while(c&&g(e))}catch{g(e)&&d({phase:"error",message:"unavailable",attempt:a.attempt})}finally{s=!1,c&&!i&&(c=!1,T())}},{async connect(){d({phase:"initializing",attempt:null});try{let t=await D.listen(()=>{T()});if(i)return void t();e=t;let a=await M();if(i)return;l=!0,d({phase:a?.waiting?"waiting":"idle",attempt:a}),await T()}catch(e){i||d("store_unavailable"===e?{phase:"error",message:"unavailable",attempt:null}:{phase:"unsupported",attempt:null})}},start(e,t){if(i||!l||!(0,h.isSafeRedirectPath)(t))return Promise.resolve();let r=++n;d({phase:"preparing",attempt:a.attempt});let s=async()=>{let a;if(g(r))try{let n=N.nativeOauthRegistrationSchema.parse(await D.invoke("native_oauth_prepare",{provider:e,redirectPath:t}));if(a=n.attemptId,!g(r))return;let i=await M();if(!g(r))return;d({phase:"preparing",attempt:i});let l=await D.post("attempt",n);if(!g(r))return;let s=v.z.object({startUrl:v.z.string()}).strict().parse(l.data);if(!l.ok)throw Error("registration_failed");if(await D.invoke("native_oauth_open_start",{attemptId:a,startUrl:s.startUrl}),!g(r))return;let o=await M();if(!g(r))return;d({phase:"waiting",attempt:o}),T()}catch(i){if(!g(r))return;if(a){let e=await D.invoke("native_oauth_cancel",{attemptId:a}).catch(()=>null);e&&await D.post("cancel",N.nativeOauthProofSchema.parse(e)).catch(()=>{})}let t="string"==typeof i?i:i instanceof Error?i.message:"",n="apple"!==e||a||"invalid_request"!==t?"start_failed":"apple_update_required";g(r)&&(p(null),d({phase:"error",message:n,attempt:null}))}};return u=u.then(s,s)},async cancel(){let e=++n,t=a.attempt;try{let t=await D.invoke("native_oauth_cancel");g(e)&&(p(null),d({phase:"idle",attempt:null})),t&&await D.post("cancel",N.nativeOauthProofSchema.parse(t)).catch(()=>{})}catch{g(e)&&d({phase:"error",message:"unavailable",attempt:t})}},dispose(){i=!0,n+=1,clearTimeout(t),e?.()}});return r.current=b,b.connect(),()=>{b.dispose(),r.current===b&&(r.current=null)}},[]);let d=t=>{(u.current=t,(0,m.isTauri)())?r.current&&r.current.start(t,(0,h.safeRedirectPath)(e)):i.signIn.social({provider:t,callbackURL:e})},g=l?.phase==="initializing"||l?.phase==="preparing"||l?.phase==="exchanging"||l?.phase==="checking_status",p=l?.phase==="unsupported",T=l?.message==="apple_update_required",y=p?"Update Alook to use social sign-in. You can still use email.":l?.message?b[l.message]:l?.phase==="preparing"?"Opening sign-in in your browser…":l?.phase==="exchanging"||l?.phase==="checking_status"?"Confirming sign-in…":l?.phase==="waiting"?"Finish signing in in your browser.":void 0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(c.Field,{className:"grid grid-cols-2 gap-4",children:[(0,t.jsx)(s.Button,{size:"lg",type:"button",disabled:g||p,className:"border-0 bg-apple-signin text-base text-apple-signin-foreground hover:bg-apple-signin","data-testid":"native-oauth-github",onClick:()=>d("github"),children:(0,t.jsxs)("span",{className:"inline-flex items-center gap-2","data-testid":"native-oauth-github-content",children:[(0,t.jsx)(M.SiGithub,{className:"size-4","aria-hidden":!0}),(0,t.jsx)("span",{children:"GitHub"})]})}),(0,t.jsx)(s.Button,{size:"lg",type:"button",disabled:g||p,className:"border-0 bg-apple-signin text-base text-apple-signin-foreground hover:bg-apple-signin","data-testid":"native-oauth-google",onClick:()=>d("google"),children:(0,t.jsxs)("span",{className:"inline-flex items-center gap-2","data-testid":"native-oauth-google-content",children:[(0,t.jsx)(x,{className:"size-4","aria-hidden":!0}),(0,t.jsx)("span",{children:"Google"})]})}),n?(0,t.jsx)(s.Button,{type:"button",size:"lg",disabled:g||p||T,className:"col-span-2 min-w-35 border-0 bg-apple-signin text-base text-apple-signin-foreground hover:bg-apple-signin","data-testid":"native-oauth-apple",onClick:()=>d("apple"),children:(0,t.jsxs)("span",{className:"inline-flex items-center gap-2","data-testid":"native-oauth-apple-content",children:[(0,t.jsxs)("span",{className:"grid h-9 place-items-center","aria-hidden":!0,children:[(0,t.jsx)(f.default,{src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMzFweCIgaGVpZ2h0PSI0NHB4IiB2aWV3Qm94PSIwIDAgMzEgNDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDYxICg4OTU4MSkgLSBodHRwczovL3NrZXRjaC5jb20gLS0+CiAgICA8dGl0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ZXJvIj48L3BhdGg+CiAgICA8L2c+Cjwvc3ZnPg==",alt:"",width:31,height:44,unoptimized:!0,className:"col-start-1 row-start-1 h-9 w-auto dark:hidden","data-testid":"apple-official-left-aligned-logo-white"}),(0,t.jsx)(f.default,{src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMzFweCIgaGVpZ2h0PSI0NHB4IiB2aWV3Qm94PSIwIDAgMzEgNDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDYxICg4OTU4MSkgLSBodHRwczovL3NrZXRjaC5jb20gLS0+CiAgICA8dGl0bGU+TGVmdCBCbGFjayBMb2dvIE1lZGl1bTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSJMZWZ0LUJsYWNrLUxvZ28tTWVkaXVtIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlIiBmaWxsPSIjRkZGRkZGIiB4PSIwIiB5PSIwIiB3aWR0aD0iMzEiIGhlaWdodD0iNDQiPjwvcmVjdD4KICAgICAgICA8cGF0aCBkPSJNMTUuNzA5OTQ5MSwxNC44ODQ2MTU0IEMxNi41Njc1NDYxLDE0Ljg4NDYxNTQgMTcuNjQyNTYyLDE0LjMwNDgzMTUgMTguMjgyNzQsMTMuNTMxNzg2NCBDMTguODYyNTIzOCwxMi44MzEyMTQyIDE5LjI4NTI4MjksMTEuODUyODI5IDE5LjI4NTI4MjksMTAuODc0NDQzNyBDMTkuMj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1LDE1LjA4OTk1NTUgQzE3LjUyMTc3MzcsMTUuMDg5OTU1NSAxNi4zNTAxMjcxLDE1Ljk1OTYzMTMgMTUuNjEzMzE4NSwxNS45NTk2MzEzIEMxNC44MTYxMTU3LDE1Ljk1OTYzMTMgMTMuNzY1MjU3NSwxNS4xMzgyNzA4IDEyLjUyMTEzOCwxNS4xMzgyNzA4IEMxMC4xNTM2ODcyLDE1LjEzODI3MDggNy43NSwxNy4wOTUwNDEzIDcuNzUsMjAuNzkxMTYzNCBDNy43NSwyMy4wODYxNDExIDguNjQzODMzNDQsMjUuNTEzOTg2IDkuNzQzMDA2OTksMjcuMDg0MjMzOSBDMTAuNjg1MTU1OCwyOC40MTI5MDUzIDExLjUwNjUxNjIsMjkuNSAxMi42OTAyNDE2LDI5LjUgWiIgaWQ9Iu+jvyIgZmlsbD0iIzAwMDAwMCIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICA8L2c+Cjwvc3ZnPg==",alt:"",width:31,height:44,unoptimized:!0,className:"col-start-1 row-start-1 hidden h-9 w-auto dark:block","data-testid":"apple-official-left-aligned-logo-black"})]}),(0,t.jsx)("span",{children:"Continue with Apple"})]})}):null]}),y&&(0,t.jsx)("p",{role:l?.phase==="error"||p?"alert":"status",className:"text-sm text-muted-foreground","data-testid":"native-oauth-status",children:y}),!p&&!T&&l&&(l.attempt||"error"===l.phase||"preparing"===l.phase)&&(0,t.jsxs)("div",{className:"flex gap-2",children:[(l.attempt||"preparing"===l.phase)&&(0,t.jsx)(s.Button,{type:"button",variant:"ghost","data-testid":"native-oauth-cancel",onClick:()=>{r.current?.cancel()},children:"Cancel"}),(0,t.jsx)(s.Button,{type:"button",variant:"outline",disabled:g,"data-testid":"native-oauth-retry",onClick:()=>d(l.attempt?.provider??u.current),children:"Try again"})]})]})}e.i(729997);var y=e.i(479998),z=e.i(643486),S=e.i(726514),E=e.i(364803),k=e.i(39716),C=e.i(582168),O=e.i(509279);function L({postLoginUrl:e,isProd:n,accountDeleted:o,appleEnabled:u}){let[d,m]=(0,a.useState)(""),[h,M]=(0,a.useState)(""),[x,f]=(0,a.useState)(""),[N,v]=(0,a.useState)(!1),[j,w]=(0,a.useState)(""),[T,D]=(0,a.useState)("email"),[b,y]=(0,a.useState)(null);(0,a.useEffect)(()=>{if(null==b)return;let e=setTimeout(()=>{y(e=>null==e||e<=1?null:e-1)},1e3);return()=>clearTimeout(e)},[b]);let z={onError:e=>{if(429===e.response.status){M("");let t=(0,r.parseRetryAfterSeconds)(e.response.headers);null!=t&&y(t)}}};async function S(e){if(e.preventDefault(),null==b){M(""),y(null),v(!0);try{let{error:e}=await i.authClient.emailOtp.sendVerificationOtp({email:d,type:"sign-in",fetchOptions:z});e?429!==e.status&&M(e.message??"Failed to send code"):(M(""),f(""),D("code"))}catch{M("Failed to send code")}v(!1)}}async function E(t){if(w(t),f(""),6===t.length){v(!0);try{let{error:a}=await i.authClient.signIn.emailOtp({email:d,otp:t});if(a)f(a.message??"Invalid code"),w("");else{f(""),window.location.href=e;return}}catch{f("Invalid code"),w("")}v(!1)}}async function k(t){t.preventDefault(),M(""),v(!0);let{error:a}=await i.signIn.email({email:d,password:C.DEV_PASSWORD},{onError:()=>{}});if(a){let{error:e}=await i.signUp.email({name:d.split("@")[0],email:d,password:C.DEV_PASSWORD},{onError:()=>{}});if(e){M(e.message??"Failed to sign in"),v(!1);return}}window.location.href=e}let A=null!=b,U=A?`Too many requests. Try again in ${b}s.`:h,P=N?"Sending...":A?`Wait ${b}s`:"Send Code",Q=n&&"code"===T?"Enter the code we sent you":n?"Enter your email — we’ll send you a verification code":void 0;return(0,t.jsxs)(c.FieldGroup,{children:[o?(0,t.jsxs)("div",{className:"flex gap-3 rounded-xl bg-muted/70 p-4 text-left",role:"status","data-testid":l.tid.accountDeletionComplete,children:[(0,t.jsx)(O.CircleCheck,{className:"mt-0.5 size-5 shrink-0 text-muted-foreground","aria-hidden":!0}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-sm font-medium",children:"Account deleted"}),(0,t.jsx)("p",{className:"mt-0.5 text-sm text-muted-foreground",children:"Your account and its data were removed."})]})]}):null,(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2 text-center",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold",children:"Sign in"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"or create an account to get started"}),Q&&(0,t.jsx)("p",{className:"text-balance text-muted-foreground",children:Q})]}),n?"email"===T?(0,t.jsx)("form",{onSubmit:S,children:(0,t.jsxs)(c.FieldGroup,{children:[(0,t.jsx)(g,{email:d,error:U,onChange:e=>{m(e.target.value),M("")}}),(0,t.jsx)(c.Field,{children:(0,t.jsx)(s.Button,{variant:"outline",size:"lg",type:"submit",disabled:N||A,className:"w-full text-base",children:P})})]})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"text-sm text-muted-foreground text-center",children:["We sent a code to ",(0,t.jsx)("strong",{children:d})]}),(0,t.jsx)(p,{code:j,error:x,loading:N,onChange:E}),(0,t.jsx)(s.Button,{variant:"ghost",className:"w-full",onClick:()=>{D("email"),w(""),f(""),M("")},children:"Use a different email"})]}):(0,t.jsx)("form",{onSubmit:k,children:(0,t.jsxs)(c.FieldGroup,{children:[(0,t.jsx)(g,{email:d,error:h,onChange:e=>{m(e.target.value),M("")}}),(0,t.jsx)(c.Field,{children:(0,t.jsx)(s.Button,{variant:"outline",size:"lg",type:"submit",disabled:N,className:"w-full text-base",children:N?"Signing in...":"Sign in"})})]})}),(0,t.jsx)(c.FieldSeparator,{className:"*:data-[slot=field-separator-content]:bg-card",children:"Or continue with"}),(0,t.jsx)(I,{postLoginUrl:e,appleEnabled:u})]})}let A=[{scene:"server",label:"The best room for agents and humans",description:"Bring your people and agents together in one shared home."},{scene:"spaces",label:"A room for every part of life",description:"Keep work, life, and play separate—invite the friends and bots who belong."},{scene:"machine",label:"Bring your own agents",description:"Use your own computer and existing agent subscriptions."},{scene:"provider",label:"Persistent identity and memory",description:"Your agents stay themselves, independent of provider."}];function U(){let[e,n]=(0,a.useState)(0),[i,r]=(0,a.useState)(!1),[l,s]=(0,a.useState)(!0),o=A[e];return((0,a.useEffect)(()=>{let e=window.matchMedia("(min-width: 640px)"),t=window.matchMedia("(prefers-reduced-motion: reduce)"),a=()=>{r(e.matches),s(!t.matches)};return a(),e.addEventListener("change",a),t.addEventListener("change",a),()=>{e.removeEventListener("change",a),t.removeEventListener("change",a)}},[]),(0,a.useEffect)(()=>{if(!i||!l)return;let e=window.setTimeout(()=>{n(e=>(e+1)%A.length)},(0,E.sceneDurationMs)(o.scene));return()=>window.clearTimeout(e)},[o.scene,l,i]),i)?(0,t.jsxs)("div",{className:`${k.default.galleryContainer} flex h-full min-h-0 flex-col items-center justify-center p-5 lg:p-7`,children:[(0,t.jsx)("div",{className:`${k.default.galleryFrame} w-full bg-background ring-1 ring-border/60 shadow-lg`,role:"img","aria-label":o.label,children:(0,t.jsx)(S.LandingShellMotion,{scene:o.scene},o.scene)}),(0,t.jsxs)("div",{className:`${k.default.galleryFooter} mt-4`,children:[(0,t.jsxs)("div",{"aria-live":"polite",children:[(0,t.jsxs)("p",{className:"font-mono text-[10px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:[String(e+1).padStart(2,"0")," / ",String(A.length).padStart(2,"0")]}),(0,t.jsx)("p",{className:"mt-1 text-sm font-medium text-foreground",children:o.label}),(0,t.jsx)("p",{className:"mt-0.5 max-w-lg text-xs leading-relaxed text-muted-foreground",children:o.description})]}),(0,t.jsx)("div",{className:k.default.gallerySwitcher,"aria-label":"Product stories",children:A.map((a,i)=>(0,t.jsx)("button",{onClick:()=>n(i),className:"grid size-8 place-items-center rounded-full focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","aria-label":`Show ${a.label}`,"aria-pressed":i===e,children:(0,t.jsx)("span",{className:"h-1.5 rounded-full transition-all duration-300",style:{width:i===e?16:6,backgroundColor:i===e?"var(--foreground)":"var(--muted-foreground)",opacity:i===e?1:.3}})},a.scene))})]})]}):null}e.s(["default",0,function({isProd:e,appleEnabled:a}){var i;let r=(0,n.useSearchParams)(),l=(i=r.get("redirect"))&&i.startsWith("/")&&!i.startsWith("//")?i:"/c/me",s="1"===r.get("account_deleted");return(0,t.jsxs)("div",{className:"relative flex min-h-svh flex-col items-center justify-center p-6 sm:p-10",children:[(0,t.jsx)(y.GradientBackground,{}),(0,t.jsx)("div",{className:"w-full max-w-sm sm:max-w-6xl",children:(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,t.jsx)("div",{className:"flex justify-center mb-2",children:(0,t.jsx)(z.Logo,{size:"lg"})}),(0,t.jsx)(o.Card,{className:"overflow-hidden p-0",children:(0,t.jsxs)(o.CardContent,{className:"grid p-0 sm:grid-cols-[minmax(320px,0.82fr)_minmax(0,1.35fr)]",children:[(0,t.jsx)("div",{className:"flex flex-col justify-center p-6 sm:min-h-120 sm:p-8",children:(0,t.jsx)(L,{postLoginUrl:l,isProd:e,accountDeleted:s,appleEnabled:a})}),(0,t.jsx)("div",{className:"relative hidden min-h-120 overflow-hidden bg-muted sm:block",children:(0,t.jsx)(U,{})})]})})]})})]})}],150801)},729997,479998,e=>{"use strict";var t=e.i(708884);e.s([],729997),e.s(["GradientBackground",()=>t.AppBackground],479998)},643486,e=>{"use strict";var t=e.i(274570),a=e.i(848317),n=e.i(667274),i=e.i(613349);let r={sm:{icon:28,text:"text-2xl"},lg:{icon:36,text:"text-4xl"}};e.s(["Logo",0,function({size:e="sm",className:l,iconOnly:s=!1}){let{icon:o,text:c}=r[e],{resolvedTheme:u,setTheme:d}=(0,a.useTheme)();return(0,t.jsxs)("button",{type:"button",onClick:()=>{d("dark"===u?"light":"dark")},"aria-label":"Toggle theme",className:(0,i.cn)("flex items-center gap-2 cursor-pointer select-none transition-opacity hover:opacity-70",l),children:[(0,t.jsx)(n.default,{src:"/alook.svg",alt:"Alook",width:o,height:o}),!s&&(0,t.jsx)("span",{className:(0,i.cn)(c,"font-black tracking-tight"),style:{fontFamily:"var(--font-brand)"},children:"Alook"})]})}])},410763,e=>{"use strict";var t=e.i(274570),a=e.i(318151),n=e.i(294237),i=e.i(613349),r=e.i(473131),l=e.i(434433);let s=(0,n.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"}});e.s(["Field",0,function({className:e,orientation:a="vertical",...n}){return(0,t.jsx)("div",{role:"group","data-slot":"field","data-orientation":a,className:(0,i.cn)(s({orientation:a}),e),...n})},"FieldContent",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"field-content",className:(0,i.cn)("group/field-content flex flex-1 flex-col gap-1 leading-snug",e),...a})},"FieldDescription",0,function({className:e,...a}){return(0,t.jsx)("p",{"data-slot":"field-description",className:(0,i.cn)("text-left text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-2","last:mt-0 nth-last-2:-mt-1","[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...a})},"FieldError",0,function({className:e,children:n,errors:r,...l}){let s=(0,a.useMemo)(()=>{if(n)return n;if(!r?.length)return null;let e=[...new Map(r.map(e=>[e?.message,e])).values()];return e?.length==1?e[0]?.message:(0,t.jsx)("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:e.map((e,a)=>e?.message&&(0,t.jsx)("li",{children:e.message},a))})},[n,r]);return s?(0,t.jsx)("div",{role:"alert","data-slot":"field-error",className:(0,i.cn)("text-sm font-normal text-destructive",e),...l,children:s}):null},"FieldGroup",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"field-group",className:(0,i.cn)("group/field-group @container/field-group flex w-full flex-col gap-4 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4",e),...a})},"FieldLabel",0,function({className:e,...a}){return(0,t.jsx)(r.Label,{"data-slot":"field-label",className:(0,i.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 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",e),...a})},"FieldSeparator",0,function({children:e,className:a,...n}){return(0,t.jsxs)("div",{"data-slot":"field-separator","data-content":!!e,className:(0,i.cn)("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",a),...n,children:[(0,t.jsx)(l.Separator,{className:"absolute inset-0 top-1/2"}),e&&(0,t.jsx)("span",{className:"relative mx-auto block w-fit bg-background px-2 text-muted-foreground","data-slot":"field-separator-content",children:e})]})},"FieldSet",0,function({className:e,...a}){return(0,t.jsx)("fieldset",{"data-slot":"field-set",className:(0,i.cn)("flex flex-col gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",e),...a})},"FieldTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"field-label",className:(0,i.cn)("flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50",e),...a})}])},182149,e=>{"use strict";var t=e.i(274570),a=e.i(318151),n=Object.defineProperty,i=Object.defineProperties,r=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,c=(e,t,a)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;function u(e){let t=e.getBoundingClientRect().right,a=e;for(;a;){if("visible"!==getComputedStyle(a).overflowX)return a.getBoundingClientRect().left+a.clientLeft+a.clientWidth-t;a=a.parentElement}return document.documentElement.clientWidth-t}var d=a.createContext({}),g=a.forwardRef((e,t)=>{let n;var g,h,M,x,f,{value:N,onChange:v,maxLength:j,textAlign:w="left",pattern:T,placeholder:D,inputMode:b="numeric",onComplete:I,pushPasswordManagerStrategy:y="increase-width",pasteTransformer:z,containerClassName:S,noScriptCSSFallback:E=m,nonce:k,render:C,children:O}=e,L=((e,t)=>{var a={};for(var n in e)s.call(e,n)&&0>t.indexOf(n)&&(a[n]=e[n]);if(null!=e&&l)for(var n of l(e))0>t.indexOf(n)&&o.call(e,n)&&(a[n]=e[n]);return a})(e,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","nonce","render","children"]);let[A,U]=a.useState("string"==typeof L.defaultValue?L.defaultValue:""),P=null!=N?N:A,Q=(n=a.useRef(),a.useEffect(()=>{n.current=P}),n.current),B=a.useCallback(e=>{null==v||v(e),U(e)},[v]),_=a.useMemo(()=>T?"string"==typeof T?new RegExp(T):T:null,[T]),G=a.useRef(null),Y=a.useRef(null),R=a.useRef({value:P,onChange:B,isIOS:"u">typeof window&&(null==(h=null==(g=null==window?void 0:window.CSS)?void 0:g.supports)?void 0:h.call(g,"-webkit-touch-callout","none"))}),F=a.useRef({prev:[null==(M=G.current)?void 0:M.selectionStart,null==(x=G.current)?void 0:x.selectionEnd,null==(f=G.current)?void 0:f.selectionDirection]});a.useImperativeHandle(t,()=>G.current,[]),a.useEffect(()=>{let e=G.current,t=Y.current;if(!e||!t)return;function a(){if(document.activeElement!==e){$(null),q(null);return}let t=e.selectionStart,a=e.selectionEnd,n=e.selectionDirection,i=e.maxLength,r=e.value,l=F.current.prev,s=-1,o=-1,c;if(0!==r.length&&null!==t&&null!==a){let n=t===a,u=t===r.length&&r.length<i;if(n&&!u){if(0===t)s=0,o=1,c="forward";else if(t===i)s=t-1,o=t,c="backward";else if(i>1&&r.length>1){let e=0;if(null!==l[0]&&null!==l[1]){c=t<l[1]?"backward":"forward";let a=l[0]===l[1]&&l[0]<i;"backward"!==c||a||(e=-1)}s=e+t,o=e+t+1}}-1!==s&&-1!==o&&s!==o&&e.setSelectionRange(s,o,c)}let u=-1!==s?s:t,d=-1!==o?o:a,g=null!=c?c:n;$(u),q(d),F.current.prev=[u,d,g]}if(R.current.value!==e.value&&R.current.onChange(e.value),F.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",a,{capture:!0}),a(),document.activeElement===e&&H(!0),!document.getElementById("input-otp-style")){let e=document.createElement("style");if(e.id="input-otp-style",k&&e.setAttribute("nonce",k),document.head.appendChild(e),e.sheet){let t="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";p(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),p(e.sheet,`[data-input-otp]:autofill { ${t} }`),p(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),p(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),p(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let n=()=>{t&&t.style.setProperty("--root-height",`${e.clientHeight}px`)};n();let i="u"<typeof ResizeObserver?null:new ResizeObserver(n);return null==i||i.observe(e),()=>{document.removeEventListener("selectionchange",a,{capture:!0}),null==i||i.disconnect()}},[]);let[W,Z]=a.useState(!1),[V,H]=a.useState(!1),[J,$]=a.useState(null),[X,q]=a.useState(null);a.useEffect(()=>{var e;let t=[setTimeout(e=()=>{var e,t,a,n;null==(e=G.current)||e.dispatchEvent(new Event("input"));let i=null==(t=G.current)?void 0:t.selectionStart,r=null==(a=G.current)?void 0:a.selectionEnd,l=null==(n=G.current)?void 0:n.selectionDirection;null!==i&&null!==r&&($(i),q(r),F.current.prev=[i,r,l])},0),setTimeout(e,10),setTimeout(e,50)];return()=>{t.forEach(e=>clearTimeout(e))}},[P,V]),a.useEffect(()=>{void 0!==Q&&P!==Q&&Q.length<j&&P.length===j&&(null==I||I(P))},[j,I,Q,P]);let K=function({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:i}){let[r,l]=a.useState(!1),[s,o]=a.useState(!1),[c,d]=a.useState(!1),g=a.useMemo(()=>"none"!==n&&("increase-width"===n||"experimental-no-flickering"===n)&&r&&s,[r,s,n]),p=a.useCallback(()=>{let a=e.current,i=t.current;if(!a||!i||c||"none"===n)return;let r=a.getBoundingClientRect().left+a.offsetWidth,s=a.getBoundingClientRect().top+a.offsetHeight/2;0===document.querySelectorAll('[data-lastpass-icon-root],com-1password-button,[data-dashlanecreated],[style$="2147483647 !important;"]').length&&document.elementFromPoint(r-18,s)===a||(o(u(a)>=40),l(!0),d(!0))},[e,t,c,n]);return a.useEffect(()=>{let t=e.current;if(!t||"none"===n)return;function a(){o(u(t)>=40)}a();let i=setInterval(a,1e3);return()=>{clearInterval(i)}},[e,n]),a.useEffect(()=>{let e=i||document.activeElement===t.current;if("none"===n||!e)return;let a=setTimeout(p,0),r=setTimeout(p,2e3),l=setTimeout(p,5e3),s=setTimeout(()=>{d(!0)},6e3);return()=>{clearTimeout(a),clearTimeout(r),clearTimeout(l),clearTimeout(s)}},[t,i,n,p]),{hasPWMBadge:r,willPushPWMBadge:g,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:Y,inputRef:G,pushPasswordManagerStrategy:y,isFocused:V}),ee=a.useCallback(e=>{let t=e.currentTarget.value.slice(0,j);t.length>0&&_&&!_.test(t)?e.preventDefault():("string"==typeof Q&&t.length<Q.length&&document.dispatchEvent(new Event("selectionchange")),B(t))},[j,B,Q,_]),et=a.useCallback(()=>{var e;if(G.current){let t=Math.min(G.current.value.length,j-1),a=G.current.value.length;null==(e=G.current)||e.setSelectionRange(t,a),$(t),q(a)}H(!0)},[j]),ea=a.useCallback(e=>{var t,a;let n=G.current;if(!z&&(!R.current.isIOS||!e.clipboardData||!n))return;let i=e.clipboardData.getData("text/plain"),r=z?z(i):i;e.preventDefault();let l=null==(t=G.current)?void 0:t.selectionStart,s=null==(a=G.current)?void 0:a.selectionEnd,o=(l!==s?P.slice(0,l)+r+P.slice(s):P.slice(0,l)+r+P.slice(l)).slice(0,j);if(o.length>0&&_&&!_.test(o))return;n.value=o,B(o);let c=Math.min(o.length,j-1),u=o.length;n.setSelectionRange(c,u),$(c),q(u)},[j,B,z,_,P]),en=a.useMemo(()=>({position:"relative",cursor:L.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[L.disabled]),ei=a.useMemo(()=>({position:"absolute",inset:0,width:K.willPushPWMBadge?`calc(100% + ${K.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:K.willPushPWMBadge?`inset(0 ${K.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:w,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height, 16px)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[K.PWM_BADGE_SPACE_WIDTH,K.willPushPWMBadge,w]),er=a.useMemo(()=>{var e;return a.createElement("input",i(((e,t)=>{for(var a in t||(t={}))s.call(t,a)&&c(e,a,t[a]);if(l)for(var a of l(t))o.call(t,a)&&c(e,a,t[a]);return e})({autoComplete:L.autoComplete||"one-time-code"},L),r({"data-input-otp":!0,"data-input-otp-placeholder-shown":0===P.length||void 0,"data-input-otp-mss":J,"data-input-otp-mse":X,inputMode:b,pattern:null==_?void 0:_.source,"aria-placeholder":D,style:ei,maxLength:j,value:P,ref:G,spellCheck:null!=(e=L.spellCheck)&&e,onPaste:e=>{var t;ea(e),null==(t=L.onPaste)||t.call(L,e)},onChange:ee,onMouseOver:e=>{var t;Z(!0),null==(t=L.onMouseOver)||t.call(L,e)},onMouseLeave:e=>{var t;Z(!1),null==(t=L.onMouseLeave)||t.call(L,e)},onFocus:e=>{var t;et(),null==(t=L.onFocus)||t.call(L,e)},onBlur:e=>{var t;H(!1),null==(t=L.onBlur)||t.call(L,e)}})))},[ee,et,ea,b,ei,j,X,J,D,L,null==_?void 0:_.source,P]),el=a.useMemo(()=>({slots:Array.from({length:j}).map((e,t)=>{var a;let n=V&&null!==J&&null!==X&&(J===X&&t===J||t>=J&&t<X),i=void 0!==P[t]?P[t]:null;return{char:i,placeholderChar:void 0!==P[0]?null:null!=(a=null==D?void 0:D[t])?a:null,isActive:n,hasFakeCaret:n&&null===i}}),isFocused:V,isHovering:!L.disabled&&W}),[V,W,j,X,J,D,L.disabled,P]),es=a.useMemo(()=>C?C(el):a.createElement(d.Provider,{value:el},O),[O,el,C]);return a.createElement(a.Fragment,null,null!==E&&a.createElement("noscript",null,a.createElement("style",null,E)),a.createElement("div",{ref:Y,"data-input-otp-container":!0,translate:"no",style:en,className:S},es,a.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},er)))});function p(e,t){try{e.insertRule(t)}catch(e){console.warn("input-otp could not insert CSS rule:",t)}}g.displayName="Input";var m=`
2
- [data-input-otp] {
3
- --nojs-bg: white !important;
4
- --nojs-fg: black !important;
5
-
6
- background-color: var(--nojs-bg) !important;
7
- color: var(--nojs-fg) !important;
8
- caret-color: var(--nojs-fg) !important;
9
- letter-spacing: .25em !important;
10
- text-align: center !important;
11
- border: 1px solid var(--nojs-fg) !important;
12
- border-radius: 4px !important;
13
- width: 100% !important;
14
- }
15
- @media (prefers-color-scheme: dark) {
16
- [data-input-otp] {
17
- --nojs-bg: black !important;
18
- --nojs-fg: white !important;
19
- }
20
- }`,h=e.i(613349);e.i(32586),e.s(["InputOTP",0,function({className:e,containerClassName:a,...n}){return(0,t.jsx)(g,{"data-slot":"input-otp",containerClassName:(0,h.cn)("cn-input-otp flex items-center has-disabled:opacity-50",a),spellCheck:!1,className:(0,h.cn)("disabled:cursor-not-allowed",e),...n})},"InputOTPGroup",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"input-otp-group",className:(0,h.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",e),...a})},"InputOTPSlot",0,function({index:e,className:n,...i}){let r=a.useContext(d),{char:l,hasFakeCaret:s,isActive:o}=r?.slots[e]??{};return(0,t.jsxs)("div",{"data-slot":"input-otp-slot","data-active":o,className:(0,h.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",n),...i,children:[l,s&&(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:(0,t.jsx)("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})}],182149)},395207,e=>{"use strict";e.i(954194);var t=e.i(568294),a=e.i(88723),n=e.i(552731);let i=n.z.object({attemptId:n.z.string(),provider:a.nativeOauthProviderSchema,redirectPath:n.z.string().refine(t.isSafeRedirectPath),expiresAt:n.z.number(),waiting:n.z.boolean()}).strict();e.s(["nativeOauthSnapshotSchema",0,i])},577992,e=>{"use strict";e.s(["parseRetryAfterSeconds",0,function(e){let t=e.get("X-Retry-After")??e.get("Retry-After");if(!t)return null;let a=Number.parseInt(t,10);return Number.isFinite(a)&&a>0?a:null}])}]);