import{L as d,k as x}from"./dVzHJMF1.js";const h=(l,n,u=!1)=>{const r=d(u?n:"_inputRef");function m(s){let t=document.getElementById(s);if(!t)return;const e=[".p-inputtext",".p-select",".p-multiselect",".p-textarea",".p-button",".p-checkbox",".p-radio"].join(",");return t.matches(e)||(t=t.querySelector(e)),t}if(x(l,s=>{s&&setTimeout(()=>{var e,o,c,f,p,i,a;const t=u?((f=(c=(o=(e=r.value)==null?void 0:e.$refs)==null?void 0:o.selectRef)==null?void 0:c.$refs)==null?void 0:f.focusInput)??((i=(p=r.value)==null?void 0:p.$refs)==null?void 0:i.focusInput):m(n);t&&((a=t==null?void 0:t.focus)==null||a.call(t))},100)}),u)return r};export{h as u};
