import{r as l,j as e}from"./vendor-BKmmeuxg.js";import{D as p,b as m,c as d,d as x}from"./dialog-B2gN9MvT.js";import{u as h}from"./use-lang-YfV87_zl.js";import{I as j}from"./icon-picker-iXyBXP6r.js";import{I as u}from"./input-DM0goJrn.js";import{S as f}from"./scroll-area-C8HGru-R.js";import{T as g}from"./tooltip-BsX7Z6vz.js";const N=({onSelect:s,value:a,name:o,placeholder:t})=>{const[n,r]=l.useState(!1),{dashboard:i}=h();return e.jsxs(e.Fragment,{children:[e.jsx(u,{required:!0,readOnly:!0,type:"text",name:o,value:a,placeholder:t||o,onClick:()=>r(!0)}),e.jsx(g,{delayDuration:0,children:e.jsx(p,{open:n,onOpenChange:r,children:e.jsx(m,{className:"p-0",children:e.jsxs(f,{className:"max-h-[90vh] p-6",children:[e.jsx(d,{className:"mb-6",children:e.jsx(x,{children:i.icon_picker})}),e.jsx(j,{onSelect:c=>{s(c),r(!1)}})]})})})})]})};export{N as I};
