UNPKG

@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) • 8.96 kB
import{b as S}from"./chunk-MID2IYAR.js";import{Aa as p,Ba as s,Ca as y,Da as x,Ea as C,Eb as Y,I as q,Ia as H,Ja as D,K as b,Ka as z,L as f,La as V,Ma as G,Na as u,Oa as g,Pa as d,R as F,Ra as R,Sa as U,Ta as O,Ua as E,Wa as w,Xa as T,Ya as X,Za as N,_ as r,da as W,ga as c,ka as Q,nb as J,qb as K,sa as A,sb as B,ta as v,tb as i,ua as h,ub as L,za as m,zb as _}from"./chunk-FYA6QUPZ.js";var ne=[[["","pageHeader",""]],"*",[["","floatingBar",""]]],oe=["[pageHeader]","*","[floatingBar]"],Z=class o{fill=i(!1);tabbed=i(!1);static \u0275fac=function(e){return new(e||o)};static \u0275cmp=c({type:o,selectors:[["app-page"]],hostAttrs:[1,"relative","flex","min-h-0","min-w-0","flex-1","flex-col"],inputs:{fill:[1,"fill"],tabbed:[1,"tabbed"]},ngContentSelectors:oe,decls:7,vars:4,consts:[[1,"min-h-0","min-w-0","flex-1","overflow-y-auto","[scrollbar-gutter:stable_both-edges]"],[1,"pointer-events-none","absolute","inset-x-0","bottom-6","z-20","flex","justify-center"]],template:function(e,t){e&1&&(g(ne),x(0,"div"),d(1),C(),x(2,"div",0)(3,"div"),d(4,1),C()(),x(5,"div",1),d(6,2),C()),e&2&&(w("min-w-0 shrink-0 px-8 pt-8 shadow-[0_4px_6px_-4px_rgba(16,24,40,0.12)] "+(t.tabbed()?"pb-0":"pb-6")),r(3),w("px-[25px] py-6"+(t.fill()?" flex h-full min-h-0 flex-col":"")))},encapsulation:2})};var ie=["trigger"],re=["bubble"],ae=["*"],le=288,$=8,P=class o{text=i.required();trigger=L.required("trigger");bubble=L.required("bubble");renderer=q(W);open=F(null);ngOnInit(){this.renderer.appendChild(document.body,this.bubble().nativeElement)}ngOnDestroy(){this.bubble().nativeElement.remove()}show(){let n=this.trigger().nativeElement.getBoundingClientRect(),e=Math.min(Math.max($,n.left),window.innerWidth-$-le),t=window.innerHeight-n.bottom>88;this.open.set(t?{left:e,top:n.bottom+6}:{left:e,bottom:window.innerHeight-n.top+6})}hide(){this.open.set(null)}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=c({type:o,selectors:[["app-tooltip"]],viewQuery:function(e,t){e&1&&(R(t.trigger,ie,5),R(t.bubble,re,5)),e&2&&U(2)},hostAttrs:[1,"relative","inline-flex"],inputs:{text:[1,"text"]},ngContentSelectors:ae,decls:6,vars:8,consts:[["trigger",""],["bubble",""],["title","",1,"inline-flex",3,"mouseenter","mouseleave","focusin","focusout"],["role","tooltip",1,"pointer-events-none","fixed","z-[70]","w-max","max-w-[18rem]","whitespace-normal","rounded-lg","border","border-border","bg-popover","px-3","py-2","text-xs","leading-relaxed","text-surface-foreground","shadow-toast",3,"hidden"]],template:function(e,t){if(e&1){let a=D();g(),x(0,"span",2,0),G("mouseenter",function(){return b(a),f(t.show())})("mouseleave",function(){return b(a),f(t.hide())})("focusin",function(){return b(a),f(t.show())})("focusout",function(){return b(a),f(t.hide())}),d(2),C(),x(3,"div",3,1),T(5),C()}if(e&2){let a,l,M;r(3),E("left",(a=t.open())==null?null:a.left,"px")("top",(l=t.open())==null?null:l.top,"px")("bottom",(M=t.open())==null?null:M.bottom,"px"),z("hidden",!t.open()),r(2),N(" ",t.text()," ")}},encapsulation:2})};var j=class o{text=i.required();static \u0275fac=function(e){return new(e||o)};static \u0275cmp=c({type:o,selectors:[["app-info-tooltip"]],hostAttrs:[1,"inline-flex"],inputs:{text:[1,"text"]},decls:3,vars:1,consts:[[3,"text"],["type","button","aria-label","More info",1,"grid","h-4","w-4","place-items-center","rounded-full","text-muted-foreground","transition-colors","hover:text-surface-foreground","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-ring"],["name","info",1,"h-3.5","w-3.5"]],template:function(e,t){e&1&&(p(0,"app-tooltip",0)(1,"button",1),y(2,"app-icon",2),s()()),e&2&&m("text",t.text())},dependencies:[S,P],encapsulation:2})};var se=[[["","headerSubtitle",""]],[["","headerActions",""]],"*",[["","headerSearch",""]]],de=["[headerSubtitle]","[headerActions]","*","[headerSearch]"];function pe(o,n){o&1&&(p(0,"div",0),d(1,3),s())}function ce(o,n){if(o&1&&y(0,"app-info-tooltip",7),o&2){let e=u(2);m("text",e.subtitleInfo())}}function me(o,n){if(o&1&&(p(0,"div",4)(1,"p",6),T(2),s(),v(3,ce,1,1,"app-info-tooltip",7),s()),o&2){let e=u();r(2),N(" ",e.subtitle()," "),r(),h(e.subtitleInfo()?3:-1)}}var ee=class o{title=i.required();subtitle=i("");showHeaderSearch=i(!0,{transform:_});subtitleInfo=i("");static \u0275fac=function(e){return new(e||o)};static \u0275cmp=c({type:o,selectors:[["app-page-header"]],hostAttrs:[1,"flex","flex-col","gap-2"],inputs:{title:[1,"title"],subtitle:[1,"subtitle"],showHeaderSearch:[1,"showHeaderSearch"],subtitleInfo:[1,"subtitleInfo"]},ngContentSelectors:de,decls:10,vars:3,consts:[[1,"flex","min-h-[38px]","justify-end"],[1,"flex","flex-wrap","items-end","justify-between","gap-4"],[1,"min-w-0"],[1,"ui-title","-mt-0.5"],[1,"mt-1","flex","items-start","gap-1.5"],[1,"flex","shrink-0","items-center","gap-3"],[1,"max-w-[65ch]","text-pretty","text-sm","text-muted-foreground"],[1,"mt-0.5","shrink-0",3,"text"]],template:function(e,t){e&1&&(g(se),v(0,pe,2,0,"div",0),p(1,"div",1)(2,"div",2)(3,"h1",3),T(4),s(),v(5,me,4,2,"div",4),d(6),s(),p(7,"div",5),d(8,1),s()(),d(9,2)),e&2&&(h(t.showHeaderSearch()?0:-1),r(4),X(t.title()),r(),h(t.subtitle()?5:-1))},dependencies:[j],encapsulation:2})};var ue=["*"];function be(o,n){o&1&&d(0)}function fe(o,n){if(o&1){let e=D();p(0,"button",3),V("click",function(a){b(e);let l=u();return f(l.onActivate(a))}),H(1,4),s()}if(o&2){let e=u(),t=O(1);w(e.classes()),A("title",e.title()||null),r(),m("ngTemplateOutlet",t)}}function ge(o,n){if(o&1){let e=D();p(0,"button",6),V("click",function(a){b(e);let l=u(2);return f(l.onRemove(a))}),y(1,"app-icon",7),s()}if(o&2){let e=u(2);m("disabled",e.removeDisabled()),r(),m("strokeWidth",2.4)}}function ve(o,n){if(o&1&&(p(0,"span"),H(1,4),v(2,ge,2,2,"button",5),s()),o&2){let e=u(),t=O(1);w(e.classes()),A("title",e.title()||null),r(),m("ngTemplateOutlet",t),r(),h(e.removable()?2:-1)}}var te=class o{tone=i("neutral");color=i(null);tintClass=i(null);removable=i(!1,{transform:_});removeDisabled=i(!1,{transform:_});clickable=i(!1,{transform:_});selected=i(!1,{transform:_});title=i("");removed=B();activated=B();classes=K(()=>{let n=this.clickable(),e=!!this.color(),t=n&&this.selected(),a="inline-flex min-w-0 max-w-full items-center overflow-hidden whitespace-nowrap font-medium "+(n?"rounded-md transition-colors ":"rounded-full ")+(n&&!e?"ring-1 ring-inset ":""),l=this.removable()?"h-5 gap-1.5 pl-2.5 pr-[5px] text-xs ":n?"h-5 gap-1 px-2 text-xs ":"h-5 gap-1 px-2 text-[11px] ";if(e)return a+l+(t?"role-chip role-chip-selected":"role-chip");if(this.tintClass())return a+l+this.tintClass();let M={neutral:this.removable()?"bg-muted text-surface-foreground":n?t?"bg-brand/20 text-brand-text ring-[var(--brand)]":"bg-brand/10 text-brand-text ring-brand/25 hover:bg-brand/15 hover:ring-brand/40":"bg-muted text-muted-foreground",brand:n?t?"bg-brand/20 text-brand ring-[var(--brand)]":"bg-brand/10 text-brand ring-brand/25 hover:bg-brand/15 hover:ring-brand/40":"bg-brand/10 text-brand",warning:n?t?"bg-warning-muted text-warning ring-[var(--warning)]":"bg-warning-muted text-warning ring-warning/25 hover:ring-warning/40":"bg-warning-muted text-warning",success:n?t?"bg-success-muted text-success ring-[var(--success)]":"bg-success-muted text-success ring-success/25 hover:ring-success/40":"bg-success-muted text-success"};return a+l+M[this.tone()]});onActivate(n){n.stopPropagation(),this.activated.emit()}onRemove(n){n.stopPropagation(),this.removed.emit()}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=c({type:o,selectors:[["app-chip"]],hostAttrs:[1,"inline-flex","min-w-0","max-w-full"],hostVars:2,hostBindings:function(e,t){e&2&&E("--role-c",t.color()||null)},inputs:{tone:[1,"tone"],color:[1,"color"],tintClass:[1,"tintClass"],removable:[1,"removable"],removeDisabled:[1,"removeDisabled"],clickable:[1,"clickable"],selected:[1,"selected"],title:[1,"title"]},outputs:{removed:"removed",activated:"activated"},ngContentSelectors:ue,decls:4,vars:1,consts:[["content",""],["type","button",3,"class"],[3,"class"],["type","button",3,"click"],[3,"ngTemplateOutlet"],["type","button","aria-label","Remove",1,"flex","h-4","w-4","shrink-0","items-center","justify-center","rounded-full","text-muted-foreground","transition","hover:bg-border-strong","hover:text-surface-foreground","active:scale-90","active:bg-border-strong","disabled:opacity-50","disabled:active:scale-100",3,"disabled"],["type","button","aria-label","Remove",1,"flex","h-4","w-4","shrink-0","items-center","justify-center","rounded-full","text-muted-foreground","transition","hover:bg-border-strong","hover:text-surface-foreground","active:scale-90","active:bg-border-strong","disabled:opacity-50","disabled:active:scale-100",3,"click","disabled"],["name","x",1,"h-[9px]","w-[9px]",3,"strokeWidth"]],template:function(e,t){e&1&&(g(),Q(0,be,1,0,"ng-template",null,0,J),v(2,fe,2,4,"button",1)(3,ve,3,5,"span",2)),e&2&&(r(2),h(t.clickable()?2:3))},dependencies:[S,Y],encapsulation:2})};export{Z as a,P as b,j as c,ee as d,te as e};