import{az as o,f0 as u,aI as C,v as l,f as p,e as d}from"./app-k0jcl5PQ.js";function P(t){var e,s,n,r;const a=o(!!t.id&&u.clipWithAllInteractives(t.id)),i=!!((n=(s=(e=a.data)==null?void 0:e.interactives)==null?void 0:s.data)!=null&&n.length);C.useEffect(()=>{var c;if((c=a.data)!=null&&c.id){if(!i){l.trigger({application:d.CLIPS,action:p.Clips.EDIT_CLIP_TIMEPOINTS,args:[t.id],params:{startTime:a.data.startTime,endTime:a.data.endTime}}),t.closePopup();return}l.trigger({application:d.CLIPS,action:p.Clips.COPY_CLIP,args:[t.id]},{replace:!0}),t.closePopup()}},[(r=a.data)==null?void 0:r.id,i])}export{P as PreEditClipTimepointsPopupView};
//# sourceMappingURL=eDt06rhg.chunk.js.map
