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