import{ob as g,ub as C,v as h}from"./chunk-VIDKHCPM.js";import{$b as o,Bb as d,Dc as c,Ia as s,_b as r,ac as f,hc as m,kb as a,lb as p,vc as l,wc as u}from"./chunk-BMP7OUUE.js";var F=(()=>{class i{emitFiles(e){let t=e&&e.item(0);this.onChange(t),this.file=t}constructor(e){this.host=e,this.file=null}writeValue(e){this.host.nativeElement.value="",this.file=null}registerOnChange(e){this.onChange=e}registerOnTouched(e){}static{this.\u0275fac=function(t){return new(t||i)(p(s))}}static{this.\u0275cmp=d({type:i,selectors:[["app-file-upload"]],hostBindings:function(t,n){t&1&&m("change",function(x){return n.emitFiles(x.target.files)})},features:[c([{provide:h,useExisting:i,multi:!0}])],decls:6,vars:1,consts:[[1,"file-drop-area"],["mat-raised-button","","color","primary"],["type","file",1,"file-input"]],template:function(t,n){t&1&&(r(0,"div",0)(1,"button",1),l(2,"Choose file"),o(),r(3,"span"),l(4),o(),f(5,"input",2),o()),t&2&&(a(4),u(n.file?n.file.name:" or drag and drop file here"))},dependencies:[C,g],styles:[".file-drop-area[_ngcontent-%COMP%]{border:1px dashed #7c7db3;border-radius:3px;position:relative;max-width:100%;margin-top:5px;padding:26px 20px 30px;transition:.2s}.file-input[_ngcontent-%COMP%]{position:absolute;left:0;top:0;height:100%;width:100%;cursor:pointer;opacity:0}.file-msg[_ngcontent-%COMP%]{display:inline-block;margin-left:5px;font-size:12px;font-weight:500;color:#5b5bff}"]})}}return i})();export{F as a};
