openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
2 lines • 2.34 kB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./deferred-ui-support-DZEPWjAk.js","./settings-controls-runtime-CwXZmgDo.js","./en-github-BjHf_X6d.js","./session-pr-auto-fix-DSyUveub.js","./_1____________________________.css","./_0____________________________________.css","./chat-ci-automation-control-B_ZCCn9D.js"])))=>i.map(i=>d[i]);
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{$u as t,Qu as n}from"./_4____________________________.js";import{GN as r,Hv as i,JN as a,Vv as o,bc as s,xc as c}from"./_2_____________________________.js";import{B as l,F as u,I as d,U as f,W as p,d as m,gt as h,j as g,u as _,x as v,yt as y}from"./_6____________________.js";function b(e){return g(s,{get fallback(){var e=S();return m(e,()=>a(`common.loading`)),e},get children(){return g(C,e)}})}function x(e){return g(s,{get fallback(){var e=S();return m(e,()=>a(`common.loading`)),e},get children(){return g(w,e)}})}var S,C,w;function T(){return(T=e((()=>{_(),f(),r(),c(),t(),S=v(`<div class=chat-ci__notice role=status>`),C=p(()=>n(()=>import(`./chat-ci-automation-control-B_ZCCn9D.js`).then(e=>(e.n(),e.t)),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),{export:`ChatCiDetails`},`src/pages/chat/components/chat-ci-details.tsx`),w=p(()=>n(()=>import(`./chat-ci-automation-control-Cycqyt4j.js`),__vite__mapDeps([6,0,1,2,3,4,5]),import.meta.url),{export:`ChatCiAutomationControl`},`src/pages/chat/components/chat-ci-automation-control.tsx`)})))()}function E(e){let[t,n]=d(!1),[r,i]=l(),a=u(()=>{let t=r();return t&&e.presented()&&t.url===e.url()?t.result.then(()=>null):null},{loadingValue:null}),s=!1,c,f=t=>s&&c===t&&e.presented()&&e.url()===t.url,p=()=>{c?.retired.resolve(),c=void 0,i(void 0)};h(()=>(s=!0,()=>{s=!1,p()}));let m=y(function*(e,t){f(t)&&n(t),yield Promise.race([e,t.retired.promise])});return{copying:()=>{let e=t();return e&&f(e)},outcome:a,retire:p,async copy(){let t=e.url();if(!t||!s||!e.presented()||c&&f(c))return;p();let n={url:t,retired:Promise.withResolvers()};c=n;let r=o(t,()=>f(n)).then(t=>{if(f(n)){if(t)e.onCopied();else throw Error(`Clipboard copy failed`)}}).catch(e=>{if(f(n))throw e}).finally(()=>{c===n&&(c=void 0)});i({url:t,result:r}),r.catch(()=>{}),await Promise.resolve(),await m(r,n).catch(()=>{})}}}function D(){return(D=e((()=>{f(),i()})))()}export{T as a,b as i,D as n,x as r,E as t};