import{s as e}from"./chunk-Bj-mKKzh.js";import"./src-BOCweS1p.js";import"./app-server-manager-signals-Yn0WSnoY.js";import{n as t}from"./jsx-runtime-CiQ1k8xo.js";import"./marked.esm-BR-H6018.js";import{F as n,lt as r}from"./vscode-api-DjORcpSo.js";import"./lib-MoKmYgcO.js";import"./persisted-signal-CweW-bgN.js";import"./rpc-CJwVeoy_.js";import"./statsig-BP9zNYqZ.js";import"./request-CBZ5m5yv.js";import"./invalidate-queries-and-broadcast-CivBKbpC.js";import"./thread-context-inputs-C9hcxtXy.js";import"./config-queries-Br8rhpJn.js";import"./selectable-remote-connections-signal-db9FavQq.js";import"./use-global-state-baOKTuK6.js";import"./experimental-features-queries-DhyNRplU.js";import{t as i}from"./route-scope-CLteRG86.js";import"./setting-storage-CwKZnsvR.js";import"./reduced-motion-preference-Bd5_3c7y.js";import"./os-info-Dm-v1Nm8.js";import"./open-workspace-file-CJcJ-CWR.js";import"./mcp-capability-signals-DbHrUOCV.js";import"./send-open-file-request-Dau-We3b.js";import"./mime-types-BQYoZWvU.js";import"./use-webview-execution-target-B5MTa9cH.js";import"./remote-projects-B8AFbAx_.js";import"./app-shell-state-Dskh7Hih.js";import"./browser-sidebar-availability-BiPWLG3p.js";import"./app-shell-tab-controller-cnh2C4j9.js";import"./thread-context-DcUpp6ZL.js";import"./terminal-BhTF7d-4.js";import"./get-file-icon-EMOLzufn.js";import"./code-Dj-8G3VY.js";import"./json-BLvcDNH-.js";import"./folder-BPWd3kCZ.js";import"./image-square-CPvM9CIk.js";import"./notebook-Y9bM-BJu.js";import"./settings.cog-_MjPuK5w.js";import"./skills-DzhgVcoJ.js";import"./workspace-file-context-menu-CMzxJuts.js";import{t as a}from"./open-artifact-side-panel-tab-ByKKd-YP.js";var o=r(),s=e(t(),1);function c(e){let t=(0,o.c)(4),{hostId:n,locationKey:r,previewFiles:i}=e,a;return t[0]!==n||t[1]!==r||t[2]!==i?(a={hostId:n,locationKey:r,previewFiles:i},t[0]=n,t[1]=r,t[2]=i,t[3]=a):a=t[3],l(a),null}function l(e){let t=(0,o.c)(6),{hostId:r,locationKey:c,previewFiles:l}=e,u=n(i),d=(0,s.useRef)(null),f,p;t[0]!==r||t[1]!==c||t[2]!==l||t[3]!==u?(f=()=>{if(!(l==null||l.length===0||d.current===c)){d.current=c;for(let e of l){let t=e.fsPath||e.path;t==null||t.length===0||a(u,t,{hostId:r,title:e.label})}}},p=[r,c,l,u],t[0]=r,t[1]=c,t[2]=l,t[3]=u,t[4]=f,t[5]=p):(f=t[4],p=t[5]),(0,s.useEffect)(f,p)}export{c as HomePrefillArtifactPreview};
//# sourceMappingURL=home-prefill-artifact-preview-CgmWiLot.js.map