1import{_ as S,W as v,m as l,c as m,o,w as r,f as d,h as u,a as t,t as i,F as h,k as y,b as B,n as I,J as k,K as Q}from"./app-CuOBjNiw.js";import j from"./PriceQualityQuestionEvaluateView-DhTkGybH.js";import{g as C}from"./BidDocuments-DUo7fHGE.js";import"./ConstantsMixin-CgbnqT0V.js";import"./PriceQualityQuestionDocumentMixin-DH6FG98n.js";import"./helpers-CCz-k9Qs.js";try{(function(){var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new s.Error().stack;c&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[c]="9139542a-a579-465a-9025-b2b30a951c34",s._sentryDebugIdIdentifier="sentry-dbid-9139542a-a579-465a-9025-b2b30a951c34")})()}catch{}const F={methods:{matchQuestionsWithBid(s,c){return c.map(e=>({...e,answer:e.answers.find(b=>b.created_by_org.uuid===s.submitted_by_org.uuid),answers:null}))}}},T={components:{PriceQualityQuestionEvaluateView:j,FontAwesomeIcon:v},mixins:[F],props:{bid:Object,bidIndex:Number,priceQualityQuestions:Object,furtherCompetitionUuid:{type:String,default:""},form:Object,showSupportingBidInformation:Boolean,showScoreColumns:Boolean,dataTestId:"",isHighestScoringBid:Boolean},methods:{handleGetFile(s,c){C(this.furtherCompetitionUuid,s,c)},formatScore(s){return parseFloat(s??0).toFixed(2)}},computed:{priceQualityQuestionsWithBidAnswer(){return this.matchQuestionsWithBid(this.bid,this.priceQualityQuestions)}}},_=s=>(k("data-v-c5db553f"),s=s(),Q(),s),A={class:"text-primary font-normal text-md"},D={key:0,class:"flex items-center"},N={class:"w-24 flex justify-center"},W={class:"py-0.5 px-2 rounded-full bg-primary-blue text-sm text-white"},q={class:"w-24 flex justify-center"},O={class:"py-0.5 px-2 rounded-full bg-primary-blue text-sm text-white"},V={class:"w-24 flex justify-center"},E={class:"py-0.5 px-2 rounded-full bg-primary-blue text-sm text-white"},R={class:"w-16 flex justify-center"},G={class:"py-0.5 px-2 rounded-full bg-primary-blue text-sm text-white"},H={key:1,class:"py-0.5 px-2 rounded-full bg-primary-blue"},P={class:"font-normal text-sm text-white"},U={key:0,class:"rounded-md p-2 flex flex-col mb-4 mx-6"},z={class:"mb-2"},J=_(()=>t("span",{class:"text-xs"},"Reject reason",-1)),K={class:"flex flex-col sm:flex-row items-center gap-2 sm:gap-10 text-md rounded-md bg-sky-500/30 mb-4 p-2 sm:p-4"},L={class:"font-semibold"},M=_(()=>t("p",{class:"text-primary font-normal text-md"},"Supporting bid information",-1)),X={key:0},Y=_(()=>t("p",{class:"text-md text-center pt-4"},"No files added",-1)),Z=[Y],$={key:1,class:"space-y-2.5"},ee={class:"flex justify-between items-center"},te={class:"truncate"};function se(s,c,e,b,ie,n){const x=l("price-quality-question-evaluate-view"),p=l("icon-button"),g=l("sub-accordions"),w=l("accordion");return o(),m(w,{"tabs-open":"closed","number-of-tabs":1,name:e.bid.uuid,dataTestId:e.dataTestId,class:I({"highest-scoring-bid":e.isHighestScoringBid})},{"tab-1":r(()=>[t("p",A,i(e.bid.submitted_by_org.name),1)]),"tab-right-1":r(()=>[e.showScoreColumns?(o(),d("div",D,[t("span",N,[t("span",W,i(n.formatScore(e.bid.price_score))+"%",1)]),t("span",q,[t("span",O,i(n.formatScore(e.bid.quality_score))+"%",1)]),t("span",V,[t("span",E,i(n.formatScore(e.bid.overall_score))+"%",1)]),t("span",R,[t("span",G,i(e.bid.rank),1)])])):(o(),d("div",H,[t("p",P,i(e.bidIndex)+" - "+i(n.formatScore(e.bid.overall_score))+"%",1)]))]),"content-1":r(()=>[e.bid.withdrawn?(o(),d("div",U,[t("p",z,"Rejected at: "+i(e.bid.rejectAt),1),J,t("p",null,i(e.bid.rejectReason),1)])):u("",!0),t("div",K,[t("p",L,"Overall Score - "+i(n.formatScore(e.bid.overall_score))+"%",1),t("p",null,"Price Score - "+i(n.formatScore(e.bid.price_score))+"%",1),t("p",null,"Quality Score - "+i(n.formatScore(e.bid.quality_score))+"%",1)]),(o(!0),d(h,null,y(n.priceQualityQuestionsWithBidAnswer,a=>(o(),m(x,{key:a.uuid,question:a,bid:e.bid,form:e.form?e.form[a.uuid].find(f=>f.uuid===a.answer.uuid):null},null,8,["question","bid","form"]))),128)),e.showSupportingBidInformation?(o(),m(g,{key:1,name:`${e.bid.uuid} supporting bid information`,"tabs-open":"closed","number-of-tabs":1},{"tab-1":r(()=>[M]),"content-1":r(()=>[e.bid.files.length===0?(o(),d("div",X,Z)):u("",!0),e.bid.files.length>0?(o(),d("div",$,[(o(!0),d(h,null,y(e.bid.files,a=>(o(),d("div",null,[t("div",ee,[t("p",te,i(a.name),1),B(p,{type:"primary-blue",icon:"download",onClick:f=>n.handleGetFile(a.uuid,a.name)},null,8,["onClick"])])]))),256))])):u("",!0)]),_:1},8,["name"])):u("",!0)]),_:1},8,["name","dataTestId","class"])}const le=S(T,[["render",se],["__scopeId","data-v-c5db553f"]]);export{le 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.