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) • 1.25 kB
import{a as u}from"./chunk-PU4UT4HF.js";import{Aa as a,Ba as c,Ca as l,I as n,Oa as p,Pa as m,U as r,Xa as d,ga as i,ia as s,sb as f}from"./chunk-FYA6QUPZ.js";var b=["*"];function g(o,e){o&1&&d(0,"Loading more\u2026")}var v=class o{static \u0275fac=function(t){return new(t||o)};static \u0275cmp=i({type:o,selectors:[["app-load-more"]],hostAttrs:[1,"block"],ngContentSelectors:b,decls:4,vars:0,consts:[[1,"flex","items-center","justify-center","gap-2","py-6","text-sm","text-muted-foreground"]],template:function(t,x){t&1&&(p(),a(0,"div",0),l(1,"app-spinner"),m(2,0,null,g,1,0),c())},dependencies:[u],encapsulation:2})};var h=class o{host=n(r);reached=f();observer;constructor(){this.observer=new IntersectionObserver(e=>{e.some(t=>t.isIntersecting)&&this.reached.emit()},{root:this.scrollParent(),rootMargin:"400px 0px"}),this.observer.observe(this.host.nativeElement)}scrollParent(){let e=this.host.nativeElement.parentElement;for(;e;){let t=getComputedStyle(e).overflowY;if(t==="auto"||t==="scroll")return e;e=e.parentElement}return null}ngOnDestroy(){this.observer.disconnect()}static \u0275fac=function(t){return new(t||o)};static \u0275dir=s({type:o,selectors:[["","appInfiniteScroll",""]],outputs:{reached:"reached"}})};export{v as a,h as b};