import{j as t}from"./sikshya-admin-sikshya-react-E_TY_un4.js";import{M as h}from"./sikshya-admin-MultiCoursePicker-DaYqVcOk.js";import{ad as l}from"./sikshya-admin-sikshya-vendor-BVAk_Gwu.js";function k(o){const{value:a,onChange:r,label:s,placeholder:i,hint:n,className:c,perPage:u,reserveHintSpace:m,density:p}=o;return t.jsxs("div",{className:c,children:[s?t.jsx("p",{className:"mb-1 text-xs font-medium uppercase tracking-wide text-slate-500 dark:text-slate-400",children:s}):null,t.jsx(h,{value:a>0?[a]:[],onChange:e=>{if(!e.length){r(0);return}r(e[e.length-1]??0)},maxSelection:1,placeholder:i??l("Click to choose a course…","sikshya"),hint:n,title:l("Select a course","sikshya"),perPage:u??20,reserveHintSpace:m,density:p})]})}export{k as S};
