2 lines
19 KiB
JavaScript
2 lines
19 KiB
JavaScript
import{r as m,c as j,o as tt,s as et,v as st,i as ot,w as i,g as a,b as t,a as r,d as c,e as v,k as d,t as o,af as f,aR as h,n as L,j as p,F as u,b9 as nt}from"./index-QAlcqU00.js";import{u as at,e as rt,g as N,h as H}from"./useContractManagement-OiJwK-RO.js";import{F as lt,a as it}from"./FPPageHeader-CFIwZZgQ.js";import{F as y}from"./FPBadge-DvOitM1C.js";const dt={class:"px-6 py-8"},ct={key:0,class:"flex items-center justify-center py-12"},ut={key:1,class:"space-y-6"},mt={class:"bg-white shadow rounded-lg p-6"},vt={class:"flex items-start space-x-4"},xt={class:"flex items-center space-x-4 mb-2"},gt={class:"text-sm text-gray-500"},pt={class:"text-gray-600"},yt={class:"grid grid-cols-1 md:grid-cols-4 gap-6"},ft={class:"bg-white shadow rounded-lg p-6"},ht={class:"flex items-center"},kt={class:"ml-4"},_t={class:"text-2xl font-bold text-gray-900"},wt={class:"bg-white shadow rounded-lg p-6"},bt={class:"flex items-center"},Ct={class:"ml-4"},Dt={class:"text-lg font-semibold text-gray-900"},jt={class:"bg-white shadow rounded-lg p-6"},Mt={class:"flex items-center"},Vt={class:"ml-4"},zt={class:"text-lg font-semibold text-gray-900"},Bt={class:"bg-white shadow rounded-lg p-6"},At={class:"flex items-center"},Lt={class:"ml-4"},Nt={class:"text-lg font-semibold text-gray-900"},Ht={class:"bg-white shadow rounded-lg"},St={class:"border-b border-gray-200"},Et={class:"-mb-px flex space-x-8 px-6","aria-label":"Tabs"},$t=["onClick"],Tt={class:"p-6"},Ft={key:0},Rt={class:"grid grid-cols-1 lg:grid-cols-2 gap-6"},Pt={class:"space-y-3"},It={class:"flex justify-between"},Ut={class:"text-sm text-gray-900 capitalize"},Ot={class:"flex justify-between"},Wt={class:"text-sm text-gray-900"},Yt={class:"flex justify-between"},qt={class:"text-sm text-gray-900 capitalize"},Gt={class:"flex justify-between"},Jt={class:"text-sm text-gray-900"},Kt={class:"flex justify-between"},Qt={class:"text-sm text-gray-900"},Xt={class:"space-y-3"},Zt={class:"flex justify-between"},te={class:"text-sm text-gray-900"},ee={class:"flex justify-between"},se={class:"text-sm text-gray-900"},oe={class:"flex justify-between"},ne={class:"flex justify-between"},ae={class:"text-sm text-gray-900"},re={key:1},le={class:"mb-4 flex justify-between items-center"},ie={key:0,class:"text-center py-8"},de={key:1,class:"space-y-3"},ce={class:"flex items-center space-x-3"},ue={class:"text-sm font-medium text-gray-900"},me={class:"text-xs text-gray-500"},ve={class:"flex items-center space-x-2"},xe={key:2,class:"text-center py-8 text-gray-500"},ge={key:2},pe={class:"mb-4 flex justify-between items-center"},ye={key:0,class:"text-center py-8"},fe={key:1,class:"grid grid-cols-1 md:grid-cols-2 gap-4"},he={class:"flex items-center justify-between mb-2"},ke={class:"text-sm font-medium text-gray-900 capitalize"},_e={class:"text-2xl font-bold text-gray-900"},we={class:"text-sm text-gray-600 mt-1"},be={key:2,class:"text-center py-8 text-gray-500"},Ce={key:3},De={class:"mb-4 flex justify-between items-center"},je={key:0,class:"text-center py-8"},Me={key:1,class:"space-y-4"},Ve={class:"flex items-center justify-between mb-2"},ze={class:"text-sm font-medium text-gray-900"},Be={class:"text-sm text-gray-600 mb-3"},Ae={class:"flex items-center justify-between text-sm"},Le={class:"text-gray-500"},Ne={key:0,class:"space-x-2"},He={key:2,class:"text-center py-8 text-gray-500"},Se={key:2,class:"text-center py-12"},Ee={class:"text-red-600"},$e={class:"text-gray-600 mb-4"},Te={key:3,class:"text-center py-12"},Fe={class:"text-gray-400"},We={__name:"ContractDetailView",setup(Re){const S=et(),k=st(),{loadContractById:E,formatContractValue:$,calculateContractDuration:T,isContractExpiringSoon:F,error:M}=at(),s=m(null),V=m(!0),_=m([]),w=m([]),b=m([]),R=m(!1),P=m(!1),I=m(!1),x=m("overview"),U=[{id:"overview",label:"Overview"},{id:"documents",label:"Documents"},{id:"slas",label:"SLAs"},{id:"milestones",label:"Milestones"}],z=j(()=>s.value?T(s.value):{days:0,months:0,years:0}),C=j(()=>{var l;return(l=s.value)!=null&&l.endDate?rt(s.value.endDate):0}),B=j(()=>s.value?F(s.value):!1),g=l=>l?new Date(l).toLocaleDateString():"N/A",O=l=>l<=0?"text-red-600":l<=30?"text-yellow-600":"text-green-600",W=l=>({pending:"default",in_progress:"info",completed:"success",overdue:"error",cancelled:"default"})[l]||"default",Y=()=>{k.push(`/contracts?edit=${s.value.id}`)},q=()=>{k.push(`/work-orders?create=true&contractId=${s.value.id}`)},G=()=>{console.log("Upload document functionality coming soon")},J=l=>{console.log("Download document:",l.name)},K=l=>{console.log("Delete document:",l.name)},Q=()=>{console.log("Create SLA functionality coming soon")},X=()=>{console.log("Create milestone functionality coming soon")},Z=l=>{console.log("Complete milestone:",l.title)};return tt(async()=>{const l=S.params.id;if(!l){k.push("/contracts");return}try{s.value=await E(parseInt(l))}catch(e){console.error("Failed to load contract:",e)}finally{V.value=!1}}),(l,e)=>(a(),ot(lt,null,{header:i(()=>[c(it,{title:s.value?s.value.title:"Contract Details",description:s.value?s.value.description||"Contract information and details":"Loading contract details...",breadcrumbs:[{text:"Contracts",to:"/contracts"},{text:s.value?s.value.title:"Loading...",to:null}]},nt({_:2},[s.value?{name:"actions",fn:i(()=>[c(u,{variant:"secondary",size:"sm",onClick:Y},{default:i(()=>e[2]||(e[2]=[t("svg",{class:"w-4 h-4 mr-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})],-1),d(" Edit Contract ",-1)])),_:1,__:[2]}),c(u,{variant:"primary",size:"sm",onClick:q},{default:i(()=>e[3]||(e[3]=[t("svg",{class:"w-4 h-4 mr-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 6v6m0 0v6m0-6h6m-6 0H6"})],-1),d(" Create Work Order ",-1)])),_:1,__:[3]})]),key:"0"}:void 0]),1032,["title","description","breadcrumbs"])]),default:i(()=>{var A;return[t("div",dt,[V.value?(a(),r("div",ct,e[4]||(e[4]=[t("div",{class:"flex items-center space-x-2 text-gray-500"},[t("svg",{class:"w-8 h-8 animate-spin",fill:"none",viewBox:"0 0 24 24"},[t("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),t("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]),t("span",null,"Loading contract details...")],-1)]))):s.value?(a(),r("div",ut,[t("div",mt,[t("div",vt,[e[5]||(e[5]=t("div",{class:"w-16 h-16 bg-blue-100 rounded-lg flex items-center justify-center"},[t("svg",{class:"w-8 h-8 text-blue-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})])],-1)),t("div",null,[t("div",xt,[c(y,{variant:v(N)(s.value.status).color},{default:i(()=>[d(o(v(N)(s.value.status).label),1)]),_:1},8,["variant"]),c(y,{variant:v(H)(s.value.priority).color},{default:i(()=>[d(o(v(H)(s.value.priority).label),1)]),_:1},8,["variant"]),t("span",gt,o(s.value.contractNumber),1)]),t("p",pt,o(s.value.description||"No description available"),1)])])]),t("div",yt,[t("div",ft,[t("div",ht,[e[7]||(e[7]=t("div",{class:"flex-shrink-0"},[t("svg",{class:"w-8 h-8 text-green-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1"})])],-1)),t("div",kt,[e[6]||(e[6]=t("p",{class:"text-sm font-medium text-gray-500"},"Contract Value",-1)),t("p",_t,o(v($)(s.value.contractValue,s.value.currency)),1)])])]),t("div",wt,[t("div",bt,[e[9]||(e[9]=t("div",{class:"flex-shrink-0"},[t("svg",{class:"w-8 h-8 text-blue-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})])],-1)),t("div",Ct,[e[8]||(e[8]=t("p",{class:"text-sm font-medium text-gray-500"},"Start Date",-1)),t("p",Dt,o(g(s.value.startDate)),1)])])]),t("div",jt,[t("div",Mt,[e[11]||(e[11]=t("div",{class:"flex-shrink-0"},[t("svg",{class:"w-8 h-8 text-red-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})])],-1)),t("div",Vt,[e[10]||(e[10]=t("p",{class:"text-sm font-medium text-gray-500"},"End Date",-1)),t("p",zt,o(g(s.value.endDate)),1)])])]),t("div",Bt,[t("div",At,[e[13]||(e[13]=t("div",{class:"flex-shrink-0"},[t("svg",{class:"w-8 h-8 text-yellow-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})])],-1)),t("div",Lt,[e[12]||(e[12]=t("p",{class:"text-sm font-medium text-gray-500"},"Duration",-1)),t("p",Nt,o(z.value.years)+" year"+o(z.value.years!==1?"s":""),1)])])])]),t("div",Ht,[t("div",St,[t("nav",Et,[(a(),r(f,null,h(U,n=>t("button",{key:n.id,onClick:D=>x.value=n.id,class:L(["py-4 px-1 border-b-2 font-medium text-sm",x.value===n.id?"border-blue-500 text-blue-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"])},o(n.label),11,$t)),64))])]),t("div",Tt,[x.value==="overview"?(a(),r("div",Ft,[t("div",Rt,[t("div",null,[e[19]||(e[19]=t("h3",{class:"text-lg font-medium text-gray-900 mb-4"},"Basic Information",-1)),t("dl",Pt,[t("div",It,[e[14]||(e[14]=t("dt",{class:"text-sm font-medium text-gray-500"},"Contract Type",-1)),t("dd",Ut,o(s.value.contractType.replace("_"," ")),1)]),t("div",Ot,[e[15]||(e[15]=t("dt",{class:"text-sm font-medium text-gray-500"},"Vendor",-1)),t("dd",Wt,o(s.value.vendorName||"N/A"),1)]),t("div",Yt,[e[16]||(e[16]=t("dt",{class:"text-sm font-medium text-gray-500"},"Payment Terms",-1)),t("dd",qt,o(((A=s.value.paymentTerms)==null?void 0:A.replace("_"," "))||"N/A"),1)]),t("div",Gt,[e[17]||(e[17]=t("dt",{class:"text-sm font-medium text-gray-500"},"Auto Renew",-1)),t("dd",Jt,o(s.value.autoRenew?"Yes":"No"),1)]),t("div",Kt,[e[18]||(e[18]=t("dt",{class:"text-sm font-medium text-gray-500"},"Renewal Notice Days",-1)),t("dd",Qt,o(s.value.renewalNotificationDays||30)+" days",1)])])]),t("div",null,[e[24]||(e[24]=t("h3",{class:"text-lg font-medium text-gray-900 mb-4"},"Contract Dates",-1)),t("dl",Xt,[t("div",Zt,[e[20]||(e[20]=t("dt",{class:"text-sm font-medium text-gray-500"},"Created Date",-1)),t("dd",te,o(g(s.value.createdAt)),1)]),t("div",ee,[e[21]||(e[21]=t("dt",{class:"text-sm font-medium text-gray-500"},"Updated Date",-1)),t("dd",se,o(g(s.value.updatedAt)),1)]),t("div",oe,[e[22]||(e[22]=t("dt",{class:"text-sm font-medium text-gray-500"},"Days Remaining",-1)),t("dd",{class:L(["text-sm text-gray-900",O(C.value)])},o(C.value>0?`${C.value} days`:"Expired"),3)]),t("div",ne,[e[23]||(e[23]=t("dt",{class:"text-sm font-medium text-gray-500"},"Expiring Soon",-1)),t("dd",ae,[c(y,{variant:B.value?"warning":"success"},{default:i(()=>[d(o(B.value?"Yes":"No"),1)]),_:1},8,["variant"])])])])])])])):p("",!0),x.value==="documents"?(a(),r("div",re,[t("div",le,[e[26]||(e[26]=t("h3",{class:"text-lg font-medium text-gray-900"},"Contract Documents",-1)),c(u,{size:"sm",onClick:G},{default:i(()=>e[25]||(e[25]=[t("svg",{class:"w-4 h-4 mr-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"})],-1),d(" Upload Document ",-1)])),_:1,__:[25]})]),R.value?(a(),r("div",ie,e[27]||(e[27]=[t("div",{class:"inline-flex items-center text-gray-500"},[t("svg",{class:"animate-spin h-5 w-5 mr-2",fill:"none",viewBox:"0 0 24 24"},[t("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),t("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]),d(" Loading documents... ")],-1)]))):_.value&&_.value.length>0?(a(),r("div",de,[(a(!0),r(f,null,h(_.value,n=>(a(),r("div",{key:n.id,class:"flex items-center justify-between p-3 border border-gray-200 rounded-lg"},[t("div",ce,[e[28]||(e[28]=t("div",{class:"flex-shrink-0"},[t("svg",{class:"w-8 h-8 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})])],-1)),t("div",null,[t("p",ue,o(n.name),1),t("p",me,o(n.type)+" • "+o(g(n.createdAt)),1)])]),t("div",ve,[c(u,{variant:"outline",size:"xs",onClick:D=>J(n)},{default:i(()=>e[29]||(e[29]=[d(" Download ",-1)])),_:2,__:[29]},1032,["onClick"]),c(u,{variant:"outline",size:"xs",onClick:D=>K(n)},{default:i(()=>e[30]||(e[30]=[d(" Delete ",-1)])),_:2,__:[30]},1032,["onClick"])])]))),128))])):(a(),r("div",xe,e[31]||(e[31]=[t("svg",{class:"w-12 h-12 mx-auto mb-4 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})],-1),t("p",null,"No documents uploaded yet",-1),t("p",{class:"text-sm"},"Upload contract documents to get started",-1)])))])):p("",!0),x.value==="slas"?(a(),r("div",ge,[t("div",pe,[e[33]||(e[33]=t("h3",{class:"text-lg font-medium text-gray-900"},"Service Level Agreements",-1)),c(u,{size:"sm",onClick:Q},{default:i(()=>e[32]||(e[32]=[t("svg",{class:"w-4 h-4 mr-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 6v6m0 0v6m0-6h6m-6 0H6"})],-1),d(" Add SLA ",-1)])),_:1,__:[32]})]),P.value?(a(),r("div",ye,e[34]||(e[34]=[t("div",{class:"inline-flex items-center text-gray-500"},[t("svg",{class:"animate-spin h-5 w-5 mr-2",fill:"none",viewBox:"0 0 24 24"},[t("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),t("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]),d(" Loading SLAs... ")],-1)]))):w.value&&w.value.length>0?(a(),r("div",fe,[(a(!0),r(f,null,h(w.value,n=>(a(),r("div",{key:n.id,class:"bg-gray-50 border border-gray-200 rounded-lg p-4"},[t("div",he,[t("h4",ke,o(n.metric.replace("_"," ")),1),c(y,{variant:"info"},{default:i(()=>e[35]||(e[35]=[d("Active",-1)])),_:1,__:[35]})]),t("p",_e,o(n.target)+" "+o(n.unit),1),t("p",we,o(n.measurement||"No measurement defined"),1)]))),128))])):(a(),r("div",be,e[36]||(e[36]=[t("svg",{class:"w-12 h-12 mx-auto mb-4 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})],-1),t("p",null,"No SLAs defined",-1),t("p",{class:"text-sm"},"Add service level agreements to track performance",-1)])))])):p("",!0),x.value==="milestones"?(a(),r("div",Ce,[t("div",De,[e[38]||(e[38]=t("h3",{class:"text-lg font-medium text-gray-900"},"Contract Milestones",-1)),c(u,{size:"sm",onClick:X},{default:i(()=>e[37]||(e[37]=[t("svg",{class:"w-4 h-4 mr-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 6v6m0 0v6m0-6h6m-6 0H6"})],-1),d(" Add Milestone ",-1)])),_:1,__:[37]})]),I.value?(a(),r("div",je,e[39]||(e[39]=[t("div",{class:"inline-flex items-center text-gray-500"},[t("svg",{class:"animate-spin h-5 w-5 mr-2",fill:"none",viewBox:"0 0 24 24"},[t("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),t("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]),d(" Loading milestones... ")],-1)]))):b.value&&b.value.length>0?(a(),r("div",Me,[(a(!0),r(f,null,h(b.value,n=>(a(),r("div",{key:n.id,class:"border border-gray-200 rounded-lg p-4"},[t("div",Ve,[t("h4",ze,o(n.title),1),c(y,{variant:W(n.status)},{default:i(()=>[d(o(n.status.replace("_"," ")),1)]),_:2},1032,["variant"])]),t("p",Be,o(n.description||"No description"),1),t("div",Ae,[t("span",Le,"Due: "+o(g(n.dueDate)),1),n.status==="pending"?(a(),r("div",Ne,[c(u,{variant:"outline",size:"xs",onClick:D=>Z(n)},{default:i(()=>e[40]||(e[40]=[d(" Complete ",-1)])),_:2,__:[40]},1032,["onClick"])])):p("",!0)])]))),128))])):(a(),r("div",He,e[41]||(e[41]=[t("svg",{class:"w-12 h-12 mx-auto mb-4 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5H7a2 2 0 00-2 2v10a2 2 0 002 2h8a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"})],-1),t("p",null,"No milestones defined",-1),t("p",{class:"text-sm"},"Add contract milestones to track progress",-1)])))])):p("",!0)])])])):v(M)?(a(),r("div",Se,[t("div",Ee,[e[43]||(e[43]=t("svg",{class:"w-12 h-12 mx-auto mb-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})],-1)),e[44]||(e[44]=t("h3",{class:"text-lg font-medium text-gray-900 mb-2"},"Error loading contract",-1)),t("p",$e,o(v(M)),1),c(u,{onClick:e[0]||(e[0]=n=>l.$router.push("/contracts"))},{default:i(()=>e[42]||(e[42]=[d(" Back to Contracts ",-1)])),_:1,__:[42]})])])):(a(),r("div",Te,[t("div",Fe,[e[46]||(e[46]=t("svg",{class:"w-12 h-12 mx-auto mb-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})],-1)),e[47]||(e[47]=t("h3",{class:"text-lg font-medium text-gray-900 mb-2"},"Contract not found",-1)),e[48]||(e[48]=t("p",{class:"text-gray-600 mb-4"},"The contract you're looking for doesn't exist or has been deleted.",-1)),c(u,{onClick:e[1]||(e[1]=n=>l.$router.push("/contracts"))},{default:i(()=>e[45]||(e[45]=[d(" Back to Contracts ",-1)])),_:1,__:[45]})])]))])]}),_:1}))}};export{We as default};
|