@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.18 kB
JavaScript
import{Da as s,Ea as c,Fa as b,Ka as p,Ma as m,Wa as a,_ as l,ga as d,sa as r,tb as n,wb as g,zb as u}from"./chunk-FYA6QUPZ.js";var h=class i{checked=g(!1);disabled=n(!1,{transform:u});ariaLabel=n("");toggle(t){t.stopPropagation(),this.checked.set(!this.checked())}static \u0275fac=function(o){return new(o||i)};static \u0275cmp=d({type:i,selectors:[["app-toggle"]],inputs:{checked:[1,"checked"],disabled:[1,"disabled"],ariaLabel:[1,"ariaLabel"]},outputs:{checked:"checkedChange"},decls:2,vars:7,consts:[["type","button","role","switch",1,"relative","block","h-5","w-9","shrink-0","rounded-full","transition-colors","disabled:opacity-50","motion-reduce:transition-none",3,"click","disabled"],[1,"absolute","top-0.5","h-4","w-4","rounded-full","bg-white","shadow-[0_1px_2px_rgba(0,0,0,0.3)]","transition-all","motion-reduce:transition-none"]],template:function(o,e){o&1&&(s(0,"button",0),m("click",function(f){return e.toggle(f)}),b(1,"span",1),c()),o&2&&(a(e.checked()?"bg-brand":"bg-border-strong"),p("disabled",e.disabled()),r("aria-checked",e.checked())("aria-label",e.ariaLabel()||null),l(),a(e.checked()?"left-[1.125rem]":"left-0.5"))},encapsulation:2})};export{h as a};