openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
2 lines • 2.22 kB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./settings-ui-Ck6BJLhD.js","./en-github-CL8n2jUp.js","./control-ui-connection-D5QrEAFW.css","./control-ui-boot-shared-styles-BorAdMVO.css"])))=>i.map(i=>d[i]);
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{lu as t,uu as n}from"./control-ui-connection-Bfj9beF_.js";import{Ev as r,Ms as i,Tv as a,dj as o,js as s,mj as c}from"./control-ui-boot-shared-DFTSUQQ0.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"./solid-runtime-C416s-HC.js";function b(e){return g(s,{get fallback(){var e=S();return m(e,()=>c(`common.loading`)),e},get children(){return g(C,e)}})}function x(e){return g(s,{get fallback(){var e=S();return m(e,()=>c(`common.loading`)),e},get children(){return g(w,e)}})}var S,C,w;function T(){return(T=e((()=>{_(),f(),o(),i(),n(),S=v(`<div class=chat-ci__notice role=status>`),C=p(()=>t(()=>import(`./chat-ci-automation-control-NyTghx54.js`).then(e=>(e.n(),e.t)),__vite__mapDeps([0,1,2,3]),import.meta.url),{export:`ChatCiDetails`},`src/pages/chat/components/chat-ci-details.tsx`),w=p(()=>t(()=>import(`./chat-ci-automation-control-NyTghx54.js`).then(e=>(e.i(),e.r)),__vite__mapDeps([0,1,2,3]),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(),o=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:o,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=a(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(),r()})))()}export{T as a,b as i,D as n,x as r,E as t};