@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) • 2.98 kB
JavaScript
import{b as B}from"./chunk-MID2IYAR.js";import{a as h}from"./chunk-7A4HO4AV.js";import{Aa as i,Ba as a,Ca as b,Ja as x,K as u,L as m,La as C,Na as o,R as g,Xa as p,Za as y,_ as l,ga as v,ta as d,tb as _,ua as s,za as f}from"./chunk-FYA6QUPZ.js";function T(t,n){t&1&&(i(0,"span",4),p(1,"\u2713 Copied"),a())}function k(t,n){if(t&1&&(b(0,"app-icon",5),p(1)),t&2){let e=o(2);l(),y(" ",e.label()," ")}}function V(t,n){if(t&1){let e=x();i(0,"button",3),C("click",function(){u(e);let r=o();return m(r.copy())}),d(1,T,2,0,"span",4)(2,k,2,1),a()}if(t&2){let e=o();f("disabled",!e.text()),l(),s(e.copied()?1:2)}}function D(t,n){t&1&&(i(0,"span",7),p(1,"\u2713"),a())}function E(t,n){t&1&&b(0,"app-icon",8)}function S(t,n){if(t&1){let e=x();i(0,"app-button",6),C("click",function(){u(e);let r=o();return m(r.copy())}),d(1,D,2,0,"span",7)(2,E,1,0,"app-icon",8),a()}if(t&2){let e=o();f("ariaLabel",e.label())("title",e.label()),l(),s(e.copied()?1:2)}}function M(t,n){t&1&&(i(0,"span",4),p(1,"\u2713 Copied"),a())}function N(t,n){if(t&1&&(i(0,"span"),p(1),a()),t&2){let e=o(2);l(),y("\u29C9 ",e.label())}}function I(t,n){if(t&1){let e=x();i(0,"button",9),C("click",function(){u(e);let r=o();return m(r.copy())}),d(1,M,2,0,"span",4)(2,N,2,1,"span"),a()}if(t&2){let e=o();l(),s(e.copied()?1:2)}}var w=class t{text=_.required();label=_("Copy");variant=_("pill");copied=g(!1);copy(){navigator.clipboard.writeText(this.text()).then(()=>{this.copied.set(!0),setTimeout(()=>this.copied.set(!1),1500)}).catch(()=>{})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=v({type:t,selectors:[["app-copy-button"]],inputs:{text:[1,"text"],label:[1,"label"],variant:[1,"variant"]},decls:3,vars:1,consts:[["type","button",1,"inline-flex","w-full","items-center","justify-center","gap-1.5","px-2.5","py-3","text-[12.5px]","text-brand-text","transition-colors","hover:bg-brand/12","disabled:opacity-50",3,"disabled"],["variant","ghost","size","icon-sm",3,"ariaLabel","title"],["type","button",1,"inline-flex","items-center","gap-1.5","rounded-md","bg-surface","px-2.5","py-1","text-xs","font-medium","text-muted-foreground","ring-1","ring-border-strong","hover:bg-muted"],["type","button",1,"inline-flex","w-full","items-center","justify-center","gap-1.5","px-2.5","py-3","text-[12.5px]","text-brand-text","transition-colors","hover:bg-brand/12","disabled:opacity-50",3,"click","disabled"],[1,"text-success"],["name","copy",1,"h-[15px]","w-[15px]"],["variant","ghost","size","icon-sm",3,"click","ariaLabel","title"],[1,"text-xs","text-success"],["name","copy",1,"h-3.5","w-3.5"],["type","button",1,"inline-flex","items-center","gap-1.5","rounded-md","bg-surface","px-2.5","py-1","text-xs","font-medium","text-muted-foreground","ring-1","ring-border-strong","hover:bg-muted",3,"click"]],template:function(e,c){e&1&&d(0,V,3,2,"button",0)(1,S,3,3,"app-button",1)(2,I,3,1,"button",2),e&2&&s(c.variant()==="footer"?0:c.variant()==="icon"?1:2)},dependencies:[h,B],encapsulation:2})};export{w as a};