1import{a as O,b as P,c as N,g as k,l as A,m as B,n as V}from"./chunk-3PKXTD2W.js";import{F as R,c as T,g as w,l as z,p as H}from"./chunk-CCAIO3DI.js";import{ca as D}from"./chunk-CPCUZ5AC.js";import{Ab as f,Cb as M,Cc as F,Ec as S,Fb as c,Kb as a,Lb as o,Mb as v,Qa as u,Tb as I,Vb as h,bb as i,hc as l,ic as g,jc as b,kc as L,nb as y,pd as E,ta as C,uc as x,vb as d}from"./chunk-2FVBSKPS.js";function j(e,n){e&1&&v(0,"cramo-icon",3)}function q(e,n){if(e&1&&(a(0,"mat-hint"),l(1),o()),e&2){let s=h();i(),g(s.hint)}}function G(e,n){if(e&1&&(a(0,"mat-hint",4),l(1),o()),e&2){let s=h();i(),L("",s.currentLength(),"/",s.maxLengthHint,"")}}var it=(()=>{let n=class n{constructor(){this.maxLengthHint=null,this.isLoading=!1,this.focusFunc=null,this.type="text",this.isReadonly=!1,this.subscriptSizing=u("fixed"),this.errorMessageMap=u({}),this.currentLength=y(0)}set control(r){if(r instanceof z)this._control=r;else throw new Error("The control must be an instance of FormControl")}get control(){return this._control}ngOnInit(){this.currentLength.set(this.control.value?.length??0)}handleChange(r){this.currentLength.set(r.target.value.length)}};n.\u0275fac=function(p){return new(p||n)},n.\u0275cmp=C({type:n,selectors:[["cramo-input"]],inputs:{maxLengthHint:"maxLengthHint",hint:"hint",label:"label",isLoading:"isLoading",focusFunc:"focusFunc",type:"type",isReadonly:"isReadonly",subscriptSizing:[1,"subscriptSizing"],errorMessageMap:[1,"errorMessageMap"],control:"control"},standalone:!0,features:[x],decls:10,vars:14,consts:[["appearance","outline","color","primary",3,"subscriptSizing"],["color","primary"],["matInput","","autocomplete","autocompleteIsOn",3,"input","focus","change","formControl","type","readonly"],["iconName","spinner",1,"spinner"],["align","end"]],template:function(p,t){p&1&&(a(0,"mat-form-field",0)(1,"mat-label",1),l(2),o(),a(3,"input",2),I("input",function(m){return t.handleChange(m)})("focus",function(){return t.focusFunc&&t.focusFunc()})("change",function(m){return t.handleChange(m)}),o(),d(4,j,1,0,"cramo-icon",3),a(5,"mat-error"),l(6),F(7,"errorMessage"),o(),d(8,q,2,1,"mat-hint")(9,G,2,2,"mat-hint",4),o()),p&2&&(M("is-read-only",t.isReadonly),f("subscriptSizing",t.subscriptSizing()),i(2),g(t.label),i(),f("formControl",t.control)("type",t.type)("readonly",t.isReadonly),i(),c(t.isLoading?4:-1),i(2),b(" ",S(7,11,t.control.errors,t.errorMessageMap())," "),i(2),c(t.hint?8:-1),i(),c(t.maxLengthHint?9:-1))},dependencies:[E,B,A,k,O,N,P,R,T,w,H,D,V],styles:["[_nghost-%COMP%]{width:100%;display:grid;position:relative}cramo-icon[_ngcontent-%COMP%]{position:absolute;right:0;top:16px} .is-read-only{cursor:not-allowed} .is-read-only .mat-mdc-text-field-wrapper{background-color:#f7f7f7;color:#d1d3d4;pointer-events:none}"]});let e=n;return e})();export{it 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.