meshy-node 0.9.1 → 0.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +0,0 @@
1
- import{c as _,j as e,I as X,B as v,bB as O,an as V,r as i,bC as Y,bA as Z,z as ee,A as se,E as re,bD as te,v as ne,C as ae}from"./index-AgRF0fhH.js";import{P as ie}from"./play-nM4_YhiZ.js";/**
2
- * @license lucide-react v1.7.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const le=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],ce=_("maximize-2",le);/**
7
- * @license lucide-react v1.7.0 - ISC
8
- *
9
- * This source code is licensed under the ISC license.
10
- * See the LICENSE file in the root directory of this source tree.
11
- */const oe=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],de=_("minimize-2",oe);/**
12
- * @license lucide-react v1.7.0 - ISC
13
- *
14
- * This source code is licensed under the ISC license.
15
- * See the LICENSE file in the root directory of this source tree.
16
- */const xe=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],me=_("settings-2",xe),ue={getOutput:Z,createPreviewSession:Y};function we({taskId:s,api:n=ue,allowPortPreview:l=!0}){const[a,d]=i.useState(null),[t,m]=i.useState(null),[x,u]=i.useState(null),[h,f]=i.useState(""),[g,b]=i.useState(!1),[P,S]=i.useState(!0),[w,o]=i.useState(null),[K,T]=i.useState(!1),[A,p]=i.useState(!1),$=i.useCallback(async()=>{S(!0),o(null),d(null),m(null),u(null),p(!1);try{const r=await n.getOutput(s);d(r),S(!1)}catch(r){o(r instanceof Error?r.message:"Failed to load output"),S(!1)}},[n,s]);i.useEffect(()=>{$()},[$]);const N=i.useCallback(async r=>{o(null);try{const c=await n.createPreviewSession(s,r!=null&&r.path?{path:r.path}:void 0);m(c),b(!1),p(!1),r&&u(r)}catch(c){o(c instanceof Error?c.message:"Failed to create preview session")}},[n,s]),C=i.useCallback(async r=>{const c=r??Number.parseInt(h,10);if(!Number.isInteger(c)||c<1||c>65535){o("Enter a port between 1 and 65535");return}o(null);try{const M=await n.createPreviewSession(s,{port:c});m(M),u(null),f(String(c)),b(!0),p(!1)}catch(M){o(M instanceof Error?M.message:"Failed to create preview session")}},[n,h,s]),k=i.useMemo(()=>I(a),[a]);i.useEffect(()=>{if(g||!(a!=null&&a.available)||k.length===0||t&&t.kind!=="service")return;const r=x??k[0];r&&N(r)},[x,a,k,g,t,N]);const j=i.useCallback(()=>{if((t==null?void 0:t.kind)==="service"&&typeof t.port=="number"){C(t.port);return}m(null);const r=x??I(a)[0];r&&N(r)},[x,a,t,C,N]);if(i.useEffect(()=>{if(!t)return;const r=t.expiresAt-Date.now()-5e3;if(r<=0){j();return}const c=window.setTimeout(j,r);return()=>window.clearTimeout(c)},[j,t]),P)return e.jsx(E,{children:"Loading preview..."});const y=l&&g;if(w&&t&&!y)return e.jsx(E,{children:e.jsxs("div",{className:"space-y-4 text-center",children:[e.jsx("div",{className:"text-sm text-destructive",children:w}),e.jsx("div",{className:"flex justify-center",children:e.jsxs(v,{variant:"outline",size:"sm",onClick:j,className:"rounded-full",children:[e.jsx(O,{className:"h-3.5 w-3.5"}),"Retry"]})})]})});const D=!!(a!=null&&a.available);if(!D&&!l)return e.jsx(E,{children:"Task output is not available yet."});if(!t)return e.jsxs("div",{className:"flex h-full min-h-0 flex-col",children:[e.jsx("div",{className:"shrink-0 border-b border-border/60 px-3 py-1.5",children:e.jsx(B,{session:null,serviceModeOpen:y,allowPortPreview:l,servicePort:h,previewEntries:k,activeEntry:x,filesMenuOpen:A,onRefresh:j,onFullscreen:()=>T(!0),onServiceModeToggle:()=>{p(!1),b(r=>!r)},onServicePortChange:f,onServiceStart:()=>void C(),onFileMenuToggle:()=>p(r=>!r),onEntrySelect:r=>{p(!1),N(r)}})}),y?e.jsx(q,{serviceSession:null,error:w}):e.jsx(E,{children:w?e.jsx("span",{className:"text-sm text-destructive",children:w}):D?k.length>0?"Starting preview session...":"No HTML or Markdown files were found in this task output.":"Task output is not available yet."})]});const R=J(t),Q=G(t),U=fe(t),z=t.kind==="service"?t:null,W=y?z:t,L=e.jsx("iframe",{src:t.previewUrl,className:"h-full w-full border-0",sandbox:U,title:"Task Preview"});return e.jsxs("div",{className:"flex h-full min-h-0 flex-col",children:[e.jsx("div",{className:"shrink-0 border-b border-border/60 px-3 py-1.5",children:e.jsx(B,{session:W,serviceModeOpen:y,allowPortPreview:l,servicePort:h,previewEntries:k,activeEntry:x,filesMenuOpen:A,onRefresh:j,onFullscreen:()=>T(!0),onServiceModeToggle:()=>{p(!1),b(r=>!r)},onServicePortChange:f,onServiceStart:()=>void C(),onFileMenuToggle:()=>p(r=>!r),onEntrySelect:r=>{p(!1),N(r)}})}),y?e.jsx(q,{serviceSession:z,error:w,children:z?L:null}):e.jsx("div",{className:"min-h-0 flex-1 p-2",children:e.jsx("div",{className:"h-full overflow-hidden rounded-2xl border border-border/60 bg-white shadow-sm",children:L})}),e.jsx(ee,{open:K,onOpenChange:T,children:e.jsxs(se,{className:"flex h-[95vh] max-w-[95vw] flex-col gap-0 overflow-hidden p-0",children:[e.jsxs(re,{className:"sr-only",children:["Preview: ",R]}),e.jsxs("div",{className:"flex shrink-0 items-center justify-between border-b border-border/60 px-3 py-1.5",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[e.jsx("span",{className:"truncate text-[12px] font-semibold text-foreground",children:R}),e.jsx("span",{className:"text-xs text-muted-foreground",children:F(t.expiresAt)})]}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(v,{variant:"ghost",size:"icon",className:"h-6 w-6 rounded-md",onClick:j,title:"Refresh",children:e.jsx(O,{className:"h-3.5 w-3.5"})}),e.jsx(v,{variant:"ghost",size:"icon",className:"h-6 w-6 rounded-md",asChild:!0,title:"Open in new tab",children:e.jsx("a",{href:Q,target:"_blank",rel:"noopener noreferrer",children:e.jsx(V,{className:"h-3.5 w-3.5"})})}),e.jsx(te,{asChild:!0,children:e.jsxs(v,{variant:"outline",size:"sm",className:"h-6 rounded-md px-2 text-[11px]",title:"Exit fullscreen",children:[e.jsx(de,{className:"h-3.5 w-3.5"}),"Exit fullscreen"]})})]})]}),e.jsx("div",{className:"min-h-0 flex-1",children:e.jsx("iframe",{src:t.previewUrl,className:"h-full w-full border-0",sandbox:U,title:"Task Preview Fullscreen"})})]})})]})}function I(s){var a,d;const n=((a=s==null?void 0:s.summary)==null?void 0:a.htmlEntries)??[],l=((d=s==null?void 0:s.summary)==null?void 0:d.markdownEntries)??[];return[...n.map(t=>({...t,kind:"html"})),...l.map(t=>({...t,kind:"markdown"}))]}function he({entries:s,activeEntry:n,open:l,onToggle:a,onEntrySelect:d}){const t=s[0];if(!t)return null;const m=n??t,x=H(m);return e.jsxs("div",{className:"relative min-w-0",children:[e.jsxs("button",{type:"button","aria-expanded":l,"aria-haspopup":"menu","aria-label":"Preview files",onClick:a,className:"flex h-6 max-w-[min(24rem,calc(100vw-7rem))] items-center gap-1.5 rounded-md px-1.5 text-left text-[12px] font-semibold text-foreground transition-colors hover:bg-background/70",children:[e.jsx("span",{className:"truncate",children:m.label}),e.jsx(ne,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"})]}),l&&e.jsx("div",{role:"menu","aria-label":"Preview files",className:"absolute left-0 top-full z-30 mt-1 max-h-64 min-w-[14rem] max-w-[min(28rem,calc(100vw-4rem))] overflow-y-auto rounded-lg border border-border/70 bg-popover/95 p-1 text-popover-foreground shadow-[0_20px_70px_-36px_rgba(0,0,0,0.45)] backdrop-blur-xl",children:s.map(u=>{const h=H(u),f=h===x;return e.jsxs("button",{type:"button",role:"menuitemradio","aria-checked":f,onClick:()=>d(u),className:"flex w-full items-center gap-2 rounded-md px-2 py-1 text-left text-[11px] leading-4 text-foreground transition-colors hover:bg-accent/75 hover:text-accent-foreground",children:[e.jsx("span",{className:"w-3.5 shrink-0 text-primary",children:f?e.jsx(ae,{className:"h-3.5 w-3.5"}):null}),e.jsx("span",{className:"min-w-0 flex-1 truncate",children:u.label})]},h)})})]})}function H(s){return`${s.kind}:${s.path}`}function B({session:s,serviceModeOpen:n,allowPortPreview:l,servicePort:a,previewEntries:d=[],activeEntry:t=null,filesMenuOpen:m=!1,onRefresh:x,onFullscreen:u,onServiceModeToggle:h,onServicePortChange:f,onServiceStart:g,onFileMenuToggle:b,onEntrySelect:P}){const S=s?G(s):null,w=!n&&d.length>0&&b&&P;return e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx("div",{className:"flex min-w-0 items-center gap-2",children:n&&f&&g?e.jsxs("form",{className:"flex min-w-0 items-center gap-1.5",onSubmit:o=>{o.preventDefault(),g()},children:[e.jsx("span",{className:"shrink-0 text-[12px] font-semibold text-foreground",children:"Preview service"}),e.jsxs("label",{className:"flex items-center gap-1.5 text-[11px] text-muted-foreground",children:["Port",e.jsx(X,{type:"number",min:1,max:65535,inputMode:"numeric",value:a??"",onChange:o=>f(o.target.value),placeholder:"12345","aria-label":"Service preview port",className:"h-6 w-20 rounded-md px-2 text-[11px]"})]}),e.jsxs(v,{type:"submit",variant:"outline",size:"sm",className:"h-6 rounded-md px-2 text-[11px]",children:[e.jsx(ie,{className:"h-3.5 w-3.5"}),"Run"]}),s&&e.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:F(s.expiresAt)})]}):e.jsxs(e.Fragment,{children:[w?e.jsx(he,{entries:d,activeEntry:t,open:m,onToggle:b,onEntrySelect:P}):e.jsx("span",{className:"truncate text-[12px] font-semibold text-foreground",children:s?J(s):"Preview"}),s&&e.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:F(s.expiresAt)})]})}),e.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[s&&e.jsxs(e.Fragment,{children:[e.jsx(v,{variant:"ghost",size:"icon",className:"h-6 w-6 rounded-md",onClick:x,title:"Refresh",children:e.jsx(O,{className:"h-3.5 w-3.5"})}),e.jsx(v,{variant:"ghost",size:"icon",className:"h-6 w-6 rounded-md",asChild:!0,title:"Open in new tab",children:e.jsx("a",{href:S??s.previewUrl,target:"_blank",rel:"noopener noreferrer",children:e.jsx(V,{className:"h-3.5 w-3.5"})})}),e.jsx(v,{variant:"ghost",size:"icon",className:"h-6 w-6 rounded-md",onClick:u,title:"Fullscreen",children:e.jsx(ce,{className:"h-3.5 w-3.5"})})]}),l&&e.jsxs(v,{type:"button",variant:n?"secondary":"ghost",size:"sm","aria-pressed":n,onClick:h,className:"h-6 shrink-0 rounded-md px-2 text-[11px]",children:[e.jsx(me,{className:"h-3.5 w-3.5"}),"Advanced"]})]})]})}function q({serviceSession:s,error:n,children:l}){return e.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[n&&e.jsx("div",{className:"shrink-0 border-b border-destructive/20 bg-destructive/5 px-4 py-2 text-xs text-destructive",children:n}),e.jsx("div",{className:"min-h-0 flex-1 p-2",children:s&&l?e.jsx("div",{className:"h-full overflow-hidden rounded-2xl border border-border/60 bg-white shadow-sm",children:l}):e.jsx(E,{children:"No service preview running."})})]})}function G(s){return s.openUrl??s.previewUrl}function fe(s){return s.kind==="service"?void 0:"allow-scripts allow-same-origin"}function J(s){if(s.kind==="service"&&typeof s.port=="number"){const n=s.entryPath?`/${s.entryPath.replace(/^\/+/,"")}`:"";return`127.0.0.1:${s.port}${n}`}return s.entryPath}function E({children:s}){return e.jsx("div",{className:"flex h-64 items-center justify-center text-muted-foreground",children:s})}function F(s){const n=Math.max(0,Math.round((s-Date.now())/1e3));if(n<60)return`${n}s`;const l=Math.floor(n/60),a=n%60;return`${l}m ${a}s`}export{B as PreviewHeader,q as PreviewServicePanel,we as PreviewTab,fe as getPreviewIframeSandbox,G as getPreviewOpenUrl};
@@ -1,7 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/FilesTab-Cg5PBMv6.js","assets/index-AgRF0fhH.js","assets/index-BYWN4SLt.css","assets/MarkdownPreviewFrame-B58EGPZX.js","assets/DashboardShared-BvjPqceV.js","assets/file-BDYM9RQo.js","assets/PreviewTab-CoN0CJR0.js","assets/play-nM4_YhiZ.js"])))=>i.map(i=>d[i]);
2
- import{c as N,b2 as k,r as s,j as e,bo as S,P as T,U as C,a8 as M,bp as P,bq as _,br as j,bs as E,bt as L,a3 as w,bu as A}from"./index-AgRF0fhH.js";import{u as I,v as O,q as z,p as F,h as R,L as q,C as D,T as v,m as U}from"./DashboardShared-BvjPqceV.js";/**
3
- * @license lucide-react v1.7.0 - ISC
4
- *
5
- * This source code is licensed under the ISC license.
6
- * See the LICENSE file in the root directory of this source tree.
7
- */const V=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]],B=N("message-square-text",V),G=s.lazy(async()=>({default:(await w(()=>import("./FilesTab-Cg5PBMv6.js"),__vite__mapDeps([0,1,2,3,4,5]))).FilesTab})),H=s.lazy(async()=>({default:(await w(()=>import("./PreviewTab-CoN0CJR0.js"),__vite__mapDeps([6,1,2,7]))).PreviewTab})),W={getOutput:j,getOutputTree:_,getOutputContent:P},Z={getOutput:j,createPreviewSession:(t,r)=>A(t,typeof r=="string"?r:r==null?void 0:r.path)};function X(){const{shareId:t}=k(),[r,d]=s.useState(null),[o,n]=s.useState([]),[x,c]=s.useState(!0),[g,i]=s.useState(null),l=s.useRef(null);return s.useEffect(()=>{if(!t){d(null),n([]),i("Shared conversation not found"),c(!1);return}let u=!1;l.current=t,c(!0),i(null);const h=async a=>{try{const[m,f]=await Promise.all([E(t),L(t)]);if(u||l.current!==t)return;d(m),n(y=>a?f.logs:U(y,f.logs)),i(null)}catch(m){if(u||l.current!==t)return;a&&(d(null),n([]),i(m instanceof Error?m.message:"Failed to load shared conversation"))}finally{!u&&l.current===t&&a&&c(!1)}};h(!0);const p=window.setInterval(()=>{h(!1)},2500);return()=>{u=!0,window.clearInterval(p)}},[t]),e.jsx($,{conversation:r,logs:o,loading:x,error:g})}function $({conversation:t,logs:r,loading:d,error:o}){const[n,x]=s.useState("transcript"),[c,g]=s.useState(!1),i=s.useMemo(()=>{if(!t)return null;const a=I(t.payload.initialMessage);return a.length>0&&O(r,a)?null:a.length>0?z(a,new Date(t.createdAt).toISOString()):null},[t,r]),l=s.useMemo(()=>F([...i?[i]:[],...r]),[i,r]),u=s.useMemo(()=>R(l),[l]),h=(t==null?void 0:t.scope)==="filesPreview",p=e.jsx("section",{className:"min-h-0 flex-1 overflow-y-auto overscroll-contain scroll-pb-16 bg-gradient-to-b from-background/15 via-transparent to-background/35 px-4 py-4 sm:px-6",children:e.jsxs("div",{className:"mx-auto flex max-w-[72rem] flex-col gap-4 pb-16",children:[d&&e.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-border/60 bg-background/60 px-4 py-3 text-sm text-muted-foreground",children:[e.jsx(q,{className:"h-4 w-4 animate-spin"}),"Loading shared conversation..."]}),!d&&o&&e.jsxs("div",{className:"rounded-lg border border-destructive/20 bg-destructive/10 px-5 py-8 text-center text-destructive",children:[e.jsx("div",{className:"text-base font-semibold",children:"Shared conversation unavailable"}),e.jsx("div",{className:"mt-2 text-sm",children:o})]}),!d&&!o&&l.length===0&&e.jsxs("div",{className:"rounded-lg border border-dashed border-border/70 bg-background/35 px-5 py-8 text-center",children:[e.jsx(B,{className:"mx-auto h-6 w-6 text-muted-foreground"}),e.jsx("div",{className:"mt-3 text-sm font-medium text-foreground",children:"No transcript output yet"})]}),!d&&!o&&u.map(({event:a,subItems:m},f)=>e.jsx(D,{event:a,agent:t==null?void 0:t.agent,subItems:m,questionResponseDisabled:!0},`shared-${f}`))]})});return e.jsxs("div",{className:"relative h-full overflow-hidden bg-background text-foreground",children:[e.jsx("div",{className:"mesh-grid pointer-events-none absolute inset-0"}),e.jsxs("div",{className:"relative z-10 flex h-full min-h-0 gap-3 px-3 py-3 sm:px-5 lg:px-6",children:[e.jsxs("aside",{className:"dashboard-panel dashboard-panel-muted animate-panel-settle hidden w-64 shrink-0 flex-col overflow-hidden rounded-xl px-4 py-5 lg:flex xl:w-72",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg border border-border/70 bg-foreground text-xs font-semibold tracking-[0.24em] text-background shadow-sm",children:"M"}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"truncate text-sm font-semibold text-foreground",children:"Meshy Workspace"}),e.jsx("div",{className:"text-[10px] font-medium uppercase tracking-[0.24em] text-muted-foreground",children:"Shared view"})]})]}),e.jsx("div",{className:"mt-7 text-[11px] font-medium uppercase tracking-[0.28em] text-muted-foreground",children:"Shared conversation"}),t&&e.jsxs("div",{className:"mt-3 space-y-3",children:[e.jsx("h1",{className:"max-h-28 overflow-hidden break-words text-base font-semibold leading-5 text-foreground [overflow-wrap:anywhere]",title:t.title,children:t.title}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx(S,{status:t.status}),e.jsx(T,{priority:t.priority})]}),e.jsxs("div",{className:"space-y-1 text-xs text-muted-foreground",children:[e.jsxs("div",{children:["updated ",C(t.updatedAt)]}),e.jsx("div",{className:"font-mono",children:t.id.slice(0,8)})]})]}),e.jsxs("div",{className:"mt-auto space-y-2 pt-6",children:[c&&e.jsx("div",{className:"rounded-xl border border-border/70 bg-background/80 p-3 font-mono text-[11px] text-foreground shadow-sm",children:"npx -y meshy-node@latest start"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("a",{href:"https://github.com/ai-microsoft/meshy",target:"_blank",rel:"noreferrer","aria-label":"Open Meshy on GitHub",className:"inline-flex h-9 w-9 items-center justify-center rounded-sm border border-border/70 bg-background/70 text-muted-foreground transition-colors hover:text-foreground",children:e.jsx(J,{className:"h-4 w-4"})}),e.jsxs("button",{type:"button",onClick:()=>g(a=>!a),"aria-expanded":c,className:"inline-flex h-9 items-center gap-2 rounded-sm border border-border/70 bg-background/70 px-3 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground",children:[e.jsx(M,{className:"h-4 w-4"}),"Try it"]})]})]})]}),e.jsxs("main",{className:"dashboard-panel animate-panel-settle flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden rounded-xl",children:[e.jsxs("header",{className:"shrink-0 border-b border-border/55 bg-card/28 px-4 py-3 sm:px-6",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-sm border border-border/70 bg-foreground text-xs font-semibold tracking-[0.24em] text-background lg:hidden",children:"M"}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"text-[11px] font-medium uppercase tracking-[0.28em] text-muted-foreground",children:"Meshy Workspace"}),e.jsx("div",{className:"truncate text-base font-semibold text-foreground",children:(t==null?void 0:t.title)??"Shared conversation"})]})]}),h&&e.jsxs("div",{className:"mt-3 inline-flex h-auto rounded-sm bg-muted/70 p-0.5 text-muted-foreground",children:[e.jsx("button",{type:"button",onClick:()=>x("transcript"),className:b(n==="transcript"),children:"Transcript"}),e.jsx("button",{type:"button",onClick:()=>x("files"),className:b(n==="files"),children:"Files"}),e.jsx("button",{type:"button",onClick:()=>x("preview"),className:b(n==="preview"),children:"Preview"})]})]}),h&&t?e.jsxs(e.Fragment,{children:[n==="transcript"&&p,n==="files"&&e.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:e.jsx(s.Suspense,{fallback:e.jsx(v,{label:"Loading files..."}),children:e.jsx(G,{taskId:t.shareId,api:W})})}),n==="preview"&&e.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:e.jsx(s.Suspense,{fallback:e.jsx(v,{label:"Loading preview..."}),children:e.jsx(H,{taskId:t.shareId,api:Z,allowPortPreview:!1})})})]}):p]})]})]})}function b(t){return t?"inline-flex items-center justify-center whitespace-nowrap rounded-sm bg-background px-2.5 py-0.5 text-[11px] font-medium text-foreground shadow-sm":"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-2.5 py-0.5 text-[11px] font-medium transition-colors hover:text-foreground"}function J({className:t}){return e.jsx("svg",{className:t,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:e.jsx("path",{d:"M12 2C6.48 2 2 6.58 2 12.23c0 4.51 2.87 8.34 6.84 9.7.5.1.68-.22.68-.49 0-.24-.01-.88-.01-1.73-2.78.62-3.37-1.37-3.37-1.37-.45-1.18-1.11-1.49-1.11-1.49-.91-.64.07-.63.07-.63 1 .07 1.53 1.06 1.53 1.06.89 1.56 2.34 1.11 2.91.85.09-.66.35-1.11.63-1.37-2.22-.26-4.55-1.14-4.55-5.05 0-1.12.39-2.03 1.03-2.75-.1-.26-.45-1.31.1-2.71 0 0 .84-.27 2.75 1.05A9.3 9.3 0 0 1 12 6.96c.85 0 1.71.12 2.51.34 1.91-1.32 2.75-1.05 2.75-1.05.55 1.4.2 2.45.1 2.71.64.72 1.03 1.63 1.03 2.75 0 3.92-2.34 4.79-4.57 5.05.36.32.68.94.68 1.9 0 1.37-.01 2.47-.01 2.81 0 .27.18.59.69.49A10.05 10.05 0 0 0 22 12.23C22 6.58 17.52 2 12 2Z"})})}export{X as SharedConversationPage,$ as SharedConversationView};