module.exports=[65179,a=>{"use strict";var b=a.i(87924),c=a.i(61277),d=a.i(68114),e=a.i(72131);a.s(["Select",0,function({items:a,label:f,defaultValue:g,placeholder:h,prefixIcon:i,className:j}){let k=(0,e.useId)(),[l,m]=(0,e.useState)(!1);return(0,b.jsxs)("div",{className:(0,d.cn)("space-y-3",j),children:[(0,b.jsx)("label",{htmlFor:k,className:"block text-body-sm font-medium text-dark dark:text-white",children:f}),(0,b.jsxs)("div",{className:"relative",children:[i&&(0,b.jsx)("div",{className:"absolute left-4 top-1/2 -translate-y-1/2",children:i}),(0,b.jsxs)("select",{id:k,defaultValue:g||"",onChange:()=>m(!0),className:(0,d.cn)("w-full appearance-none rounded-lg border border-stroke bg-transparent px-5.5 py-3 outline-none transition focus:border-primary active:border-primary dark:border-dark-3 dark:bg-dark-2 dark:focus:border-primary [&>option]:text-dark-5 dark:[&>option]:text-dark-6",l&&"text-dark dark:text-white",i&&"pl-11.5"),children:[h&&(0,b.jsx)("option",{value:"",disabled:!0,hidden:!0,children:h}),a.map(a=>(0,b.jsx)("option",{value:a.value,children:a.label},a.value))]}),(0,b.jsx)(c.ChevronUpIcon,{className:"pointer-events-none absolute right-4 top-1/2 -translate-y-1/2 rotate-180"})]})]})}])}];

//# sourceMappingURL=src_components_FormElements_select_tsx_1mhvlsp._.js.map