1import{h as re,i as le}from"./chunk-Z4UY74ZX.js";import{$a as y,Bg as ee,Cb as P,Cg as te,Db as w,Eg as ie,Fa as c,Ib as h,If as R,Ig as ne,K as M,Kf as W,Kg as oe,Lc as O,Mg as ae,Nf as z,Ob as x,Pa as C,Pb as T,Qb as D,Sd as q,Se as L,Ub as F,W as _,Wd as V,Xf as U,ag as G,bb as S,be as B,da as v,gb as p,hb as r,hc as N,ia as s,ib as l,ja as u,jb as I,kc as g,lc as o,lg as H,m as f,mc as E,ng as J,qb as m,sb as d,sg as K,te as k,tf as $,tg as X,ub as b,ue as A,vf as j,wf as Q,wg as Y,xg as Z}from"./chunk-QZT25E7N.js";var pe=["queryInput"];function me(n,se){n&1&&I(0,"mat-spinner",4),n&2&&p("diameter",20)}function de(n,se){if(n&1){let t=m();r(0,"button",6),d("click",function(){s(t);let e=b();return u(e.clearSearch())}),r(1,"mat-icon"),h(2,"close"),l()()}}var je=(()=>{class n{constructor(){this.transloco=v(W),this.queryInput=E("queryInput"),this.placeholder=o("common.Search"),this.searchFields=o(),this.placeholderParams=o(),this.value="",this.valueChange=g(),this.searchEvent=g(),this.loading=o(!1),this.debounceMs=o(500),this.activeLang=R(this.transloco.langChanges$,{initialValue:this.transloco.getActiveLang()}),this.placeholderText=N(()=>{this.activeLang();let t=this.searchFields();if(t?.length){let i=t.map(e=>this.transloco.translate(e)).join(", ");return`${this.transloco.translate("common.SearchBy")} ${i}`}return this.transloco.translate(this.placeholder(),this.placeholderParams())}),this.destroyed$=new f(1)}ngAfterViewInit(){let t=this.queryInput();t&&t.update.pipe(M(this.debounceMs()),_(this.destroyed$)).subscribe(()=>{this.searchEvent.emit()})}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete()}clearSearch(){this.value="",this.valueChange.emit(this.value),this.searchEvent.emit()}onInputChange(t){this.value=t,this.valueChange.emit(this.value)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=C({type:n,selectors:[["path-search-input"]],viewQuery:function(i,e){i&1&&P(e.queryInput,pe,5),i&2&&w()},inputs:{placeholder:[1,"placeholder"],searchFields:[1,"searchFields"],placeholderParams:[1,"placeholderParams"],value:"value",loading:[1,"loading"],debounceMs:[1,"debounceMs"]},outputs:{valueChange:"valueChange",searchEvent:"searchEvent"},decls:7,vars:4,consts:[["queryInput","ngModel"],["appearance","outline","subscriptSizing","dynamic",1,"search-input__field"],["matPrefix","",1,"search-input__icon"],["matInput","",3,"input","ngModelChange","placeholder","ngModel"],["matSuffix","",1,"search-input__spinner",3,"diameter"],["aria-label","Clear","matIconButton","","matSuffix","","tabindex","-1"],["aria-label","Clear","matIconButton","","matSuffix","","tabindex","-1",3,"click"]],template:function(i,e){if(i&1){let ue=m();r(0,"mat-form-field",1)(1,"mat-icon",2),h(2,"search"),l(),r(3,"input",3,0),d("input",function(a){return e.onInputChange(a.target.value)}),D("ngModelChange",function(a){return s(ue),T(e.value,a)||(e.value=a),u(a)}),l(),y(5,me,1,1,"mat-spinner",4)(6,de,3,0,"button",5),l()}i&2&&(c(3),p("placeholder",F(e.placeholderText())),x("ngModel",e.value),c(2),S(e.value&&e.loading()?5:e.value?6:-1))},dependencies:[O,k,q,V,B,A,G,U,H,J,$,Z,Y,K,X,Q,j,te,ee,L,ie,ne,oe,z,ae,le,re],styles:["[_nghost-%COMP%]{display:block;width:100%;--mat-form-field-outlined-container-shape: 4px}.search-input__field[_ngcontent-%COMP%]{width:100%}.search-input__icon[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);margin-right:.25rem}.search-input__field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:color-mix(in srgb,var(--mat-sys-on-surface-variant) 55%,transparent);opacity:1}.search-input__spinner[_ngcontent-%COMP%]{margin-right:.75rem}"]})}}return n})();export{je 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.