openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
2 lines • 3.2 kB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./template-draft-runtime-DZoxdWm2.js","./predicates-DiNLjGSk.js","./template-creator-runtime-DqedCm1e.js","./deferred-ui-support-DZEPWjAk.js","./creator-review-view-PdEBWnrG.js","./file-preview-document-CnOpuMR8.js","./markdown-runtime-CtlJb8xA.js","./templates-catalog-CW9igxeC.js","./template-workspace-file-roles-g7z8wiHC.js","./session-automation-schedule-loader-bULSVqMo.js","./session-automation-schedule-non-cron-ttQhCIit.js","./presenter-CRCK6EVn.js","./_1____________________________.css","./_0____________________________________.css","./templates-catalog-BQv5OUhV.css"])))=>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{Dw as r,Ew as i,Fy as a,GN as o,Gw as s,Hw as c,IN as l,JN as u,Jw as d,PN as f,Ry as p,Tw as m,Yw as h}from"./_2_____________________________.js";import{B as g,F as _,K as v,O as y,U as b,W as x,d as S,g as C,j as w,l as T,m as E,u as D,v as O,x as k}from"./_6____________________.js";import{n as A,t as j}from"./control-ui-disabled.solid-BIWByOGb.js";function M(e){let t=l(),n=t?.plugins?p(t.plugins):void 0,[r,a]=g(!1),[o,s]=g(160),f=v(d),h=()=>r()&&e.presented!==!1&&f(),b;m(()=>[b],e=>a(e.at(-1)?.isIntersecting===!0),{rootMargin:`400px 0px`}),i(()=>[b],([e])=>{h()&&e&&e.contentRect.height>0&&s(e.contentRect.height)});let x=()=>e.block.pluginId===`openclaw`&&e.block.viewId===`template-review`&&e.block.version===1&&e.block.toolName===`screen`,D=()=>e.block.pluginId+`/`+e.block.viewId+`@`+e.block.version,k=_(()=>{let t=n?.read();return t?.isLoading(e.block.pluginId)?`loading`:t?.registrations(`inlineViews`).some(e=>e.key===D())?`ok`:`unavailable`}),A=()=>(()=>{var r=N(),i=r.firstChild,a=i.nextSibling;return S(i,()=>n?.read().inlineViewLabel(D())??e.block.viewId),S(a,()=>u(k()===`loading`?`pluginUi.inlineLoading`:`pluginUi.inlineUnavailable`)),S(r,w(j,{context:t,get pluginId(){return e.block.pluginId}}),null),r})();var M=P();return E(()=>e=>{b=e},M),S(M,w(y,{get when(){return h()},get children(){return w(y,{get when(){return x()&&t},get fallback(){return w(y,{get when(){return k()===`ok`},get fallback(){return A()},get children(){return w(c,{kind:`inlineViews`,get contributionKey(){return D()},get props(){return{payload:e.block.payload,toolCallId:e.block.toolCallId,toolName:e.block.toolName,sessionKey:e.sessionKey,agentId:e.agentId}},fallback:A})}})},get children(){return w(F,{context:t,get payload(){return e.block.payload},get sessionKey(){return e.sessionKey},get agentId(){return e.agentId}})}})}})),T(()=>({e:e.block.toolCallId,t:h()?void 0:o()+`px`}),({e,t},n)=>{e!==n?.e&&C(M,`data-plugin-inline-view`,e),t!==n?.t&&O(M,`min-height`,t)}),M}var N,P,F;function I(){return(I=e((()=>{D(),b(),f(),o(),r(),a(),h(),A(),s(),t(),N=k(`<div class=card role=status><strong></strong><p class=muted>`),P=k(`<div class=chat-plugin-inline-view>`),F=x(()=>n(()=>import(`./creator-inline-review-Dvd7qhcW.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url),{export:`TemplateCreatorInlineReview`},`src/pages/templates/creator-inline-review.tsx`)})))()}I();export{M as PluginInlineView};