import{Ba as c,Ca as g,Cb as D,Da as f,ha as p,xa as l}from"./chunk-SKPDQO4E.js";var v=function(o,e,t,a){var n=arguments.length,r=n<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,t):a,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,e,t,a);else for(var s=o.length-1;s>=0;s--)(i=o[s])&&(r=(n<3?i(r):n>3?i(e,t,r):i(e,t))||r);return n>3&&r&&Object.defineProperty(e,t,r),r},u=class{sanitizer;files=new p;background="#e8f7ff";constructor(e){this.sanitizer=e}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.background="#a6dbf7"}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.background="#e8f7ff"}onDrop(e){e.preventDefault(),e.stopPropagation(),this.background="#e8f7ff";let t=e.dataTransfer.files;t.length>0&&this.files.emit(t)}static ctorParameters=()=>[{type:D}];static propDecorators={files:[{type:c}],background:[{type:g,args:["style.background"]}],onDragOver:[{type:f,args:["dragover",["$event"]]}],onDragLeave:[{type:f,args:["dragleave",["$event"]]}],onDrop:[{type:f,args:["drop",["$event"]]}]}};u=v([l({standalone:!0,selector:"[fileDragDrop]"})],u);export{u as a};
