import{c as w,k as y,i as n,a as o,S as c,b as S,t as $,e as k,__tla as __tla_0}from"./TeamThemeProvider-BMMWqJEv.js";import{u as C,f as _,h as P,i as E,j as G,__tla as __tla_1}from"./UnlockedWallet-B6hSmM5s.js";import{u as U,__tla as __tla_2}from"./useGpuProbe-CslvY3Ty.js";import{__tla as __tla_3}from"./_virtual_wxt-plugins-D2Qy6pl9.js";import{__tla as __tla_4}from"./index-YPJa-kxZ.js";import{__tla as __tla_5}from"./debounce-D1Adyjvd.js";import{__tla as __tla_6}from"./headers-DBBLE3ii.js";import{__tla as __tla_7}from"./gateway-auth-C4f--iOs.js";import{__tla as __tla_8}from"./vault-state-DXmi8wtw.js";let R;let __tla=Promise.all([(()=>{try{return __tla_0}catch{}})(),(()=>{try{return __tla_1}catch{}})(),(()=>{try{return __tla_2}catch{}})(),(()=>{try{return __tla_3}catch{}})(),(()=>{try{return __tla_4}catch{}})(),(()=>{try{return __tla_5}catch{}})(),(()=>{try{return __tla_6}catch{}})(),(()=>{try{return __tla_7}catch{}})(),(()=>{try{return __tla_8}catch{}})()]).then(async()=>{var j=$('<div class="fixed inset-0 z-40 flex items-center justify-center bg-black/60 backdrop-blur-sm p-4"><div class="w-full max-w-sm border border-[var(--border-primary)] bg-[var(--bg-primary)] shadow-xl"role=dialog aria-modal=true aria-labelledby=local-prover-title><div class="flex items-start gap-3 px-5 pt-5"><span class="inline-flex h-8 w-8 shrink-0 items-center justify-center border border-[var(--border-primary)] text-amber-400"><span class="h-4 w-4"></span></span><div class="min-w-0 flex-1"><h2 id=local-prover-title class="font-mono text-xs font-semibold uppercase tracking-wider text-foreground">Local proving</h2><p class="mt-1 font-mono text-xs leading-snug text-content-muted">Proofs stay on this device. It may be slower, but your proving data remains local.</p></div></div><div class="mx-5 mt-4 flex items-center justify-between gap-4 border border-[var(--border-primary)] px-3 py-3"><div><label class="font-mono text-xs font-semibold text-foreground"for=local-prover-gpu>Use GPU</label><p class="mt-0.5 font-mono text-[10px] text-content-muted"></p></div></div><div class="px-5 pb-4 pt-5"><button type=button class="h-10 w-full bg-[var(--bg-brand-solid,#0064D6)] font-mono text-xs font-semibold uppercase tracking-wider text-white transition-colors hover:opacity-90 disabled:opacity-50">Continue</button><p class="pt-2 text-center font-mono text-[10px] text-content-muted">The prover warms up after you continue');R=()=>{const t=C(),e=U(),[i,l]=w(!1),s=()=>t.environmentSettings().proofServerMode==="wasm"&&t.environmentSettings().localProverSetupDone!==!0;y(()=>{!s()||e.state()!=="idle"||e.run().then(r=>{l(r)})});const p=async()=>{await t.updateSettings({...t.environmentSettings(),localProverGpuEnabled:i()&&e.allowed(),localProverSetupDone:!0},{reload:!1}),E(G(t.environmentSettings()))};return(()=>{var r=j(),m=r.firstChild,d=m.firstChild,u=d.firstChild,f=u.firstChild,a=d.nextSibling,b=a.firstChild,g=b.firstChild,v=g.nextSibling,x=a.nextSibling,h=x.firstChild;return n(f,o(_,{})),n(v,o(c,{get when(){return e.state()!=="running"},fallback:"Checking this device's GPU…",get children(){return o(c,{get when(){return e.summary()},fallback:"Faster when supported",get children(){return e.summary()}})}})),n(a,o(P,{id:"local-prover-gpu","aria-label":"Use GPU",get checked(){return i()},get disabled(){return!e.allowed()},onChange:l,size:"sm"}),null),h.$$click=()=>{p()},S(()=>r.hidden=!s()),r})()};k(["click"])});export{R as default,__tla};