openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
2 lines • 12.8 kB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./control-ui-boot-chat-DewxEbIm.js","./markdown-runtime-DmM7zNej.js","./control-ui-boot-chat-styles-CEPkk0Pv.js","./chat-message-media-runtime-BIOBdIgm.js","./virtual-core-runtime-BYd4CRBu.js","./chat-route-entry-CggrR8vy.js","./control-ui-connection-D5QrEAFW.css","./control-ui-boot-shared-styles-BorAdMVO.css","./control-ui-boot-chat-styles-BoDuSoES.css"])))=>i.map(i=>d[i]);
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{Qt as t,Tt as n,Xt as r,ao as i,br as a,jt as o,lu as s,nu as c,ro as l,uu as u,xr as d}from"./control-ui-connection-Bfj9beF_.js";import{A_ as f,BA as p,N_ as ee,QC as m,RA as h,XC as g,ZC as _,al as te,dj as v,ej as ne,il as re,j_ as ie,mj as y,ol as ae,pj as b,tj as oe,zA as x}from"./control-ui-boot-shared-DFTSUQQ0.js";import{C as S,F as C,O as w,Rt as T,S as se,U as ce,W as le,a as E,d as D,f as O,g as k,j as A,l as j,o as M,p as N,s as P,u as F,v as I,w as ue,x as L}from"./solid-runtime-C416s-HC.js";import{a as de,n as fe,t as pe}from"./mcp-app-route-TBo2ntnJ.js";import{U as me,W as he,cr as ge,dr as _e,fr as ve,lr as ye,sr as be,ur as xe}from"./deferred-ui-support-D-VedBtc.js";import{n as Se,t as Ce}from"./en-apps-DvbjY5ku.js";import{a as we,i as Te,o as Ee,r as De}from"./route-chrome-7YRVJwhf.js";import{n as Oe,t as ke}from"./native-chrome-setup-TgtPHa-a.js";function Ae(e,t){let n=URL.parse(typeof t==`string`?t:e);if(!n||(n.protocol===`wss:`&&(n.protocol=`https:`),n.protocol!==`https:`||n.username||n.password||n.href.includes(`?`)||n.href.includes(`#`)))return null;let r=new URL(`openclaw://gateway/add`);return r.searchParams.set(`url`,n.href),r.href}function R(e,t){return()=>(()=>{var n=z(),r=n.firstChild;return k(r,`fill-rule`,t),k(r,`d`,e),n})()}function je(e){let t=()=>[`apps-card__cta`,{"apps-card__cta--primary":e.primary}];return A(w,{get when(){return O(()=>e.cta.kind===`internal`)()?e.cta:void 0},get fallback(){var n=V(),r=T();return k(n,`target`,g),D(n,()=>y(e.cta.labelKey)),j(()=>({e:N(t()),t:e.cta.kind===`external`?e.cta.href:void 0,a:_()}),({e,t,a:i},a)=>{M(n,e,a?.e),t!==a?.t&&k(n,`href`,t),i!==a?.a&&k(n,`rel`,i),E(n,r)}),n},children:n=>(()=>{var r=H();return r._$$click=()=>e.onNavigate(n().routeId),D(r,()=>y(n().labelKey)),j(()=>N(t()),(e,t)=>{M(r,e,t)}),r})()})}function Me(e){let t=()=>e.card.id===`macos`?e.options.macGatewayLaunchUrl:null;var n=U(),r=n.firstChild,i=r.nextSibling,o=i.firstChild,s=o.firstChild,c=s.nextSibling,l=o.nextSibling,u=l.nextSibling,d=u.firstChild,f=d.nextSibling;return D(r,A(S,{each:[`light`,`dark`],children:t=>(()=>{var n=W();return j(()=>({e:[`apps-card__art-img`,`apps-card__art-img--${t}`],t:a(`app-art/${e.card.id}${t===`dark`?`-dark`:``}.webp`)}),({e,t},r)=>{M(n,e,r?.e),t!==r?.t&&k(n,`src`,t)}),n})()})),D(s,()=>e.card.icon()),D(c,()=>y(`${e.card.copyKey}.title`)),D(o,A(w,{get when(){return e.card.badge},children:e=>(()=>{var t=G();return D(t,()=>y(e())),t})()}),null),D(l,()=>y(`${e.card.copyKey}.desc`)),D(u,A(w,{get when(){return t()},children:e=>(()=>{var t=K(),n=T();return D(t,()=>y(`appsPage.ctaOpenMac`)),j(()=>e(),e=>{k(t,`href`,e),E(t,n)}),t})()}),d),D(u,A(S,{get each(){return e.card.ctas},children:(n,r)=>A(je,{cta:n,get primary(){return O(()=>r()===0)()&&!t()},get onNavigate(){return e.options.onNavigate}})}),f),D(i,A(w,{get when(){return e.card.id===`chrome-extension`},get children(){return A(ke,{})}}),null),j(()=>({e:e.card.gradient[0],t:e.card.gradient[1]}),({e,t},n)=>{e!==n?.e&&I(r,`--apps-art-a`,e),t!==n?.t&&I(r,`--apps-art-b`,t)}),n}function Ne(e){var t=Fe(),n=t.firstChild,r=n.nextSibling;return D(n,()=>y(e.section.labelKey)),D(r,A(S,{get each(){return e.section.cards},children:t=>A(Me,{card:t,get options(){return e.options}})})),D(t,A(w,{get when(){return O(()=>e.section.id===`mobile`)()&&e.options.onPairDevice},get children(){var t=q(),n=t.firstChild,r=n.nextSibling;return D(t,()=>y(`appsPage.havePhone`),n),r._$$click=()=>e.options.onPairDevice?.(),D(r,()=>y(`appsPage.pairDevice`)),t}}),null),j(()=>y(e.section.labelKey),e=>{k(t,`aria-label`,e)}),t}function Pe(e){var t=Ie(),n=t.firstChild,r=n.firstChild,i=r.nextSibling,a=n.nextSibling,o=a.firstChild,s=o.nextSibling;return D(r,()=>y(`appsPage.heroTitle`)),D(i,()=>y(`appsPage.heroTagline`)),D(t,A(S,{each:Re,children:t=>A(Ne,{section:t,options:e})}),a),D(o,()=>y(`appsPage.sectionCommunity`)),D(s,A(S,{each:ze,children:e=>(()=>{var t=Le(),n=t.firstChild,r=n.nextSibling,i=T();return k(t,`target`,g),D(n,()=>e.icon()),D(r,()=>y(e.labelKey)),j(()=>({e:e.href,t:_()}),({e,t:n},r)=>{e!==r?.e&&k(t,`href`,e),n!==r?.t&&k(t,`rel`,n),E(t,i)}),t})()})),j(()=>({e:y(`appsPage.sectionCommunity`),t:y(`appsPage.sectionCommunity`)}),({e,t},n)=>{e!==n?.e&&k(a,`aria-label`,e),t!==n?.t&&k(s,`aria-label`,t)}),t}var z,B,V,H,U,W,G,K,q,Fe,Ie,Le,J,Y,X,Re,ze;function Z(){return(Z=e((()=>{F(),ce(),d(),Oe(),p(),Ce(),m(),ae(),v(),z=L(`<svg viewBox="0 0 24 24"class=icon--filled><path>`),B=L(`<svg viewBox="0 0 24 24"><circle cx=12 cy=12 r=6></circle><polyline points="12 10 12 12 13 13"></polyline><path d="m16.13 7.66-.81-4.05a2 2 0 0 0-2-1.61h-2.68a2 2 0 0 0-2 1.61l-.78 4.05"></path><path d="m7.88 16.36.8 4a2 2 0 0 0 2 1.61h2.72a2 2 0 0 0 2-1.61l.81-4.05">`),V=L(`<a>`),H=L(`<button type=button>`),U=L(`<article class=apps-card><div class=apps-card__art></div><div class=apps-card__body><div class=apps-card__title-row><span class=apps-card__icon aria-hidden=true></span><h3 class=apps-card__title></h3></div><p class=apps-card__desc></p><div class=apps-card__ctas><!><!>`),W=L(`<img alt loading=lazy decoding=async>`,1),G=L(`<span class=apps-card__badge>`),K=L(`<a class="apps-card__cta apps-card__cta--primary">`),q=L(`<p class=apps-pair-hint> <button type=button>`),Fe=L(`<section class=apps-section><h2 class=apps-section__heading></h2><div class=apps-grid>`),Ie=L(`<div class=apps-page><section class=apps-hero><h2 class=apps-hero__title></h2><p class=apps-hero__tagline></p></section><section class=apps-section><h2 class=apps-section__heading></h2><nav class=apps-community>`),Le=L(`<a class=apps-pill><span class=apps-pill__icon aria-hidden=true></span><span>`),b(Se),J={watch:()=>B(),apple:R(`M17.05 12.54c-.03-2.62 2.14-3.88 2.24-3.94-1.22-1.79-3.12-2.03-3.8-2.06-1.61-.16-3.15.95-3.97.95-.82 0-2.08-.93-3.42-.9-1.76.03-3.38 1.02-4.29 2.6-1.83 3.17-.47 7.87 1.31 10.44.87 1.26 1.91 2.67 3.27 2.62 1.31-.05 1.81-.85 3.4-.85 1.58 0 2.03.85 3.42.82 1.41-.02 2.31-1.28 3.17-2.55.99-1.46 1.4-2.87 1.42-2.94-.03-.02-2.73-1.05-2.75-4.19Zm-2.6-7.68c.72-.88 1.21-2.09 1.08-3.3-1.04.04-2.3.69-3.05 1.56-.67.78-1.26 2.02-1.1 3.2 1.16.09 2.34-.59 3.07-1.46Z`),android:R(`M17.52 15.05a.98.98 0 1 1 .01-1.96.98.98 0 0 1-.01 1.96m-11.04 0a.98.98 0 1 1 .01-1.96.98.98 0 0 1-.01 1.96m11.39-5.89 1.96-3.39a.4.4 0 0 0-.15-.55.4.4 0 0 0-.55.15l-1.98 3.43A12.03 12.03 0 0 0 12 7.75c-1.85 0-3.6.42-5.15 1.05L4.87 5.37a.4.4 0 0 0-.55-.15.4.4 0 0 0-.15.55l1.96 3.39C2.75 11 .48 14.42.14 18.4h23.72c-.34-3.98-2.61-7.4-5.99-9.24`),windows:R(`M3 5.55 10.29 4.5v7.02H3V5.55Zm0 12.9 7.29 1.05v-6.93H3v5.88Zm8.09 1.16L21 21v-8.43h-9.91v7.04Zm0-15.22v7.13H21V3l-9.91 1.39Z`),linux:R(`M12 2c-2.76 0-5 2.24-5 5v3.1c0 1.35-.62 2.5-1.32 3.6C4.6 15.4 4 16.9 4 18.3 4 20.9 7.58 22 12 22s8-1.1 8-3.7c0-1.4-.6-2.9-1.68-4.6-.7-1.1-1.32-2.25-1.32-3.6V7c0-2.76-2.24-5-5-5Zm-2 4.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm4 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm-2 2.7 1.8 1.3c.3.24.3.7-.02.92L12 12.6l-1.78-1.18a.58.58 0 0 1-.02-.93L12 9.2Z`,`evenodd`),chrome:R(`M12 2a10 10 0 0 1 8.66 5H12a5 5 0 0 0-4.79 3.57L4.4 5.72A9.98 9.98 0 0 1 12 2Zm9.54 7A10 10 0 0 1 12 22l-.34-.01 4.36-7.55A4.98 4.98 0 0 0 17 12c0-1.13-.37-2.16-1-3h5.54ZM3.35 7.57l4.36 7.56a5 5 0 0 0 6.16 2.24l-2.81 4.87A10 10 0 0 1 3.35 7.57ZM12 8.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7Z`)},Y=(e,t)=>({kind:`external`,href:e,labelKey:t}),X=e=>Y(`https://docs.openclaw.ai${e}`,`appsPage.ctaDocs`),Re=[{id:`mobile`,labelKey:`appsPage.sectionMobile`,cards:[{id:`ios`,gradient:[`#38bdf8`,`#1d4ed8`],icon:J.apple,copyKey:`appsPage.cards.ios`,ctas:[Y(`https://apps.apple.com/app/openclaw-ai-that-does-things/id6780396132`,`appsPage.ctaAppStore`),X(`/platforms/ios`)]},{id:`android`,gradient:[`#34d399`,`#047857`],icon:J.android,copyKey:`appsPage.cards.android`,ctas:[Y(`https://play.google.com/store/apps/details?id=ai.openclaw.app`,`appsPage.ctaPlayStore`),X(`/platforms/android`)]}]},{id:`watch`,labelKey:`appsPage.sectionWatch`,cards:[{id:`apple-watch`,gradient:[`#f472b6`,`#be185d`],icon:J.watch,copyKey:`appsPage.cards.appleWatch`,badge:`appsPage.badgeBundledIos`,ctas:[X(`/platforms/ios`)]},{id:`wear-os`,gradient:[`#22d3ee`,`#0e7490`],icon:J.watch,copyKey:`appsPage.cards.wearOs`,badge:`appsPage.badgeBundledAndroid`,ctas:[X(`/platforms/android`)]}]},{id:`desktop`,labelKey:`appsPage.sectionDesktop`,cards:[{id:`macos`,gradient:[`#a855f7`,`#6b21a8`],icon:J.apple,copyKey:`appsPage.cards.macos`,ctas:[Y(`https://github.com/openclaw/openclaw/releases`,`appsPage.ctaDownload`),X(`/platforms/macos`)]},{id:`windows`,gradient:[`#818cf8`,`#4338ca`],icon:J.windows,copyKey:`appsPage.cards.windows`,ctas:[Y(`https://github.com/openclaw/openclaw-windows-node/releases/latest`,`appsPage.ctaDownload`),X(`/platforms/windows`)]},{id:`linux`,gradient:[`#fbbf24`,`#b45309`],icon:J.linux,copyKey:`appsPage.cards.linux`,ctas:[Y(`https://github.com/openclaw/openclaw/releases`,`appsPage.ctaDownload`),X(`/platforms/linux`)]}]},{id:`browser`,labelKey:`appsPage.sectionBrowser`,cards:[{id:`chrome-extension`,gradient:[`#f59e0b`,`#ea580c`],icon:J.chrome,copyKey:`appsPage.cards.chrome`,ctas:[Y(`https://chromewebstore.google.com/detail/openclaw/kcdjddhmeafeomebliikmbpblkmkfoig`,`appsPage.ctaChromeWebStore`),Y(`https://docs.openclaw.ai/tools/chrome-extension`,`appsPage.ctaSetupGuide`)]},{id:`plugins`,gradient:[`#fb7185`,`#9f1239`],icon:()=>A(x,{name:`plug`}),copyKey:`appsPage.cards.plugins`,ctas:[{kind:`internal`,routeId:`plugins`,labelKey:`appsPage.ctaOpenPlugins`},Y(`https://clawhub.ai`,`appsPage.ctaBrowseClawHub`)]}]}],ze=[{href:te,icon:()=>A(x,{name:`messageSquare`}),labelKey:`appsPage.linkSupport`},{href:re,icon:()=>A(h,{name:`discord`}),labelKey:`appsPage.linkDiscord`},{href:`https://docs.openclaw.ai`,icon:()=>A(x,{name:`book`}),labelKey:`appsPage.linkDocs`}],P([`click`])})))()}function Be(e){let t=oe(),a=ee(t.gateway),o=ie(t.agentSelection),s=C(()=>e.appSearch??``),l=C(()=>fe(s())),u=ye(t,()=>({sessionKey:l()?a.read().snapshot.sessionKey:``,agentId:o.read().state.selectedId??void 0}),()=>!0),d=C(e=>{let t=a.read(),n=u.target(),r=JSON.stringify([s(),n.sessionKey,n.agentId,t.connectionRevision]),i=l(),o=u.snapshot();if(e?.key===r&&e.detail&&e.detail.owner===t.snapshot.client)return e;if(!i)return{key:r};let c=new URLSearchParams(s()),d=c.get(`settings`)===`1`,f=de(o.servers,i,d),p=f?.entrypoints.find(e=>e.toolName===i.toolName&&(e.entrypoint.type===`global`||d&&e.entrypoint.type===`settings`))??(d&&f?.settings?.readTool===i.toolName?{toolName:f.settings.readTool,title:f.label,resourceUri:``,entrypoint:{type:`settings`}}:void 0);return{key:r,detail:f&&p?{...n,owner:t.snapshot.client,serverName:f.serverName,entrypoint:p,deepLink:i.deepLink,settings:d,quickAction:c.get(`quickAction`)===`1`}:void 0}}),f=()=>a.read().snapshot.phase===`connected`&&n(a.read().snapshot.hello?.auth??null),p=()=>a.read().snapshot.phase===`connected`&&!i()?Ae(a.read().connection.gatewayUrl,c(a.read().snapshot.hello?.snapshot)?.controlUiIdentityUrl):null;var m=Ve(),h=m.firstChild,g=h.nextSibling;return m._$owner=T(),D(m,A(De,{active:`apps`,wide:!0,docsUrl:`https://docs.openclaw.ai/platforms`}),h),D(m,A(w,{get when(){return l()},get fallback(){return A(we,{get children(){return[A(be,{surface:`global`}),A(Pe,{onNavigate:e=>t.navigate(e),get macGatewayLaunchUrl(){return p()},get onPairDevice(){return f()?()=>void t.overlays.openDevicePairSetup():void 0}})]}})},get children(){return[(()=>{var e=Q();return e._$$click=()=>t.navigate(`apps`),D(e,()=>y(`mcpApp.close`)),e})(),A(se,{fallback:(e,t)=>[(()=>{var t=He();return D(t,()=>r(e())),t})(),(()=>{var e=Q();return e._$$click=()=>t(),D(e,()=>y(`mcpApp.retry`)),e})()],get children(){return A(ue,{get on(){return l()},get fallback(){var e=Ue();return D(e,()=>y(`mcpApp.loading`)),e},get children(){return A(We,{get launch(){return d().detail},get connectionRevision(){return a.read().connectionRevision},get request(){return u.request()}})}})}})]}}),g),m}var Q,Ve,He,Ue,We;function $(){return($=e((()=>{F(),ce(),l(),o(),ge(),he(),Te(),Ee(),_e(),t(),xe(),pe(),f(),ne(),v(),Z(),u(),Q=L(`<button class=btn>`),Ve=L(`<openclaw-apps-page><!><!>`,1),He=L(`<p role=alert>`),Ue=L(`<p role=status>`),b(ve),We=le(()=>(me.preload().catch(()=>void 0),s(()=>import(`./apps-conversation-ZuHpaERU.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url))),P([`click`])})))()}$();export{Be as AppsPage};