PageSourceSearch

https://myechoboard.com/assets/CommandPalette-DmFUV7mb.js

js myechoboard.com collected 2026-10-02 00:18:33 UTC 20,540 bytes, 1 lines download raw bytes

1import{r as e,j as r}from"./vendor-react-BfgFmtGS.js";import{D as t,a as n,f as a,b as l}from"./index-BRWrGhkK.js";import{P as o}from"./index-DvGZCNsD.js";import{u as i}from"./index-DYDcV3bE.js";import{a as s}from"./index-h37mMD1s.js";import{u as c}from"./useBoards-B6p3dWJB.js";import{a as d}from"./MoodContext-C3yPuVY1.js";import{u}from"./ThemeContext-3fFp6cUT.js";import{a as m}from"./useAuth-DynbexoK.js";import{a as h}from"./vendor-query-XXY4vl9u.js";import{supabase as p}from"./supabase-client-2CObC91N.js";import{B as f}from"./BoardPreviewAvatar-BIAe0D67.js";import{a as v,b}from"./image-utils-BFdDQ3hX.js";import{b as g}from"./shareUrls-CnKIAmlW.js";import{S as j}from"./SpacesIcon-BIw1RF34.js";import{u as x}from"./vendor-router-QOYqHwMx.js";import{S as y}from"./search-D_LVchoc.js";import{C as k}from"./command-CttWQ83a.js";import{S as w}from"./sparkles-Bqh4sfNh.js";import{W as E}from"./wand-sparkles-D2YQFHAf.js";import{L as S}from"./layout-grid-Bpg0VprM.js";import{c as C}from"./createLucideIcon-D9HkCDkl.js";import{M as N}from"./maximize-2-CiYgHWMA.js";import{H as I}from"./house-C9Hke4X6.js";import{C as A}from"./compass-D3UAMNj_.js";import{H as M}from"./heart-CdAafllh.js";import{U as R}from"./user-Ds9XOBLy.js";import{B as _}from"./book-open-eeQ0OULm.js";import{A as $}from"./arrow-right-Dak2rshg.js";import{K as F}from"./keyboard-D2j3K7oh.js";import{A as P}from"./arrow-up-CUPdfw3B.js";import{A as B}from"./arrow-down-BnKlcp-K.js";const D=C("NotebookPen",[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]]);var K=.999,L=/[\\\/_+.#"@\[\(\{&]/,O=/[\\\/_+.#"@\[\(\{&]/g,q=/[\s-]/,V=/[\s-]/g;function z(e,r,t,n,a,l,o){if(l===r.length)return a===e.length?1:.99;var i=`${a},${l}`;if(void 0!==o[i])return o[i];for(var s,c,d,u,m=n.charAt(l),h=t.indexOf(m,a),p=0;h>=0;)(s=z(e,r,t,n,h+1,l+1,o))>p&&(h===a?s*=1:L.test(e.charAt(h-1))?(s*=.8,(d=e.slice(a,h-1).match(O))&&a>0&&(s*=Math.pow(K,d.length))):q.test(e.charAt(h-1))?(s*=.9,(u=e.slice(a,h-1).match(V))&&a>0&&(s*=Math.pow(K,u.length))):(s*=.17,a>0&&(s*=Math.pow(K,h-a))),e.charAt(h)!==r.charAt(l)&&(s*=.9999)),(s<.1&&t.charAt(h-1)===n.charAt(l+1)||n.charAt(l+1)===n.charAt(l)&&t.charAt(h-1)!==n.charAt(l))&&.1*(c=z(e,r,t,n,h+1,l+2,o))>s&&(s=.1*c),s>p&&(p=s),h=t.indexOf(m,h+1);return o[i]=p,p}function U(e){return e.toLowerCase().replace(V," ")}function G(e,r,t){return z(e=t&&t.length>0?e+" "+t.join(" "):e,r,U(e),U(r),0,0,{})}var H='[cmdk-group=""]',T='[cmdk-group-items=""]',W='[cmdk-item=""]',Q=`${W}:not([aria-disabled="true"])`,Y="cmdk-item-select",Z="data-value",J=(e,r,t)=>G(e,r,t),X=e.createContext(void 0),ee=()=>e.useContext(X),re=e.createContext(void 0),te=()=>e.useContext(re),ne=e.createContext(void 0),ae=e.forwardRef((r,t)=>{let n=ge(()=>{var e,t;return{search:"",value:null!=(t=null!=(e=r.value)?e:r.defaultValue)?t:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),a=ge(()=>new Set),l=ge(()=>new Map),s=ge(()=>new Map),c=ge(()=>new Set),d=ve(r),{label:u,children:m,value:h,onValueChange:p,filter:f,shouldFilter:v,loop:b,disablePointerSelection:g=!1,vimBindings:j=!0,...x}=r,y=i(),k=i(),w=i(),E=e.useRef(null),S=ye();be(()=>{if(void 0!==h){let e=h.trim();n.current.value=e,C.emit()}},[h]),be(()=>{S(6,_)},[]);let C=e.useMemo(()=>({subscribe:e=>(c.current.add(e),()=>c.current.delete(e)),snapshot:()=>n.current,setState:(e,r,t)=>{var a,l,o,i;if(!Object.is(n.current[e],r)){if(n.current[e]=r,"search"===e)R(),A(),S(1,M);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(w);e?e.focus():null==(a=document.getElementById(y))||a.focus()}if(S(7,()=>{var e;n.current.selectedItemId=null==(e=$())?void 0:e.id,C.emit()}),t||S(5,_),void 0!==(null==(l=d.current)?void 0:l.value)){let e=null!=r?r:"";return void(null==(i=(o=d.current).onValueChange)||i.call(o,e))}}
1C.emit()}},emit:()=>{c.current.forEach(e=>e())}}),[]),N=e.useMemo(()=>({value:(e,r,t)=>{var a;r!==(null==(a=s.current.get(e))?void 0:a.value)&&(s.current.set(e,{value:r,keywords:t}),n.current.filtered.items.set(e,I(r,t)),S(2,()=>{A(),C.emit()}))},item:(e,r)=>(a.current.add(e),r&&(l.current.has(r)?l.current.get(r).add(e):l.current.set(r,new Set([e]))),S(3,()=>{R(),A(),n.current.value||M(),C.emit()}),()=>{s.current.delete(e),a.current.delete(e),n.current.filtered.items.delete(e);let r=$();S(4,()=>{R(),(null==r?void 0:r.getAttribute("id"))===e&&M(),C.emit()})}),group:e=>(l.current.has(e)||l.current.set(e,new Set),()=>{s.current.delete(e),l.current.delete(e)}),filter:()=>d.current.shouldFilter,label:u||r["aria-label"],getDisablePointerSelection:()=>d.current.disablePointerSelection,listId:y,inputId:w,labelId:k,listInnerRef:E}),[]);function I(e,r){var t,a;let l=null!=(a=null==(t=d.current)?void 0:t.filter)?a:J;return e?l(e,n.current.search,r):0}function A(){if(!n.current.search||!1===d.current.shouldFilter)return;let e=n.current.filtered.items,r=[];n.current.filtered.groups.forEach(t=>{let n=l.current.get(t),a=0;n.forEach(r=>{let t=e.get(r);a=Math.max(t,a)}),r.push([t,a])});let t=E.current;F().sort((r,t)=>{var n,a;let l=r.getAttribute("id"),o=t.getAttribute("id");return(null!=(n=e.get(o))?n:0)-(null!=(a=e.get(l))?a:0)}).forEach(e=>{let r=e.closest(T);r?r.appendChild(e.parentElement===r?e:e.closest(`${T} > *`)):t.appendChild(e.parentElement===t?e:e.closest(`${T} > *`))}),r.sort((e,r)=>r[1]-e[1]).forEach(e=>{var r;let t=null==(r=E.current)?void 0:r.querySelector(`${H}[${Z}="${encodeURIComponent(e[0])}"]`);null==t||t.parentElement.appendChild(t)})}function M(){let e=F().find(e=>"true"!==e.getAttribute("aria-disabled")),r=null==e?void 0:e.getAttribute(Z);C.setState("value",r||void 0)}function R(){var e,r,t,o;if(!n.current.search||!1===d.current.shouldFilter)return void(n.current.filtered.count=a.current.size);n.current.filtered.groups=new Set;let i=0;for(let l of a.current){let a=I(null!=(r=null==(e=s.current.get(l))?void 0:e.value)?r:"",null!=(o=null==(t=s.current.get(l))?void 0:t.keywords)?o:[]);n.current.filtered.items.set(l,a),a>0&&i++}for(let[a,s]of l.current)for(let e of s)if(n.current.filtered.items.get(e)>0){n.current.filtered.groups.add(a);break}n.current.filtered.count=i}function _(){var e,r,t;let n=$();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(t=null==(r=n.closest(H))?void 0:r.querySelector('[cmdk-group-heading=""]'))||t.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function $(){var e;return null==(e=E.current)?void 0:e.querySelector(`${W}[aria-selected="true"]`)}function F(){var e;return Array.from((null==(e=E.current)?void 0:e.querySelectorAll(Q))||[])}function P(e){let r=F()[e];r&&C.setState("value",r.getAttribute(Z))}function B(e){var r;let t=$(),n=F(),a=n.findIndex(e=>e===t),l=n[a+e];null!=(r=d.current)&&r.loop&&(l=a+e<0?n[n.length-1]:a+e===n.length?n[0]:n[a+e]),l&&C.setState("value",l.getAttribute(Z))}function D(e){let r,t=$(),n=null==t?void 0:t.closest(H);for(;n&&!r;)n=e>0?pe(n,H):fe(n,H),r=null==n?void 0:n.querySelector(Q);r?C.setState("value",r.getAttribute(Z)):B(e)}let K=()=>P(F().length-1),L=e=>{e.preventDefault(),e.metaKey?K():e.altKey?D(1):B(1)},O=e=>{e.preventDefault(),e.metaKey?P(0):e.altKey?D(-1):B(-1)};return e.createElement(o.div,{ref:t,tabIndex:-1,...x,"cmdk-root":"",onKeyDown:e=>{var r;null==(r=x.onKeyDown)||r.call(x,e);let t=e.nativeEvent.isComposing||229===e.keyCode;if(!e.defaultPrevented&&!t)switch(e.key){case"n":case"j":j&&e.ctrlKey&&L(e);break;case"ArrowDown":L(e);break;case"p":case"k":j&&e.ctrlKey&&O(e);break;case"ArrowUp":O(e);break;case"Home":e.preventDefault(),P(0);break;case"End":e.preventDefault(),K();break;case"Enter":{e.preventDefault();let r=$();if(r){let e=new Event(Y);r.dispatchEvent(e)}}}}},e.createElement("label",{"cmdk-label":"",htmlFor:N.inputId,id:N.labelId,style:we},u),ke(r,r=>e.createElement(re.Provider,{value:C},e.createElement(X.Provider,{value:N},r))))}),le=e.forwardRef((r,t)=>{var n,a;let l=i(),c=e.useRef(null),d=e.useContext(ne),u=ee(),m=ve(r),h=null!=(a=null==(n=m.current)?void 0:n.forceMount)?a:null==d?void 0:d.forceMount;be(()=>{if(!h)return u.item(l,null==d?void 0:d.id)},[h]);let p=xe(l,c,[r.value,r.children,c],r.keywords),f=te(),v=je(e=>e.value&&e.value===p.current),b=je(e=>!(!h&&!1!==u.filter())||!e.search||e.filtered.items.get(l)>0);function g(){var e,r;j(),null==(r=(e=m.current).onSelect)||r.call(e,p.current)}function j(){f.setState("value",p.current,!0)}if(e.useEffect(()=>
1{let e=c.current;if(e&&!r.disabled)return e.addEventListener(Y,g),()=>e.removeEventListener(Y,g)},[b,r.onSelect,r.disabled]),!b)return null;let{disabled:x,value:y,onSelect:k,forceMount:w,keywords:E,...S}=r;return e.createElement(o.div,{ref:s(c,t),...S,id:l,"cmdk-item":"",role:"option","aria-disabled":!!x,"aria-selected":!!v,"data-disabled":!!x,"data-selected":!!v,onPointerMove:x||u.getDisablePointerSelection()?void 0:j,onClick:x?void 0:g},r.children)}),oe=e.forwardRef((r,t)=>{let{heading:n,children:a,forceMount:l,...c}=r,d=i(),u=e.useRef(null),m=e.useRef(null),h=i(),p=ee(),f=je(e=>!(!l&&!1!==p.filter())||!e.search||e.filtered.groups.has(d));be(()=>p.group(d),[]),xe(d,u,[r.value,r.heading,m]);let v=e.useMemo(()=>({id:d,forceMount:l}),[l]);return e.createElement(o.div,{ref:s(u,t),...c,"cmdk-group":"",role:"presentation",hidden:!f||void 0},n&&e.createElement("div",{ref:m,"cmdk-group-heading":"","aria-hidden":!0,id:h},n),ke(r,r=>e.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?h:void 0},e.createElement(ne.Provider,{value:v},r))))}),ie=e.forwardRef((r,t)=>{let{alwaysRender:n,...a}=r,l=e.useRef(null),i=je(e=>!e.search);return n||i?e.createElement(o.div,{ref:s(l,t),...a,"cmdk-separator":"",role:"separator"}):null}),se=e.forwardRef((r,t)=>{let{onValueChange:n,...a}=r,l=null!=r.value,i=te(),s=je(e=>e.search),c=je(e=>e.selectedItemId),d=ee();return e.useEffect(()=>{null!=r.value&&i.setState("search",r.value)},[r.value]),e.createElement(o.input,{ref:t,...a,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":d.listId,"aria-labelledby":d.labelId,"aria-activedescendant":c,id:d.inputId,type:"text",value:l?r.value:s,onChange:e=>{l||i.setState("search",e.target.value),null==n||n(e.target.value)}})}),ce=e.forwardRef((r,t)=>{let{children:n,label:a="Suggestions",...l}=r,i=e.useRef(null),c=e.useRef(null),d=je(e=>e.selectedItemId),u=ee();return e.useEffect(()=>{if(c.current&&i.current){let e,r=c.current,t=i.current,n=new ResizeObserver(()=>{e=requestAnimationFrame(()=>{let e=r.offsetHeight;t.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")})});return n.observe(r),()=>{cancelAnimationFrame(e),n.unobserve(r)}}},[]),e.createElement(o.div,{ref:s(i,t),...l,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":d,"aria-label":a,id:u.listId},ke(r,r=>e.createElement("div",{ref:s(c,u.listInnerRef),"cmdk-list-sizer":""},r)))}),de=e.forwardRef((r,o)=>{let{open:i,onOpenChange:s,overlayClassName:c,contentClassName:d,container:u,...m}=r;return e.createElement(t,{open:i,onOpenChange:s},e.createElement(n,{container:u},e.createElement(a,{"cmdk-overlay":"",className:c}),e.createElement(l,{"aria-label":r.label,"cmdk-dialog":"",className:d},e.createElement(ae,{ref:o,...m}))))}),ue=e.forwardRef((r,t)=>je(e=>0===e.filtered.count)?e.createElement(o.div,{ref:t,...r,"cmdk-empty":"",role:"presentation"}):null),me=e.forwardRef((r,t)=>{let{progress:n,children:a,label:l="Loading...",...i}=r;return e.createElement(o.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":l},ke(r,r=>e.createElement("div",{"aria-hidden":!0},r)))}),he=Object.assign(ae,{List:ce,Item:le,Input:se,Group:oe,Separator:ie,Dialog:de,Empty:ue,Loading:me});function pe(e,r){let t=e.nextElementSibling;for(;t;){if(t.matches(r))return t;t=t.nextElementSibling}}function fe(e,r){let t=e.previousElementSibling;for(;t;){if(t.matches(r))return t;t=t.previousElementSibling}}function ve(r){let t=e.useRef(r);return be(()=>{t.current=r}),t}var be="undefined"==typeof window?e.useEffect:e.useLayoutEffect;function ge(r){let t=e.useRef();return void 0===t.current&&(t.current=r()),t}function je(r){let t=te(),n=()=>r(t.snapshot());return e.useSyncExternalStore(t.subscribe,n,n)}function xe(r,t,n,a=[]){let l=e.useRef(),o=ee();return be(()=>{var e;let i=(()=>{var e;for(let r of n){if("string"==typeof r)return r.trim();if("object"==typeof r&&"current"in r)return r.current?null==(e=r.current.textContent)?void 0:e.trim():l.current}})(),s=a.map(e=>e.trim());o.value(r,i,s),null==(e=t.current)||e.setAttribute(Z,i),l.current=i}),l}var ye=()=>{let[r,t]=e.useState(),n=ge(()=>new Map);return be(()=>
1{n.current.forEach(e=>e()),n.current=new Map},[r]),(e,r)=>{n.current.set(e,r),t({})}};function ke({asChild:r,children:t},n){return r&&e.isValidElement(t)?e.cloneElement(function(e){let r=e.type;return"function"==typeof r?r(e.props):"render"in r?r.render(e.props):e}(t),{ref:t.ref},n(t.props.children)):n(t)}var we={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Ee=({isOpen:t,onClose:n,onOpenCapture:a,onOpenShortcuts:l})=>{const[o,i]=e.useState(""),s=x(),{boards:C}=c(),{moods:K,switchMood:L}=d(),{activeTheme:O}=u(),{user:q}=m();e.useEffect(()=>{t||i("")},[t]),e.useEffect(()=>{if(!t)return;const e=e=>{"Escape"===e.key&&(e.preventDefault(),n())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[t,n]);const{data:V=[]}=h({queryKey:["command-centre-recent-echoes",null==q?void 0:q.id],queryFn:async()=>{if(!(null==q?void 0:q.id))return[];const{data:e,error:r}=await p.from("memory_views").select("memory_id,created_at").eq("user_id",q.id).order("created_at",{ascending:!1}).limit(40);if(r||!Array.isArray(e))return[];const t=Array.from(new Set(e.map(e=>e.memory_id).filter(Boolean))).slice(0,12);if(0===t.length)return[];const{data:n,error:a}=await p.from("memories").select("id,title,ai_title,image_url,video_url,type,metadata").in("id",t).is("deleted_at",null);if(a||!Array.isArray(n))return[];const l=new Map(n.map(e=>[e.id,e]));return t.map(e=>l.get(e)).filter(e=>Boolean(e)).slice(0,5)},enabled:t&&Boolean(null==q?void 0:q.id),staleTime:3e4}),z=e=>{e(),n()};if(!t)return null;const U=[{label:"New Echo",icon:E,key:"N",tone:"rose",action:()=>null==a?void 0:a()},{label:"New Board",icon:S,key:"B",tone:"blue",action:()=>s("/boards")},{label:"Add Note",icon:D,key:"⇧ N",tone:"gold",action:()=>null==a?void 0:a()},{label:"Search Feed",icon:y,key:"F",tone:"silver",action:()=>s("/")},{label:"Open Spaces",icon:j,key:"C",tone:"violet",action:()=>s("/spaces")}],G=[{label:"Feed",path:"/",icon:I,key:"H"},{label:"Explore",path:"/explore",icon:A,key:"E"},{label:"Boards",path:"/boards",icon:S,key:"B"},{label:"Favorites",path:"/favorites",icon:M,key:"F"},{label:"Spaces",path:"/spaces",icon:j,key:"C"},{label:"Profile",path:"/profile",icon:R,key:"P"},{label:"Support & Documentation",path:"/support",icon:_,key:"?"}];return r.jsxs("div",{className:"command-centre-shell",role:"presentation",children:[r.jsx("button",{className:"command-centre-backdrop","aria-label":"Close command centre",onClick:n}),r.jsxs(he,{className:"command-centre",label:"Echo Command Centre",shouldFilter:!0,style:{"--cc-accent":O.accent_color||O.primary_color||"#f43f5f"},children:[r.jsxs("div",{className:"command-centre-search-wrap",children:[r.jsx(y,{"aria-hidden":"true"}),r.jsx(he.Input,{value:o,onValueChange:i,placeholder:"Search Echo, boards, moods, or type a command…",className:"command-centre-search",autoFocus:!0}),r.jsxs("kbd",{children:[r.jsx(k,{"aria-hidden":"true"})," K"]})]}),r.jsxs(he.List,{className:"command-centre-list",children:[r.jsxs(he.Empty,{className:"command-centre-empty",children:[r.jsx(w,{"aria-hidden":"true"}),r.jsx("strong",{children:"No matching command"}),r.jsx("span",{children:"Try a board name, mood, or destination."})]}),r.jsxs("div",{className:"command-centre-grid",children:[r.jsxs("div",{className:"command-centre-main",children:[r.jsx(he.Group,{heading:"Quick actions",className:"command-panel command-actions",children:r.jsx("div",{className:"command-actions-grid",children:U.map(({label:e,icon:t,key:n,tone:a,action:l})=>r.jsxs(he.Item,{value:`${e} action command`,onSelect:()=>z(l),className:`command-action-card tone-${a}`,children:[r.jsx(t,{"aria-hidden":"true"}),r.jsx("span",{children:e}),r.jsx("kbd",{children:n})]},e))})}),C.length>0&&r.jsxs(he.Group,{heading:"Your boards",className:"command-panel command-boards",children:[r.jsx("button",{className:"command-panel-link",type:"button",onClick:()=>z(()=>s("/boards")),children:"View all"}),r.jsx("div",{className:"command-board-grid",children:C.slice(0,6).map(e=>{return r.jsxs(he.Item,{value:`${e.name} ${e.description||""} board`,onSelect:()=>(e=>z(()=>s(g({id:e.id,ownerUsername:e.owner_username,slug:e.slug}))))(e),className:"command-board-card",children:[r.jsxs("div",{className:"command-board-art",style:{background:`linear-gradient(145deg, ${e.color||"#453453"}, #111318)`},children:[r.jsx(f,{boardId:e.id,previewIds:e.preview_image_ids,previewMedia:e.preview_media,fallbackIcon:r.jsx(S,{"aria-hidden":"true"}),maxItems:1,videoPlayMode:"never"}),r.jsx("span",{children:r.jsx(N,{"aria-hidden":"true"})})]}),r.jsx("strong",{children:e.name}),r.jsx("small",{children:(t=e.memory_count,`${Math.max(0,Number(t)||0).toLocaleStr
1ing()} echoes`)})]},e.id);var t})})]}),K.length>0&&r.jsx(he.Group,{heading:"Moods",className:"command-panel command-moods",children:r.jsx("div",{className:"command-mood-grid",children:K.slice(0,8).map(e=>r.jsxs(he.Item,{value:`${e.name} mood ${e.description||""}`,onSelect:()=>z(()=>L(e.id)),className:"command-mood-pill",style:{"--mood-accent":e.accent_color||e.primary_color||"#a978ff","--mood-surface":e.surface_color||"#17191d"},children:[r.jsx("span",{className:"command-mood-orb",children:e.emoji}),r.jsx("strong",{children:e.name})]},e.id))})})]}),r.jsxs("aside",{className:"command-centre-side",children:[r.jsx(he.Group,{heading:"Jump to",className:"command-panel command-jump",children:G.map(({label:e,path:t,icon:n,key:a})=>r.jsxs(he.Item,{value:`${e} navigate go to`,onSelect:()=>z(()=>s(t)),className:"command-jump-row",children:[r.jsx(n,{"aria-hidden":"true"}),r.jsx("span",{children:e}),r.jsx("kbd",{children:"G"}),r.jsx("kbd",{children:a}),r.jsx($,{"aria-hidden":"true"})]},t))}),V.length>0&&r.jsx(he.Group,{heading:"Recently opened Echoes",className:"command-panel command-recent",children:V.map((e,t)=>{var n;const a="video"===e.type?v({thumbnailUrl:String((null==(n=e.metadata)?void 0:n.thumbnail_url)||e.image_url||""),size:"thumbnail"}):b(e.image_url,"thumbnail"),l=e.title||"Untitled Echo";return r.jsxs(he.Item,{value:`${l} recently opened Echo`,onSelect:()=>z(()=>s(`/?openMemory=${encodeURIComponent(e.id)}`)),className:"command-recent-row",children:[r.jsx("span",{className:"command-recent-art",children:a?r.jsx("img",{src:a,alt:"",loading:"lazy",decoding:"async"}):r.jsx(w,{"aria-hidden":"true"})}),r.jsxs("span",{children:[r.jsx("strong",{children:l}),r.jsx("small",{children:"Echo · recently opened"})]}),r.jsxs("kbd",{children:[r.jsx(k,{"aria-hidden":"true"})," ",t+1]})]},e.id)})}),r.jsxs("button",{className:"command-shortcuts-card",type:"button",onClick:()=>z(()=>null==l?void 0:l()),children:[r.jsx(F,{"aria-hidden":"true"}),r.jsxs("span",{children:[r.jsx("strong",{children:"Keyboard shortcuts"}),r.jsx("small",{children:"Move through Echo at full speed"})]}),r.jsx($,{"aria-hidden":"true"})]})]})]})]}),r.jsxs("footer",{className:"command-centre-footer",children:[r.jsxs("div",{children:[r.jsxs("kbd",{children:[r.jsx(P,{"aria-hidden":"true"}),r.jsx(B,{"aria-hidden":"true"})]}),r.jsx("span",{children:"Navigate"})]}),r.jsxs("div",{children:[r.jsx("kbd",{children:"↵"}),r.jsx("span",{children:"Open"})]}),r.jsxs("div",{children:[r.jsx("kbd",{children:"esc"}),r.jsx("span",{children:"Close"})]}),r.jsxs("div",{className:"command-centre-footer-search",children:[r.jsxs("kbd",{children:[r.jsx(k,{"aria-hidden":"true"})," K"]}),r.jsx("span",{children:"Quick search"})]})]})]})]})};export{Ee as CommandPalette};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.