UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 2.48 kB
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{BA as t,dj as n,jA as r,mj as i,zA as a}from"./control-ui-boot-shared-DFTSUQQ0.js";import{C as o,Ct as s,O as c,Rt as l,S as u,U as d,d as f,g as p,j as m,l as h,o as g,u as _,x as v}from"./solid-runtime-C416s-HC.js";import{n as y,t as b}from"./en-github-CL8n2jUp.js";function x(e){return m(c,{get when(){return!e.clipboard.copying()},get children(){return m(u,{get fallback(){var e=w();return f(e,()=>i(`chat.pullRequests.copyFailed`)),e},get children(){return s(e.clipboard.outcome)}})}})}function S(e){let t=()=>e.runningFirst?[`failed`,`running`,`passed`,`skipped`]:[`failed`,`passed`,`running`,`skipped`];return m(o,{get each(){return t()},children:t=>m(c,{get when(){return(e.checks?.[t]??0)!==0},get children(){var n=T(),r=n.firstChild,o=r.nextSibling,s=o.nextSibling;return f(r,m(c,{when:t!==`running`,get fallback(){return E()},get children(){return m(a,{name:t===`failed`?`x`:t===`passed`?`check`:`circle`})}})),f(o,()=>i(A[t])),f(s,()=>e.checks?.[t]??0),h(()=>[`chat-pr__checks-row`,`chat-pr__checks-row--${t}`],(e,t)=>{g(n,e,t)}),n}})})}function C(e){let t=()=>i(e.status===`rate-limited`?`chat.pullRequests.rateLimited`:`chat.pullRequests.unavailable`);return m(c,{get when(){return e.status!==`ready`},get children(){return m(c,{get when(){return e.text},get fallback(){var e=O(),n=e.firstChild;return e._$owner=l(),f(n,m(a,{name:`alertTriangle`})),h(()=>({e:t(),t:t()}),({e:t,t:r},i)=>{t!==i?.e&&p(e,`content`,t),r!==i?.t&&p(n,`aria-label`,r)}),e},get children(){var t=D();return f(t,()=>i(e.status===`rate-limited`?`chat.pullRequests.rateLimitedShort`:`chat.pullRequests.unavailableShort`)),t}})}})}var w,T,E,D,O,k,A;function j(){return(j=e((()=>{_(),d(),t(),b(),r(),n(),w=v(`<p class=chat-pr-menu__error role=alert>`),T=v(`<div><span class=chat-pr__check-symbol aria-hidden=true></span><span class=chat-pr__checks-row-label></span><span class=chat-pr__checks-row-count>`),E=v(`<span class=btn__spinner>`),D=v(`<span class=chat-pr__stale>`),O=v(`<openclaw-tooltip><span class=chat-pr__warning role=img>`,1),y(),k={merged:`chat.pullRequests.merged`,draft:`chat.pullRequests.draft`,closed:`chat.pullRequests.closed`,open:`chat.pullRequests.open`},A={failed:`chat.pullRequests.checksFailed`,passed:`chat.pullRequests.checksPassed`,running:`chat.pullRequests.checksRunning`,skipped:`chat.pullRequests.checksSkipped`}})))()}function M(){return(M=e((()=>{})))()}export{C as a,k as i,S as n,j as o,x as r,M as t};