module.exports=[48972,a=>{"use strict";a.s(["clamp",0,function(a,[b,c]){return Math.min(c,Math.max(b,a))}])},438905,495163,a=>{"use strict";let b=(0,a.i(578447).default)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);a.s(["default",0,b],495163),a.s(["ArrowUpRight",0,b],438905)},405058,a=>{"use strict";var b=a.i(542082),c=a.i(438905),d=a.i(167418);a.s(["ExternalLink",0,({href:a,children:e,className:f,iconClassName:g,...h})=>(0,b.jsxs)("a",{href:a,target:"_blank",rel:"noreferrer noopener",className:(0,d.cn)("text-sm text-muted-foreground underline underline-offset-2 inline-flex items-center gap-1 hover:text-primary ml-1 group/link font-mono uppercase transition-colors",f),...h,children:[e,(0,b.jsx)(c.ArrowUpRight,{className:(0,d.cn)("shrink-0 size-3.5 text-muted-foreground opacity-60 group-hover/link:text-primary inline",g)})]})])},158782,a=>{"use strict";let b=(0,a.i(578447).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);a.s(["default",0,b])},228592,a=>{"use strict";var b=a.i(158782);a.s(["Pencil",()=>b.default])},813647,103260,a=>{"use strict";let b=(0,a.i(578447).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);a.s(["default",0,b],103260),a.s(["Copy",0,b],813647)},734296,a=>{"use strict";let b=(0,a.i(578447).default)("lock-open",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]);a.s(["default",0,b])},389115,a=>{"use strict";var b=a.i(542082),c=a.i(734296),c=c,d=a.i(228592),e=a.i(888409),f=a.i(204511);a.i(225526);var g=a.i(213923);function h({credentialReferenceId:a}){return(0,b.jsxs)(g.Badge,{variant:"code",className:"flex items-center gap-2",children:[(0,b.jsx)(f.Lock,{className:"w-4 h-4"}),a]})}var i=a.i(405058),j=a.i(542752),k=a.i(167418),l=a.i(888890),m=a.i(64075);let n=({children:a,className:c})=>(0,b.jsx)("div",{className:(0,k.cn)("text-sm font-medium leading-none",c),children:a}),o=({children:a,className:c})=>(0,b.jsx)("div",{className:(0,k.cn)("flex w-full text-sm",c),children:a});a.s(["ViewExternalAgentDetails",0,function({externalAgent:a,credentialBadge:f,tenantId:p,projectId:q,className:r}){let{data:{canEdit:s}}=(0,j.useProjectPermissionsQuery)(),t=a=>new Date(a).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"});return(0,b.jsxs)("div",{className:(0,k.cn)("space-y-8",r),children:[(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsx)("div",{className:"flex items-center gap-3",children:(0,b.jsxs)("div",{children:[(0,b.jsx)("h2",{className:"text-xl font-medium tracking-tight",children:a.name}),(0,b.jsx)("p",{className:"text-sm text-muted-foreground",children:"External agent details"})]})}),s&&(0,b.jsx)(l.Button,{asChild:!0,children:(0,b.jsxs)(e.default,{href:`/${p}/projects/${q}/external-agents/${a.id}/edit`,children:[(0,b.jsx)(d.Pencil,{className:"w-4 h-4"}),"Edit"]})})]}),(0,b.jsxs)("div",{className:"space-y-8",children:[a.description&&(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(n,{children:"Description"}),(0,b.jsx)(o,{children:(0,b.jsx)("p",{className:"text-sm text-muted-foreground",children:a.description})})]}),(0,b.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(n,{children:"Created At"}),(0,b.jsx)(o,{children:t(a.createdAt)})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(n,{children:"Updated At"}),(0,b.jsx)(o,{children:t(a.updatedAt)})]})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(n,{children:"Base URL"}),(0,b.jsx)(m.CopyableSingleLineCode,{code:a.baseUrl})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(n,{children:"Credential"}),(0,b.jsx)(o,{className:"items-center",children:a.credentialReferenceId?(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[f??(0,b.jsx)(h,{credentialReferenceId:a.credentialReferenceId}),(0,b.jsx)(i.ExternalLink,{href:`/${p}/projects/${q}/credentials/${a.credentialReferenceId}`,className:"text-xs",children:"view credential"})]}):(0,b.jsxs)(g.Badge,{variant:"warning",className:"flex items-center gap-2",children:[(0,b.jsx)(c.default,{className:"w-4 h-4"}),"Unsecured"]})})]})]})]})}],389115)}];

//# sourceMappingURL=_0thrh83._.js.map