UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 1.43 kB
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{Qs as t,Uu as n,ec as r,qs as i}from"./_4____________________________.js";import{CE as a,vE as o}from"./_2_____________________________.js";import{n as s,r as c,t as l}from"./slots-BTAv6_UG.js";function u(e){return e===`search`?`settings`:e===`dreaming`?`dreams`:_.find(t=>t===e)??null}function d(e,n=``){let r=e.pathname?t(e.pathname,n):null;if(r&&r!==`overview`)return r;let i=u(e.tab);if(i)return i;let a=e.targetBlockId??``;return e.section===`memory`||a.startsWith(`config-section-memory`)?`settings`:r}function f(e,t=``){let n=new URLSearchParams(e.search),i=n.has(`tab`),a=e.section===`memory`&&n.has(`section`);n.delete(`tab`),a&&n.delete(`section`);let o=n.toString(),s={pathname:r(d(e,t)??`overview`,t),search:o?`?${o}`:``,hash:e.hash};return i||a||s.pathname!==e.pathname?s:null}function p(e){return e.kind===`off`?null:e.pluginId}function m(e){let t=n(n(e.plugins)?.slots);return c(`memory`,t?.memory)}function h(e){let t=n(e),r=n(n(t?.properties)?.memory),i=n(r?.properties);if(!t||!r||!i)return e;let a=v.get(t);if(a!==void 0)return a;let s=Object.fromEntries(o.filter(e=>e in i).map(e=>[e,i[e]])),c={...t,properties:{memory:{...r,properties:s}}};return v.set(t,c),c}var g,_,v;function y(){return(y=e((()=>{s(),i(),a(),g=l(`memory`),_=[`overview`,`memories`,`dreams`,`settings`],v=new WeakMap})))()}export{d as a,h as i,f as n,m as o,y as r,p as s,g as t};