UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 791 B
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{BS as t,IS as n,LS as r,zS as i}from"./control-ui-boot-shared-DFTSUQQ0.js";import{Bn as a,Mn as o,Nn as s,Rn as c}from"./deferred-ui-support-D-VedBtc.js";function l(e){let n=u.get(e.url);if(n)return n;let i=t(),a=e.resourceBasePath??i.resourceBasePath;if(!r(`pluginThemeArt`,e.url))return Promise.resolve(null);let l=c({auth:e.auth??{},authCandidates:e.auth?void 0:i.authTokens,resourceBasePath:a,gatewayUrl:e.gatewayUrl??i.origin??window.location.origin,signal:e.signal??AbortSignal.timeout(15e3)},`${a}${e.url}`,e.background?s:o).catch(()=>null).then(t=>(t===null&&u.get(e.url)===l&&u.delete(e.url),t));return u.set(e.url,l),l}var u;function d(){return(d=e((()=>{n(),i(),a(),u=new Map})))()}d();export{l as loadPluginThemeArtwork};