import{C as y}from"./chunk-2YE7XEKS.js";import{Ab as b,Mb as g,Ob as v,Qb as f,Zb as a,_b as l,cd as r,gc as h,hc as _,hd as x,jb as d,jc as u,kc as C,va as c,wa as m,wc as E,yc as s}from"./chunk-UNHECMG2.js";function R(e,o,n){return n?e.filter(k(o,n)):e}function k(e,o){let n=M(o);return i=>e.some(t=>D(i[t],n))}function D(e,o){return e?M(String(e)).includes(o):!1}function M(e){return y(e.toLowerCase())}function S(e,o){if(e&1){let n=h();a(0,"button",5),u("click",function(){c(n);let t=C();return m(t.value.set(""))}),a(1,"i",2),s(2,"clear"),l()()}}var z=(()=>{class e{constructor(){this.value=x(""),this.disabled=r(!1),this.placeholder=r(""),this.label=r("")}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=b({type:e,selectors:[["bkd-resettable-input"]],inputs:{value:[1,"value"],disabled:[1,"disabled"],placeholder:[1,"placeholder"],label:[1,"label"]},outputs:{value:"valueChange"},decls:6,vars:7,consts:[[1,"input-group"],["id","resettable-input",1,"input-group-text"],[1,"material-icons"],["type","text","aria-describedby","resettable-input",1,"form-control",3,"input","value","disabled"],["type","button",1,"clear","btn","btn-link","text-decoration-none"],["type","button",1,"clear","btn","btn-link","text-decoration-none",3,"click"]],template:function(i,t){i&1&&(a(0,"div",0)(1,"span",1)(2,"i",2),s(3,"search"),l()(),a(4,"input",3),u("input",function(p){return t.value.set(p.target==null?null:p.target.value)}),l(),v(5,S,3,0,"button",4),l()),i&2&&(d(4),E("has-value",t.value()),_("value",t.value())("disabled",t.disabled()),g("placeholder",t.placeholder())("aria-label",t.label()),d(),f(t.value()?5:-1))},styles:["input.has-value[_ngcontent-%COMP%]{padding-right:2.5em}.btn.clear[_ngcontent-%COMP%]{position:absolute;right:0;z-index:5;padding-left:.5rem;padding-right:.5rem}"]})}}return e})();export{R as a,z as b};
