import{f as a,e as m,j as e,B as r,a as p}from"./main-gLMaKCvr.js";import{A as n}from"./index-DUqcjVqJ.js";import{f as l}from"./utils-D2B0dIuM.js";import{T as c}from"./index-ZwmWfN3I.js";import"./index-Ci9o3BMm.js";import"./Table-CWRWFg95.js";import"./addEventListener-BwXlid1p.js";import"./Dropdown-CSp8FTqG.js";import"./index-B-_sZvQI.js";import"./index-Jdu54dr5.js";import"./index-DEhiFitC.js";import"./index-CjYZg4K2.js";import"./index-B__zS0KG.js";import"./index-BrNLqRge.js";import"./index-ByQpjXWK.js";import"./UpOutlined-CEatmWIN.js";import"./index-DDpcHwmR.js";import"./study-page-BLC-2qgz.js";import"./usePagination-DK-N3QaW.js";import"./index-Das8pPKs.js";import"./index-CWqFacgc.js";import"./callSuper-DlyBkZi7.js";import"./index-BpTPZbHm.js";import"./index-D1xRfB3g.js";import"./index-D2XNTdXQ.js";import"./DeleteOutlined-CBRh7405.js";import"./index-B6vjdRJB.js";import"./rgb-BwIoVOhg.js";import"./index-4ifBGcWk.js";const O=()=>{const[s,t]=a.useMessage(),{project:o}=m(),i=async()=>{await p.post(`/fast-api/add-sample-analysis?project=${o}`),a.success("导入成功!")};return e.jsxs(e.Fragment,{children:[t,e.jsx(c,{items:[{key:"ngs-sample-qc",label:"NGS样本质控",children:e.jsx(e.Fragment,{children:e.jsx(n,{cardExtra:e.jsx(r,{onClick:i,children:"从样本导入"}),analysisMethod:[{name:"fastp_clean_reads",label:"fastp_clean_reads",inputKey:["fastp_clean_reads"],mode:"multiple"}],analysisPipline:"ngs-sample-qc",inputAnalysisMethod:[{name:"reads",label:"reads",inputKey:["V1_meta_genome_NGS_DNA","V1_single_genome_NGS_DNA"],mode:"multiple",type:"GroupSelectSampleButton",groupField:"sample_group",rules:[{required:!0,message:"该字段不能为空!"}]}],analysisType:"sample",children:e.jsx(d,{})})})}]}),e.jsx("p",{})]})},d=({plot:s,record:t})=>e.jsx(e.Fragment,{children:t&&e.jsx(e.Fragment,{children:e.jsxs(r,{onClick:()=>{s({url:l(t.content.html),tableDesc:""})},children:["查看报告(",t.sample_name,")"]})})});export{O as default};
