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) • 552 B
import{R as g,pb as c,qb as o,rb as u}from"./chunk-FYA6QUPZ.js";var n=5,h=n+1;function p(r,y){let l=g(""),t=g(n),d=o(()=>{let e=l().trim().toLowerCase();return e?r().filter(s=>y(s).toLowerCase().includes(e)):r()}),i=o(()=>d().slice(0,t())),a;return u(()=>{let e=r(),s=l();a&&(e!==a.rows||s!==a.query)&&c(()=>t.set(n)),a={rows:e,query:s}}),{query:l,matching:d,visible:i,more:o(()=>Math.min(n,d().length-i().length)),searchable:o(()=>r().length>=h),expanded:o(()=>i().length>n),showMore:()=>t.update(e=>e+n),showLess:()=>t.set(n)}}export{n as a,p as b};