@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.5 kB
JavaScript
import{a as y}from"./chunk-NK2E36AK.js";import"./chunk-46TTV6O7.js";import{a as _}from"./chunk-WM5A6BAU.js";import"./chunk-Y2PHG5VS.js";import"./chunk-MID2IYAR.js";import"./chunk-6GDWMGWO.js";import{Aa as r,Ba as l,Ca as C,Db as b,I as m,Ia as w,O as d,R as p,Xa as P,_ as c,ga as g,ka as u,rb as h,ta as f,tb as i,ua as v,za as s}from"./chunk-FYA6QUPZ.js";import"./chunk-WFIHWVQO.js";function T(n,t){n&1&&w(0)}function D(n,t){if(n&1&&u(0,T,1,0,"ng-container",3),n&2){let o=t;s("ngComponentOutlet",o.component)("ngComponentOutletInjector",o.injector)}}function M(n,t){n&1&&(r(0,"p",1),P(1,"This preview couldn't load. Close the wizard and open it again."),l())}function x(n,t){n&1&&(r(0,"div",2),C(1,"app-skeleton",4)(2,"app-skeleton",5)(3,"app-skeleton",6)(4,"app-skeleton",7)(5,"app-skeleton",7),l())}var N=class n{def=i.required();audience=i("admin");brandName=i("Acme Cloud");logoUrl=i("");logoText=i("A");injector=m(d);page=p(null);failed=p(!1);current={};load=h(()=>{let t=this.def(),o=this.current={};this.page.set(null),this.failed.set(!1),t.load().then(e=>{if(this.current!==o)return;let a=d.create({providers:e.providers,parent:this.injector});this.page.set({component:e.component,injector:a})}).catch(e=>{this.current===o&&(this.failed.set(!0),console.warn("theme wizard: preview page failed to load",t.id,e))})});static \u0275fac=function(o){return new(o||n)};static \u0275cmp=g({type:n,selectors:[["app-preview-page"]],inputs:{def:[1,"def"],audience:[1,"audience"],brandName:[1,"brandName"],logoUrl:[1,"logoUrl"],logoText:[1,"logoText"]},decls:4,vars:6,consts:[["inert","",3,"audience","active","brandName","logoUrl","logoText"],[1,"failed"],["aria-label","Loading preview",1,"loading"],[4,"ngComponentOutlet","ngComponentOutletInjector"],["sizeClass","h-7 w-56"],["sizeClass","h-4 w-80"],["sizeClass","mt-4 h-10 w-full"],["sizeClass","h-10 w-full"]],template:function(o,e){if(o&1&&(r(0,"app-preview-shell",0),f(1,D,1,2,"ng-container")(2,M,2,0,"p",1)(3,x,6,0,"div",2),l()),o&2){let a;s("audience",e.audience())("active",e.def().nav)("brandName",e.brandName())("logoUrl",e.logoUrl())("logoText",e.logoText()),c(),v((a=e.page())?1:e.failed()?2:3,a)}},dependencies:[b,y,_],styles:["[_nghost-%COMP%]{display:block;pointer-events:none;-webkit-user-select:none;user-select:none}.loading[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px;padding:28px}.failed[_ngcontent-%COMP%]{margin:28px;font-size:13px;color:var(--muted-foreground)}"]})};export{N as PreviewPageComponent};