import{r as e,j as a}from"./vendor-react-AXa6hZO5.js";import{o as n}from"./c6eedc03a-C8LSdtro.js";import{aD as i,aE as t}from"./index-D35RxkWr.js";const r=e.memo(({children:e,className:i})=>a.jsx("div",{className:n("flex-1 flex flex-col min-h-0 overflow-hidden bg-bg-000 border border-border-300 rounded-xl p-5",i),children:e}));function c(e,a){const{wiggleEnabled:n}=a;let i;i="plugin"===e.source?"plugin":"anthropic"===e.creatorType?"anthropic":"organization"===e.partitionBy?"admin":"user";const r=t(e),c="organization"===e.partitionBy;return{id:e.skillId,name:e.skillName,description:e.skillDescription,metadata:{sourceType:i,updatedAt:e.updatedAt,isArchived:!e.enabled},capabilities:{canEdit:r&&n,canDelete:r&&n,canArchive:!c&&"plugin"!==i&&n,canReplace:r&&n,canTryInChat:e.enabled&&n}}}function o(e,a){const{plugin:n}=a;return{id:e.name,name:i(e.name),description:e.description,metadata:{sourceType:"plugin",updatedAt:n.updatedAt??null,isArchived:!1,pluginContext:{pluginId:n.id,pluginName:n.name}},capabilities:{canEdit:!1,canDelete:!1,canArchive:!1,canReplace:!1,canTryInChat:!0}}}r.displayName="FileContentContainer";export{r as F,o as a,c as b};
