UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

2 lines • 2.46 kB
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./_2_____________________________.js","./_6____________________.js","./_1____________________________________.js","./_5_________________________.js","./_0___________________.js","./config-runtime-ECF4aWQv.js","./_1____________________________.css","./_0____________________________________.css","./control-ui-boot-chat-styles-DMRbEm40.js","./deferred-ui-support-DZEPWjAk.js","./markdown-runtime-CtlJb8xA.js","./chat-message-media-runtime-tT5AgKo0.js","./virtual-core-runtime-LhyriIY5.js","./control-ui-boot-chat-styles-ixIYYh0U.css"])))=>i.map(i=>d[i]); import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{$u as t,Qu as n,ha as r,ua as i}from"./_4____________________________.js";async function a(e,t,i){let a=window,o=e.gateway,s=a.webkit?.messageHandlers,c={conversation:null,deviceSettings:null,notifications:null},l=(e,n)=>{if(!t.signal.aborted)return c[e]=n(),i(c),()=>c[e]?.dispose()},u=[];r()?.surface===`conversation`&&u.push(async()=>{let{createNativeConversationBridge:t}=await n(async()=>{let{createNativeConversationBridge:e}=await import(`./native-conversation-bridge-BPKB9iTd.js`);return{createNativeConversationBridge:e}},__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url);return l(`conversation`,()=>t(e))}),typeof s?.openclawDeviceSettings?.postMessage==`function`&&u.push(async()=>{let{createNativeDeviceSettingsCapability:e}=await n(async()=>{let{createNativeDeviceSettingsCapability:e}=await import(`./native-device-settings-C3GhyTVs.js`);return{createNativeDeviceSettingsCapability:e}},__vite__mapDeps([0,1,2,3,4,5,8,9,10,11,12,6,7,13]),import.meta.url);return l(`deviceSettings`,e)}),typeof s?.openclawNotifications?.postMessage==`function`&&u.push(async()=>{let{createNativeNotificationsCapability:e}=await n(async()=>{let{createNativeNotificationsCapability:e}=await import(`./native-notifications-C3XdrAjP.js`);return{createNativeNotificationsCapability:e}},__vite__mapDeps([0,1,2,3,4,6,7]),import.meta.url);return l(`notifications`,e)}),typeof s?.openclawGateways?.postMessage==`function`&&u.push(async()=>{let{startNativeGatewayHealthReporting:e}=await n(async()=>{let{startNativeGatewayHealthReporting:e}=await import(`./native-gateway-health.runtime-DTSNw_HH.js`);return{startNativeGatewayHealthReporting:e}},[],import.meta.url);if(!t.signal.aborted)return e(o)}),await t.run(u)}function o(){return(o=e((()=>{i(),t()})))()}o();export{a as startNativeCapabilities};