felicity-lims/felicity/templates/static/assets/FelAnalyisRequestListing-7a700e20.js

2 lines
5.2 KiB
JavaScript
Raw Normal View History

import{d as S,ab as N,X as P,s as U,W as I,z as L,n as h,o as r,c as i,b as e,F as x,p as m,e as u,t as s,y as V,x as f,g as _,G as w,H as v,f as p,aH as E,j as T,_ as q,k as B}from"./index-467d1dc5.js";const j={class:"overflow-x-auto mt-4"},z={class:"align-middle inline-block min-w-full shadow overflow-hidden bg-white shadow-dashboard p-2 rounded-bl-sm rounded-br-sm"},H={class:"min-w-full"},G=e("thead",null,[e("tr",null,[e("th",{class:"px-1 py-1 border-b-2 border-gray-300 text-left leading-4 text-gray-800 tracking-wider"}),e("th",{class:"px-1 py-1 border-b-2 border-gray-300 text-left leading-4 text-gray-800 tracking-wider"}," Sampe ID "),e("th",{class:"px-1 py-1 border-b-2 border-gray-300 text-left text-sm leading-4 text-gray-800 tracking-wider"}," Test(s) "),e("th",{class:"px-1 py-1 border-b-2 border-gray-300 text-left text-sm leading-4 text-gray-800 tracking-wider"}," Patient "),e("th",{class:"px-1 py-1 border-b-2 border-gray-300 text-left text-sm leading-4 text-gray-800 tracking-wider"}," Client Patient ID "),e("th",{class:"px-1 py-1 border-b-2 border-gray-300 text-left text-sm leading-4 text-gray-800 tracking-wider"}," Client "),e("th",{class:"px-1 py-1 border-b-2 border-gray-300 text-left text-sm leading-4 text-gray-800 tracking-wider"}," Created "),e("th",{class:"px-1 py-1 border-b-2 border-gray-300 text-left text-sm leading-4 text-gray-800 tracking-wider"}," Creator "),e("th",{class:"px-1 py-1 border-b-2 border-gray-300 text-left text-sm leading-4 text-gray-800 tracking-wider"}," Status "),e("th",{class:"px-1 py-1 border-b-2 border-gray-300"})])],-1),M={class:"bg-gray-200"},O={colspan:"10",class:"px-1 py-1 whitespace-no-wrap border-b border-gray-400"},W={class:"flex items-center"},X={class:"text-sm leading-5 text-gray-800"},J={class:"px-1 py-1 whitespace-no-wrap border-b border-gray-500"},K=e("i",{class:"fa fa-star"},null,-1),Q=[K],Y={class:"px-1 py-1 whitespace-no-wrap border-b border-gray-500"},Z={class:"flex items-center"},$={class:"font-semibold"},ee={class:"px-1 py-1 whitespace-no-wrap border-b border-gray-500"},te={class:"text-sm leading-5 text-sky-800"},se={class:"px-1 py-1 whitespace-no-wrap border-b border-gray-500"},ae={class:"text-sm leading-5 text-sky-800"},re={class:"px-1 py-1 whitespace-no-wrap border-b border-gray-500"},ie={class:"text-sm leading-5 text-sky-800"},oe={class:"px-1 py-1 whitespace-no-wrap border-b border-gray-500"},ne={class:"text-sm leading-5 text-sky-800"},de={class:"px-1 py-1 whitespace-no-wrap border-b border-gray-500"},le={class:"text-sm leading-5 text-sky-800"},ce={class:"px-1 py-1 whitespace-no-wrap border-b border-gray-500"},pe={class:"text-sm leading-5 text-sky-800"},ye={class:"px-1 py-1 whitespace-no-wrap border-b border-gray-500"},_e={type:"button",class:"bg-cyan-600 text-white p-1 rounded-sm leading-none"},ge={class:"px-1 py-1 whitespace-no-wrap text-right border-b border-gray-500 text-sm leading-5"},be={key:0,class:"py-4 text-center"},he=S({__name:"FelAnalyisRequestListing",props:{target:String,targetUid:String},setup(k){const R=T(()=>q(()=>import("./FelLoadingMessage-c024b529.js"),["assets/FelLoadingMessage-c024b529.js","assets/index-467d1dc5.js","assets/index-fbaa55c8.css"])),g=k,{targetUid:b,target:c}=N(g),o=P(),{analysisRequests:A,fetchingAnalysisRequests:C}=U(o);c?.value==="patient-samples"&&o.fetchAnalysisRequestsForPatient(b?.value),c?.value==="client-samples"&&o.fetchAnalysisRequestsForClient(b?.value),I(()=>g.targetUid,(d,y)=>{o.resetAnalysisRequests(),c?.value==="patient-samples"&&o.fetchAnalysisRequestsForPatient(d),c?.value==="client-samples"&&o.fetchAnalysisRequestsForClient(d)});function F(d,y){let n=[];return d.forEach(l=>n.push(l.name)),y.forEach(l=>n.push(l.name)),n.join(", ")}return(d,y)=>{const n=L("router-link"),l=h("motion-slide-left"),D=h("motion-slide-right");return r(),i("div",j,[e("div",z,[e("table",H,[G,(r(!0),i(x,null,m(p(A),a=>(r(),i("tbody",{class:"bg-white",key:a.uid},[u((r(),i("tr",M,[e("td",O,[e("div",W,[e("div",X,s(a.clientRequestId),1)])])])),[[l]]),(r(!0),i(x,null,m(a.samples,t=>u((r(),i("tr",{key:t.uid},[e("td",J,[t.priority??0<1?(r(),