import{az as u,f0 as m,ao as a,aF as C,L as h,aq as x,bU as s,v as T,f as g,e as P}from"./app-k0jcl5PQ.js";const c="shared.copyClip",o=h.encloseNamespace(c);function j(t){var p;const{clipId:l,closePopup:i}=t,e=u(m.clip(l));function r(){e.hasCompleted&&(T.trigger({application:P.CLIPS,action:g.Clips.EDIT_CLIP_TIMEPOINTS,args:[t.clipId],params:{isCopying:!0,startTime:e.data.startTime,endTime:e.data.endTime}}),i())}function n(){i()}const d=!!e.data;return a.jsxs(C,{title:o("popupTitle"),closePopup:n,showLoadingSpinner:!d,children:[a.jsx("p",{children:a.jsx(x,{namespace:c,phrase:"hasResults",options:{name:(p=e.data)==null?void 0:p.name}})}),a.jsxs(s,{children:[a.jsx(s.Cancel,{onClick:n}),a.jsx(s.Submit,{onClick:r,variant:"dark",text:o("copy")})]})]})}export{j as CopyClipView};
//# sourceMappingURL=DZnKhffk.chunk.js.map
