import{Aa as u,Da as s,ga as f,xa as i}from"./chunk-SKPDQO4E.js";var d=function(r,t,e,n){var y=arguments.length,o=y<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,t,e,n);else for(var c=r.length-1;c>=0;c--)(l=r[c])&&(o=(y<3?l(o):y>3?l(t,e,o):l(t,e))||o);return y>3&&o&&Object.defineProperty(t,e,o),o},a=class{el;constructor(t){this.el=t}onlyNumber;onKeyDown(t){let e=t;if(this.onlyNumber){if([46,8,9,27,13,109,110,189,190].indexOf(e.keyCode)!==-1||e.keyCode===65&&(e.ctrlKey||e.metaKey)||e.keyCode===67&&(e.ctrlKey||e.metaKey)||e.keyCode===86&&(e.ctrlKey||e.metaKey)||e.keyCode===88&&(e.ctrlKey||e.metaKey)||e.keyCode>=35&&e.keyCode<=39)return;(e.shiftKey||e.keyCode<48||e.keyCode>57)&&(e.keyCode<96||e.keyCode>105)&&e.preventDefault()}else return}static ctorParameters=()=>[{type:f}];static propDecorators={onlyNumber:[{type:u}],onKeyDown:[{type:s,args:["keydown",["$event"]]}]}};a=d([i({selector:"[onlyNumber]",standalone:!0})],a);export{a};
