openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
2 lines • 13 kB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./control-ui-boot-chat-CqvkfPXD.js","./control-ui-boot-chat-styles-DMRbEm40.js","./markdown-runtime-CtlJb8xA.js","./chat-message-media-runtime-tT5AgKo0.js","./virtual-core-runtime-LhyriIY5.js","./control-ui-boot-new-pHXPNTZp.js","./route-controls-runtime-LXiVRSj4.js","./control-ui-boot-new-styles-C3bRIOZh.js","./command-discovery-english-zfhZUSVO.js","./composer-invocation-menus-Dvscf6c8.js","./chat-route-entry-t92uPKgR.js","./_1____________________________.css","./_0____________________________________.css","./control-ui-boot-chat-styles-ixIYYh0U.css","./control-ui-boot-new-styles-C8rpwVHV.css"])))=>i.map(i=>d[i]);
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{$u as t,B as n,Gu as r,K as i,Mn as a,Qu as o,jn as s,ma as c,ua as l}from"./_4____________________________.js";import{$w as u,AN as d,EN as f,FN as p,GN as m,Gl as h,JN as g,PN as ee,Qw as te,Ul as ne,Wl as re,aT as ie,dN as ae,eT as oe,fN as _,iT as se,pN as ce,qN as v,sT as le}from"./_2_____________________________.js";import{Fi as ue,Ii as de,Li as fe,Ri as pe}from"./deferred-ui-support-DZEPWjAk.js";import{C as y,F as b,O as x,Rt as S,S as me,U as C,W as he,a as w,d as T,f as E,g as D,j as O,l as k,o as A,p as j,s as M,u as N,v as P,w as ge,x as F}from"./_6____________________.js";import{a as _e,n as ve,t as ye}from"./mcp-app-route-Cg1SB1yj.js";import{n as be,t as xe}from"./mcp-app-view-lazy-Cj7YIwk1.js";import{n as Se,t as Ce}from"./en-apps-Bqaw7ndX.js";import{a as we,i as Te,o as Ee,r as De}from"./route-chrome-Dr9fhzjf.js";import{n as Oe,t as ke}from"./native-chrome-setup-gq9KtDww.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 I(e,t){return()=>(()=>{var n=L(),r=n.firstChild;return D(r,`fill-rule`,t),D(r,`d`,e),n})()}function je(e){let t=()=>[`apps-card__cta`,{"apps-card__cta--primary":e.primary}];return O(x,{get when(){return E(()=>e.cta.kind===`internal`)()?e.cta:void 0},get fallback(){var n=z(),r=S();return D(n,`target`,te),T(n,()=>g(e.cta.labelKey)),k(()=>({e:j(t()),t:e.cta.kind===`external`?e.cta.href:void 0,a:u()}),({e,t,a:i},a)=>{A(n,e,a?.e),t!==a?.t&&D(n,`href`,t),i!==a?.a&&D(n,`rel`,i),w(n,r)}),n},children:n=>(()=>{var r=B();return r._$$click=()=>e.onNavigate(n().routeId),T(r,()=>g(n().labelKey)),k(()=>j(t()),(e,t)=>{A(r,e,t)}),r})()})}function Me(e){let t=()=>e.card.id===`macos`?e.options.macGatewayLaunchUrl:null;var n=V(),r=n.firstChild,i=r.nextSibling,a=i.firstChild,o=a.firstChild,c=o.nextSibling,l=a.nextSibling,u=l.nextSibling,d=u.firstChild,f=d.nextSibling;return T(r,O(y,{each:[`light`,`dark`],children:t=>(()=>{var n=H();return k(()=>({e:[`apps-card__art-img`,`apps-card__art-img--${t}`],t:s(`app-art/${e.card.id}${t===`dark`?`-dark`:``}.webp`)}),({e,t},r)=>{A(n,e,r?.e),t!==r?.t&&D(n,`src`,t)}),n})()})),T(o,()=>e.card.icon()),T(c,()=>g(`${e.card.copyKey}.title`)),T(a,O(x,{get when(){return e.card.badge},children:e=>(()=>{var t=U();return T(t,()=>g(e())),t})()}),null),T(l,()=>g(`${e.card.copyKey}.desc`)),T(u,O(x,{get when(){return t()},children:e=>(()=>{var t=W(),n=S();return T(t,()=>g(`appsPage.ctaOpenMac`)),k(()=>e(),e=>{D(t,`href`,e),w(t,n)}),t})()}),d),T(u,O(y,{get each(){return e.card.ctas},children:(n,r)=>O(je,{cta:n,get primary(){return E(()=>r()===0)()&&!t()},get onNavigate(){return e.options.onNavigate}})}),f),T(i,O(x,{get when(){return e.card.id===`chrome-extension`},get children(){return O(ke,{})}}),null),k(()=>({e:e.card.gradient[0],t:e.card.gradient[1]}),({e,t},n)=>{e!==n?.e&&P(r,`--apps-art-a`,e),t!==n?.t&&P(r,`--apps-art-b`,t)}),n}function Ne(e){var t=K(),n=t.firstChild,r=n.nextSibling;return T(n,()=>g(e.section.labelKey)),T(r,O(y,{get each(){return e.section.cards},children:t=>O(Me,{card:t,get options(){return e.options}})})),T(t,O(x,{get when(){return E(()=>e.section.id===`mobile`)()&&e.options.onPairDevice},get children(){var t=G(),n=t.firstChild,r=n.nextSibling;return T(t,()=>g(`appsPage.havePhone`),n),r._$$click=()=>e.options.onPairDevice?.(),T(r,()=>g(`appsPage.pairDevice`)),t}}),null),k(()=>g(e.section.labelKey),e=>{D(t,`aria-label`,e)}),t}function Pe(e){var t=q(),n=t.firstChild,r=n.firstChild,i=r.nextSibling,a=n.nextSibling,o=a.firstChild,s=o.nextSibling;return T(r,()=>g(`appsPage.heroTitle`)),T(i,()=>g(`appsPage.heroTagline`)),T(t,O(y,{each:Fe,children:t=>O(Ne,{section:t,options:e})}),a),T(o,()=>g(`appsPage.sectionCommunity`)),T(s,O(y,{each:Ie,children:e=>(()=>{var t=J(),n=t.firstChild,r=n.nextSibling,i=S();return D(t,`target`,te),T(n,()=>e.icon()),T(r,()=>g(e.labelKey)),k(()=>({e:e.href,t:u()}),({e,t:n},r)=>{e!==r?.e&&D(t,`href`,e),n!==r?.t&&D(t,`rel`,n),w(t,i)}),t})()})),k(()=>({e:g(`appsPage.sectionCommunity`),t:g(`appsPage.sectionCommunity`)}),({e,t},n)=>{e!==n?.e&&D(a,`aria-label`,e),t!==n?.t&&D(s,`aria-label`,t)}),t}var L,R,z,B,V,H,U,W,G,K,q,J,Y,X,Z,Fe,Ie;function Le(){return(Le=e((()=>{N(),C(),a(),Oe(),ce(),Ce(),oe(),h(),m(),L=F(`<svg viewBox="0 0 24 24"class=icon--filled><path>`),R=F(`<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">`),z=F(`<a>`),B=F(`<button type=button>`),V=F(`<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><!><!>`),H=F(`<img alt loading=lazy decoding=async>`,1),U=F(`<span class=apps-card__badge>`),W=F(`<a class="apps-card__cta apps-card__cta--primary">`),G=F(`<p class=apps-pair-hint> <button type=button>`),K=F(`<section class=apps-section><h2 class=settings-section__heading></h2><div class=apps-grid>`),q=F(`<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=settings-section__heading></h2><nav class=apps-community>`),J=F(`<a class=apps-pill><span class=apps-pill__icon aria-hidden=true></span><span>`),v(Se),Y={watch:()=>R(),apple:I(`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:I(`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:I(`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:I(`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:I(`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`)},X=(e,t)=>({kind:`external`,href:e,labelKey:t}),Z=e=>X(`https://docs.openclaw.ai${e}`,`appsPage.ctaDocs`),Fe=[{id:`mobile`,labelKey:`appsPage.sectionMobile`,cards:[{id:`ios`,gradient:[`#38bdf8`,`#1d4ed8`],icon:Y.apple,copyKey:`appsPage.cards.ios`,ctas:[X(`https://apps.apple.com/app/openclaw-ai-that-does-things/id6780396132`,`appsPage.ctaAppStore`),Z(`/platforms/ios`)]},{id:`android`,gradient:[`#34d399`,`#047857`],icon:Y.android,copyKey:`appsPage.cards.android`,ctas:[X(`https://play.google.com/store/apps/details?id=ai.openclaw.app`,`appsPage.ctaPlayStore`),Z(`/platforms/android`)]}]},{id:`watch`,labelKey:`appsPage.sectionWatch`,cards:[{id:`apple-watch`,gradient:[`#f472b6`,`#be185d`],icon:Y.watch,copyKey:`appsPage.cards.appleWatch`,badge:`appsPage.badgeBundledIos`,ctas:[Z(`/platforms/ios`)]},{id:`wear-os`,gradient:[`#22d3ee`,`#0e7490`],icon:Y.watch,copyKey:`appsPage.cards.wearOs`,badge:`appsPage.badgeBundledAndroid`,ctas:[Z(`/platforms/android`)]}]},{id:`desktop`,labelKey:`appsPage.sectionDesktop`,cards:[{id:`macos`,gradient:[`#a855f7`,`#6b21a8`],icon:Y.apple,copyKey:`appsPage.cards.macos`,ctas:[X(`https://github.com/openclaw/openclaw/releases`,`appsPage.ctaDownload`),Z(`/platforms/macos`)]},{id:`windows`,gradient:[`#818cf8`,`#4338ca`],icon:Y.windows,copyKey:`appsPage.cards.windows`,ctas:[X(`https://github.com/openclaw/openclaw-windows-node/releases/latest`,`appsPage.ctaDownload`),Z(`/platforms/windows`)]},{id:`linux`,gradient:[`#fbbf24`,`#b45309`],icon:Y.linux,copyKey:`appsPage.cards.linux`,ctas:[X(`https://github.com/openclaw/openclaw/releases`,`appsPage.ctaDownload`),Z(`/platforms/linux`)]}]},{id:`browser`,labelKey:`appsPage.sectionBrowser`,cards:[{id:`chrome-extension`,gradient:[`#f59e0b`,`#ea580c`],icon:Y.chrome,copyKey:`appsPage.cards.chrome`,ctas:[X(`https://chromewebstore.google.com/detail/openclaw/kcdjddhmeafeomebliikmbpblkmkfoig`,`appsPage.ctaChromeWebStore`),X(`https://docs.openclaw.ai/tools/chrome-extension`,`appsPage.ctaSetupGuide`)]},{id:`plugins`,gradient:[`#fb7185`,`#9f1239`],icon:()=>O(_,{name:`plug`}),copyKey:`appsPage.cards.plugins`,ctas:[{kind:`internal`,routeId:`plugins`,labelKey:`appsPage.ctaOpenPlugins`},X(`https://clawhub.ai`,`appsPage.ctaBrowseClawHub`)]}]}],Ie=[{href:re,icon:()=>O(_,{name:`messageSquare`}),labelKey:`appsPage.linkSupport`},{href:ne,icon:()=>O(ae,{name:`discord`}),labelKey:`appsPage.linkDiscord`},{href:`https://docs.openclaw.ai`,icon:()=>O(_,{name:`book`}),labelKey:`appsPage.linkDocs`}],M([`click`])})))()}function Re(e){let t=p(),i=le(t.gateway),a=ie(t.agentSelection),o=b(()=>e.appSearch??``),s=b(()=>ve(o())),l=ue(t,()=>({sessionKey:s()?i.read().snapshot.sessionKey:``,agentId:a.read().state.selectedId??void 0}),()=>!0),u=b(e=>{let t=i.read(),n=l.target(),r=JSON.stringify([o(),n.sessionKey,n.agentId,t.connectionRevision]),a=s(),c=l.snapshot();if(e?.key===r&&e.detail&&e.detail.owner===t.snapshot.client)return e;if(!a)return{key:r};let u=new URLSearchParams(o()),d=u.get(`settings`)===`1`,f=_e(c.servers,a,d),p=f?.entrypoints.find(e=>e.toolName===a.toolName&&(e.entrypoint.type===`global`||d&&e.entrypoint.type===`settings`))??(d&&f?.settings?.readTool===a.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:a.deepLink,settings:d,quickAction:u.get(`quickAction`)===`1`}:void 0}}),d=()=>i.read().snapshot.phase===`connected`&&n(i.read().snapshot.hello?.auth??null),m=()=>i.read().snapshot.phase===`connected`&&!c()?Ae(i.read().connection.gatewayUrl,r(i.read().snapshot.hello?.snapshot)?.controlUiIdentityUrl):null;var h=Q();return h._$owner=S(),T(h,O(x,{get when(){return s()},get fallback(){return[O(De,{active:`apps`,wide:!0,docsUrl:`https://docs.openclaw.ai/platforms`}),O(we,{get children(){return O(Pe,{onNavigate:e=>t.navigate(e),get macGatewayLaunchUrl(){return m()},get onPairDevice(){return d()?()=>void t.overlays.openDevicePairSetup():void 0}})}})]},get children(){return O(me,{fallback:(e,t)=>[(()=>{var t=ze();return T(t,()=>f(e())),t})(),(()=>{var e=Be();return e._$$click=()=>t(),T(e,()=>g(`mcpApp.retry`)),e})()],get children(){return O(ge,{get on(){return s()},get fallback(){var e=Ve();return T(e,()=>g(`mcpApp.loading`)),e},get children(){return O(He,{get launch(){return u().detail},get connectionRevision(){return i.read().connectionRevision},get request(){return l.request()}})}})}})}})),k(()=>!!s(),e=>{h.classList.toggle(`mcp-app-workspace`,e)}),h}var Q,ze,Be,Ve,He;function $(){return($=e((()=>{N(),C(),l(),i(),be(),Te(),Ee(),fe(),d(),de(),ye(),se(),ee(),m(),Le(),t(),Q=F(`<openclaw-apps-page>`,1),ze=F(`<p role=alert>`),Be=F(`<button class=btn>`),Ve=F(`<p role=status>`),v(pe),He=he(()=>(xe.preload().catch(()=>void 0),o(()=>import(`./apps-conversation-CtM4SvhQ.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url))),M([`click`])})))()}$();export{Re as AppsPage};