UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 785 B
import{n as e}from"./rolldown-runtime-8BhlS34s.js";import{Lt as t,Rt as n}from"./control-ui-core-CBJ5efDh.js";import{U as r,W as i}from"./ui-CmSP4d14.js";import{Fs as a,Ls as o}from"./control-ui-boot-shared-dOnP4mAA.js";function s(e){let t=c.get(e.url);if(t)return t;let r=n(),o=e.resourceBasePath??r.resourceBasePath;if(!i(`pluginThemeArt`,e.url))return Promise.resolve(null);let s=a({auth:e.auth??{},authCandidates:e.auth?void 0:r.authTokens,resourceBasePath:o,gatewayUrl:e.gatewayUrl??r.origin??window.location.origin,signal:e.signal??AbortSignal.timeout(15e3)},`${o}${e.url}`,!0).catch(()=>null).then(t=>(t===null&&c.get(e.url)===s&&c.delete(e.url),t));return c.set(e.url,s),s}var c;function l(){return(l=e((()=>{r(),t(),o(),c=new Map})))()}l();export{s as loadPluginThemeArtwork};