// Synthetic UI fixture, never a claim of official tender eligibility. import {sourceRows,bidSourceOptions,bidSourceSnapshot} from '../../src/services/bidSource.js'; import {documentKey,documentRevision,HEALTH_CHECKS} from '../../src/services/preparationChecks.js'; export function readyBid(tender, file) { const document={document:file?'QA zorunlu belge':'QA isteğe bağlı belge',mandatory:!!file,note:'Yalnız sentetik senaryo'}; const documentCheck=file?{status:'verified',evidence:'QA belge sürümü kontrol edildi.',documentId:file.id,documentRevision:documentRevision(file)}:{status:'notApplicable',evidence:'QA senaryosunda istenmiyor.'}; const analysis={documentChecklist:[document]},itemSource={}; const partialBid={enabled:false,source:'',selected:[],assignments:{}}; const options=bidSourceOptions(tender,analysis,itemSource); const rows=sourceRows(tender,analysis,options.selected || 'tender'); const sourceSnapshot=JSON.stringify([bidSourceSnapshot(tender,analysis,rows),partialBid,itemSource,options.signature]); return {...tender,bidDraft:{ firma:{firmaUnvan:'QA Sentetik Laboratuvar',adres:'QA Test Adresi',vergiDairesi:'QA',vergiNo:'0000000000',yetkiliAd:'QA Test Kullanıcısı',yetkiliGorev:'Test',telefon:'0000000000',eposta:'qa@example.test'}, teklifTuru:'birim',gecerlilikGun:'120',kisim:'',goturuBedel:'',priceSchema:1, pricesBySource:Object.fromEntries(rows.map(row=>[row.priceKey,'125.50'])), sourceSnapshot,reviewedSource:sourceSnapshot,manualDocuments:[],partialBid,itemSource,analysisSource:analysis, checks:{documents:{[documentKey(document)]:documentCheck}, products:Object.fromEntries(rows.map(row=>[row.priceKey,{status:'suitable',product:'QA sentetik ürün',source:'QA teknik madde 1', ...Object.fromEntries(HEALTH_CHECKS.map(([key])=>[key,{status:'notApplicable',evidence:'QA senaryosu.'}]))}]))}, }}; }