import{n as e,s as t}from"./rolldown-runtime-BG2f4sTM.js";import{HV as n,Mvt as r,N_t as i,Nvt as a,O_t as o,UV as s,g8 as c,p8 as l}from"./app-initial-BHB6SClA.js";function u(e){let t=(0,f.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],d(a),null}function d(e){let t=(0,f.c)(6),{hostId:n,locationKey:r,previewFiles:a}=e,o=i(l),c=(0,p.useRef)(null),u,d;t[0]!==n||t[1]!==r||t[2]!==a||t[3]!==o?(u=()=>{if(!(a==null||a.length===0||c.current===r)){c.current=r;for(let e of a){let t=e.fsPath||e.path;t==null||t.length===0||s(o,t,{hostId:n,title:e.label})}}},d=[n,r,a,o],t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=u,t[5]=d):(u=t[4],d=t[5]),(0,p.useEffect)(u,d)}var f,p;e((()=>{f=r(),o(),p=t(a(),1),n(),c()}))();export{u as HomePrefillArtifactPreview};
//# sourceMappingURL=home-prefill-artifact-preview-BqhHb5Ne.js.map