openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
2 lines • 3.8 kB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./control-ui-connection-D5QrEAFW.css","./control-ui-boot-shared-styles-BorAdMVO.css"])))=>i.map(i=>d[i]);
import{n as e,r as t}from"./rolldown-runtime-CNOWq4Kh.js";import{lu as n,tl as r,uu as i}from"./control-ui-connection-Bfj9beF_.js";import{BA as a,U as o,W as s,_O as c,bO as l,dj as u,fO as d,gO as f,lO as p,mj as m,pO as h,pj as g,sO as _,vO as v,zA as y}from"./control-ui-boot-shared-DFTSUQQ0.js";import{A as b,B as x,O as S,Rt as C,S as w,St as T,U as E,W as D,d as O,f as k,gt as A,j,s as M,u as N,w as P,x as F}from"./solid-runtime-C416s-HC.js";import"./connection-surfaces-0y6Akj0M.js";import{n as I,t as L}from"./gateway-host-BgB-LCkp.js";var R=t({GatewayUrlConfirmation:()=>B});function z(e){let t=()=>m(`connection.switchGateway.title`),n=()=>m(`connection.switchGateway.summary`),i=()=>[m(`connection.switchGateway.note`),e().linkCarriesToken?m(`connection.switchGateway.noteToken`):null,e().currentGatewayUrl.trim()&&r(e().currentGatewayUrl)!==r(e().pendingGatewayUrl??``)?m(`connection.switchGateway.noteScoped`,{host:L(e().currentGatewayUrl)}):null].filter(Boolean).join(` `),a=b(()=>j(U,{get label(){return t()},get description(){return n()},"onModal-cancel":()=>e().onCancel(),get children(){var r=V(),a=r.firstChild,o=a.firstChild,s=o.nextSibling.firstChild,c=s.nextSibling,l=a.nextSibling,u=l.firstChild,d=u.firstChild,f=d.nextSibling,p=u.nextSibling,h=p.nextSibling.firstChild,g=h.nextSibling,_=l.nextSibling,v=_.nextSibling,b=v.firstChild,x=b.nextSibling;return O(o,j(y,{name:`shieldAlert`})),O(s,t),O(c,n),O(d,()=>m(`connection.switchGateway.current`)),O(f,()=>e().currentGatewayUrl.trim()||m(`common.na`)),O(p,j(y,{name:`arrowRight`})),O(h,()=>m(`connection.switchGateway.next`)),O(g,()=>e().pendingGatewayUrl),O(_,i),v._$owner=C(),b._$$click=()=>e().onCancel(),O(b,()=>m(`connection.switchGateway.cancel`)),x._$$click=()=>e().onConfirm(),O(x,()=>m(`connection.switchGateway.confirm`,{host:L(e().pendingGatewayUrl??``)})),r}}));return j(w,{fallback:(n,r)=>{let i=!0,[o,s]=x(!1),c=v(n());A(()=>()=>{i=!1,c&&f()});let u=async()=>{i&&(s(!0),!(c&&await l({canReload:()=>i}))&&i&&(s(!1),r()))};return j(S,{get when(){return k(()=>!o())()&&!T(a)},get fallback(){return j(d,{})},get children(){return j(_,{get error(){return n()},stale:c,get subtitle(){return t()},get actionLabel(){return m(`common.retry`)},onRetry:()=>void u(),onClose:()=>e().onCancel()})}})},get children(){return j(P,{get fallback(){return j(d,{})},get children(){return a()}})}})}function B(e){var t=H();return t._$owner=C(),O(t,j(S,{get when(){return k(()=>!!e.props?.pendingGatewayUrl)()?e.props:void 0},children:e=>z(e)})),t}var V,H,U;function W(){return(W=e((()=>{N(),E(),c(),o(),I(),u(),a(),p(),h(),i(),V=F(`<div class=gateway-switch><div class=gateway-switch__head><span class=gateway-switch__icon aria-hidden=true></span><div class=gateway-switch__text><h2 class=gateway-switch__title></h2><p class=gateway-switch__summary></p></div></div><div class=gateway-switch__hosts><div class=gateway-switch__host><span class=gateway-switch__label></span><code translate=no></code></div><span class=gateway-switch__arrow aria-hidden=true></span><div class="gateway-switch__host gateway-switch__host--next"><span class=gateway-switch__label></span><code translate=no></code></div></div><p class=gateway-switch__note></p><openclaw-modal-actions class=gateway-switch__actions><button type=button class=btn></button><button type=button class="btn primary">`,1),H=F(`<openclaw-gateway-url-confirmation style=display:contents>`,1),g(s),U=D(()=>n(()=>import(`./route-controls-runtime-Bx6nx3QW.js`).then(e=>(e.E(),e.D)),__vite__mapDeps([0,1]),import.meta.url),{export:`ModalDialog`},`src/components/modal-dialog.tsx`),M([`click`])})))()}export{W as n,R as t};