decocms
Version:
Deco CMS — Self-hostable MCP Gateway for managing AI connections and tools
2 lines (1 loc) • 1.9 kB
JavaScript
import{c as I,f as _,u as x,bl as j,j as g,N as u,$ as b,ba as S,bm as w}from"./index-DoEtSiIe.js";import{a as v}from"./use-blog-view-DJnS2ipo.js";function E(m){const e=I.c(11),{children:p}=m,f=v();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const l=_(a);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[1]=r):r=e[1];const c=x(r);if(f===void 0){let t;return e[2]===Symbol.for("react.memo_cache_sentinel")?(t=g.jsx(S,{}),e[2]=t):t=e[2],t}if(f||!l.org||!l.agentId)return p;let o;e[3]!==l.agentId||e[4]!==l.org?(o={org:l.org,agentId:l.agentId},e[3]=l.agentId,e[4]=l.org,e[5]=o):o=e[5];let s;e[6]!==c?(s=t=>({...t,blogCollection:void 0,blogItem:void 0,blogView:void 0,...w(c)}),e[6]=c,e[7]=s):s=e[7];let n;return e[8]!==o||e[9]!==s?(n=g.jsx(u,{to:b.siteEditorContent,params:o,search:s,hash:!0,replace:!0}),e[8]=o,e[9]=s,e[10]=n):n=e[10],n}function k(m){const e=I.c(13),{children:p}=m,f=v();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const l=_(a);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[1]=r):r=e[1];const c=x(r),{org:o,agentId:s}=l;let n;e[2]!==s||e[3]!==o||e[4]!==c?(n=o&&s?j(c):null,e[2]=s,e[3]=o,e[4]=c,e[5]=n):n=e[5];const t=n;if(!t||!o||!s||f===!1)return p;if(f===void 0){let i;return e[6]===Symbol.for("react.memo_cache_sentinel")?(i=g.jsx(S,{}),e[6]=i):i=e[6],i}const h=y;let d;return e[7]!==s||e[8]!==o||e[9]!==t.collection||e[10]!==t.item||e[11]!==t.postId?(d=t.postId?g.jsx(u,{to:b.blogPost,params:{org:o,agentId:s,postId:t.postId},search:h,hash:!0,replace:!0}):g.jsx(u,{to:b.blog,params:{org:o,agentId:s},search:i=>({...h(i),blogCollection:t.collection,blogItem:t.item}),hash:!0,replace:!0}),e[7]=s,e[8]=o,e[9]=t.collection,e[10]=t.item,e[11]=t.postId,e[12]=d):d=e[12],d}function y(m){return{...m,contentCollection:void 0,contentItem:void 0}}export{k as B,E as a};