mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-24 08:53:00 +08:00
1 line
20 KiB
JavaScript
1 line
20 KiB
JavaScript
import{d as yt,P as ht,as as bt,X as gt,L as ft,r as x,C as D,D as v,W as xt,o as i,c as l,b as t,F as h,p as g,q as I,G as U,H as vt,t as a,y as L,f as e,i as P,g as b,x as V,e as c,v as _,at as C,au as R,w as F,j as m,_ as y,bH as kt,bI as wt,bJ as Ut,bK as At,O as St,k as Vt}from"./index-e48f6898.js";const Ct={class:""},Et={class:"container w-full my-4"},Mt=t("hr",null,null,-1),Tt=t("hr",null,null,-1),Dt=t("hr",null,null,-1),It={class:"grid grid-cols-12 gap-4 mt-2"},Lt={class:"col-span-2 overflow-y-scroll overscroll-contain max-h-[540px] bg-white p-1"},Pt={class:"w-full"},Rt=["onClick"],Ot={class:"flex-grow p-1"},Nt=t("span",{class:"text-sm text-gray-500"},null,-1),jt={key:0,class:"col-span-10"},Kt={class:"bg-white rounded-sm shadow-sm hover:shadow-lg duration-500 px-4 sm:px-6 md:px-2 py-4"},Ft={class:"grid grid-cols-12 gap-3"},qt={class:"sm:col-span-2 text-center hidden sm:block"},$t={class:"grid grid-rows-2 mx-auto mb-1 py-3 w-4/5 2lg:w-3/5 rounded-sm bg-sky-800"},Bt=t("p",{class:"font-bold"},"KEYWORD",-1),Yt=t("div",{class:"inline-block font-medium text-2xl text-white"},[t("i",{class:"fa fa-exclamation-circle"})],-1),Gt={class:"inline-block font-medium text-white text-md mt-2"},zt={class:"col-span-12 sm:col-start-3 sm:col-end-13 px-3 sm:px-0"},Ht={class:"flex justify-between sm:text-sm md:text-md lg:text-lg text-gray-700 font-bold"},Wt=t("svg",{class:"w-4 h-4 fill-current",viewBox:"0 0 20 20"},[t("path",{d:"M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"})],-1),Jt=[Wt],Xt=t("hr",null,null,-1),Zt={class:"grid grid-cols-2 mt-2"},Qt={class:"col-span-1"},ts={class:"flex"},ss=t("span",{class:"text-gray-600 text-md font-bold w-52"},"Category:",-1),es={class:"text-gray-600 text-md"},os={class:"flex"},ns=t("span",{class:"text-gray-600 text-md font-bold w-52"},"Unit:",-1),is={class:"text-gray-600 text-md"},ls={class:"flex"},as=t("span",{class:"text-gray-600 text-md font-bold w-52"},"SortKey:",-1),ds={class:"text-gray-600 text-md"},rs={class:"flex mt-2"},cs=t("span",{class:"text-gray-600 text-md font-bold w-52"},"TAT (minutes):",-1),us={class:"text-gray-600 text-md mr-2"},ps={class:"flex mt-2"},_s=t("span",{class:"text-gray-600 text-md font-bold w-52"},"Precision (decimals):",-1),ms={class:"text-gray-600 text-md mr-2"},ys={class:"col-span-1"},hs={class:"col-span-2 flex mt-2"},bs=t("span",{class:"text-gray-600 text-md font-bold w-52"},"Methods:",-1),gs={class:"text-gray-600 text-md mr-2"},fs={class:"col-span-2 flex mt-2"},xs=t("span",{class:"text-gray-600 text-md font-bold w-52"},"Sample Types:",-1),vs={class:"text-gray-600 text-md mr-2"},ks={class:"flex mt-2"},ws=t("span",{class:"text-gray-600 text-md font-bold w-52"},"Required verifications:",-1),Us={class:"text-gray-600 text-md mr-2"},As={class:"col-span-4 flex mt-2"},Ss=t("span",{class:"text-gray-600 text-md font-bold w-52"},"Allow self-verification:",-1),Vs={class:"text-gray-600 text-md mr-2"},Cs={class:"bg-white shadow-md mt-2"},Es={class:"-mb-px flex justify-start"},Ms=["onClick"],Ts={class:"mt-2 p-2 bg-white"},Ds={key:0},Is=t("h3",null,"General",-1),Ls=t("hr",null,null,-1),Ps=t("input",{type:"text"},null,-1),Rs=[Is,Ls,Ps],Os={key:1},Ns={key:2},js={key:3},Ks={key:4},Fs={key:5},qs={key:6},$s={key:7},Bs={class:"flex justify-between items-center mb-2"},Ys=t("h3",null,"Concept Mappings",-1),Gs=t("hr",null,null,-1),zs={class:"overflow-x-auto mt-4"},Hs={class:"align-middle inline-block min-w-full shadow overflow-hidden bg-white shadow-dashboard px-2 pt-1 rounded-bl-lg rounded-br-lg"},Ws={class:"min-w-full"},Js=t("thead",null,[t("tr",null,[t("th",{class:"px-1 py-1 border-b-2 border-gray-300 text-left text-sm leading-4 text-gray-800 tracking-wider"},"Coding Standard"),t("th",{class:"px-1 py-1 border-b-2 border-gray-300 text-left text-sm leading-4 text-gray-800 tracking-wider"},"Name"),t("th",{class:"px-1 py-1 border-b-2 border-gray-300 text-left text-sm leading-4 text-gray-800 tracking-wider"},"Code"),t("th",{class:"px-1 py-1 border-b-2 border-gray-300 text-left text-sm leading-4 text-gray-800 tracking-wider"},"Description"),t("th",{class:"px-1 py-1 border-b-2 border-gray-300"})])],-1),Xs={class:"bg-white"},Zs={class:"px-1 py-1 whitespace-no-wrap border-b border-gray-500"},Qs={class:"flex items-center"},te={class:"text-sm leading-5 text-gray-800"},se={class:"px-1 py-1 whitespace-no-wrap border-b border-gray-500"},ee={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"},ie={class:"px-1 py-1 whitespace-no-wrap border-b border-gray-500"},le={class:"text-sm leading-5 text-sky-800"},ae={class:"px-1 py-1 whitespace-no-wrap text-right border-b border-gray-500 text-sm leading-5"},de=["onClick"],re={key:8},ce={action:"post",class:"p-1"},ue={class:"grid grid-cols-6 gap-x-4 mb-4"},pe={class:"block col-span-4 mb-2"},_e=t("span",{class:"text-gray-700"},"Analysis Service Name",-1),me={class:"block col-span-1 mb-2"},ye=t("span",{class:"text-gray-700"},"keyword",-1),he={class:"block col-span-1 mb-2"},be=t("span",{class:"text-gray-700"},"Unit",-1),ge=t("option",null,null,-1),fe=["value"],xe={class:"block col-span-3 mb-2"},ve=t("span",{class:"text-gray-700"},"Sample Types",-1),ke={class:"block col-span-3 mb-2"},we=t("span",{class:"text-gray-700"},"Methods",-1),Ue={class:"block col-span-6 mb-2"},Ae=t("span",{class:"text-gray-700"},"Description",-1),Se={class:"block col-span-2 mb-2"},Ve=t("span",{class:"text-gray-700"},"Department",-1),Ce=t("option",null,null,-1),Ee=["value"],Me={class:"block col-span-2 mb-2"},Te=t("span",{class:"text-gray-700"},"Analysis Category",-1),De=t("option",null,null,-1),Ie=["value"],Le={class:"block col-span-2 mb-2"},Pe=t("span",{class:"text-gray-700"},"Sort Key",-1),Re={class:"block col-span-2 mb-2"},Oe=t("span",{class:"text-gray-700"},"TAT (minutes)",-1),Ne={class:"block col-span-2 mb-2"},je=t("span",{class:"text-gray-700"},"Precision",-1),Ke={class:"block col-span-2 mb-2"},Fe=t("span",{class:"text-gray-700"},"Required veifications",-1),qe={class:"col-span-2 flex justify-between"},$e={class:"block col-span-2 my-2"},Be=t("span",{class:"text-gray-700 ml-4"},"Is Active",-1),Ye={class:"block col-span-2 my-2"},Ge=t("span",{class:"text-gray-700 ml-4"},"Internal Use",-1),ze={class:"block col-span-2 my-2"},He=t("span",{class:"text-gray-700 ml-4"},"Allow Self Verifaction",-1),We=t("hr",null,null,-1),Je={action:"post",class:"p-1"},Xe={class:"grid grid-cols-2 gap-x-4 mb-4"},Ze={class:"block col-span-2 mb-2"},Qe=t("span",{class:"text-gray-700"},"Coding Standard",-1),to=t("option",null,null,-1),so=["value"],eo={class:"block col-span-2 mb-2"},oo=t("span",{class:"text-gray-700"},"Standard Name",-1),no={class:"block col-span-2 mb-2"},io=t("span",{class:"text-gray-700"},"Standard Code",-1),lo={class:"block col-span-2 mb-2"},ao=t("span",{class:"text-gray-700"},"Standard Description",-1),ro=t("hr",null,null,-1),co=yt({__name:"ServicesAdmin",setup(uo){const O=m(()=>y(()=>import("./vue-multiselect.esm-751dd29b.js"),["assets/vue-multiselect.esm-751dd29b.js","assets/index-e48f6898.js","assets/index-7d22ceed.css"])),N=m(()=>y(()=>import("./FelModal-3c028bd6.js"),["assets/FelModal-3c028bd6.js","assets/index-e48f6898.js","assets/index-7d22ceed.css","assets/FelModal-a7d23795.css"])),q=m(()=>y(()=>import("./FelAccordion-a82a10ed.js"),["assets/FelAccordion-a82a10ed.js","assets/index-e48f6898.js","assets/index-7d22ceed.css"])),$=m(()=>y(()=>import("./ResultOptions-e4712d44.js"),["assets/ResultOptions-e4712d44.js","assets/index-e48f6898.js","assets/index-7d22ceed.css"])),B=m(()=>y(()=>import("./InterimFields-14e9b9d9.js"),["assets/InterimFields-14e9b9d9.js","assets/index-e48f6898.js","assets/index-7d22ceed.css"])),Y=m(()=>y(()=>import("./CorrectionFactor-13e4d804.js"),["assets/CorrectionFactor-13e4d804.js","assets/index-e48f6898.js","assets/index-7d22ceed.css"])),G=m(()=>y(()=>import("./Uncertainty-d5bcbed7.js"),["assets/Uncertainty-d5bcbed7.js","assets/index-e48f6898.js","assets/index-7d22ceed.css"])),z=m(()=>y(()=>import("./DetectionLimit-fc04878d.js"),["assets/DetectionLimit-fc04878d.js","assets/index-e48f6898.js","assets/index-7d22ceed.css"])),H=m(()=>y(()=>import("./Specifications-7177568e.js"),["assets/Specifications-7177568e.js","assets/index-e48f6898.js","assets/index-7d22ceed.css"])),W=m(()=>y(()=>import("./Billing-dbf3896f.js"),["assets/Billing-dbf3896f.js","assets/index-e48f6898.js","assets/index-7d22ceed.css","assets/billing.mutations-e51f55df.js"])),J=ht(),p=bt(),X=gt(),A=ft(),{withClientMutation:S}=St();let u=x("general");const Z=["general","uncertainities","result-options","interims","correction-factor","detection-limits","specifications","mappings","billing"];let k=x(!1),E=x(""),s=D({});const M=x(!0),Q=v(()=>X.getSampleTypes),tt=v(()=>A.getDepartments);A.fetchMethods();const st=v(()=>A.getMethods);A.fetchUnits();const et=v(()=>A.getUnits);p.fetchAnalysesCategories();const ot=v(()=>p.getAnalysesCategories),nt=v(()=>p.getAnalysesServices);xt(()=>J.query,d=>{if(d.item){const n=p.analysesServices.find(o=>o.name===d.item);Object.assign(s,{...n})}},{immediate:!0});let it=D({first:void 0,after:"",text:"",sortBy:["name"]});p.fetchAnalysesServices(it);function lt(){const d={name:s.name,keyword:s.keyword,description:s.description,categoryUid:s.categoryUid,departmentUid:s.departmentUid,unitUid:s.unitUid,sortKey:s.sortKey,active:s.active,internalUse:s.internalUse,sampleTypes:s.sampleTypes?.map(n=>n.uid),methods:s.methods?.map(n=>n.uid),tatLengthMinutes:s.tatLengthMinutes,precision:s.precision,requiredVerifications:s.requiredVerifications,selfVerification:s.selfVerification};S(kt,{payload:d},"createAnalysis").then(n=>p.addAnalysesService(n))}function at(){const d={name:s.name,keyword:s.keyword,description:s.description,departmentUid:s.departmentUid,categoryUid:s.categoryUid,unitUid:s.unitUid,sortKey:s.sortKey,active:s.active,internalUse:s.internalUse,sampleTypes:s.sampleTypes?.map(n=>n.uid),methods:s.methods?.map(n=>n.uid),tatLengthMinutes:s.tatLengthMinutes,precision:s.precision,requiredVerifications:s.requiredVerifications,selfVerification:s.selfVerification};S(wt,{uid:s.uid,payload:d},"updateAnalysis").then(n=>p.updateAnalysisService(n))}function dt(d){Object.assign(s,{...d})}function j(d,n={}){M.value=d,k.value=!0,E.value=(d?"CREATE":"EDIT")+" ANALYSES SERVICE",d?Object.assign(s,{}):Object.assign(s,{...n})}function rt(){M.value===!0&<(),M.value===!1&&at(),k.value=!1}p.fetchCodingStandards();const ct=v(()=>p.analysesMapings?.filter(d=>d.analysisUid===s?.uid));let w=x(!1),ut=x("");const T=x(!0),r=D({uid:void 0,analysisUid:void 0,codingStandardUid:void 0,name:"",code:"",description:""});function pt(){const d={analysisUid:s?.uid,codingStandardUid:r.codingStandardUid,name:r.name,code:r.code,description:r.description};S(Ut,{payload:d},"createAnalysisMapping").then(n=>p.addAnalysesMapping(n))}function _t(){const d={analysisUid:s?.uid,codingStandardUid:r.codingStandardUid,name:r.name,code:r.code,description:r.description};S(At,{uid:r.uid,payload:d},"updateAnalysisMapping").then(n=>p.updateAnalysesMapping(n))}function K(d,n={}){T.value=d,w.value=!0,ut.value=(d?"CREATE":"EDIT")+" CONCEPT MAPPING",d?Object.assign(r,{}):Object.assign(r,{...n})}function mt(){T.value===!0&&pt(),T.value===!1&&_t(),w.value=!1}return(d,n)=>(i(),l(h,null,[t("div",Ct,[t("div",Et,[Mt,t("button",{class:"px-2 py-1 border-sky-800 border text-sky-800 rounded-sm transition duration-300 hover:bg-sky-800 hover:text-white focus:outline-none",onClick:n[0]||(n[0]=o=>j(!0))},"Add Analyses Service"),Tt]),Dt,t("div",It,[t("section",Lt,[t("div",Pt,[(i(!0),l(h,null,g(nt.value,o=>(i(),I(e(q),{key:o[0]},{title:U(()=>[vt(a(o[0]),1)]),body:U(()=>[t("div",null,[t("ul",null,[(i(!0),l(h,null,g(o[1],f=>(i(),l("li",{key:f?.uid,class:L(["cursor-pointer",[{"border-sky-800 bg-gray-200 underline pl-3":f.uid===e(s).uid}]]),onClick:po=>dt(f)},[t("div",Ot,[t("div",{class:L(["font-medium text-gray-500 hover:text-gray-700 flex justify-between",{"text-gray-700 font-medium":f.uid===e(s).uid}])},[t("span",null,a(f?.name),1),Nt],2)])],10,Rt))),128))])])]),_:2},1024))),128))])]),e(s)?.uid!==void 0?(i(),l("section",jt,[t("div",Kt,[t("div",Ft,[t("div",qt,[t("div",$t,[Bt,Yt,t("div",Gt,a(e(s)?.keyword),1)])]),t("div",zt,[t("div",Ht,[t("span",null,a(e(s)?.name),1),t("div",null,[t("button",{onClick:n[1]||(n[1]=o=>j(!1)),class:"ml-4 inline-flex items-center justify-center w-8 h-8 mr-2 border-sky-800 border text-gray-900 transition-colors duration-150 bg-white rounded-full focus:outline-none hover:bg-gray-200"},[...Jt])])]),Xt,t("div",Zt,[t("div",Qt,[t("div",ts,[ss,t("span",es,a(e(s)?.category?.name||"un-categprised"),1)]),t("div",os,[ns,t("span",is,a(e(s)?.unit?.name),1)]),t("div",ls,[as,t("span",ds,a(e(s)?.sortKey||"---"),1)]),t("div",rs,[cs,t("span",us,a(e(s)?.tatLengthMinutes),1)]),t("div",ps,[_s,t("span",ms,a(e(s)?.precision),1)])]),t("div",ys,[t("div",hs,[bs,t("span",gs,a(e(s)?.methods?.map(o=>o.name)?.join(", ")),1)]),t("div",fs,[xs,t("span",vs,a(e(s)?.sampleTypes?.map(o=>o.name)?.join(", ")),1)]),t("div",ks,[ws,t("span",Us,a(e(s)?.requiredVerifications),1)]),t("div",As,[Ss,t("span",Vs,a(e(s)?.selfVerification),1)])])])])])]),t("nav",Cs,[t("div",Es,[(i(),l(h,null,g(Z,o=>t("a",{key:o,class:L(["no-underline text-gray-500 uppercase tracking-wide font-bold text-xs py-1 px-4 tab hover:bg-sky-600 hover:text-gray-200",{"tab-active":e(u)===o}]),onClick:f=>P(u)?u.value=o:u=o},a(o),11,Ms)),64))])]),t("section",Ts,[e(u)==="general"?(i(),l("div",Ds,[...Rs])):e(u)==="uncertainities"?(i(),l("div",Os,[b(e(G),{analysis:e(s),analysisUid:e(s)?.uid},null,8,["analysis","analysisUid"])])):e(u)==="correction-factor"?(i(),l("div",Ns,[b(e(Y),{analysis:e(s),analysisUid:e(s)?.uid},null,8,["analysis","analysisUid"])])):e(u)==="result-options"?(i(),l("div",js,[b(e($),{analysis:e(s),analysisUid:e(s)?.uid},null,8,["analysis","analysisUid"])])):e(u)==="interims"?(i(),l("div",Ks,[b(e(B),{analysis:e(s),analysisUid:e(s)?.uid},null,8,["analysis","analysisUid"])])):e(u)==="detection-limits"?(i(),l("div",Fs,[b(e(z),{analysis:e(s),analysisUid:e(s)?.uid},null,8,["analysis","analysisUid"])])):e(u)==="specifications"?(i(),l("div",qs,[b(e(H),{analysis:e(s),analysisUid:e(s)?.uid},null,8,["analysis","analysisUid"])])):e(u)=="mappings"?(i(),l("div",$s,[t("div",Bs,[Ys,t("button",{onClick:n[2]||(n[2]=o=>K(!0)),class:"px-2 py-1 border-sky-800 border text-sky-800 rounded-sm transition duration-300 hover:bg-sky-800 hover:text-white focus:outline-none"},"Add Mapping")]),Gs,t("div",zs,[t("div",Hs,[t("table",Ws,[Js,t("tbody",Xs,[(i(!0),l(h,null,g(ct.value,o=>(i(),l("tr",{key:o},[t("td",Zs,[t("div",Qs,[t("div",te,a(o.codingStandard?.name),1)])]),t("td",se,[t("div",ee,a(o.name),1)]),t("td",oe,[t("div",ne,a(o.code),1)]),t("td",ie,[t("div",le,a(o.description),1)]),t("td",ae,[t("button",{onClick:f=>K(!1,o),class:"px-2 py-1 mr-2 border-sky-800 border text-sky-800 rounded-sm transition duration-300 hover:bg-sky-800 hover:text-white focus:outline-none"},"Edit",8,de)])]))),128))])])])])])):e(u)=="billing"?(i(),l("div",re,[b(e(W),{target:"analysis",targetUid:e(s).uid},null,8,["targetUid"])])):V("",!0)])])):V("",!0)])]),e(k)?(i(),I(e(N),{key:0,onClose:n[19]||(n[19]=o=>P(k)?k.value=!1:k=!1)},{header:U(()=>[t("h3",null,a(e(E)),1)]),body:U(()=>[t("form",ce,[t("div",ue,[t("label",pe,[_e,c(t("input",{class:"form-input mt-4 block w-full","onUpdate:modelValue":n[3]||(n[3]=o=>e(s).name=o),placeholder:"Name ..."},null,512),[[_,e(s).name]])]),t("label",me,[ye,c(t("input",{class:"form-input mt-1 block w-full","onUpdate:modelValue":n[4]||(n[4]=o=>e(s).keyword=o),placeholder:"Keyword ..."},null,512),[[_,e(s).keyword]])]),t("label",he,[be,c(t("select",{class:"form-select block w-full mt-1","onUpdate:modelValue":n[5]||(n[5]=o=>e(s).unitUid=o)},[ge,(i(!0),l(h,null,g(et.value,o=>(i(),l("option",{key:o.uid,value:o?.uid},a(o.name),9,fe))),128))],512),[[C,e(s).unitUid]])]),t("label",xe,[ve,b(e(O),{modelValue:e(s).sampleTypes,"onUpdate:modelValue":n[6]||(n[6]=o=>e(s).sampleTypes=o),options:Q.value,multiple:!0,searchable:!0,label:"name","track-by":"uid"},null,8,["modelValue","options"])]),t("label",ke,[we,b(e(O),{modelValue:e(s).methods,"onUpdate:modelValue":n[7]||(n[7]=o=>e(s).methods=o),options:st.value,multiple:!0,searchable:!0,label:"name","track-by":"uid"},null,8,["modelValue","options"])]),t("label",Ue,[Ae,c(t("textarea",{cols:"2",class:"form-input mt-1 block w-full","onUpdate:modelValue":n[8]||(n[8]=o=>e(s).description=o),placeholder:"Description ..."},null,512),[[_,e(s).description]])]),t("label",Se,[Ve,c(t("select",{class:"form-select block w-full mt-1","onUpdate:modelValue":n[9]||(n[9]=o=>e(s).departmentUid=o)},[Ce,(i(!0),l(h,null,g(tt.value,o=>(i(),l("option",{key:o.uid,value:o?.uid},a(o.name),9,Ee))),128))],512),[[C,e(s).departmentUid]])]),t("label",Me,[Te,c(t("select",{class:"form-select block w-full mt-1","onUpdate:modelValue":n[10]||(n[10]=o=>e(s).categoryUid=o)},[De,(i(!0),l(h,null,g(ot.value,o=>(i(),l("option",{key:o.uid,value:o?.uid},a(o.name),9,Ie))),128))],512),[[C,e(s).categoryUid]])]),t("label",Le,[Pe,c(t("input",{type:"number",default:"1",class:"form-input mt-1 block w-full","onUpdate:modelValue":n[11]||(n[11]=o=>e(s).sortKey=o)},null,512),[[_,e(s).sortKey]])]),t("label",Re,[Oe,c(t("input",{type:"number",default:"240",class:"form-input mt-1 block w-full","onUpdate:modelValue":n[12]||(n[12]=o=>e(s).tatLengthMinutes=o)},null,512),[[_,e(s).tatLengthMinutes]])]),t("label",Ne,[je,c(t("input",{type:"number",default:"4",class:"form-input mt-1 block w-full","onUpdate:modelValue":n[13]||(n[13]=o=>e(s).precision=o)},null,512),[[_,e(s).precision]])]),t("label",Ke,[Fe,c(t("input",{type:"number",default:"1",class:"form-input mt-1 block w-full","onUpdate:modelValue":n[14]||(n[14]=o=>e(s).requiredVerifications=o)},null,512),[[_,e(s).requiredVerifications]])]),t("div",qe,[t("label",$e,[c(t("input",{type:"checkbox","onUpdate:modelValue":n[15]||(n[15]=o=>e(s).active=o)},null,512),[[R,e(s).active]]),Be]),t("label",Ye,[c(t("input",{type:"checkbox","onUpdate:modelValue":n[16]||(n[16]=o=>e(s).internalUse=o)},null,512),[[R,e(s).internalUse]]),Ge]),t("label",ze,[c(t("input",{type:"checkbox","onUpdate:modelValue":n[17]||(n[17]=o=>e(s).selfVerification=o)},null,512),[[R,e(s).selfVerification]]),He])])]),We,t("button",{type:"button",onClick:n[18]||(n[18]=F(o=>rt(),["prevent"])),class:"-mb-4 w-full border border-sky-800 bg-sky-800 text-white rounded-sm px-4 py-2 m-2 transition-colors duration-500 ease select-none hover:bg-sky-800 focus:outline-none focus:shadow-outline"}," Save Form ")])]),_:1})):V("",!0),e(w)?(i(),I(e(N),{key:1,onClose:n[25]||(n[25]=o=>P(w)?w.value=!1:w=!1)},{header:U(()=>[t("h3",null,a(e(E)),1)]),body:U(()=>[t("form",Je,[t("div",Xe,[t("label",Ze,[Qe,c(t("select",{class:"form-select block w-full mt-1","onUpdate:modelValue":n[20]||(n[20]=o=>r.codingStandardUid=o)},[to,(i(!0),l(h,null,g(e(p).codingStandards,o=>(i(),l("option",{key:o.uid,value:o?.uid},a(o.name),9,so))),128))],512),[[C,r.codingStandardUid]])]),t("label",eo,[oo,c(t("input",{class:"form-input mt-1 block w-full","onUpdate:modelValue":n[21]||(n[21]=o=>r.name=o),placeholder:"Keyword ..."},null,512),[[_,r.name]])]),t("label",no,[io,c(t("input",{class:"form-input mt-1 block w-full","onUpdate:modelValue":n[22]||(n[22]=o=>r.code=o),placeholder:"Keyword ..."},null,512),[[_,r.code]])]),t("label",lo,[ao,c(t("textarea",{cols:"2",class:"form-input mt-1 block w-full","onUpdate:modelValue":n[23]||(n[23]=o=>r.description=o),placeholder:"Description ..."},null,512),[[_,r.description]])])]),ro,t("button",{type:"button",onClick:n[24]||(n[24]=F(o=>mt(),["prevent"])),class:"-mb-4 w-full border border-sky-800 bg-sky-800 text-white rounded-sm px-4 py-2 m-2 transition-colors duration-500 ease select-none hover:bg-sky-800 focus:outline-none focus:shadow-outline"}," Save Form ")])]),_:1})):V("",!0)],64))}}),mo=Vt(co,[["__file","/home/aurthurm/Documents/Development/felicity/felicity-lims/webapp/views/admin/analyses/services/ServicesAdmin.vue"]]);export{mo as default};
|