UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 726 B
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{eu as t}from"./control-ui-connection-Bfj9beF_.js";function n(e){if(typeof e==`string`)return e;let n=t(e);return n?{...typeof n.primary==`string`?{primary:n.primary}:{},...Array.isArray(n.fallbacks)?{fallbacks:n.fallbacks.filter(e=>typeof e==`string`)}:{}}:null}function r(e){return typeof e==`string`?e:e?.primary}function i(e){return typeof e==`object`?e?.fallbacks??[]:[]}function a(e){return e&&typeof e==`object`?{...e,primary:e.primary??null}:e}function o(e,t){return typeof e==`object`&&e?.fallbacks!==void 0?{...t===null?{}:{primary:t},fallbacks:e.fallbacks.filter(e=>e!==t)}:t}function s(){return(s=e((()=>{})))()}export{n as a,r as i,i as n,o,a as r,s as t};