(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,20236,e=>{"use strict";var t=e.i(43476),a=e.i(72670),r=e.i(75157),s=e.i(71645);e.s(["Select",0,function({items:e,label:l,defaultValue:o,placeholder:d,prefixIcon:n,className:i}){let c=(0,s.useId)(),[u,p]=(0,s.useState)(!1);return(0,t.jsxs)("div",{className:(0,r.cn)("space-y-3",i),children:[(0,t.jsx)("label",{htmlFor:c,className:"block text-body-sm font-medium text-dark dark:text-white",children:l}),(0,t.jsxs)("div",{className:"relative",children:[n&&(0,t.jsx)("div",{className:"absolute left-4 top-1/2 -translate-y-1/2",children:n}),(0,t.jsxs)("select",{id:c,defaultValue:o||"",onChange:()=>p(!0),className:(0,r.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",u&&"text-dark dark:text-white",n&&"pl-11.5"),children:[d&&(0,t.jsx)("option",{value:"",disabled:!0,hidden:!0,children:d}),e.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))]}),(0,t.jsx)(a.ChevronUpIcon,{className:"pointer-events-none absolute right-4 top-1/2 -translate-y-1/2 rotate-180"})]})]})}])}]);