import{d as a}from"./p-28b0e0a8.js";const s=a=>{a&&(a.preventDefault(),a.stopPropagation())},o=a=>a.target,i=a=>{var s;return(null===(s=a.nativeInput)||void 0===s?void 0:s.value)||""},l=(a,s)=>{var o,i;const l=(null===(o=a.nativeInput)||void 0===o?void 0:o.value)||"",r=null===(i=s.target)||void 0===i?void 0:i.selectionStart;return l.slice(0,r)+s.key+l.slice(r+Math.abs(0))},r=a=>{a.nativeInput&&a.nativeInput.blur()},t=(a,o)=>{(a.disabled||a.readonly)&&o.target&&o.target===a.el&&s(o)},v=async s=>{var o;await a(),null===(o=null==s?void 0:s.nativeInput)||void 0===o||o.focus()},d=(a,o)=>{(a.disabled||a.readonly)&&s(o)},n=(a,s)=>{a.disabled||a.readonly||!a.balClick||a.balClick.emit(s)},e=(a,s)=>{a.focused=!0,a.inputValue=a.value,!a.disabled&&a.balFocus&&a.balFocus.emit(s)},u=(a,s,o)=>{a.value=s,a.inputValue=a.value,clearTimeout(o),o=setTimeout((()=>{a.nativeInput&&(a.nativeInput.value=a.value)}))},c=(a,s)=>{a.focused=!1,!a.disabled&&a.balBlur&&a.balBlur.emit(s)},m=a=>{a.value!==a.inputValue&&(a.value=a.inputValue,a.balChange.emit(a.value))};export{d as a,t as b,v as c,r as d,c as e,m as f,o as g,n as h,e as i,u as j,l as k,i as l,s}