import{l as k,dk as S,o as t,S as a,ai as E,j as n,h as A,dl as e,aR as g}from"./app-BgLa5dit.js";import{u as x,a as B,E as F,C as p}from"./Ceadws6c.chunk.js";import{E as M}from"./kJGoOu-N.chunk.js";import"./B-fq6xxv.chunk.js";import"./CTg_3F42.chunk.js";import"./BfMtaC_g.chunk.js";function L(s){var d;const o=k(),l=S(),C=t(g.currentUser()),b=t(a.member(s.clipId)),f=t(a.backboneClassificationsTree()),r=t(a.memberBackboneClassifications(s.clipId)),c=x((d=r.data)==null?void 0:d.map(i=>i.id)),u=B(c==null?void 0:c.map(i=>i.id)),m=t(a.presentations(E.Subject)),j=t(a.objectClassifications(s.clipId));function I(i,T){l(a.updateObjectBackboneClassification(s.clipId,i,e.Clips,T))}function h(i){l(a.addObjectsToClassification(i,[s.clipId],e.Clips,()=>o.success(p.getOnSuccessMessage("add",e.Clips)),()=>o.error(p.getOnErrorMessage("add",e.Clips))))}return n.jsxs(n.Fragment,{children:[n.jsx(M,{clipId:s.clipId,activeAction:A.Clips.EDIT_CLIP_CLASSIFICATIONS,currentUser:C.data}),n.jsx(F,{objectId:s.clipId,object:b.data,memberType:e.Clips,presentations:m.data,backboneClassificationTree:f.data,objectMappedClassifications:j.data,objectClassificationPaths:u,availableClassifications:c,onSaveBackboneClassification:I,onAddToClassification:h,objectMappedBackboneClassifications:r.data})]})}export{L as EditClipClassificationsView};
//# sourceMappingURL=BzMGR_dz.chunk.js.map
