1import{r as n,j as e,R as Cl}from"./index-CJQpyVoF.js";import{c as ft,d as Sa,L as Il,u as kl}from"./useUrlParam-CZ4aw4md.js";import{H as Dl,I as Pl,u as Tl,Y as Ql,q as Na,v as Gt,Z as Ll,_ as Rl,$ as Ml,a0 as Vl,a1 as Ol,a2 as Bl,a3 as Jl,a4 as zl,a5 as Hl,a6 as Yl}from"./closedloop-CW0AYqIJ.js";import{u as ql}from"./index-DNC8bdm4.js";import{u as Ul}from"./useFlowsManager-CR0liXE4.js";import{t as Ca}from"./evaluation_Back_btn-TkGGGTFd.js";import{c as Zl}from"./cloneDeep-CHjtKpoF.js";import{u as mt}from"./useTranslation-CZJVCIH1.js";import{F as Ia}from"./Table-B8VxV0Ub.js";import{P as ka}from"./Pagination-C67t5xY0.js";import{I as Ce}from"./index-CS8YAtyi.js";import{S as kt}from"./index-BQyCNz27.js";import{s as P,b as Da}from"./inviteCode-D9rgtvJs.js";import{M as _t}from"./index-CSwuRCeV.js";import{f as dt}from"./icon_nav_dropdown-B-gtXUyP.js";import{i as ba}from"./input-add-icon-C_hNQCQD.js";import{d as Ea,a as wa}from"./dotted_line_active-Cw-b990w.js";import{M as Xl}from"./index-DAiQgLq9.js";import{c as Wl}from"./close-BbMMJIja.js";import{a as Kl,s as Gl}from"./ai-CkZmoxhr.js";import{e as $l}from"./index-CiW30IE2.js";import{F as A}from"./index-ByGsukvN.js";import{B as xe}from"./button-COlcySkY.js";import{D as _l}from"./index-DMOhDS84.js";import{S as pt}from"./AppEntry-yGjZDq3c.js";import{R as ut}from"./LoadingOutlined-DiR_nqkD.js";import{f as ja}from"./fetch-IOhmRd8d.js";import{c as en}from"./modal-close-QVlieQPY.js";import{l as tt}from"./lodash-DQpAQgZ8.js";import{d as Be}from"./dayjs.min-MSV7X6E-.js";import{D as tn}from"./index-BGMd9W8Z.js";import{T as an}from"./index-U-K3gcoz.js";import{R as Ae}from"./index-BSH15dlR.js";import{C as Ct}from"./index-DXBw3zZr.js";import{T as Aa}from"./index-34CVpSRX.js";import"./tslib.es6-BO7bUXQ_.js";import"./debounce-qn1Id9XS.js";import"./isObjectLike-DQv7v4oa.js";import"./index-D4cn76_n.js";import"./index-D06cA49-.js";import"./reactflowUtils-CXcNnnOc.js";import"./utils-DBy4YQWF.js";import"./knowledge-B6Xt4n06.js";import"./v4-CtRu48qb.js";import"./flow-CtnwUseI.js";import"./agent-BXWiUnNP.js";import"./index-Cb4CfQq0.js";import"./Compact-BviLumD4.js";import"./styleChecker-Qlp7tQr6.js";import"./motion-BwoXtl0z.js";import"./addEventListener-B4p1orND.js";import"./DownOutlined-Bedvisqk.js";import"./conductUtil-BjxLXQtP.js";import"./context-DKhv_b6t.js";import"./index-D8n5n2bd.js";import"./index-TUPY4PN5.js";import"./index-Bzc9CXj1.js";import"./RightOutlined-DlN6rwzX.js";import"./EllipsisOutlined-DtZ6Tilt.js";import"./index-DnoH8i83.js";import"./Overflow-Dh_HYkSz.js";import"./PurePanel-CKKM5xpM.js";import"./reactNode-CvZomqk2.js";import"./ContextIsolator-hwtSycux.js";import"./collapse-BbEVqHco.js";import"./zoom-DpNIHBsI.js";import"./index-ad3S-Ulj.js";import"./useBreakpoint-Bpehexoc.js";import"./useForceUpdate-DvJ9yelE.js";import"./responsiveObserver-DyJXlrPc.js";import"./SearchOutlined-D1PhykWn.js";import"./CaretDownOutlined-Dv3U9ShB.js";import"./LeftOutlined-C7JmM6ZX.js";import"./useLocale-Dmo9Agcu.js";import"./compact-item-5orumCwJ.js";import"./CheckOutlined-DczzTUs8.js";import"./ActionButton-DJ1XBOXE.js";import"./index-Cbb5YXZ-.js";import"./fade-DU7Y_kU8.js";import"./Skeleton-CRGI6EI_.js";import"./row-BXqHUWkn.js";import"./userAuth-Bzc-YaEz.js";import"./base64-Cs2W2fcZ.js";import"./AntdIcon-BKgxT62r.js";import"./utils-BAxb0YWC.js";import"./UpOutlined-COHBlDPP.js";function ln({evalSetVerIdList:o,setShowEvaluationSetData:B}){ft();const[S,a]=n.useState(!1),[w,x]=n.useState({current:1,size:10}),[ee,pe]=n.useState([]),[F,he]=n.useState(0),{t:N}=mt(),[C,Z]=n.useState(),fe=(b,p)=>{x({current:b,size:p}),u(b,p)};n.useEffect(()=>{var p;const b=(p=o==null?void 0:o.map(m=>m[1]))==null?void 0:p.join(",");Z(b)},[w]);const u=(b=1,p=10,m="")=>{a(!0),Pl({current:b,size:p,evalSetVerId:C}).then(Y=>{const{records:Q,total:ge}=Y;if(Q.length===0&&ge>0){x({current:b-1,size:p}),u(b-1,p);return}pe(Q),he(ge)}).finally(()=>a(!1))};n.useEffect(()=>{C&&(u(),qe(),x({current:1,size:10}))},[C]);const X=[{title:"åºå·",width:60,minWidth:60,key:"index",render:(b,p,m)=>e.jsx("div",{children:(w.current-1)*w.size+m+1})},{width:100,minWidth:60,title:"æ°æ®æ¥æº",dataIndex:"source",key:"source",render:b=>b==="1"?"线ä¸":"线ä¸"}],[U,me]=n.useState([]),qe=async()=>Dl({evalSetVerId:C}).then(b=>{const p=b.map((m,Y)=>({title:m.name,width:240,key:m.name,dataIndex:m.name,render:Q=>e.jsx("div",{title:Q,className:"w-[240px] truncate",children:Q}),editable:!0,deleteable:Y!==0,setVerId:m.setVerId,headerId:m.id}));me(p)}),Ie=n.useMemo(()=>{const b=Zl(X);return b.splice(1,0,...U),b.map(p=>p!=null&&p.editable?{...p,onCell:m=>({record:m,dataIndex:p.dataIndex,required:!p.deleteable,title:p.title}),onHeaderCell:m=>({column:m,title:m.title,rename:!!m.editable})}:p)},[U,w]),y=n.useMemo(()=>[...X,...U].reduce((b,p)=>b+(p.width||p.minWidth||0),0),[U]),T=n.useMemo(()=>ee.length===0?y:"max-content",[ee,y]);return e.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[e.jsxs("div",{className:"flex items-center gap-2 my-6 cursor-pointer",onClick:()=>B(!1),children:[e.jsx("img",{src:Ca,className:"w-[18px] h-[18px]",alt:""}),e.jsxs("div",{className:"flex items-center gap-1 text-[#3D3D3D]",children:[e.jsx("span",{className:"font-medium",children:N("effectEvaluation.evaluationSetData.back")}),e.jsx("span",{className:"ml-[12px] text-[#979797] text-[14px]",children:N("effectEvaluation.evaluationSetData.evaluationSetDetail")})]})]}),e.jsxs("div",{className:"flex flex-col rounded-[18px] flex-1 overflow-hidden p-6 bg-[#FFFFFF] rounded-[18px] mb-6",children:[e.jsx("div",{className:"flex flex-col h-full overflow-auto",children:e.jsx(Ia,{loading:S,className:"evaluation-set-other
1-table dataset-detail-table",columns:Ie,dataSource:ee,pagination:!1,rowKey:b=>b==null?void 0:b.rowId,scroll:{x:T}})}),e.jsxs("div",{className:"relative flex items-center w-full pt-6 justify-cnter",children:[e.jsx("div",{className:"text-[#666666] text-sm absolute",children:N("effectEvaluation.evaluationSetData.totalDataCount",{total:F})}),e.jsx(ka,{className:"flow-pagination-tamplate custom-pagination",current:w.current,pageSize:w.size,total:F,onChange:fe,showSizeChanger:!0})]})]})]})}function $t({card:o,objectId:B,cardStates:S,setCardStates:a,evaluationNowObj:w,evalSetVerIdList:x,evalSetCards:ee,selectedEvaluationType:pe,isForbiddenInput:F,setWorkflowFields:he,workflowFields:N}){var Ie;const{t:C}=mt(),[Z,fe]=n.useState([]),u=ft(),X=n.useRef(null);n.useEffect(()=>{var Q,ge,at,Je,Ue;if(!w||w.length==0)return;let y="-1";((Q=w[1])==null?void 0:Q.label)!="èç¨¿çæ¬"&&(y=(ge=w[1])==null?void 0:ge.label);let T="-1";((at=w[1])==null?void 0:at.label)!="èç¨¿çæ¬"&&(T=(Je=w[1])==null?void 0:Je.value);const b={applicationId:(Ue=w[0])==null?void 0:Ue.value,applicationType:pe,applicationVersion:y,applicationVersionId:T};Tl(b).then(se=>{he(se)});let p=x.map(se=>se[se.length-1]);if((!p||p.length==0)&&S&&(p=Object.keys(S||{}).map(se=>se.split("-")[1]).filter(Boolean),p.includes("log")))return;const m=o.setVerId??o.id.split("-")[1],Y=p.findIndex(se=>String(se)===String(m));Y!==-1&&Ql({evalSetVerId:p}).then(se=>{const Ze=(se[Y]||[]).sort((oe,Fe)=>oe.sort-Fe.sort).map(oe=>({label:oe.name,value:oe.name,id:oe.id,hasAvailable:oe.hasAvailable}));fe(Ze)})},[B,o.datasetId,o.setVerId,x]);const U=(y,T)=>{const p={...(S[o.id]||{}).fieldIdMap};T===void 0?delete p[y]:p[y]=T;const m=N.map(Q=>Q.paramName),Y=[N.filter(Q=>Q.type==="sys").map(Q=>Q.paramName),N.filter(Q=>Q.type==="user").map(Q=>Q.paramName)];a(Q=>({...Q,[o.id]:{fieldIdMap:p,fieldOrder:m,promptVo:Y,workflowFields:N}}))},me=(y,T)=>{const b=Z.find(m=>m.value===T),p=b?b.id:void 0;U(y,p)},qe=(y,T)=>{const b=Z.find(m=>m.value===T),p=N.find(m=>m.paramName===y);if(pe===2&&p.type!="string"){P.warning("å½åæµè¯ä»»å¡åªæ¯æè¾å
¥stringç±»åï¼è¯·åå¾å½å工使µè°æ´æ¨çå¿
å¡«åæ°ç±»åï¼ææ´æ¢å
¶ä»çæ¬è¿è¡è¯æµ!");return}p!=null&&p.required&&(b!=null&&b.hasAvailable)?X.current=_t.confirm({title:C("effectEvaluation.unpublishedFlow.currentDataSetHasSomeRequiredParametersMissing"),content:e.jsxs("span",{children:[C("effectEvaluation.unpublishedFlow.mayCauseSomeDataEvaluationToFail"),e.jsx("span",{style:{color:"#1890ff",cursor:"pointer",textDecoration:"underline",marginLeft:4,marginRight:4},onClick:()=>{var m;(m=X.current)==null||m.destroy(),u(`/management/evaluation/dataset_detail?evaluationSetId=${o.id.split("-")[0]}&type=eval&versionId=${o.id.split("-")[1]}`)},children:C("effectEvaluation.unpublishedFlow.editEvaluationSet")}),C("effectEvaluation.unpublishedFlow.supplementAndThenEvaluate")]}),okText:C("effectEvaluation.unpublishedFlow.continueUsingTheDataSet"),cancelText:C("effectEvaluation.unpublishedFlow.cancel"),onOk:()=>me(y,T),onCancel:()=>{U(y,null)}}):me(y,T)};return(Ie=S[o.id])!=null&&Ie.selectedParams,e.jsxs("div",{className:"border border-[#E4EAFF] rounded-lg p-4 bg-white flex flex-col gap-3",children:[e.jsxs("div",{className:"text-[14px] font-normal leading-[24px] text-[#7F7F7F]",style:{fontFamily:"PingFang SC"},children:[C("effectEvaluation.unpublishedFlow.workflowInputMappingDataSetParameter")," ",o.onlineLogName||`${o.setName} / ${o.verName}`]}),e.jsxs("div",{className:"grid grid-cols-[minmax(120px,1fr)_minmax(200px,2fr)] gap-x-4 text-sm font-semibold text-gray-700",children:[e.jsx("div",{children:C("effectEvaluation.unpublishedFlow.workflowInput")}),e.jsx("div",{children:C("effectEvaluation.unpublishedFlow.dataset")})]}),e.jsx("div",{className:"grid grid-cols-[minmax(120px,1fr)_minmax(200px,2fr)] gap-x-4 gap-y-2",children:N==null?void 0:N.map(y=>{var T,b,p;return e.jsxs(Cl.Fragment,{children:[e.jsxs("div",{className:"text-sm text-gray-700 font-medium whitespace-nowrap truncate",children:[y.required&&e.jsx("span",{className:"text-red-500 mr-1",children:"*"}),!y.required&&e.jsx("span",{className:"text-red-500 mr-1",children:" "}),C("effectEvaluation.unpublishedFlow.field"),": ",y.paramName]}),o.isOnline?e.jsx(Ce,{disabled:!0,size:"middle",value:y.paramName,className:"w-full !bg-gray-100 !text-gray-500 !cursor-not-allowed"}):e.jsx(kt,{size:"middle",placeholder:C("effectEvaluation.unpublishedFlow.pleaseSelectDataSetParameter"),allowClear:!0,value:((b=(T=S[o.id])==null?void 0:T.fieldIdMap)==null?void 0:b[y.paramName])!==void 0?(p=Z.find(m=>m.id===S[o.id].fieldIdMap[y.paramName]))==null?void 0:p.value:void 0,onChange:m=>qe(y.paramName,m),options:Z,className:"w-full",disabled:F})]},y.paramName)})})]})}const It="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAALpSURBVFiF7Zg/SFtRFIe/eyMiQksGN0FeQSRuoYOTg0JpR81aJcniJuiaLurST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CZAeAejKLosNIOL9/tf580X2NkHUHYEgodAAAAAElFTkSuQmCC",sn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_370_36944'%3e%3crect%20x='0'%20y='0'%20width='14'%20height='14'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_370_36944)'%3e%3cg%3e%3cg%3e%3cpath%20d='M2.82808,2.8280700000000003Q2.330865,3.3252800000000002,1.263969,4.52674Q1.184747,4.61595,1.142374,4.7274899999999995Q1.1,4.83902,1.1,4.95833Q1.1,5.022349999999999,1.11249,5.08514Q1.124979,5.147930000000001,1.149478,5.2070799999999995Q1.173978,5.266220000000001,1.2095449999999999,5.31945Q1.245112,5.37268,1.290381,5.417949999999999Q1.335649,5.46322,1.388879,5.49879Q1.44211,5.5343599999999995,1.501256,5.55885Q1.560402,5.583349999999999,1.623191,5.59584Q1.6859806,5.6083300000000005,1.75,5.6083300000000005Q1.889333,5.6083300000000005,2.0164239999999998,5.55122Q2.143515,5.49411,2.23603,5.38993Q3.2773399999999997,4.217280000000001,3.7473099999999997,3.74732Q5.0946,2.4,7,2.4Q8.905380000000001,2.4,10.25269,3.7473099999999997Q11.6,5.09462,11.6,7Q11.6,8.905380000000001,10.25269,10.25269Q8.905380000000001,11.6,7,11.6Q5.09459,11.6,3.74732,10.25269Q3.6559,10.16126,3.53644,10.11178Q3.41699,10.0623,3.2877,10.0623Q3.22368,10.0623,3.16089,10.07479Q3.0981,10.08728,3.03895,10.11178Q2.97981,10.13628,2.92658,10.17185Q2.8733500000000003,10.20742,2.82808,10.25268Q2.78281,10.29795,2.74724,10.35118Q2.7116730000000002,10.40441,2.6871739999999997,10.46356Q2.662675,10.5227,2.650185,10.58549Q2.637696,10.64828,2.637696,10.7123Q2.637696,10.84159,2.687172,10.96104Q2.7366479999999997,11.08049,2.8280700000000003,11.17192L2.82898,11.17282Q4.55674,12.9,7,12.9Q9.443850000000001,12.9,11.17193,11.17193Q12.9,9.44386,12.9,7Q12.9,4.55614,11.17193,2.8280700000000003Q9.44386,1.1,7,1.1Q4.55611,1.1,2.82808,2.8280700000000003Z'%20fill-rule='evenodd'%20fill='%236356EA'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cpath%20d='M1.1,2.625Q1.1,2.5609806,1.11249,2.498191Q1.124979,2.435402,1.149478,2.376256Q1.173978,2.31711,1.2095449999999999,2.263879Q1.245112,2.210649,1.290381,2.165381Q1.335649,2.1201119999999998,1.388879,2.084545Q1.44211,2.048978,1.501256,2.024478Q1.560402,1.999979,1.623191,1.98749Q1.6859806,1.975,1.75,1.975Q1.8140194,1.975,1.876809,1.98749Q1.939598,1.999979,1.998744,2.024478Q2.05789,2.048978,2.111121,2.084545Q2.164351,2.1201119999999998,2.209619,2.165381Q2.2548880000000002,2.210649,2.290455,2.263879Q2.326022,2.31711,2.350522,2.376256Q2.3750210000000003,2.435402,2.38751,2.498191Q2.4,2.5609806,2.4,2.625L2.4,4.30833L4.08333,4.30833Q4.147349999999999,4.30833,4.21014,4.32082Q4.272930000000001,4.33331,4.3320799999999995,4.35781Q4.391220000000001,4.38231,4.44445,4.41788Q4.49768,4.45345,4.542949999999999,4.49871Q4.58822,4.5439799999999995,4.62379,4.5972100000000005Q4.6593599999999995,4.65044,4.68385,4.70959Q4.708349999999999,4.76873,4.72084,4.831519999999999Q4.7333300000000005,4.89431,4.7333300000000005,4.95833Q4.7333300000000005,5.022349999999999,4.72084,5.08514Q4.708349999999999,5.147930000000001,4.68385,5.2070799999999995Q4.6593599999999995,5.266220000000001,4.62379,5.31945Q4.58822,5.37268,4.542949999999999,5.417949999999999Q4.49768,5.46322,4.44445,5.49879Q4.391220000000001,5.5343599999999995,4.3320799999999995,5.55885Q4.272930000000001,5.583349999999999,4.21014,5.59584Q4.147349999999999,5.6083300000000005,4.08333,5.6083300000000005L1.75,5.6083300000000005Q1.6859806,5.6083300000000005,1.623191,5.59584Q1.560402,5.583349999999999,1.501256,5.55885Q1.44211,5.5343599999999995,1.388879,5.49879Q1.335649,5.46322,1.290381,5.417949999999999Q1.245112,5.37268,1.2095449999999999,5.31945Q1.173978,5.266220000000001,1.149478,5.2070799999999995Q1.124979,5.147930000000001,1.11249,5.08514Q1.1,5.022349999999999,1.1,4.95833L1.1,2.625Z'%20fill-rule='evenodd'%20fill='%236356EA'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",on="/assets/vessel-BK_pO4il.svg",rn="/assets/ai-CHjrLG6i.svg",cn="data:image/png;
1base64,iVBORw0KGgoAAAANSUhEUgAAAF4AAABuCAYAAACuqKTDAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAo+SURBVHic7Z3Pb9vIFce/Qw5/6AdtyzYTx8iibursYX30P+CeWh+86Bag0W6aItmDiz3kb4jyF/RQoAvokAYIkALhocUWRY7rW08+tEB6iI3ARV3HG8WyFVkSTZGcHizZsixxaIuSSC8/AP38LPLNzONoZvhmhibowlefFzVKkbVlqqDRkCRKyDEABUBcJYHnug3XIcqYVReO63fvTh7l88TrVv5hQNqVR4+Ycrx3cJNIjjJqRw1aMpd5kpI61O9oB6O4AaeOX1vZTSMt3rIdIgw7E6NEYMzFhFB8+lSvDDNdAgCPljeV4zH9tusRwr/kemI7wsfnf9HeDys9AgAPf7X/ieC6yrASjSoucPTMvLE3jLSEtZXddOL0E0Qge/+LvRvDSIs2VC0jCTU2jMTiQEom2oNfHNjP/po7HGQ6goRKapAJxBFZsacM4312kGlQD4LoiQqDBUAFEnkixz3oj5ZZ4w+vyPFgHO8SAqm3baqkPr7Z1Qb6tRsUP9F3xhjkiatc67kgtdzhTH6J/S+/Tpyw80aB5l3uIV2ReesDSHgYfGqUXAcN3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ZZWQH7dddUYTbXbvOjjj+ZPsCnXeXpY9WNikKYfP4hd7kh+EbHOK66Ww9eqSKM84Kf448T/9u64XQn9yfCNMZfsgArLMA7fg7rrBQA5VOjGfpCAdxUCoiq3iEAv+uyLXcQxu+gQiGFUqlLjB+89+5nJjpj0ulvuFcP8hCm1cbj75DFRXC87K47OWsmn384FP/xHx6Q3v9OOoXlSpCSBnb/7em4g4tb4IwWXW3bM1hd9XxnbzhiChsRRJQcshcX7ziLj/xJvNNg8VGObG0ha/SwNiJbD35plcseDufsQEn/1AucuqHC+Es2/sP19iRYBYAHXT/61C9fX3XHkdD5Ce+U/PzD1qqNOrN/6sI/BcaEXSn4z08+BWScmTRFIQzk6DVINz8zI/w2ThMbgAByAJCGUdpUKj1WwZ8CY8IWCjlEy1cu964Dfp4R6S8UBuPfjcybqiLXr4KuQfBSNrOiAlEAuTMa+VNcVUXOysqdoQW3ogKZlOCh7cNTG+A8bmucGRV+G4py+hK8C3HyyXpEAFRvd4yNF99BkKLQ8asodwBAmUKlhBcewf//ejY+eEkzKlOqjvCWCr1AMx8QvQqfZmkKvRNzgWb+5IznpHCRhE+JaS9m2lU3bT7nmGOOOeaYY4455phjjjnmmGOOOeaYY4455phjjjlmHP8H64mL4SSbkwUAAAAASUVORK5CYII=",pn="/assets/luoji-select-BI5vXJpE.png",fn="/assets/shuli-BlQ31d0g.png",mn="/assets/shuli-select-DxERk4yc.png",{TextArea:xn}=Ce,hn=new Xl({html:!0,breaks:!0,typographer:!0,linkify:!0}),gn="",vn=o=>{var lt;const{open:B,originData:S,selectedEvaluationType:a,botObjectEvaluationNow:w,objectEvaluationNow:x,dimensionName:ee,handleConfirmPrompt:pe,handleOk:F,handleCancel:he,finalMapping:N,evalSetSourceType:C,judgeModel:Z}=o,[fe]=A.useForm(),[u,X]=n.useState(""),[U,me]=n.useState(null),[qe,Ie]=n.useState(!1),[y,T]=n.useState(""),[b,p]=n.useState([]),[m,Y]=n.useState(!1),[Q,ge]=n.useState(!1),[at,Je]=n.useState(!1),[Ue,se]=n.useState(!1),[Dt,Ze]=n.useState(!1),oe=n.useRef(null),Fe=n.useRef(null),f=n.useRef(null),te=n.useRef(null);n.useRef("");const{t:h}=mt(),xt=Array.isArray(Z)?Z[0]:void 0,ea=()=>{const r=h("effectEvaluation.modelOptions",{returnObjects:!0});if(Array.isArray(r)){const M=r.find(j=>j.value===xt);return(M==null?void 0:M.label)||""}return""};h("effectEvaluation.debuggingPreview.agentInstructionType"),h("effectEvaluation.debuggingPreview.agentWorkflow");const Pt=()=>{var r,M,j,L,K,ye;switch(console.log("objectEvaluationNow:-----------",x),a){case 1:return w.name;case 2:return x[1]?`${(r=x[0])==null?void 0:r.title}-${(M=x[1])==null?void 0:M.title}`:`${(j=x[0])==null?void 0:j.title}`;case 3:return x[1]?`${(L=x[0])==null?void 0:L.title}-${(K=x[1])==null?void 0:K.title}`:`${(ye=x[0])==null?void 0:ye.title}`}};n.useEffect(()=>{if(B){if(!S){T(gn);return}T(S)}},[S,B]);const V=()=>
1{if(Ue)return;if(!y)return P.warning(h("effectEvaluation.debuggingPreview.promptCannotBeEmpty"));if(!ee)return P.warning(h("effectEvaluation.debuggingPreview.enterDimensionNameForOptimization"));se(!0);const r=new FormData;r.append("dimensionName",ee),r.append("input",y),r.append("judgeModel","1"),Na(r).then(M=>{const{code:j,data:L}=M;if(j===-1){P.error(M.message);return}T(L)}).finally(()=>{se(!1)})},ke=()=>{pe(y)},Tt=()=>{Ie(!1),X(""),me(""),Y(!1)},ze=()=>{f.current&&(f.current.abort(),f.current=null),te.current&&(te.current.abort(),te.current=null),Tt(),he()},ht=r=>{var ye,G,De,Pe,Te;console.log("objectEvaluationNowï¼",x);const{input:M,target:j}=fe.getFieldsValue();b.find($=>$.botId===j);const L=new FormData;switch(L.append("type",a),L.append("input",M),L.append("output",r),L.append("promptDebug",y),L.append("dimensionName",ee),L.append("judgeModel",xt),a){case 1:{L.append("prompt",w.prompt);break}case 2:{L.append("assistantId",(ye=x[0])==null?void 0:ye.value);break}case 3:{L.append("assistantId",x[0].value);let $="-1";(G=x[1])!=null&&G.title&&!["èç¨¿çæ¬","Draft Version"].includes((De=x[1])==null?void 0:De.title)&&($=(Pe=x[1])==null?void 0:Pe.value),L.append("versionId",$);break}}te.current=new AbortController;let K="";ja("/astron-api/eval/dimension/scoreSse",{method:"POST",body:L,signal:(Te=te.current)==null?void 0:Te.signal,async onopen($){if($.ok)console.log("Connection established");else throw new Error("Failed to connect")},onmessage($){const Qe=$.data;if(Qe==="[DONE]"){te.current.abort(),te.current=null,Y(!1),Ie(!0);const re=$l(K);me(re!==null?{reason:re.Reason,score:re.Score}:{reason:null,score:null})}else{const re=JSON.parse(Qe);K+=re.content}},onerror($){console.log("[ error ]",$),Y(!1),Ie(!0),te.current.abort(),te.current=null,me({reason:null,score:null})},openWhenHidden:!0})},[ta,g]=n.useState();n.useEffect(()=>{Fe.current&&(Fe.current.scrollTop=Fe.current.scrollHeight)},[u]);const W=async()=>{var Pe,Te,$,Qe,re,Xe,J,He,bt,Et,ce;try{await fe.validateFields()}catch{return}if(m)return;const{target:r,input:M}=fe.getFieldsValue(),{inputs:j={}}=fe.getFieldsValue(),L={};(Pe=N==null?void 0:N.workflowFields)==null||Pe.forEach(D=>{L[D.paramName]=j[D.paramName]??""});const K=a;ge(!0),Y(!0);const ye={1:"/astron-api/eval/dimension/sseBotChat",2:"/astron-api/eval/dimension/workflowChat",3:"/astron-api/eval/dimension/promptChat-sse"},G=new FormData;let De={};switch(console.log("objectEvaluationNow:",x),K){case 1:{G.append("assistantId",w.id),G.append("text",M);break}case 2:{G.append("assistantId",(Te=x[0])==null?void 0:Te.value);let D="-1";($=x[1])!=null&&$.title&&!["èç¨¿çæ¬","Draft Version"].includes((Qe=x[1])==null?void 0:Qe.title)&&(D=(re=x[1])==null?void 0:re.title),G.append("version",D),G.append("text",JSON.stringify(L));break}case 3:{G.append("promptId",(Xe=x[0])==null?void 0:Xe.value);let D="-1";(J=x[1])!=null&&J.title&&!["èç¨¿çæ¬","Draft Version"].includes((He=x[1])==null?void 0:He.title)&&(D=(bt=x[1])==null?void 0:bt.value),G.append("versionId",D),G.append("text",JSON.stringify(L)),G.append("promptVo",JSON.stringify(N==null?void 0:N.promptVo)),De={promptId:(Et=x[0])==null?void 0:Et.value,versionId:D,text:JSON.stringify(L),promptVo:N==null?void 0:N.promptVo};break}}f.current=new AbortController,await ja(ye[K],{method:"POST",body:K!=3?G:JSON.stringify(De),headers:K!=3?{}:{"Content-Type":"application/json"},onopen:async D=>{if(!D.ok)throw new Error("Failed to connect");X(""),me(null)},signal:(ce=f==null?void 0:f.current)==null?void 0:ce.signal,onmessage(D){var Qt,wt;ge(!1);const ve=JSON.parse(D.data);if(ve.code!==0)throw new Error(ve.message);switch(K){case 1:case 3:const{content:de,status:nt}=ve;if(nt==="end"){X(be=>(ht(be),be)),(Qt=f==null?void 0:f.current)==null||Qt.abort(),f.current=null;return}if(de!=null&&de.startsWith("<deep_x1>")||de!=null&&de.startsWith("<thinking")||de!=null&&de.startsWith("<math_thinking")){Je(!0);return}Je(!1),X(be=>be+de);break;case 2:const{choices:We,workflow_step:Ye}=ve;if(We[0].finish_reason==="stop"||We[0].finish_reason==="interrupt"){X(be=>(ht(be),be)),(wt=f==null?void 0:f.current)==null||wt.abort(),f.current=null;return}
1const Lt=We[0].delta.content;let Le="";Ye&&Ye.node&&Ye.node.ext&&Ye.node.ext.answer_mode===0&&(Le=Ye.node.outputs?JSON.stringify(Ye.node.outputs):""),X(be=>be+(Lt+Le));break}},onerror(D){var ve;throw X((D==null?void 0:D.message)||""),(ve=f==null?void 0:f.current)==null||ve.abort(),f.current=null,ge(!1),Y(!1),me({reason:"error",score:null}),D}})},gt=()=>{ke(),ze()},vt=[e.jsx(xe,{className:"w-[76px]",autoInsertSpace:!1,onClick:ze,children:h("effectEvaluation.debuggingPreview.cancel")},"back"),e.jsx(xe,{className:"w-[76px]",autoInsertSpace:!1,type:"primary",onClick:gt,children:h("effectEvaluation.debuggingPreview.save")},"submit")],ae=e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:h("effectEvaluation.debuggingPreview.title")}),e.jsx("img",{src:Wl,className:"cursor-pointer",alt:"",onClick:ze})]});return e.jsx(_t,{title:ae,open:B,width:880,footer:vt,focusTriggerAfterClose:!1,onCancel:ze,keyboard:!1,maskClosable:!1,closable:!1,centered:!0,children:e.jsxs("div",{className:"flex gap-[24px]",children:[e.jsxs("div",{className:"flex-1 w-0",children:[e.jsxs("div",{className:"flex mb-[12px] justify-between items-center",children:[e.jsx("div",{children:h("effectEvaluation.debuggingPreview.promptConfig")}),e.jsxs("div",{className:"flex items-center",children:[e.jsx("span",{children:h("effectEvaluation.aiJudge")}),e.jsx("span",{children:ea()})]})]}),e.jsxs("div",{className:"px-[14px] pb-[16px] rounded-[12px] border border-[#E4EAFF] border-solid",children:[e.jsxs("div",{className:"flex justify-between items-center h-[46px]",children:[e.jsx("span",{className:"text-[#979797]",children:h("effectEvaluation.debuggingPreview.prompt")}),e.jsxs("span",{className:"flex items-center gap-[7px] cursor-pointer",onClick:V,children:[e.jsx("img",{src:Kl,alt:""}),e.jsx("span",{className:"text-[#6356EA]",children:h("effectEvaluation.debuggingPreview.aiOptimize")})]})]}),e.jsx(_l,{className:"my-[0px]"}),e.jsx("div",{className:"pt-[14px] pb-[24px] relative",children:e.jsx(pt,{spinning:Ue,indicator:e.jsx(ut,{spin:!0}),children:e.jsx(xn,{value:y,variant:"borderless",style:{resize:"none",height:437},ref:oe,onChange:r=>T(r.target.value)})})})]})]}),e.jsxs("div",{className:"flex-1 pt-[32px] w-0 overflow-y-auto",children:[e.jsxs(A,{layout:"horizontal",form:fe,name:"control-hooks",style:{width:"100%"},colon:!1,children:[e.jsx(A.Item,{name:"type",label:h("effectEvaluation.debuggingPreview.evaluationType"),className:"mb-[10px]",children:e.jsx("div",{children:{1:h("effectEvaluation.debuggingPreview.agentInstructionType"),2:h("effectEvaluation.debuggingPreview.agentWorkflow"),3:h("effectEvaluation.debuggingPreview.promptType")}[a]})}),e.jsx(A.Item,{name:"target",label:h("effectEvaluation.debuggingPreview.evaluationObject"),className:"mb-[14px]",children:e.jsx("div",{children:Pt()})}),a==1&&e.jsx(A.Item,{label:h("effectEvaluation.unpublishedFlow.userInput"),name:"input",labelCol:{span:24},className:"mb-[8px]",children:e.jsx(Ce,{placeholder:h("effectEvaluation.unpublishedFlow.pleaseInput"),className:"h-[48px] border-[#E4EAFF]",onChange:r=>Ze(r.target.value)})}),a!==1&&((lt=N==null?void 0:N.workflowFields)==null?void 0:lt.map(r=>{const{paramName:M,required:j,type:L}=r;return e.jsx(A.Item,{label:M,name:["inputs",M],labelCol:{span:24},className:"mb-[8px]",rules:j?[{required:!0,message:`${M} ä¸è½ä¸ºç©º`}]:void 0,children:e.jsx(Ce,{placeholder:`${h("effectEvaluation.unpublishedFlow.pleaseInput")} ${M}${j?`ï¼${h("effectEvaluation.unpublishedFlow.required")}ï¼`:""}`,className:"h-[48px] border-[#E4EAFF]",onChange:K=>Ze(K.target.value)})},M)})),e.jsx(A.Item,{noStyle:!0,children:e.jsx("div",{className:"mb-[12px] text-right",children:e.jsx(xe,{type:"default",className:"link-border-btn !h-[32px]",autoInsertSpace:!1,onClick:W,disabled:!Dt,children:h(qe?"effectEvaluation.debuggingPreview.runAgain":"effectEvaluation.debuggingPreview.run")})})})]}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"h-[24px] mb-[8px]",children:h("effectEvaluation.debuggingPreview.actualOutput")}),e.jsx(pt,{spinning:Q,indicator:e.jsx(ut,{spin:!0}),children:e.jsx("div",{ref:Fe,className:"h-[100px] border border-[#
1E4EAFF] border-solid rounded-[8px] p-[12px] overflow-auto",children:u?e.jsx("div",{dangerouslySetInnerHTML:{__html:hn.render(u)}}):at?e.jsxs("div",{className:"flex items-center",children:[e.jsx(ut,{spin:!0}),e.jsx("span",{className:"pl-[6px]",children:h("effectEvaluation.debuggingPreview.thinking")})]}):e.jsx("div",{className:"flex items-center justify-center h-full",children:e.jsx("span",{className:"text-[#979797]",children:h("effectEvaluation.debuggingPreview.clickRunToShow")})})})})]}),e.jsxs("div",{className:"flex flex-col mt-[12px]",children:[e.jsx("div",{className:"h-[24px] mb-[8px]",children:h("effectEvaluation.debuggingPreview.evaluationResult")}),e.jsx(pt,{spinning:m,indicator:e.jsx(ut,{spin:!0}),children:e.jsx("div",{className:"h-[138px] border border-[#E4EAFF] border-solid rounded-[8px] p-[12px] overflow-auto",children:U?e.jsx("div",{className:"flex flex-col",children:U!=null&&U.reason?U.reason==="error"?e.jsx("div",{}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center justify-center h-[58px] text-[#6356EA] text-[36px]",children:[U.score,h("effectEvaluation.debuggingPreview.score")]}),e.jsxs("div",{className:"mt-[8px]",children:[h("effectEvaluation.debuggingPreview.scoreReason"),U.reason]})]}):e.jsxs("div",{className:"flex flex-col items-center justify-between h-[58px] mt-[34px]",children:[e.jsx("img",{src:Gl,alt:""}),e.jsx("div",{className:"text-[#F74E43]",children:h("effectEvaluation.runFailed")})]})}):e.jsx("div",{className:"flex items-center justify-center h-full",children:e.jsx("span",{className:"text-[#979797]",children:h("effectEvaluation.debuggingPreview.runToShowScore")})})})})]})]})]})})};function bn({onClose:o,onSubmit:B}){const{t:S}=mt();ft();const[a]=A.useForm();return e.jsx("div",{className:"absolute fixed inset-0 bg-[#000000] bg-opacity-40 z-[9999] flex items-center justify-center overflow-hidden",children:e.jsxs("div",{className:"h-3/5 w-1/3 bg-white rounded-[16px] border-[1px] border-white p-6 pr-0 flex flex-col overflow-hidden",children:[e.jsxs("div",{className:"flex items-center justify-between pr-6",children:[e.jsx("span",{className:"text-[16px] font-semibold tracking-normal",children:S("effectEvaluation.dimension.addCustomDimension")}),e.jsx("img",{src:en,alt:"",className:"w-[14px] h-[14px] cursor-pointer",onClick:o})]}),e.jsxs("div",{className:"flex-1 pr-6 mt-6 overflow-hidden",children:[e.jsx(A,{layout:"vertical",form:a,children:e.jsx(A.Item,{name:"name",label:e.jsx("span",{style:{color:"#333333",fontSize:"14px",fontWeight:"500"},children:S("effectEvaluation.dimension.evaluationDimensionName")}),rules:[{required:!0,message:S("effectEvaluation.dimension.pleaseEnterEvaluationDimensionName")},{whitespace:!0,message:S("effectEvaluation.dimension.pleaseEnterEvaluationDimensionName")}],children:e.jsx(Ce,{placeholder:S("effectEvaluation.dimension.pleaseEnter"),className:"createTask-input-rounded h-[46px] border border-[#E2E8FF]",style:{borderRadius:"8px"},maxLength:50,showCount:!0})})}),e.jsx("div",{className:"flex items-center",children:e.jsx("button",{className:"text-[#6356EA] text-[12px]",onClick:()=>{window.open("/management/evaluation/dimensions","_blank")},children:S("effectEvaluation.dimension.evaluationDimensionManagement")})})]}),e.jsxs("div",{className:"flex justify-end h-10 gap-2 pr-6 mt-6",children:[e.jsx("button",{className:"px-6 py-[6px] border border-solid border-[#D3DBF8] rounded-[8px] text-[#333333] h-10",onClick:o,children:S("effectEvaluation.dimension.cancel")}),e.jsx("button",{className:"px-6 py-[6px] border border-solid border-[#6356EA] bg-[#6356EA] rounded-[8px] text-[#FFFFFF] h-10",onClick:()=>{a.validateFields().then(()=>{B(a.getFieldValue("name"))})},children:S("effectEvaluation.dimension.confirm")})]})]})})}const Pa="/astron-api",En=()=>Da.get(`${Pa}/eval/dimension/scene/getAllDimension`),wn=o=>Da.get(`${Pa}/eval/task/objectList?type=${o.type}`,o),ya=({percent:o,status:B,height:S=25,bgColor:a="#BBCDFF",barColor:w="#EFF3FF",successColor:x="#BBCDFF",errorColor:ee="#ef4444",radiu
1s:pe=6})=>{let F=w;B==="success"&&(F=x),B==="error"&&(F=ee);const he=Math.min(100,Math.max(0,o)),N={loading:"æ°æ®å è½½ä¸...",success:"æ°æ®å è½½æå",error:"æ°æ®å 载失败"},C=3,Z=pe-C>0?pe-C:0;return e.jsxs("div",{className:"progress-outer",style:{height:S,backgroundColor:a,borderRadius:pe,position:"relative"},children:[e.jsx("div",{className:"progress-inner",style:{width:`calc(${he}% - ${C*2}px)`,height:S-C*2,backgroundColor:F,borderRadius:Z,position:"absolute",top:"50%",left:C,transform:"translateY(-50%)"}}),e.jsx("div",{className:"progress-text",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:"#6356EA",fontSize:12,whiteSpace:"nowrap"},children:N[B]})]})};function jn({form:o,showEvaluationSetData:B,setShowEvaluationSetData:S}){var ha;const{t:a}=mt(),[w]=Sa(),x=w==null?void 0:w.get("id"),[ee,pe]=n.useState(null),F=w==null?void 0:w.get("addEvalType"),he=w==null?void 0:w.get("evalSetId"),N=w==null?void 0:w.get("evalSetVerId");Ul(t=>t.currentFlow);const C=ft(),[Z,fe]=n.useState([]),[u,X]=n.useState([]),[U,me]=n.useState(1),[qe,Ie]=n.useState([1,2,3]),[y,T]=n.useState(!1),[b,p]=n.useState(!1),[m,Y]=n.useState([]),[Q,ge]=n.useState(""),[at,Je]=n.useState(0),[Ue,se]=n.useState([]),[Dt,Ze]=n.useState([]),[oe,Fe]=n.useState([]),[f,te]=n.useState([1]),[h,xt]=n.useState({}),[ea,Pt]=n.useState({}),[V,ke]=n.useState({}),[Tt,ze]=n.useState({}),[ht,ta]=n.useState([]),[g,W]=n.useState([]),[gt,vt]=n.useState(!1),[ae,lt]=n.useState([]),[r,M]=n.useState([]),[j,L]=n.useState(1),[K,ye]=n.useState(null),[G,De]=n.useState(null),[Pe,Te]=n.useState(null),[$,Qe]=n.useState(null),[re,Xe]=n.useState([]),[J,He]=n.useState(),bt=[{label:a("effectEvaluation.debuggingPreview.onlineLogPullTest"),value:"online"},{label:a("effectEvaluation.debuggingPreview.offlineBatchDataTest"),value:"offline"}],{RangePicker:Et}=tn,[ce]=A.useForm(),[D,ve]=n.useState(),[Qt,wt]=n.useState(!0),[de,nt]=n.useState(0),[We,Ye]=n.useState(!0),[Lt,Le]=n.useState(0),[be,Fn]=n.useState(!1),st=10,[Ee,jt]=n.useState({current:1,pageSize:st}),[we,Re]=n.useState([]),[Ke,Rt]=n.useState(0),[le,Ge]=n.useState([]),[Mt,aa]=n.useState(null),[ne,$e]=n.useState({}),[Vt,Ot]=n.useState(null),[Bt]=A.useForm(),[yn,Sn]=n.useState(!1),Ta=[{label:a("effectEvaluation.unpublishedFlow.agentInstructionType"),value:1},{label:a("effectEvaluation.unpublishedFlow.agentWorkflow"),value:2},{label:a("effectEvaluation.unpublishedFlow.prompt"),value:3}],[E,la]=n.useState(0),[_e,na]=n.useState(!1),[Jt,zt]=n.useState(),[sa,ia]=n.useState(!1),[oa,ra]=n.useState(!1),[Qa,At]=n.useState(),[La,it]=n.useState(),Ra=async()=>{try{const t=await En();if(t){const l=[];t.forEach(s=>{s.name=s.sceneName,s.id=s.sceneId}),ta(t)}}catch(t){console.log(t)}};function Ma(t){return new Set(t).size!==t.length}const Va=(t,l)=>{if(Ma(l.map(s=>s[1].name))){const s=tt.cloneDeep(o.getFieldValue("evaluationIndices"));return s.splice(s.length-1,1),o.setFieldsValue({evaluationIndices:s}),P.warning(a("effectEvaluation.unpublishedFlow.dimensionNameCannotBeRepeated"))}if(g.length){const s=g.filter(i=>i.isAdd);if(s.length==g.length){const i=l.map(c=>c[1]);W(g.concat(i))}else if(s.length==0){const i=l.map(c=>c[1]);W(i)}else{const i=tt.cloneDeep([...g]);g.forEach((c,v)=>{const d=l.findIndex(I=>I[1].name==c.name);c.isAdd!==!0&&d==-1&&i.splice(v,1)}),l.forEach(c=>{g.findIndex(d=>d.name==c[1].name)==-1&&i.push(c[1])}),W(i)}}else{const s=l.map(i=>i[1]);W(s)}},ca=async(t,l)=>{const s=g.findIndex(i=>i.name==l.name);g[s].isEdit=!1,g[s].name=t,W(tt.cloneDeep([...g]))},Oa=(t,l)=>{const s=g.findIndex(i=>i.name==t.name);g[s].isEdit=l,W([...g])},da=t=>{if(t.isAdd)g.splice(g.findIndex(l=>l.name==t.name),1),W([...g]);else{const l=tt.cloneDeep(o.getFieldValue("evaluationIndices")),s=l.findIndex(i=>i[1]==t.name);l.splice(s,1),g.splice(g.findIndex(i=>i.name==t.name),1),W([...g]),o.setFieldsValue({evaluationIndices:l})}ke({})},[Ba,Ja]=n.useState(),ua=t=>{var l;console.log("selectedOptions",t),Yt(),Ja((l=t==null?void 0:t[t.length-1])==null?void 0:l.value),M(t),E==2&&t[0].inQANode&&(P.warning("å½åæææµè¯ææ¶ä¸æ¯ææé®ç
1èç¹ç工使µæµè¯"),o.setFieldsValue({applicationId:null})),ce.resetFields(),rt(null,null),ve(null),Re([]),Re([]),Rt(0),jt({current:1,pageSize:st}),nt(0),Le(0),Zt(null)},za=()=>{if(gt)return;const t=V.prompt,l=V.name;if(!t)return P.warning("promptä¸è½ä¸ºç©ºï¼");if(!l)return P.warning("ä¸ºäºæ´ç²¾åå°ä¸ºæ¨ä¼åå
容ï¼è¯·å
è¾å
¥å
·ä½ç维度åç§°");vt(!0);const s=new FormData;s.append("dimensionName",l),s.append("input",t),Na(s).then(i=>{const{code:c,data:v}=i;if(c===-1){P.error(i.message);return}Ht(v)}).finally(()=>{vt(!1)})},Ht=t=>{V.prompt=t,ke({...V});const l=g.findIndex(s=>s.name==V.name);g[l].prompt=t,W([...g])};n.useEffect(()=>{if(o.setFieldsValue({taskMode:[1]}),he&&N){const t=[[he,N]];o.setFieldsValue({evalSetVerId:t}),fa(t)}Gt("eval").then(t=>{fe(t)})},[]);const Ha=t=>{Rl({searchValue:"",pageIndex:1,pageSize:1e4,botType:""}).then(s=>{Ze(s.pageList)}).catch(s=>{console.error("è·åæµè¯å¯¹è±¡æ°æ®å¤±è´¥:",s)})};n.useEffect(()=>{Ya()},[E]),n.useEffect(()=>{u!=null&&u.includes(3)&&(g.findIndex(l=>l.name==V.name)==-1&&ke({}),!V.name&&g.length&&(ke(g[0]),ze(g[0].prompt||"")))},[g]);const Yt=()=>{aa(null),Ge(t=>t.filter(l=>!l.isOnline)),$e(t=>{const l={...t};return delete l["online-log-card"],l})};n.useEffect(()=>{if(J==="offline"&&m.length>0&&E!=1){const t=m.map(([l,s])=>{var v;const i=Z.find(d=>d.value===l),c=(v=i==null?void 0:i.children)==null?void 0:v.find(d=>d.value===s);return{setName:(i==null?void 0:i.label)||"æªç¥æµè¯é",verName:(c==null?void 0:c.label)||"æªç¥çæ¬",id:`${l}-${s}`}});Ge(t)}else Ge([])},[m,Z,J]);const qt=n.useRef(null),pa=async()=>{if(E==0)return;qt.current&&qt.current.abort();const t=new AbortController;qt.current=t;try{const l=await wn({type:E,signal:t.signal});if(t.signal.aborted)return;const s=l.map(i=>({...i,label:e.jsxs("span",{children:[i.name||a("effectEvaluation.unpublishedFlow.unknownName")," ",e.jsx("span",{style:{color:"#FFFFFF",marginLeft:8,fontSize:12,padding:"2px 8px",borderRadius:3,background:{1:"rgba(99, 86, 234, 0.9)",2:"rgba(255, 200, 61, 0.9)",3:"rgba(61, 194, 83, 0.9)"}[E]},children:{1:a("effectEvaluation.unpublishedFlow.instructionType"),2:a("effectEvaluation.unpublishedFlow.workflow"),3:a("effectEvaluation.unpublishedFlow.prompt")}[E]})]})}));if([2,3].includes(E)){const i=s.map(c=>{var v;return{value:String(c.id),label:c.label,title:c.name||a("effectEvaluation.unpublishedFlow.unknownName"),inQANode:c.inQANode,children:(v=c.list)!=null&&v.length?c.list.map(d=>{let I=d.name,z=!1;return E==2&&(!d.canPublish&&d.name=="èç¨¿çæ¬"&&(z=!0,I=`${d.name}(工使µæªè°è¯æå)`),!d.publishResult&&d.name!="èç¨¿çæ¬"&&(z=!0,I=`${d.name}(${a("effectEvaluation.unpublishedFlow.currentVersionPublishNotSuccessful")})`)),{value:String(d.id),label:I,title:d.name,disabled:z}}):[]}});Fe(i);return}Fe(s)}catch(l){console.log(l)}},Ya=n.useMemo(()=>tt.debounce(pa,300),[pa]);n.useEffect(()=>{E==0||x||(o.resetFields(["applicationId"]),Ha())},[E]),n.useEffect(()=>{o&&!x&&o.setFieldValue("judgeModel",1)},[o]);const fa=t=>{Y(t)},qa=n.useCallback(()=>{for(const t of le){const l=ne[t.id];if(!l)return!1;const{fieldIdMap:s={},workflowFields:i=[]}=l;for(const c of i)if(c.required&&!s[c.paramName])return!1}return!0},[le,ne]),ma=t=>{t==2?o.validateFields().then(l=>{if(E!=1&&!qa()){P.error("è¯·å®æææå¿
å¡«åæ®µæ å°ååç»§ç»!");return}if(J==="online"&&E==2&&(Nt==null?void 0:Nt.length)===0){P.error("请å¾éæ¥å¿æ°æ®ååç»§ç»!");return}console.log("values:",l),xt(l),o.setFieldsValue({evaluationIndices:null}),W([]),u!=null&&u.includes(2)?(K&&o.setFieldsValue({evaluationIndices:K}),G&&W(G)):(Pe&&o.setFieldsValue({evaluationIndices:Pe}),$&&W($)),L(t)}):(u!=null&&u.includes(2)?(ye(o.getFieldValue("evaluationIndices")),De(g)):(Te(o.getFieldValue("evaluationIndices")),Qe(g)),L(t))},je=n.useMemo(()=>{var v,d,I,z,q,O;const t=le.map(H=>H.id.split("-")[1]),l=le.map(H=>{var Se,k;const R=((Se=ne[H.id])==null?void 0:Se.fieldIdMap)||{};return(((k=ne[H.id])==null?void 0:k.fieldOrder)||[]).map(et=>R[et]??-1)}),s=((d=ne[(v=le[0])==null?void 0:v.id])==null?void 0:d.fieldOrder)||[],i=((z=ne[(I=le[0])==null?void 0:I.id])==null?void 0:z.promptVo)||[],c=((O=ne[(q=le[0])==null?void 0:q.id])==null?void 0:O.workflowFields)||[];return{evalSetVerId:t,evalSetVerHeaderId:l,inputParams:s,promptVo:i,workflowFields:c}},[le,ne,,E]);console.log("æç»åæ°ï¼",je);const Ua=()=>{o.validateFields().then(t=>{var z,q,O,H;console.log("values2",t),console.log("selectedIndicators",g),Pt(t);const l=((z=h==null?void 0:h.evalSetVerId)==null?void 0:z.map(R=>R==null?void 0:R[0]))||[],s=((q=h==null?void 0:h.evalSetVerId)==null?void 0:q.map(R=>R==null?void 0:R[1]))||[],i=[],c=[];g.forEach(R=>{i.push(R.name),c.push(R.prompt)});let v="-1";
1E!=1&&!["èç¨¿çæ¬","Draft Version"].includes((O=r[1])==null?void 0:O.label)&&(v=r[1].label);let d="-1";E!=1&&!["èç¨¿çæ¬","Draft Version"].includes((H=r[1])==null?void 0:H.label)&&(d=r[1].value);const I={applicationId:E==1?ae==null?void 0:ae.id:r[0].value,applicationType:E,applicationVersion:v,applicationVersionId:d,applicationPrompt:ae==null?void 0:ae.prompt,name:h==null?void 0:h.name,evalSetId:l,evalSetVerId:s,evalMode:J==="offline"?2:1,evalScheme:U,taskMode:u,judgeModel:t==null?void 0:t.judgeModel,evalDimensions:i,evalPrompts:c};if(x&&(I.taskId=x),ee&&(I.taskId=ee),J==="online"){const R=new Set(Me),Se=we.filter(k=>R.has(k.sid)).map((k,et)=>{var Oe;const ie=(((Oe=k.questionJson)==null?void 0:Oe.jsonAnswer)||[]).reduce((Ne,ue)=>((ue==null?void 0:ue.key)!=null&&ue.value!=null&&(Ne[ue.key]=ue.value),Ne),{});return{sid:k.sid,question:JSON.stringify(ie),answer:k.answer,statusCode:k.statusCode,expectedAnswer:k.expectedAnswer,parameters:ie,seq:et+1}});console.log("logList",Se),I.data=JSON.stringify(Se),I.onlineLogName=Jt}else I.evalSetVerHeaderId=je==null?void 0:je.evalSetVerHeaderId,I.inputParams=je==null?void 0:je.inputParams,I.promptVo=je==null?void 0:je.promptVo;if(T(!0),F=="addManual"||F=="addAuto"){const R={};R.taskId=I.taskId,R.judgeModel=t==null?void 0:t.judgeModel,Jl(R).then(Ve=>{C("/management/evaluation")}).finally(()=>T(!1))}else zl(I).then(R=>{if(R){const Ve={...h,...o.getFieldsValue(),selectedIndicators:g,botObjectEvaluationNow:ae,objectEvaluationNow:r,applicationType:E,taskId:R};ne&&(Ve.multiParameterMap=JSON.stringify(ne)),Hl(Ve)}C("/management/evaluation")}).finally(()=>T(!1))})},Za=t=>{const l=t.target.innerText,s=Z.find(i=>i.label===l);s&&ge(s==null?void 0:s.value)},Xa=t=>e.jsxs("div",{className:"w-full pt-4",children:[e.jsx("div",{className:"mt-2 eval-cascader-menus",onClick:Za,children:t}),e.jsxs("div",{className:"w-full flex items-center px-4 gap-4 mt-[76px]",children:[e.jsx("div",{className:"flex-1",children:e.jsxs("div",{className:"w-full flex items-center justify-center border border-[#6356EA] rounded cursor-pointer text-[#6356EA] font-medium gap-2 py-1 mb-2 w-8",onClick:()=>window.open(`${location.origin}/management/evaluation/dataset_createEval?backToList=true`,"_blank"),children:[e.jsx("img",{src:ba,className:"w-[10px] h-[10px]",alt:""}),e.jsx("div",{children:a("effectEvaluation.unpublishedFlow.newEvaluationSet")})]})}),Q&&e.jsx("div",{className:"flex-1",children:e.jsxs("div",{className:"w-full flex items-center justify-center border border-[#6356EA] rounded cursor-pointer text-[#6356EA] font-medium gap-2 py-1 mb-2",onClick:()=>window.open(`${location.origin}/management/evaluation/dataset_createEval?evaluationSetId=${Q}&operate=addVersion&backToList=true`,"_blank"),children:[e.jsx("img",{src:ba,className:"w-[10px] h-[10px]",alt:""}),e.jsx("div",{children:a("effectEvaluation.unpublishedFlow.newEvaluationSetVersion")})]})})]})]}),[Ft,xa]=n.useState(!1),[Ut,yt]=n.useState(!1),[_,Wa]=n.useState(!1),Ka=async()=>{var t;try{let l;F?l=await Ml(x):l=await Vl(x),console.log("detailInfo:",l),F=="addManual"&&(l.taskMode=[2]),F=="addAuto"&&(l.taskMode=[3]);const{selectedEvaluationType:s,taskMode:i,judgeModel:c,evaluationIndices:v,selectedIndicators:d=[],applicationId:I,botObjectEvaluationNow:z,objectEvaluationNow:q}=l;if(o.setFieldsValue(l),la(s),X(i.map(O=>Number(O))),o.setFieldsValue({evaluationMethod:i.map(O=>Number(O))}),W(d),i[0]==2?(ye(v),De(d)):i[0]==3&&(te([c]),Te(v),Qe(d)),s==1?lt(l.botObjectEvaluationNow):M(l.objectEvaluationNow),console.log("åæ¾å¯¹è±¡",q),F&&Wa(F!==null),console.log("evalSetVerId:",l),l.evalMode==1?(He("online"),o.setFieldsValue({evalSetSourceType:"online"}),zt(l.onlineLogName)):(He("offline"),o.setFieldsValue({evalSetSourceType:"offline"})),l.multiParameterMap){let O={};F?O=JSON.parse((t=l==null?void 0:l.multiParameterMap)==null?void 0:t.multiParameterMap):O=JSON.parse(l.multiParameterMap),$e(O||{});const H=Object.keys(O||{});if(H){const R=await Gt("eval"),Ve=H.map(Se=>{var Ne;const[k,et]=Se.split("-"),ie=R.find(ue=>String(ue.value)===k),Oe=(Ne=ie==null?void 0:ie.children)==null?void 0:Ne.find(ue=>String(ue.value)===et);return{id:Se,setName:(ie==null?void 0:ie.label)||"æªç¥æµè¯é",verName:(Oe==null?void 0:Oe.label)||"æªç¥çæ¬"}}
1).filter(Boolean);Ge(Ve)}}l.judgeModel||(te([1]),o.setFieldValue("judgeModel",1))}catch(l){console.log("error:",l)}};n.useEffect(()=>{console.log("æµè¯æµè¯----------",_)},[_]);const Ga=async t=>{try{const l=await Yl(t);pe(l.id)}catch(l){console.log(l)}},$a=()=>{o.validateFields(["name"]).then(()=>{let t;j==1?t={selectedEvaluationType:E,...o.getFieldsValue(),botObjectEvaluationNow:ae,objectEvaluationNow:r,applicationType:E,evalMode:J=="online"?1:2,onlineLogName:Jt,taskMode:u}:t={...h,...o.getFieldsValue(),selectedIndicators:g,botObjectEvaluationNow:ae,objectEvaluationNow:r,applicationType:E,evalMode:J=="online"?1:2,onlineLogName:Jt,taskMode:u},ne&&(t.multiParameterMap=JSON.stringify(ne)),x&&(t.taskId=x),ee&&(t.taskId=ee),console.log("params:",t),p(!0),Ga(t).finally(()=>{p(!1)})})};n.useEffect(()=>{x&&Ka()},[x]);const _a=t=>t&&t>Be(),el=()=>{const t=Be();return{disabledHours:()=>[...Array(24).keys()].slice(t.hour()+1),disabledMinutes:l=>l===t.hour()?[...Array(60).keys()].slice(t.minute()+1):[],disabledSeconds:(l,s)=>l===t.hour()&&s===t.minute()?[...Array(60).keys()].slice(t.second()+1):[]}},[Nn,tl]=n.useState([]),[Cn,al]=n.useState(null),[In,kn]=n.useState([]),[Dn,Pn]=n.useState(null),[ll,Zt]=n.useState(a("effectEvaluation.unpublishedFlow.sampleTotal")),nl=async()=>{var s,i,c;const[t,l]=ce.getFieldValue("sampling")||[];if(!t||!l){P.warning(a("effectEvaluation.unpublishedFlow.pleaseSelectSamplingPeriod"));return}try{wt(!0),ia(!0),al(null),tl([]),Le(0),At("loading");const v={flowId:(s=r[0])==null?void 0:s.value,startTime:t.format("YYYY-MM-DD HH:mm:ss"),endTime:l.format("YYYY-MM-DD HH:mm:ss"),version:((i=r[1])==null?void 0:i.label)=="èç¨¿çæ¬"?"-1":((c=r[1])==null?void 0:c.label)||""},d=await Ol(v),I=e.jsxs(e.Fragment,{children:[a("effectEvaluation.unpublishedFlow.sampleTotal"),e.jsxs("span",{children:["("," ",a("effectEvaluation.unpublishedFlow.totalDataCount",{total:d.result})," ",")"]})]});Zt(I),Rt(d.result),nt(100),At("success"),P.success("æ°æ®å è½½æå")}catch(v){const d=(v==null?void 0:v.message)||"æªç¥é误";P.error(`å 载失败ï¼${d}`),At("error")}finally{ia(!1)}},sl=async()=>{var c,v,d,I,z;const t=ce.getFieldValue("sampleAmount");if(!t||t<=0){P.warning("请è¾å
¥éæ ·æ»å!");return}const[l,s]=ce.getFieldValue("sampling")||[];if(!l||!s){P.warning("请å
éæ©éæ ·æ¶æ®µ");return}if(!ce.getFieldValue("sampleMode")){P.warning("è¯·éæ©éæ ·æ¹å¼!");return}Le(0),ra(!0),it("loading");try{const q=await Bl({page:1,pageSize:t,sampleAmount:t,sampleMode:D,flowId:(c=r[0])==null?void 0:c.value,startTime:l.format("YYYY-MM-DD HH:mm:ss"),endTime:s.format("YYYY-MM-DD HH:mm:ss"),version:((v=r[1])==null?void 0:v.label)=="èç¨¿çæ¬"?"-1":((d=r[1])==null?void 0:d.label)||""});if(!q.result||!q.result.pageData){Re([]),P.warning("ææ æ°æ®!"),it("success");return}Re(q.result.pageData[0]),jt({current:1,pageSize:st});const O=(I=q.result.pageData[0])==null?void 0:I.find(k=>k.questionJson&&typeof k.questionJson=="object");if(!O)return;const H=(z=O==null?void 0:O.questionJson)==null?void 0:z.jsonAnswer,Ve=(Array.isArray(H)?H.map(k=>k==null?void 0:k.key).filter(Boolean):[]).map(k=>({ellipsis:!0,title:`é®é¢_${k}`,dataIndex:`jsonParameterAnswer.${k}`,key:`jsonParameterAnswer.${k}`,width:200,editable:!0,render:(et,ie)=>{var ue,ga,va;const Oe=Xt(ie),Ne=(va=(ga=(ue=ie==null?void 0:ie.questionJson)==null?void 0:ue.jsonAnswer)==null?void 0:ga.find(Kt=>(Kt==null?void 0:Kt.key)===k))==null?void 0:va.value;return Oe?e.jsx(A.Item,{name:`jsonParameterAnswer.${k}`,style:{margin:0},children:e.jsx(Ce.TextArea,{rows:2})}):e.jsx("div",{title:JSON.stringify(Ne),className:"truncated-text-2",children:typeof Ne=="object"?JSON.stringify(Ne):Ne??""})}}));Le(100),it("success");const Se=q.result.pageData[0];ct(Se.map(k=>k.sid)),P.success("æ°æ®å è½½æå")}catch(q){P.error(`å 载失败ï¼${q.message}`),it("error")}finally{ra(!1)}},ot=n.useMemo(()=>{var s;const t=we.find(i=>i.questionJson&&typeof i.questionJson=="object"),l=(s=t==null?void 0:t.questionJson)==null?void 0:s.jsonAnswer;return Array.isArray(l)?l.map(i=>
1i==null?void 0:i.key).filter(Boolean):[]},[we]),il=n.useMemo(()=>ot.map(t=>({ellipsis:!0,title:`${t}`,dataIndex:`jsonParameterAnswer.${t}`,key:`jsonParameterAnswer.${t}`,width:200,editable:!0,render:(l,s)=>{var v,d,I;const i=s.sid===Vt,c=(I=(d=(v=s==null?void 0:s.questionJson)==null?void 0:v.jsonAnswer)==null?void 0:d.find(z=>(z==null?void 0:z.key)===t))==null?void 0:I.value;return i?e.jsx(A.Item,{name:`jsonParameterAnswer.${t}`,style:{margin:0},children:e.jsx(Ce.TextArea,{rows:2})}):e.jsx("div",{title:JSON.stringify(c),className:"truncated-text-2",children:typeof c=="object"?JSON.stringify(c):c??""})}})),[ot,Vt]),ol=t=>{const l=we.filter(s=>s.sid!==t);Re(l),ct(s=>s.filter(i=>i!==t))},rl=t=>{t&&t>Ke&&(P.warning(`æå¤å¯è¾å
¥ ${Ke} æ¡`),o.setFieldsValue({sampleAmount:Ke}))},cl=[{required:!0,message:"请è¾å
¥éæ ·æ»å"},{validator:(t,l)=>l&&l>Ke?Promise.reject(new Error(`ä¸è½è¶
è¿ ${Ke}`)):Promise.resolve()}],dl=[{width:100,title:a("effectEvaluation.unpublishedFlow.orderNumber"),render:(t,l,s)=>e.jsx("div",{children:(Ee.current-1)*Ee.pageSize+s+1})}],ul=[{title:a("effectEvaluation.unpublishedFlow.actualOutput"),dataIndex:"answer",key:"answer",ellipsis:!0,width:120,editable:!0,render:(t,l)=>Xt(l)?e.jsx(A.Item,{name:"answer",style:{margin:0},children:e.jsx(Ce.TextArea,{rows:2})}):e.jsx("div",{title:l.answer,className:"truncated-text-2",children:l.answer})},{width:100,title:a("effectEvaluation.unpublishedFlow.statusValue"),key:"statusCode",dataIndex:"statusCode",render:t=>e.jsx("div",{className:"inline-block rounded-lg",style:{background:t===0?"#e4f5e3":"#feedec",color:t===0?"#447838":"#F74E43",padding:"7px 17px"},children:t==0?"æå":`失败ï¼é误ç ï¼${t}ï¼`})},{title:a("effectEvaluation.unpublishedFlow.operation"),key:"action",width:120,render:(t,l)=>Xt(l)?e.jsxs("span",{children:[e.jsx("a",{onClick:()=>wl(l.sid),style:{marginRight:8},children:a("effectEvaluation.unpublishedFlow.save")}),e.jsx("a",{onClick:jl,children:"åæ¶"})]}):e.jsxs("div",{className:"flex gap-2",children:[e.jsx("a",{className:"text-[#0257ff] cursor-pointer",onClick:()=>El(l),children:a("effectEvaluation.unpublishedFlow.edit")}),e.jsx("a",{className:"text-[#0257ff] cursor-pointer",onClick:()=>ol(l.sid),children:a("effectEvaluation.unpublishedFlow.delete")})]})}],pl=()=>[...dl,...il,...ul],fl=()=>{if(!r||r.length==0){P.warning("è¯·éæ©è¯æµå¯¹è±¡!");return}if(!o.getFieldValue("name")){P.warning("请填åä»»å¡åç§°!");return}if(r[1].label=="èç¨¿çæ¬"){P.warning("çº¿ä¸æ¥å¿æ¨¡å¼ä¸æ¯æèç¨¿çæ¬!");return}const t=document.getElementById("onlineFormContainer");t&&(t.scrollTop=0),na(!0)},ml=()=>{var s,i;const t={id:"online-log-card",setName:"çº¿ä¸æ¥å¿",verName:o.getFieldValue("name")||"æªå½å",isOnline:!0,fields:ot.map(c=>({name:c,header:-1})),onlineLogName:`${o.getFieldValue("name")}_${(s=r[0])==null?void 0:s.title}_${Be().format("YYYY-MM-DD")}`};aa(t),Ge(c=>[...c.filter(d=>d.id!==t.id),t]),$e(c=>({...c,[t.id]:{fieldOrder:ot,fieldIdMap:ot.reduce((v,d)=>({...v,[d]:-1}),{}),promptVo:[]}}));const l=`${o.getFieldValue("name")}_${(i=r[0])==null?void 0:i.title}_${Be().format("YYYY-MM-DD")}`;zt(l),na(!1)};(Ee.current-1)*Ee.pageSize;const xl=we.slice((Ee.current-1)*Ee.pageSize,(Ee.current-1)*Ee.pageSize+Ee.pageSize),hl=(t,l)=>{jt({current:t,pageSize:st})},gl=a("effectEvaluation.unpublishedFlow.shortcuts",{returnObjects:!0}),[St,rt]=n.useState([Be().subtract(12,"hour"),Be()]);n.useEffect(()=>{J==="online"&&ce.setFieldsValue({sampling:St})},[J,St]);const vl=t=>{const l=Be(),s=l.subtract(t,"hour");rt([s,l]),ce.setFieldsValue({sampling:[s,l]})},[Me,ct]=n.useState([]),Nt=n.useMemo(()=>{const t=new Set(Me);return we.filter(l=>t.has(l.sid))},[we,Me]),bl={selectedRowKeys:Me,onChange:t=>{ct(t)},preserveSelectedRowKeys:!0,getCheckboxProps:t=>({name:t.sid})},El=t=>{var s,i;const l={answer:t.answer,statusCode:t.statusCode};(i=(s=t.questionJson)==null?void 0:s.jsonAnswer)==null||i.forEach(c=>{l[`jsonParameterAnswer.${c.key}`]=c.value}),Bt.setFieldsValue(l),Ot(t.sid)},wl=async t=>{const l=await Bt.validateFields(),s=we.map(i=>{var c,v;return i.sid===t?{...i,...l,questionJson:{...i.questionJson,jsonAnswer:(v=(c=i.questionJson)==null?void 0:c.jsonAnswer)==null?void 0:v.map(d=>l[`jsonParameterAnswer.${d.key}`]!==void 0?{...d,value:l[`jsonParameterAnswer.${d.key}`]}:d)}}:i});Re(s),ct(i=>i.includes(t)?[...i]:i),Ot(null)},jl=()=>{Ot(null)},Xt=t=>t.sid===Vt,Al=()=>{var v;if(Nt.length===0){_t.warning({title:"æç¤º",content:"请å
å¾ééè¦ä¿åçæ¥å¿æ°æ®"});return}const t=new Set(Me),s=we.filter(d=>t.has(d.sid)).map((d,I)=>{var q;const z=(((q=d.questionJson)==null?void 0:q.jsonAnswer)||[]).reduce((O,H)=>((H==null?void 0:H.key)!=null&&H.value!=null&&(O[H.key]=H.value),O),{});return{sid:d.sid,question:JSON.stringify(z),answer:d.answer,statusCode:d.statusCode,expectedAnswer:d.expectedAnswer,parameters:z,seq:I+1}}),i=`${o.getFieldValue("name")}_${(v=r[0])==null?void 0:v.title}_${Be().format("YYYY-MM-DD")}`,c=`onlineLogList_logList_${Date.now()}`;sessionStorage.setItem(c,JSON.stringify(s)),window.open(`/management/evaluation/dataset_createEval?logKey=${encodeURIComponent(c)}&onlineLogDataSetName=${encodeURIComponent(i)}`,"_blank")},Wt=()=>{ce.resetFields(),rt(null,null),ve(null),Re([]),Re([]),Rt(0),jt({current:1,pageSize:st}
1),nt(0),Le(0),Zt(null),At(null),it(null),ct([])},Fl=async()=>{const t=await Gt("eval");fe(t)},{run:yl}=ql(async(t,l,s)=>{try{await Ll({name:t,id:x||null}),l()}catch(i){s(i==null?void 0:i.message)}},{wait:500}),Sl=(t,l)=>!l||_?Promise.resolve():new Promise((s,i)=>{yl(l,s,i)}),Nl=E===2?re.some(t=>t.required&&t.type!=="string"):!1;return e.jsxs("div",{className:"flex flex-col items-center w-full h-full overflow-hidden",children:[!B&&e.jsx("div",{className:" w-[85%] h-full min-w-[1000px] overflow-hidden",children:e.jsxs("div",{className:"flex flex-col w-full h-full pb-10 overflow-hidden ",children:[e.jsxs("div",{className:"flex relative h-[86px] pt-[20px] pb-6",children:[e.jsxs("div",{className:"gap-2 font-[#3D3D3D] font-medium flex items-center cursor-pointer",onClick:()=>{B?S(!1):C(he?"/management/evaluation":-1)},children:[e.jsx("img",{src:Ca,className:"w-[18px] h-[18px]",alt:""}),e.jsx("div",{children:e.jsx("span",{className:"flex items-center gap-1 text-[#3D3D3D]",children:a("effectEvaluation.unpublishedFlow.newTask")})})]}),e.jsx("div",{className:"absolute left-[50%] translate-x-[-50%] top-[50%] translate-y-[-50%] text-[#7F7F7F] font-medium ",children:e.jsxs("div",{className:"flex items-center justify-center flex-1 gap-5",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-[28px] h-[28px] rounded-full text-center text-base leading-none",style:{color:j>=1?"#6356EA":"#7F7F7F",border:j>=1?"2px solid #6356EA":"2px solid #7F7F7F",lineHeight:"24px"},children:"1"}),e.jsx("div",{className:"text-base font-medium",style:{color:j>=1?"#6356EA":"#7F7F7F"},children:a("effectEvaluation.unpublishedFlow.selectEvaluationObject")})]}),e.jsx("img",{src:j>=2?Ea:wa,className:"w-[80px] h-[2px]",alt:""}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-[28px] h-[28px] rounded-full text-center text-base leading-none",style:{color:j>=2?"#6356EA":"#7F7F7F",border:j>=2?"2px solid #6356EA":"2px solid #7F7F7F",lineHeight:"24px"},children:"2"}),e.jsx("div",{className:"text-base font-medium",style:{color:j>=2?"#6356EA":"#7F7F7F"},children:a("effectEvaluation.unpublishedFlow.configureEvaluationDimensions")})]}),e.jsx("img",{src:j>=3?Ea:wa,className:"w-[80px] h-[2px]",alt:""}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-[28px] h-[28px] rounded-full text-center text-base leading-none",style:{color:j===3?"#6356EA":"#7F7F7F",border:j===3?"2px solid #6356EA":"2px solid #7F7F7F",lineHeight:"24px"},children:"3"}),e.jsx("div",{className:"font-medium",style:{color:j===3?"#6356EA":"#7F7F7F"},children:a("effectEvaluation.unpublishedFlow.initiateEvaluation")})]})]})})]}),j==1?e.jsx("div",{className:"flex flex-col flex-1 bg-[#ffffff] rounded-[18px] py-6 mb-6 overflow-hidden",children:e.jsx("div",{className:"flex flex-1 px-6 pt-[12px] overflow-auto",id:"onlineFormContainer",children:_e?e.jsx("div",{className:"w-full",style:{minHeight:"calc(100vh - 120px)",display:"flex",flexDirection:"column"},children:e.jsxs(A,{layout:"vertical",form:ce,style:{padding:"0 16px",flex:1,display:"flex",flexDirection:"column"},children:[e.jsxs(A.Item,{name:"sampling",label:a("effectEvaluation.unpublishedFlow.samplingPeriod"),style:{marginBottom:24},rules:[{required:!0,message:a("effectEvaluation.unpublishedFlow.pleaseSelectSamplingPeriod")}],children:[e.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[e.jsx(Et,{size:"middle",showTime:{format:"HH:mm:ss",hideDisabledOptions:!1},disabledDate:_a,disabledTime:el,className:"global-datePicker eval-datePicker",popupClassName:"datePicker-popup",format:"YYYY/MM/DD HH:mm:ss",value:St,onChange:t=>{t&&rt(t)},style:{flex:1,borderRadius:10,background:"#FFFFFF",boxSizing:"border-box",border:"1px solid #E4EAFF",height:40}}),e.jsx(kt,{allowClear:!0,placeholder:a("effectEvaluation.unpublishedFlow.shortcutSelect"),size:"middle",style:{width:180,height:40},value:void 0,onChange:t=>{t==null?(rt(null,null),ce.setFieldsValue({sampling:null})):vl(t)},children:gl.map(({label:t,value:l})=>e.jsx(Option,{value:l,children:t},l))})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,marginTop:24},children:[We&&e.jsx(ya,{percent:de,height:25,barColor:"#BBCDFF",bgColor:"#EFF3FF",status:Qa}),e.jsx(xe,{type:"primary",onClick:nl,loading:sa,disabled:sa,children:a("effectEvaluation.unpublishedFlow.pullData")})]})]}),de==100&&e.jsx(A.Item,{name:"sampleAmount",label:ll,rules:cl,style:{marginBottom:24},children:e.jsx(an,{min:1,max:Ke||1e3,onChange:rl,changeOnWheel:!1,className:"evaluation-input",placeholder:"请è¾å
¥æ¡æ°",style:{width:"100%"},controls:!1})}),e.jsx(A.Item,{name:"sampleMode",label:a("effectEvaluation.unpublishedFlow.samplingMethod"),rules:[{required:!0,message:a("effectEvaluation.unpublishedFlow.pleaseSelectSamplingMethod")}],children:e.jsxs(Ae.Group,{className:"flex w-full evaluation-type-radio-two-group",value:D,onChange:t=>{ve(t.target.value)},children:[e.jsx(Ae.Button,{value:1,className:"flex-1 h-10 rounded-lg",children:e.jsxs("div",{className:"flex items-center justify-between h-full",children:[e.jsx("div",{className:`font-medium ${D===1?"text-[#6356EA]":"text-[#3D3D3D]"}`,children:a("effectEvaluation.unpublishedFlow.sequentialSampling")}),D===1?e.jsx("img",{src:It,className:"w-[20px] h-[20px]",alt:""}):e.jsx("div",{className:"w-[18px] h-[18px] rounded-full bg-[#fff] border border-[#CACEE0] flex items-center justify-center"})]})}),e.jsx(Ae.Button,{value:2,className:"flex-1 h-10 -ml-px rounded-lg",children:e.jsxs("div",{className:"flex items-center justify-between h-full",children:[e.jsx("div",{className:`font-medium ${D===2?"text-[#6356EA]":"text-[#3D3D3D]"}`,children:a("effectEvaluation.unpublishedFlow.randomSampling")}),D===2?e.jsx("img",{src:It,className:"w-[20px] h-[20px]",alt:""}):e.jsx("div",{className:"w-[18px] h-[18px] rounded-full bg-[#fff] border border-[#CACEE0] flex items-center justify-center"})]})})]})}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,marginTop:14},children:[We&&e.jsx(ya,{percent:Lt,height:25,barColor:"#BBCDFF",bgColor:"#EFF3FF",status:La}),e.jsx(xe,{type:"primary",onClick:sl,loading:oa,disabled:oa,children:a("effectEvaluation.unpublishedFlow.immediateSampling")})]}),e.jsx("div",{className:"flex-1 min-h-0 mt-20 overflow-y-auto scrollbar-hide",children:e.jsx(A,{form:Bt,component:!1,children:e.jsx(Ia,{rowSelection:bl,loading:be,className:"evaluation-table custom-table",columns:pl(),dataSource:xl,pagination:!1,rowKey:t=>t.sid,scroll:{y:"100%"}})})}),e.jsxs("div",{className:"flex items-center justify-between mt-4",style:{height:48},children:[e.jsx("div",{className:"text-[#666666] text-sm",children:a("effectEvaluation.unpublishedFlow.totalDataCount",{total:we.length})}),e.jsx(ka,{current:Ee.current,pageSize:Ee.pageSize,total:we.length,onChange:hl,showSizeChanger:!1,showQuickJumper:!0})]})]})}):e.jsxs(A,{layout:"vertical",form:o,children:[e.jsx(A.Item,{name:"name",label:a("effectEvaluation.unpublishedFlow.taskName"),rules:[{required:!0,message:a("effectEvaluation.unpublishedFlow.pleaseEnterTaskName")},{validator:Sl}],children:e.jsx(Ce,{disabled:_,placeholder:a("effectEvaluation.unpublishedFlow.pleaseEnterTaskName"),className:"createTask-input-rou
1nded h-[46px] border border-[#E2E8FF]",style:{borderRadius:"8px"},maxLength:50,showCount:!0})}),e.jsx(A.Item,{name:"selectedEvaluationType",label:a("effectEvaluation.debuggingPreview.evaluationType"),rules:[{required:!0,message:a("effectEvaluation.unpublishedFlow.pleaseSelectEvaluationType")}],children:e.jsx(Ae.Group,{disabled:_,onChange:t=>{Yt(),Fe([]),la(t.target.value),o.setFieldsValue({applicationId:null,selectedEvaluationType:t.target.value,evalSetVerId:null,evalSetSourceType:null}),He(null),zt(null),Wt(),M([]),Y([])},value:E,className:"evaluation-type-radio-group",children:Ta.map(t=>e.jsx(Ae.Button,{value:t.value,children:e.jsxs("div",{className:"flex items-center justify-between h-full",children:[e.jsx("div",{className:`font-medium ${E===t.value?"text-[#6356EA]":"text-[#3D3D3D]"}`,children:t.label}),E===t.value?e.jsx("img",{src:It,className:"w-[20px] h-[20px]",alt:""}):e.jsx("div",{className:"w-[18px] h-[18px] rounded-full bg-[#fff] border border-[#CACEE0] flex items-center justify-center"})]})},t.value))})}),E===1&&e.jsx(A.Item,{name:"applicationId",className:"createTask-input-rounded",label:a("effectEvaluation.unpublishedFlow.evaluationObject"),rules:[{required:!0,message:a("effectEvaluation.unpublishedFlow.pleaseSelectEvaluationObject")}],children:e.jsx(kt,{disabled:_,placeholder:a("effectEvaluation.unpublishedFlow.pleaseSelectEvaluationObject"),suffixIcon:e.jsx("img",{src:dt,className:"w-4 h-4"}),className:"global-select w-full h-[48px] select-dropdown-bg",onChange:t=>{Je(t),lt(oe.find(l=>l.id==t)),Wt()},children:oe.map(t=>e.jsx(kt.Option,{value:t==null?void 0:t.id,children:t.label},t==null?void 0:t.id))})}),E===2&&e.jsx(A.Item,{name:"applicationId",className:"createTask-input-rounded",label:a("effectEvaluation.unpublishedFlow.evaluationObject"),rules:[{required:!0,message:a("effectEvaluation.unpublishedFlow.pleaseSelectEvaluationObject")}],children:e.jsx(Ct,{disabled:_,notFoundContent:e.jsx("div",{className:"h-[100px] flex items-center",children:e.jsx(pt,{})}),suffixIcon:e.jsx("img",{src:dt,className:"w-4 h-4"}),placeholder:a("effectEvaluation.unpublishedFlow.pleaseSelectEvaluationObject"),className:"global-select evaluation-select Cascader-select-padding",options:oe,displayRender:(t,l)=>r==null?void 0:r.map(s=>s==null?void 0:s.title).join(" / "),showCheckedStrategy:"SHOW_CHILD",getPopupContainer:t=>t==null?void 0:t.parentNode,onChange:(t,l)=>ua(l),style:{minHeight:"48px",height:"auto"}})}),E===3&&e.jsx(A.Item,{name:"applicationId",className:"createTask-input-rounded",label:a("effectEvaluation.unpublishedFlow.evaluationObject"),rules:[{required:!0,message:a("effectEvaluation.unpublishedFlow.pleaseSelectEvaluationObject")}],children:e.jsx(Ct,{disabled:_,suffixIcon:e.jsx("img",{src:dt,className:"w-4 h-4"}),placeholder:a("effectEvaluation.unpublishedFlow.pleaseSelectEvaluationObject"),className:"global-select evaluation-select Cascader-select-padding",options:oe,displayRender:(t,l)=>r==null?void 0:r.map(s=>s==null?void 0:s.title).join(" / "),showCheckedStrategy:"SHOW_CHILD",getPopupContainer:t=>t==null?void 0:t.parentNode,onChange:(t,l)=>ua(l),style:{minHeight:"48px",height:"auto"}})}),e.jsx(A.Item,{name:"evalSetSourceType",label:a("effectEvaluation.debuggingPreview.evaluationMethod"),rules:[{required:!0,message:a("effectEvaluation.publishedFlow.pleaseSelectEvaluationMethod")}],children:e.jsx(Ae.Group,{onChange:t=>{t.target.value!=="online"&&Yt(),Fl(),He(t.target.value),o.setFieldsValue({evalSetSourceType:t.target.value,evalSetVerId:null}),Y([]),Ge([])},value:J,className:"flex w-full evaluation-type-radio-two-group",children:bt.map(t=>{const l=t.value==="online"&&E!==2;return e.jsx(Ae.Button,{value:t.value,disabled:l||_,className:"flex-1 h-10 rounded-lg",children:e.jsxs("div",{className:"flex items-center justify-between h-full",children:[e.jsx("div",{className:`font-medium ${J===t.value?"text-[#6356EA]":l?"text-[#CACEE0]":"text-[#3D3D3D]"}`,children:t.label}),J===t.value?e.jsx("img",{src:It,className:"w-[20px] h-[20px]",alt:""}):e.jsx("div",{className:"w-[18px] h-[18px] rounded-full bg-[#fff] border border-[#CACEE0] flex items-center justify-center"})]})},t.value)})})}),J==="offline"&&e.jsx(A.Item,{name:"evalSetVerId",className:"label-width createTask-input-rou
1nded",label:e.jsxs("div",{className:"flex items-center justify-between w-full",children:[e.jsx("span",{style:{color:"#333333",fontSize:"14px",fontWeight:"500"},children:a("effectEvaluation.evaluationSet")}),(m==null?void 0:m.length)==1&&e.jsx("div",{onClick:()=>S(!0),className:"text-[#6356EA] font-medium cursor-pointer",children:a("effectEvaluation.unpublishedFlow.viewEvaluationSetData")})]}),rules:[{required:!0,message:a("effectEvaluation.unpublishedFlow.pleaseSelectEvaluationSet")}],children:e.jsx(Ct,{disabled:_,suffixIcon:e.jsx("img",{src:dt,className:"w-4 h-4"}),multiple:!0,placeholder:a("effectEvaluation.unpublishedFlow.pleaseSelectEvaluationSet"),className:"global-select evaluation-select Cascader-select-padding",options:Z,onChange:t=>{if(E===1?ae!=null&&ae.id:(r==null?void 0:r.length)>0,E!=1&&(r==null?void 0:r.length)==0){P.warning(a("effectEvaluation.unpublishedFlow.pleaseSelectEvaluationObject")),o.setFieldsValue({evalSetVerId:null});return}fa(t)},dropdownRender:Xa,displayRender:t=>t.join("/"),showCheckedStrategy:"SHOW_CHILD",getPopupContainer:t=>t==null?void 0:t.parentNode,style:{minHeight:"48px",height:"auto"}})}),J==="online"&&e.jsx("div",{className:"flex flex-col w-full mb-4",children:!_&&e.jsx("div",{className:"w-full text-center py-3 text-[#6356EA] font-medium border border-dashed border-[#6356EA] rounded-lg cursor-pointer hover:bg-[#f0f4ff] transition",onClick:fl,children:(Me==null?void 0:Me.length)>0?a("effectEvaluation.unpublishedFlow.preview"):a("effectEvaluation.unpublishedFlow.pullData")})}),E===2&&J==="offline"&&le.length>0&&e.jsx("div",{className:"px-6 mt-4",children:e.jsx("div",{className:"flex flex-col gap-2 mt-4 mb-4",children:le.map(t=>{var l;return e.jsx($t,{card:t,objectId:(l=r==null?void 0:r[r.length-1])==null?void 0:l.value,evaluationNowObj:r,cardStates:ne,evalSetCards:le,evalSetVerIdList:m,setCardStates:$e,selectedEvaluationType:E,isForbiddenInput:_,workflowFields:re,setWorkflowFields:Xe},t.id)})})}),e.jsx("div",{className:"flex flex-col gap-2 mt-4 mb-4",children:Mt&&e.jsx($t,{card:Mt,objectId:(ha=r==null?void 0:r[r.length-1])==null?void 0:ha.value,evaluationNowObj:r,cardStates:ne,evalSetCards:le,evalSetVerIdList:m,setCardStates:$e,selectedEvaluationType:E,isForbiddenInput:_,workflowFields:re,setWorkflowFields:Xe},Mt.id)}),E===3&&J==="offline"&&le.length>0&&e.jsx("div",{className:"px-6 mt-4",children:e.jsx("div",{className:"flex flex-col gap-2 mb-4",children:le.map(t=>e.jsx($t,{card:t,objectId:Ba,evaluationNowObj:r,cardStates:ne,evalSetCards:le,evalSetVerIdList:m,setCardStates:$e,selectedEvaluationType:E,workflowFields:re,setWorkflowFields:Xe},t.id))})}),e.jsx(A.Item,{name:"evaluationMethod",label:a("effectEvaluation.evaluationMode"),rules:[{required:!0,message:a("effectEvaluation.pleaseSelectEvaluationMode")}],children:e.jsx(Ae.Group,{disabled:_,onChange:t=>{const l=t.target.value;X(l),o.setFieldsValue({evaluationMethod:l})},value:u,className:"w-full custom-radio-group",children:e.jsxs("div",{className:"flex items-center w-full gap-5 radio-group",children:[e.jsx(Ae.Button,{value:[3],className:"relative w-full h-[124px] overflow-hidden p-[20px] rounded-[8px] radio-button-item",style:{border:u.includes(3)&&!u.includes(2)?"1.5px solid #6356EA":"1px solid #E7E7F0"},children:e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("div",{className:"text-[#222529] text-[16px] font-[500] leading-[24px] radio-title",style:{color:u.includes(3)&&!u.includes(2)?"#6356EA":"#222529"},children:a("effectEvaluation.intelligentEvaluation")}),e.jsxs("div",{className:"flex gap-2 text-[#6356EA] text-[12px]",children:[e.jsx("span",{className:"radio-tag",title:a("effectEvaluation.intelligentEvaluationTag.highEfficiency"),children:a("effectEvaluation.intelligentEvaluationTag.highEfficiency")}),e.jsx("span",{className:"radio-tag",title:a("effectEvaluation.intelligentEvaluationTag.lowCost"),children:a("effectEvaluation.intelligentEvaluationTag.lowCost")}),e.jsx("span",{className:"radio-tag",title:a("effectEvaluation.intelligentEvaluationTag.standardization"),children:a("effectEvaluation.intelligentEvaluationTag.standardization")}),e.jsx("span",{className:"radio-tag",title:a("effectEvaluation.intelligentEvaluationTag.sevenX24h"),children:a("effectEvaluation.intelligentEvaluationTag.sevenX24h")}),e.jsx("span",{className:"radio-tag",title:a("effectEvaluation.intelligentEvaluationTag.objectiveIndicators"),children:a("effectEvaluation.intelligentEvaluationTag.objectiveIndicators")}),e.jsx("span",{className:"radio-tag",title:a("effectEvaluation.intelligentEvaluationTag.subjectiveIndicators"),children:a("effectEvaluation.intelligentEvaluationTag.subjectiveIndicators")})]}),e.jsx("div",{className:"flex text-[#676773] text-[14px] leading-[22px]",children:e.jsx("span",{className:"flex-1 w-0 truncate",title:a("effectEvaluation.intelligentEvaluationDesc"),children:a("effectEvaluation.intelligentEvaluationDesc")})}),e.jsx("span",{className:"copywriting max-w-[300px] text-overflow",title:a("effectEvaluation.intelligentEvaluationDesc2"),style:{color:u.includes(3)&&!u.includes(2)?"#6356EA":"#676773"},children:a("effectEvaluation.intelligentEvaluationDesc2")})]})}),e.jsx(Ae.Button,{value:[2],className:"relative w-full h-[124px] overflow-hidden p-[20px] rounded-[8px] radio-button-item",style:{border:u.includes(2)&&!u.includes(3)?"1.5px solid #6356EA":"1px solid #E7E7F0"},children:e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("div",{className:"text-[#222529] text-[16px] font-[500] leading-[24px] radio-title",style:{color:u.includes(2)&&!u.includes(3)?"#6356EA":"#222529"},children:a("effectEvaluation.manualEvaluationTitle")}),e.jsxs("div",{className:"flex gap-2 text-[#6356EA] text-[12px]",children:[e.jsx("span",{className:"radio-tag",title:a("effectEvaluation.manualEvaluationTag.highQuality"),children:a("effectEvaluation.manualEvaluationTag.highQuality")}),e.jsx("span",{className:"radio-tag",title:a("effectEvaluation.manualEvaluationTag.professionalAuthority"),children:a("effectEvaluation.manualEvaluationTag.professionalAuthority")}),e.jsx("span",{className:"radio-tag",title:a("effectEvaluation.manualEvaluationTag.subjectiveJudgment"),children:a("effectEvaluation.manualEvaluationTag.subjectiveJudgment")}),e.jsx("span",{className:"radio-tag",title:a("effectEvaluation.manualEvaluationTag.deepAnalysis"),children:a("effectEvaluation.manualEvaluationTag.deepAnalysis")}),e.jsx("span",{className:"radio-tag",title:a("effectEvaluation.manualEvaluationTag.zeroError"),children:a("effectEvaluation.manualEvaluationTag.zeroError")})]}),e.jsx("div",{className:"flex text-[#676773] text-[14px] leading-[22px]",children:e.jsx("span",{className:"flex-1 w-0 truncate",title:a("effectEvaluation.manualEvaluationDesc"),children:a("effectEvaluation.manualEvaluationDesc")})}),e.jsx("span",{className:"copywriting",style:{color:u.includes(2)&&!u.includes(3)?"#6356EA":"#676773"},children:a("effectEvaluation.manualEvaluationDesc2")})]})}),e.jsx(Ae.Button,{value:[2,3],className:"relative w-full h-[124px] overflow-hidden p-[20px] rounded-[8px] radio-button-item",style:{border:u.includes(3)&&u.includes(2)?"1.5px solid #6356EA":"1px solid #E7E7F0"},children:e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("div",{className:"text-[#222529] text-[16px] font-[500] leading-[24px] radio-title",style:{color:u.includes(3)&&u.includes(2)?"#6356EA":"#222529"},children:a("effectEvaluation.intelligentAndManualEvaluation")}),e.jsxs("div",{className:"flex gap-2 text-[#6356EA] text-[12px]",children:[e.jsx("span",{className:"radio-tag",title:a("effectEvaluation.intelligentAndManualEvaluationTag.balanceEfficiencyAndQuality"),children:a("effectEvaluation.intelligentAndManualEvaluationTag.balanceEfficiencyAndQuality")}),e.jsx("span",{className:"radio-tag",title:a("effectEvaluation.intelligentAndManualEvaluationTag.coordinationAdvantage"),children:a("effectEvaluation.intelligentAndManualEvaluationTag.coordinationAdvantage")}),e.jsx("span",{className:"radio-tag",title:a("effectEvaluation.intelligentAndManualEvaluationTag.comprehensiveCoverage"),children:a("effectEvaluation.intelligentAndManualEvaluationTag.comprehensiveCoverage")}),e.jsx("span",{className:"radio-tag",title:a("effectEvaluation.intelligentAndManualEvaluationTag.costControllable"),children:a("effectEvaluation.intelligentAndManualEvaluationTag.costControllable")}),e.jsx("span",{className:"radio-tag",title:a("effectEvaluation.intelligentAndManualEvaluationTag.flexibleAllocation"),children:a("effectEvaluation.intelligentAndManualEvaluationTag.flexibleAllocation")})]}),e.jsx("div",{className:"flex text-[#676773] text-[14px] leading-[22px]",children:e.jsx("span",{className:"flex-1 w-0 truncate",title:a("effectEvaluation.intelligentAndManualEvaluationDesc"),children:a("effectEvaluation.intelligentAndManualEvaluationDesc")})}),e.jsx("span",{className:"copywriting",style:{color:u.includes(3)&&u.includes(2)?"#6356EA":"#676773"},children:a("effectEvaluation.intelligentAndManualEvaluationDesc2")})]})})]})})})]})})}):j==2?e.jsxs("div",{className:"flex flex-col flex-1 overflow-auto",children:[e.jsxs("div",{className:"flex h-[284px] flex-shrink-0 flex-col px-6 pt-6 overflow-auto bg-[#ffffff] rounded-[18px] mb-6 scroll-bar-hide-UI",style:u!=null&&u.includes(3)?{height:"1/3"}:{height:"100%"},children:[e.jsxs(A,{layout:"vertical",form:o,children:[(u==null?void 0:u.includes(3))&&e.jsx(A.Item,{name:"judgeModel",label:a("effectEvaluation.aiJudge"),rules:[{required:!0,message:a("effectEvaluation.unpublishedFlow.pleaseSelectJudgeModel")}],children:e.jsxs("div",{className:"flex w-full gap-5 judge-model",children:[e.jsxs("div",{className:"w-full flex flex-col gap-2 p-4 rounded-[8px] min-h-[124px] relative cursor-pointer judge-model-item",style:{border:f!=null&&f.includes(1)?"1.5px solid #6356EA":"1px solid #E7E7F0",background:`url(${f!=null&&f.includes(1)?dn:cn}) calc(100% + 6px) top no-repeat`},onClick:()=>{o.setFieldsValue({judgeModel:1}),te([1])},children:[e.jsx("div",{className:"text-[#222529] font-medium text-[16px] leading-[24px] judge-model-title",style:{color:f!=null&&f.includes(1)?"#6356EA":"#222529"},children:a("effectEvaluation.unpublishedFlow.generalEvaluationAIExpert")}),e.jsxs("div",{className:"flex gap-2 text-[#6356EA] text-[12px] leading-[22px]",children:[e.jsx("span",{className:"bg-[#EFEEFC] px-[6px] py-[2px] rounded-[16px]",title:a("effectEvaluation.unpublishedFlow.mostEconomical"),children:a("effectEvaluation.unpublishedFlow.mostEconomical")}),e.jsx("span",{className:"bg-[#EFEEFC] px-[6px] py-[2px] rounded-[16px]",title:a("effectEvaluation.unpublishedFlow.mostComprehensive"),children:a("effectEvaluation.unpublishedFlow.mostComprehensive")})]}),e.jsx("div",{title:a("effectEvaluation.unpublishedFlow.comprehensiveCoverageAIExpert"),className:"text-[#676773] text-[14px] leading-[22px] text-overflow-more text-overflow-2",children:a("effectEvaluation.unpublishedFlow.comprehensiveCoverageAIExpert")})]}),e.jsxs("div",{className:"w-full flex flex-col gap-2 p-4 rounded-lg min-h-[100px] relative overflow-hidden cursor-pointer judge-model-item",style:{border:f!=null&&f.includes(2)?"1.5px solid #6356EA":"1px solid #E7E7F0",background:`url(${f!=null&&f.includes(2)?pn:un}) calc(100% + 6px) top no-repeat`},onClick:()=>{o.setFieldsValue({judgeModel:2}),te([2])},children:[e.jsx("div",{className:"text-[#222529] font-medium text-[16px] leading-[24px] judge-model-title",style:{color:f!=null&&f.includes(2)?"#6356EA":"#222529"},children:a("effectEvaluation.unpublishedFlow.logicalReasoningAIExpert")}),e.jsxs("div",{className:"flex gap-2 text-[#6356EA] text-[12px] leading-[22px]",children:[e.jsx("span",{className:"bg-[#EFEEFC] px-[6px] py-[2px] rounded-[16px] truncate",title:a("effectEvaluation.unpublishedFlow.thinkingDepthStrong"),children:a("effectEvaluation.unpublishedFlow.thinkingDepthStrong")}),e.jsx("span",{className:"bg-[#EFEEFC] px-[6px] py-[2px] rounded-[16px] truncate",title:a("effectEvaluation.unpublishedFlow.reasoningAccuracyHigh"),children:a("effectEvaluation.unpublishedFlow.reasoningAccuracyHigh")})]}),e.jsx("div",{className:"text-[#676773] text-[14px] leading-[22px]",children:a("effectEvaluation.unpublishedFlow.deepThinkingAIExpert")})]}),e.jsxs("div",{className:"w-full flex flex-col gap-2 p-4 rounded-lg min-h-[100px] relative cursor-pointer overflow-hidden judge-model-item",style:{border:f!=null&&f.includes(3)?"1.5px solid #6356EA":"1px solid #E7E7F0",background:`url(${f!=null&&f.includes(3)?mn:fn}
1) calc(100% + 36px) calc(100% - 10px) no-repeat`},onClick:()=>{o.setFieldsValue({judgeModel:3}),te([3])},children:[e.jsx("div",{className:"text-[#222529] font-medium text-[16px] leading-[24px] judge-model-title",style:{color:f!=null&&f.includes(3)?"#6356EA":"#222529"},children:a("effectEvaluation.unpublishedFlow.mathematicalScienceAIExpert")}),e.jsxs("div",{className:"flex gap-2 text-[#6356EA] text-[12px] leading-[22px]",children:[e.jsx("span",{className:"bg-[#EFEEFC] truncate px-[6px] py-[2px] rounded-[16px]",title:a("effectEvaluation.unpublishedFlow.mathematicalSpecialty"),children:a("effectEvaluation.unpublishedFlow.mathematicalSpecialty")}),e.jsx("span",{className:"bg-[#EFEEFC] truncate px-[6px] py-[2px] rounded-[16px]",title:a("effectEvaluation.unpublishedFlow.scientificReasoningPrecise"),children:a("effectEvaluation.unpublishedFlow.scientificReasoningPrecise")}),e.jsx("span",{className:"bg-[#EFEEFC] truncate px-[6px] py-[2px] rounded-[16px]",title:a("effectEvaluation.unpublishedFlow.educationalScenarioProfessional"),children:a("effectEvaluation.unpublishedFlow.educationalScenarioProfessional")})]}),e.jsx("div",{className:"text-[#676773] text-[14px] leading-[22px]",children:a("effectEvaluation.unpublishedFlow.stemSpecialtyAIExpert")})]})]})}),e.jsx(A.Item,{className:"label-width createTask-input-rounded",name:"evaluationIndices",label:e.jsxs("div",{className:"flex items-center justify-between w-full",children:[e.jsx("span",{style:{color:"#333333",fontSize:"14px",fontWeight:"500"},children:a("effectEvaluation.unpublishedFlow.evaluationIndicators")}),e.jsx(Il,{to:"/management/evaluation/dimensions",target:"_blank",className:"text-[#6356EA] font-medium hover:text-[#6356EA]",style:{display:F?"none":"inline-block"},rel:"noopener noreferrer",children:a("effectEvaluation.dimension.addDimension")})]}),rules:[{required:!0,message:a("effectEvaluation.unpublishedFlow.pleaseSelectEvaluationIndicators")}],children:e.jsx(Ct,{disabled:_,suffixIcon:e.jsx("img",{src:dt,className:"w-5 h-5"}),allowClear:!1,multiple:!0,fieldNames:{label:"name",value:"name",children:"children"},placeholder:a("effectEvaluation.unpublishedFlow.pleaseSelectEvaluationIndicators"),className:"global-select evaluation-select Cascader-select-padding",options:ht,onChange:(t,l)=>Va(t,l),displayRender:t=>t.join("/"),showCheckedStrategy:"SHOW_CHILD",getPopupContainer:t=>t==null?void 0:t.parentNode,changeOnSelect:!0,style:{minHeight:"48px",height:"auto"},onDropdownVisibleChange:t=>{t&&Ra()}})})]}),Array.isArray(u)&&u.join()==="2"&&e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[14px] text-[#3D3D3D]",children:a("effectEvaluation.unpublishedFlow.selectedIndicators")}),e.jsx("span",{className:`text-[16px] ${F!=null?"text-[#999999] cursor-not-allowed":"text-[#6356EA] cursor-pointer hover:underline"}`,onClick:F!=null?void 0:()=>yt(!0),onMouseDown:t=>{F!=null&&t.preventDefault()},children:a("effectEvaluation.unpublishedFlow.addCustomDimension")})]}),e.jsx("div",{className:"border border-[#E4EAFF] rounded-[8px] h-[140px] p-[14px] flex gap-2",children:g.map(t=>e.jsxs("div",{className:"h-[fit-content] p-2 bg-[#F6F9FF] w-[142px] flex justify-between items-center rounded-[8px]",children:[e.jsx(Aa,{placement:"top",title:t.name,children:e.jsx("span",{className:"text-[14px] text-ellipsis overflow-hidden whitespace-nowrap",children:t.name})}),e.jsx("img",{src:Fa,alt:"å é¤",className:`w-[14px] h-[14px] ${F!=null?"opacity-50 cursor-not-allowed":"cursor-pointer hover:opacity-80"}`,onClick:F!=null?void 0:()=>da(t),onMouseDown:l=>{F!=null&&l.preventDefault()}})]},t.name))})]})]}),(u==null?void 0:u.includes(3))&&e.jsxs("div",{className:"flex w-full min-h-[526px] flex-1 flex-shrink-0 mb-6 gap-[8px] overflow-hidden",children:[e.jsxs("div",{className:"bg-[#ffffff] rounded-[18px] w-1/3 flex flex-col overflow-hidden",children:[e.jsx("div",{className:"text-[16px] text-[#3D3D3D] font-medium p-6",children:a("effectEvaluation.unpublishedFlow.selectedIndicators")}),e.jsx("div",{className:"flex flex-1 flex-col gap-3 text-[14px] overflow-y-auto px-6",children:g.map(t=>e.jsxs("div",{className:"w-full h-[50px] border border-solid border-[#
1E4EAFF] rounded-[8px] flex justify-between items-center px-[14px] py-2 font-medium",style:{border:V.name==t.name?"1px solid #6356EA":"1px solid #E4EAFF",background:V.name==t.name?"#f1f6ff":"",padding:"14px 14px 14px 12px"},onClick:()=>{ke(t),ze(t.prompt||"")},children:[t.isEdit?e.jsx(Ce,{placeholder:a("effectEvaluation.unpublishedFlow.pleaseEnter"),className:"createTask-input-rounded h-[36px] w-[80%] border border-[#E2E8FF]",style:{borderRadius:"8px"},maxLength:50,showCount:!0,defaultValue:t.name,onBlur:l=>ca(l.target.value,t),onKeyDown:l=>{l.key==="Enter"&&ca(l.target.value,t)}}):e.jsx(Aa,{placement:"top",title:t.name,children:e.jsx("span",{style:{color:V.name==t.name?"#6356EA":""},className:"w-[85%] text-ellipsis overflow-hidden whitespace-nowrap",children:t.name})}),e.jsxs("div",{className:"flex gap-[14px]",children:[e.jsx("img",{src:nn,alt:"ç¼è¾",className:`w-[14px] h-[14px] ${F!=null?"opacity-50 cursor-not-allowed":"cursor-pointer hover:opacity-80"}`,onClick:F!=null?void 0:l=>{l.stopPropagation(),Oa(t,!0)},onMouseDown:l=>F!=null&&l.preventDefault()}),V.name!=t.name&&e.jsx("img",{src:Fa,alt:"å é¤",className:`w-[14px] h-[14px] ${F!=null?"opacity-50 cursor-not-allowed":"cursor-pointer hover:opacity-80"}`,onClick:F!=null?void 0:l=>{l.stopPropagation(),da(t)},onMouseDown:l=>F!=null&&l.preventDefault()})]})]},t.id))}),e.jsx(xe,{disabled:_,type:"link",style:{border:"1px solid #91a7ff",borderRadius:"8px",padding:"8px 12px",margin:"16px",color:"#6356EA"},onClick:()=>yt(!0),children:a("effectEvaluation.unpublishedFlow.addCustomIndicator")})]}),e.jsxs("div",{className:"w-2/3 bg-[#ffffff] rounded-[18px] flex flex-col overflow-hidden",children:[e.jsxs("div",{className:"flex justify-between p-6 pb-[14px]",children:[e.jsxs("div",{className:"flex flex-1",children:[e.jsx("span",{className:"text-[16px] text-[#3D3D3D] font-medium",children:a("effectEvaluation.unpublishedFlow.promptPreviewAndEdit")}),e.jsx("span",{className:"w-[200px] pl-6 text-[14px] text-[#979797] flex-1 text-ellipsis overflow-hidden whitespace-nowrap",children:V.name})]}),V.name&&e.jsxs("div",{className:"flex gap-3 pl-6",children:[!V.isAdd&&e.jsxs("button",{className:"flex border border-solid border-[#E4EAFF] rounded-[8px] px-[16px] py-[6px] bg-[#fff] justify-center items-center gap-[8px]",onClick:()=>{V.prompt=Tt,ke({...V})},children:[e.jsx("img",{src:sn,alt:a("effectEvaluation.unpublishedFlow.restoreDefault"),className:"w-[14px] h-[14px]"}),e.jsx("span",{className:"text-[14px] text-[#6356EA]",children:a("effectEvaluation.unpublishedFlow.restoreDefault")})]}),e.jsxs("button",{className:"flex border border-solid border-[#E4EAFF] rounded-[8px] px-[16px] py-[6px] bg-[#fff] justify-center items-center gap-[8px]",children:[e.jsx("img",{src:on,alt:a("effectEvaluation.unpublishedFlow.debugPreview"),className:"w-[14px] h-[14px]"}),e.jsx("span",{className:"text-[14px] text-[#6356EA]",onClick:()=>{xa(!Ft)},children:a("effectEvaluation.unpublishedFlow.debugPreview")})]}),e.jsxs("button",{onClick:za,className:"flex border border-solid border-[#E4EAFF] rounded-[8px] px-[16px] py-[6px] bg-[#fff] justify-center items-center gap-[8px]",children:[e.jsx("img",{src:rn,alt:a("effectEvaluation.unpublishedFlow.aiOptimize"),className:"w-[14px] h-[14px]"}),e.jsx("span",{className:"text-[14px] text-[#6356EA]",children:a("effectEvaluation.unpublishedFlow.aiOptimize")})]})]})]}),e.jsx("div",{className:"flex flex-1 px-6 pb-6",children:e.jsx("div",{className:"flex flex-1 border border-solid border-[#E4EAFF] rounded-[8px]",children:V.name&&e.jsx(pt,{spinning:gt,indicator:e.jsx(ut,{spin:!0}),className:"w-full h-full",children:e.jsx("textarea",{onChange:t=>{Ht(t.target.value)},value:V.prompt,className:"w-full h-full max-h-full overflow-auto border border-solid border-[#E4EAFF] rounded-[8px] p-4 focus:outline-none focus:ring-1 focus:ring-[#E4EAFF]"})})})})]})]})]}):null,e.jsxs("div",{className:"flex items-center gap-2.5 justify-end ",children:[!F&&!_e&&e.jsx(xe,{loading:b,type:"text",className:"origin-btn px-[24px]",onClick:tt.debounce($a,500),children:a("effectEvaluation.unpublishedFlow.hold")}),j==1&&_e&&e.jsx(xe,{type:"text",className:"origin-btn px-[24px]",onClick:Al,children:a("effectEvaluation.unpublishedFlow.saveToEvaluationSet")}),j==1&&_e&&e.jsx(xe,{type:"text",className:"origin-btn px-[24px]",onClick:Wt,children:a("effectEvaluation.unpublishedFlow.reset")}),j==1&&_e&&e.jsx(xe,{type:"primary",className:"px-[24px]",onClick:ml,children:a("effectEvaluation.unpublishedFlow.confirm")}),j==2&&e.jsx(xe,{type:"text",className:"origin-btn px-[24px]",onClick:()=>{switch(j){case 1:C(-1);break;case 2:ma(1);break}},children:j==1?a("effectEvaluation.unpublishedFlow.cancel"):a("effectEvaluation.unpublishedFlow.previousStep")}),!_e&&e.jsx(xe,{loading:y,type:"primary",className:"px-[24px]",disabled:Nl,onClick:()=>{switch(j){case 1:ma(2);break;case 2:Ua();break}},children:j==1?a("common.nextStep"):a("effectEvaluation.unpublishedFlow.startEvaluation")})]})]})}),B&&e.jsx("div",{className:"w-[85%] h-full min-w-[1000px]",children:e.jsx("div",{className:"flex flex-col flex-1 h-full pb-10 overflow-hidden",children:e.jsx(ln,{evalSetVerIdList:m,setShowEvaluationSetData:S})})}),Ft&&e.jsx(vn,{open:Ft,originData:V.prompt,dimensionName:V.name,selectedEvaluationType:E,botObjectEvaluationNow:ae,objectEvaluationNow:r,finalMapping:je,evalSetSourceType:J,judgeModel:f,handleConfirmPrompt:t=>{Ht(t)}
1,handleCancel:()=>{xa(!Ft)}}),Ut&&e.jsx(bn,{onClose:()=>{yt(!Ut)},onSubmit:t=>{if(g.length&&g.findIndex(s=>s.name==t)!=-1)return P.warning(a("effectEvaluation.unpublishedFlow.dimensionNameCannotBeRepeated"));g.push({name:t,id:t,isAdd:!0,prompt:""}),W([...g]),yt(!Ut)}})]})}function An(){const{id:o}=kl(),[B]=Sa();B==null||B.get("evalSetId"),ft();const[S]=A.useForm(),[a,w]=n.useState(!1);return e.jsx("div",{className:"w-full h-full overflow-hidden",children:e.jsx(jn,{form:S,showEvaluationSetData:a,setShowEvaluationSetData:w})})}const ui=n.memo(An);export{ui as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.