UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 1.18 kB
import{S as resolveIsConfigReadOnly}from"./paths-D_FOvGon.mjs";import{n as isOpenClawIdEnabled}from"./openclaw-id-policy-CE_0QXmB.mjs"; //!src/gateway/control-ui-bootstrap-presentation.ts function resolveControlUiBootstrapPresentation(e){const t=resolveIsConfigReadOnly();return{...isOpenClawIdEnabled(e?.gateway?.openclawId)?{openclawIdEnabled:true}:{},embedSandbox:e?.gateway?.controlUi?.embedSandbox??`scripts`,allowExternalEmbedUrls:e?.gateway?.controlUi?.allowExternalEmbedUrls===true,automaticallyFetchFavicons:e?.gateway?.controlUi?.automaticallyFetchFavicons!==false,seamColor:e?.ui?.seamColor,environment:e?.gateway?.controlUi?.environment,configReadOnly:t,configReadOnlyNotice:t?process.env.OPENCLAW_CONFIG_READONLY_NOTICE?.trim()||void 0:void 0,chatBubblesEnabled:e?.gateway?.controlUi?.experimental?.chatBubbles===true,composerPredictionsEnabled:e?.gateway?.controlUi?.experimental?.composerPredictions?.enabled===true,communityInvite:e?.gateway?.controlUi?.communityInvite!==false,newSessionModelDefaults:e?.gateway?.controlUi?.newSessionModelDefaults??`last-used`,uploadsEnabled:e?.gateway?.uploads?.enabled!==false}}export{resolveControlUiBootstrapPresentation as t};