import{ac as e,r as o,i as s}from"./index-D8tPjwDN.js";import{r as t}from"./reduce-C-cHtDxk.js";const p=e("settingTestTube",(()=>{const e=o(void 0),p=o(),r=o({}),l=o(void 0),a=s((()=>t(((e,o)=>(e[o.projId]=o,e)),{},l.value||[]))),d=s((()=>t(((e,o)=>(e[o.key]=o,e)),{},e.value||[])));return{bloodTypes:e,setBloodTypes:o=>{e.value=o},supportedProjects:l,setSupportedProjects:e=>{l.value=e;const o={};e&&e.length&&(e.forEach((e=>{const{supportBloodTypes:s}=e;s&&s.length&&s.forEach((s=>{if(o[s]){let t=[...o[s],e];o[s]=t}else o[s]=[e]}))})),r.value=o)},projectIdMap:a,bloodTypeKeyMap:d,projIdsBySampleMap:r,selectedBloodTypeKey:p,setSelectedBloodTypeKey:e=>{p.value=e}}}),{persist:!0});export{p as u};
