import{r as e,u as s,j as a,M as t}from"./vendor--leCAzSo.js";import{o as l}from"./ca9c256b9-7brFE8T2.js";import{a3 as d}from"./index-DZuQva-j.js";var n=(e=>(e.User="user",e.Admin="admin",e.Anthropic="anthropic",e.Shared="shared",e.Plugin="plugin",e))(n||{});const i=e.memo(({addedBy:e,addedByName:l,lastUpdated:n,userInvocable:i})=>{const c=s();return a.jsxs("div",{className:"flex gap-8",children:[a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("span",{className:"font-small text-text-500",children:a.jsx(t,{defaultMessage:"Added by",id:"mGXoWbZIBO"})}),a.jsx("span",{className:"font-base text-text-100",children:l||a.jsx(r,{source:e})})]}),n&&a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("span",{className:"font-small text-text-500",children:a.jsx(t,{defaultMessage:"Last updated",id:"0ICwq5Kcsu"})}),a.jsx("span",{className:"font-base text-text-100",children:n})]}),void 0!==i&&a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsx("span",{className:"font-small text-text-500",children:a.jsx(t,{defaultMessage:"Trigger",id:"B3Q5mz5Qnl"})}),a.jsx(d,{content:!1===i?c.formatMessage({defaultMessage:"Claude runs this skill automatically when it's relevant to your request.",id:"TE9B6ZPGgR"}):c.formatMessage({defaultMessage:"Appears in the / menu. Claude can also run it automatically when relevant.",id:"eFWPHBACre"}),children:a.jsx("span",{className:"font-base text-text-100 cursor-help underline decoration-dotted decoration-border-300 underline-offset-4",tabIndex:0,children:!1===i?a.jsx(t,{defaultMessage:"Auto",id:"NXI/XLSYwc"}):a.jsx(t,{defaultMessage:"Slash command + auto",id:"BSG7BDwEdL"})})})]})]})});i.displayName="CustomizeDetailMetadataProperties";const r=e.memo(({source:e})=>{switch(e){case"user":return a.jsx(t,{defaultMessage:"You",id:"kJ5W29okWR"});case"admin":return a.jsx(t,{defaultMessage:"Your admin",id:"AHXAjK1m4h"});case"anthropic":return a.jsx(t,{defaultMessage:"Anthropic",id:"LftgYRq5hB"});case"shared":return a.jsx(t,{defaultMessage:"Shared with you",id:"7fx3MwRt4t"});case"plugin":return a.jsx(t,{defaultMessage:"Plugin",id:"mVkTZZgH2a"})}});r.displayName="AddedByLabel";const c=e.memo(({description:e,tooltip:s})=>a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsxs("div",{className:"flex items-center gap-0.5",children:[a.jsx("h3",{className:"font-small text-text-500 leading-4",children:a.jsx(t,{defaultMessage:"Description",id:"Q8Qw5BZ1VA"})}),a.jsx(d,{content:s,children:a.jsx("span",{className:"flex items-center cursor-default",children:a.jsx(l,{className:"w-4 h-4 text-text-500"})})})]}),a.jsx("p",{className:"font-base text-text-300 whitespace-pre-wrap",children:e.replace(/\\n/g,"\n")})]}));c.displayName="DescriptionRow";const o=e.memo(({name:e,actionsSlot:s,addedBy:t,addedByName:l,lastUpdated:d,userInvocable:n,description:r,children:o})=>{const x=t||r;return a.jsxs("div",{className:"flex flex-col h-full px-6 pb-6 gap-2",children:[a.jsxs("div",{className:"flex items-start justify-between pt-4 pb-3 min-h-14",children:[a.jsx("div",{className:"flex-1 min-w-0",children:a.jsx("h2",{className:"font-large-bold text-text-100 truncate",children:e})}),s]}),t&&a.jsx(i,{addedBy:t,addedByName:l,lastUpdated:d,userInvocable:n}),r&&a.jsx(c,{description:r.content,tooltip:r.tooltip}),x&&a.jsx("div",{className:"flex items-center h-8",children:a.jsx("hr",{className:"flex-1 border-border-300"})}),o]})});o.displayName="CustomizeDetailPanel";export{n as A,o as C};
