1import{a as T}from"./chunk-3IRW6MAO.js";import{a as A}from"./chunk-4Z5MUJO3.js";import{G as q,a as S,e as z,j as E,p as N}from"./chunk-LJH5OBMW.js";import{$b as M,Cb as v,Eb as m,Gb as h,Ka as p,Lb as d,Mb as l,Nb as c,Ob as g,Pc as w,Sc as I,Tc as n,Xb as C,Yc as D,Zb as _,_b as x,cb as r,jc as s,lc as y,mc as f,ob as k,oc as P,zc as O}from"./chunk-PMSJWPYZ.js";import{h as F}from"./chunk-NIF3MU5U.js";var b=F(A());var j=["*"];function V(i,R){if(i&1&&(l(0,"div",4),f(1),c()),i&2){let o=_();r(),P(" ",o.label()," ")}}function B(i,R){i&1&&(l(0,"span",6),f(1,"*"),c())}var U=(()=>{class i{label=n();size=n("small");fill=n(!1);disabled=n(!1);inactive=n(!1);requiredMarker=n(!1);value=n(!1);checked=D(!1);autofocus=n(!1);name=n();form=n();onChange=I();formControl=w(()=>this.form()?.get(this.name())??new E(this.checked()));checkboxId=(0,b.uniqueId)("checkbox-");checkboxErrorId=(0,b.uniqueId)("checkbox-error-");constructor(){p(()=>{let o=this.formControl(),t=this.value();t&&o.value!==t&&o.setValue(t)}),p(()=>this.disabled()?this.formControl().disable({onlySelf:!0}):this.formControl().enable({onlySelf:!0}))}onChangeEvent(o){let t=o.target;this.checked.set(t.checked),this.onChange.emit()}preventIfInactive(o){this.inactive()&&o.preventDefault()}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=k({type:i,selectors:[["trn-checkbox"]],inputs:{label:[1,"label"],size:[1,"size"],fill:[1,"fill"],disabled:[1,"disabled"],inactive:[1,"inactive"],requiredMarker:[1,"requiredMarker"],value:[1,"value"],checked:[1,"checked"],autofocus:[1,"autofocus"],name:[1,"name"],form:[1,"form"]},outputs:{checked:"checkedChange",onChange:"onChange"},ngContentSelectors:j,decls:10,vars:38,consts:[[1,"checkbox-wrapper"],["type","checkbox",3,"change","pointerdown","keydown","click","id","name","checked","value","formControl","autofocus"],[3,"SROnly","control","id"],[3,"for"],[1,"checkbox-label"],[1,"checkbox-content"],["aria-hidden","true"],[1,"checkbox-error-wrapper"],[3,"SRAnnouncement","control"]],template:function(t,e){t&1&&(x(),l(0,"div",0)(1,"input",1),C("change",function(a){return e.onChangeEvent(a)})("pointerdown",function(a){return e.preventIfInactive(a)})("keydown",function(a){return e.preventIfInactive(a)})("click",function(a){return e.preventIfInactive(a)}),c(),g(2,"trn-input-error",2),l(3,"label",3),m(4,V,2,1,"div",4),l(5,"div",5),M(6),m(7,B,2,0,"span",6),c()()(),l(8,"div",7),g(9,"trn-input-error",8),c()),t&2&&(r(),s("ng-invalid",e.formControl().invalid)("ng-dirty",e.formControl().dirty)("ng-touched",e.formControl().touched)("small",e.size()==="small")("large",e.size()==="large"),d("id",e.checkboxId)("name",e.name())("checked",e.checked())("value",e.formControl().value)("formControl",e.formControl())("autofocus",e.autofocus()),v("aria-required",e.requiredMarker()||null)("aria-invalid",e.formControl().invalid?"true":"false")("aria-describedby",e.checkboxErrorId)("aria-errormessage",e.checkboxErrorId)("aria-controls",e.checkboxErrorId),r(),d("SROnly",!0)("control",e.formControl())("id",e.checkboxErrorId),r(),y(O("checkbox-label ",e.size())),s("disabled",e.formControl().disabled)("fill",e.fill()),d("for",e.checkboxId),r(),h(e.label()?4:-1),r(),s("with-required-marker",e.requiredMarker()),r(2),h(e.requiredMarker()?7:-1),r(2),d("SRAnnouncement",!1)("control",e.formControl()))},dependencies:[q,S,z,N,T],styles:[".checkbox-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:4px}input[_ngcontent-%COMP%]{transition:all .15s cubic-bezier(.35,0,0,1);appearance:none;line-height:inherit;background-image:url(/assets/svg/font-icons/check_box_outline_blank.svg);background-position:center;background-repeat:no-repeat;background-size:contain;width:16px;height:16px;cursor:pointer;padding-right:16px}input[_ngcontent-%COMP%]:checked{background-image:url(/assets/svg/font-icons/check_box.svg)}input[_ngcontent-%COMP%]:indeterminate{background-image:url(/assets/svg/font-icons/indeterminate_check_box.svg)}input[_ngcontent-%COMP%]:disabled{color:#00844940;opacity:.55}input.small[_ngcontent-%COMP%]{width:16px;height:16px}input.large[_ngcontent-%COMP%]{width:18px;height:18px}input.ng-invalid.ng-dirty[_ngcontent-%COMP%], input.ng-invalid.ng-touched[_ngcontent-%COMP%]{color:#e3000f}input[_ngcontent-%COMP%]:focus-visible{outline-style:solid;outline-width:3px;outline-color:#003ab8;outline-offset:2px;outline-offset:0;border-radius:2px}.checkbox-label[_ngcontent-%COMP%]{transition:all .15s cubic-bezier(.35,0,0,1);cursor:pointer}.checkbox-label.small[_ngcontent-%COMP%]{font-size:14px;line-height:20px;letter-spacing:normal}
1.checkbox-label.medium[_ngcontent-%COMP%]{font-size:14px;line-height:20px;letter-spacing:normal;display:flex;align-items:center;min-height:24px}.checkbox-label.large[_ngcontent-%COMP%]{font-size:16px;line-height:28px;letter-spacing:normal}.checkbox-label.disabled[_ngcontent-%COMP%]{pointer-events:none;color:#0000008c}.checkbox-content.with-required-marker[_ngcontent-%COMP%] *{display:inline}.checkbox-content[_ngcontent-%COMP%] a{color:#007a48;text-decoration:underline}@media(hover:hover){.checkbox-content[_ngcontent-%COMP%] a:hover{color:#004a28}}.checkbox-error-wrapper[_ngcontent-%COMP%]{margin-left:20px}"]})}return i})();export{U as a};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.