openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 3.77 kB
JavaScript
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{GN as t,JN as n,fN as r,pN as i}from"./_2_____________________________.js";import{D as a,O as o}from"./deferred-ui-support-DZEPWjAk.js";import{F as s,O as c,U as l,d as u,f as d,g as f,j as p,l as m,s as h,u as g,x as _}from"./_6____________________.js";import{i as v,n as y,r as b,s as x,t as S}from"./chat-github-publication-CXere5GP.js";function C(e){let t=s(()=>{let{result:t,confirmation:n,locked:r}=e.publication;if(t?.status===`published`)return{repository:t.repository,branch:t.branch};if(n)return{repository:n.repository,branch:n.branch,baseBranch:n.baseBranch};if(r||t)return;let i=e.branch,a=i??e.repository;return a?{repository:`${a.owner}/${a.repo}`,branch:i?.branch,diff:i??void 0}:void 0});var i=D(),o=i.firstChild,l=o.firstChild,h=l.firstChild,g=l.nextSibling,_=g.firstChild,x=_.nextSibling,C=g.nextSibling,j=o.nextSibling;return u(i,p(c,{get when(){return t()},children:e=>(()=>{var t=O(),n=t.firstChild;return u(n,()=>e().repository),u(t,p(c,{get when(){return e().branch},children:t=>(()=>{var n=k(),i=n.firstChild,o=i.firstChild,s=o.nextSibling;return u(i,p(r,{name:`gitBranch`}),o),u(o,t),u(i,p(c,{get when(){return e().baseBranch},children:e=>[p(r,{name:`arrowRight`}),(()=>{var t=A();return u(t,e),t})()]}),s),u(n,p(c,{get when(){return e().diff},children:e=>p(a,{get item(){return e()},classPrefix:`chat-pr`})}),null),n})()}),null),t})()}),o),u(h,()=>n(`githubPublication.title`)),u(l,p(v,{get publication(){return e.publication}}),null),u(o,p(S,{get publication(){return e.publication},get presented(){return e.presented},mobile:!0}),g),u(g,p(b,{get publication(){return e.publication},inline:!0,mobile:!0}),_),u(g,p(c,{get when(){return e.publication.optionsUnavailable},get children(){var t=w(),r=t.firstChild;return u(r,()=>n(`githubPublication.statusUnavailable`)),u(t,p(c,{get when(){return e.publication.error},children:e=>(()=>{var t=A();return u(t,e),t})()}),null),t}}),x),u(o,p(c,{get when(){return!e.publication.optionsUnavailable},get children(){var t=T();return u(t,p(y,{get publication(){return e.publication},get presented(){return e.presented},mobile:!0})),t}}),C),u(i,p(c,{get when(){return d(()=>!!(e.branch&&e.onDismissBranch&&!e.publication.locked))()?!e.publication.result:e.branch&&e.onDismissBranch&&!e.publication.locked},get children(){var t=E(),i=t.firstChild,a=i.firstChild;return i._$$click=()=>{let t=e.presented;e.branch&&!e.publication.locked&&!e.publication.result&&e.publication.activity===null&&(typeof t==`object`?t.isPresented():t)&&e.onDismissBranch?.(e.branch)},u(i,p(r,{name:`eyeOff`}),a),u(a,()=>n(`chat.pullRequests.hide`)),m(()=>({e:n(`chat.pullRequests.dismissBranch`,{branch:e.branch?.branch??``}),t:e.publication.activity!==null}),({e,t},n)=>{e!==n?.e&&f(i,`aria-label`,e),t!==n?.t&&f(i,`disabled`,t)}),t}}),j),m(()=>n(`githubPublication.title`),e=>{f(o,`aria-label`,e)}),i}var w,T,E,D,O,k,A;function j(){return(j=e((()=>{g(),l(),o(),i(),t(),x(),w=_(`<div role=alert class=github-publication-mobile__unavailable><span>`),T=_(`<div class=github-publication-mobile__actions>`),E=_(`<div class="chat-pr-mobile__group chat-pr-mobile__actions"><button type=button class=chat-pr-mobile__hide><span>`),D=_(`<div class=github-publication-mobile><section class=github-publication-mobile__publication><div class=github-publication-mobile__heading><h3></h3></div><div class=github-publication-mobile__status aria-live=polite><!><!></div><!></section><!>`),O=_(`<div class=github-publication-mobile__context><div class=github-publication-mobile__repository>`),k=_(`<div class=github-publication-mobile__branch-group><div class=github-publication-mobile__branch><span></span><!>`),A=_(`<span>`),h([`click`])})))()}j();export{C as GitHubPublicationMobile};