"use strict";(self.webpackChunk_ytsaurus_ui=self.webpackChunk_ytsaurus_ui||[]).push([[1686],{29450:(e,s,r)=>{r.r(s),r.d(s,{DefaultSubjectCard:()=>d,SubjectName:()=>p,makeSubjectIcon:()=>o}),r(77810);var a=r(76872),n=r(45760),t=r(33547),c=r(71285),u=r(90699),l=r(64922),i=(0,a.A)("yt-subject-link");function o(e){switch(e){case"user":return(0,l.jsx)(n.I,{className:i("icon-svg"),size:16,data:c.A});case"group":return(0,l.jsx)(n.I,{className:i("icon-svg"),size:16,data:u.A});default:return}}function d(e){var s=e.className,r=e.name,a=e.type,n=void 0===a?"user":a,c=e.url,u=e.internal,i=e.noLink,d=e.showIcon,m=u?function(e,s){switch(e){case"user":return"/".concat(t.YT.cluster,"/users?filter=").concat(s);case"group":return"/".concat(t.YT.cluster,"/groups?groupFilter=").concat(s);default:return}}(n,r):c,f=d?o(n):void 0;return(0,l.jsx)(p,{className:s,name:r,type:n,url:i?void 0:m,icon:f})}function p(e){var s=e.name,r=e.type,a=void 0===r?"user":r,n=e.url,t=e.children,c=e.icon,u=e.className;return(0,l.jsxs)("a",{className:i({type:a},u),href:n,title:"string"==typeof s?s:void 0,target:"_blank",rel:"noopener noreferrer",children:[c?(0,l.jsx)("span",{className:i("icon"),children:c}):null,(0,l.jsx)("span",{className:i("name"),children:null!=s?s:t})]})}}}]);
//# sourceMappingURL=default-subject-link.37c4223e.chunk.js.map