@fntio/infra-client
Version:
Self-hosted AWS access portal: credential vending, target-account trust, and grant-driven private networking as CDK stacks and constructs.
2 lines (1 loc) • 1.27 kB
JavaScript
import{b as y}from"./chunk-MID2IYAR.js";import{Aa as p,Ba as m,Ca as g,Na as l,Oa as u,Pa as b,Wa as f,_ as r,ga as d,qb as x,ta as i,tb as o,ua as s,za as c,zb as h}from"./chunk-FYA6QUPZ.js";var v=["*"];function D(n,t){if(n&1&&g(0,"app-icon",0),n&2){let e=l();c("name",e.icon())("strokeWidth",2)}}var C=class n{tone=o("gray");cnt=o(!1,{transform:h});icon=o(void 0);classes=x(()=>{let t="inline-flex items-center gap-1 whitespace-nowrap rounded-full text-[11.5px] font-medium ",e=this.cnt()?"h-5 min-w-5 justify-center px-1.5 tabular-nums":"h-5 px-[9px]";return`${t}${e} ${{brand:"bg-brand/12 text-brand-text",gray:"bg-muted text-muted-foreground",green:"bg-success-muted text-success",red:"bg-danger-muted text-danger",amber:"bg-warning-muted text-warning",dashed:"bg-transparent text-placeholder border border-dashed border-border-strong"}[this.tone()]}`});static \u0275fac=function(e){return new(e||n)};static \u0275cmp=d({type:n,selectors:[["app-badge"]],inputs:{tone:[1,"tone"],cnt:[1,"cnt"],icon:[1,"icon"]},ngContentSelectors:v,decls:3,vars:3,consts:[[1,"h-3","w-3",3,"name","strokeWidth"]],template:function(e,a){e&1&&(u(),p(0,"span"),i(1,D,1,2,"app-icon",0),b(2),m()),e&2&&(f(a.classes()),r(),s(a.icon()?1:-1))},dependencies:[y],encapsulation:2})};export{C as a};