var v=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var c=(r,t)=>{for(var l in t)v(r,l,{get:t[l],enumerable:!0})},P=(r,t,l,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of g(t))!u.call(r,n)&&n!==l&&v(r,n,{get:()=>t[n],enumerable:!(i=a(t,n))||i.enumerable});return r};var d=r=>P(v({},"__esModule",{value:!0}),r);var B={};c(B,{default:()=>w});module.exports=d(B);var f=require("@chakra-ui/icons"),o=require("@chakra-ui/react"),h=require("react"),e=require("react/jsx-runtime"),s=({options:r,onChange:t,defaultValue:l,isOpen:i,onOpen:n,onClose:m})=>(0,e.jsxs)(o.Popover,{isOpen:i,onClose:m,isLazy:!0,children:[(0,e.jsx)(o.PopoverTrigger,{children:(0,e.jsx)(o.Button,{fontWeight:"semibold",textAlign:"left",overflow:"hidden",w:"full",size:"sm",rightIcon:(0,e.jsx)(f.ChevronDownIcon,{}),variant:"outline",onClick:n,children:(0,e.jsx)(o.Text,{textAlign:"left",w:"full",children:l?.label})})}),(0,e.jsx)(o.PopoverContent,{p:"0",minW:"40",w:"fit-content",maxH:"72",overflowY:"auto",children:(0,e.jsx)(o.PopoverBody,{p:"0",children:r.map((p,x)=>(0,e.jsxs)(o.Flex,{onClick:()=>{t(p),m()},bg:p?.value===l?.value?"muted":"initial",p:"1.5",cursor:"pointer",_hover:{bg:"muted"},children:[(0,e.jsx)(o.Box,{children:p?.icon}),(0,e.jsx)(o.Text,{fontSize:"14px",ml:1,children:p.label})]},x))})})]}),w=s;
