text: var e=Object.defineProperty,o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable,s=(o,r,t)=>r in o?e(o,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[r]=t;import{_ as a}from"./PageWrapper.3afd24ed.js";import{k as i,aI as n,bp as p,aT as c,bm as d,af as m,bi as f,r as u,u as j,a as l,I as b,J as x,K as v,o as y,n as B,P,q as w,a3 as A,X as g}from"./vendor.d660e98f.js";/* empty css              *//* empty css              *//* empty css              *//* empty css              *//* empty css              */import{P as h}from"./index.dbd0ea32.js";import k from"./ActionButtons.18e2ec13.js";import O from"./BaseActionButtons.abd48aa0.js";import F from"./ProcessBackButton.d83a3746.js";import H from"./ApproveActionButtons.7a440788.js";import I from"./ApprovalHistory.b33d7237.js";import M from"./ProcessHeader.f146cb86.js";import{j as R,g as S}from"./index.51c58f14.js";import"./usePageContext.31d72795.js";/* empty css              *//* empty css              */import"./onMountedOrActivated.a3bdff8d.js";import"./index.94db3655.js";import"./useForm.3d6a4ede.js";/* empty css              *//* empty css              *//* empty css              *//* empty css              *//* empty css              */import"./CountdownInput.fe85330d.js";import"./useModal.94660e74.js";import"./useWindowSizeFn.4f1b8c18.js";import"./download.fca43234.js";import"./StrengthMeter.765addc9.js";/* empty css              */import"./process.9051f460.js";import"./index.080ce816.js";import"./FlowDiagramModal.fcf7b7ea.js";import"./Viewer.fd8523c8.js";import"./index.2af27c6d.js";/* empty css              *//* empty css              */import"./index.fbe6ab6c.js";/* empty css              */var W=i({components:((e,a)=>{for(var i in a||(a={}))r.call(a,i)&&s(e,i,a[i]);if(o)for(var i of o(a))t.call(a,i)&&s(e,i,a[i]);return e})({Button:n,LeftOutlined:p,ProcessHeader:M,PageWrapper:a,[c.name]:c,[d.name]:d,AEmpty:m,[f.name]:f,[f.Item.name]:f.Item,ActionButtons:k,BaseActionButtons:O,ApproveActionButtons:H,ApprovalHistory:I,ProcessBackButton:F},h),setup(){const e=u(""),o=u(null),{createMessage:r}=S(),t=R(),{currentRoute:s}=j(),{params:{modelKey:a},query:{businessKey:i}}=l(s);return e.value=a,b((()=>{x((()=>{i&&l(o).initProcessForm(i)}))})),{currentView:e,processFormRef:o,doBack:function(){history.state.back?history.back():t("/process/todo")},doLaunch:function(){return e=this,s=null,a=function*(){yield l(o).doSubmit(),r.success("提交成功！"),t("/process/launched")},new Promise(((o,r)=>{var t=e=>{try{n(a.next(e))}catch(o){r(o)}},i=e=>{try{n(a.throw(e))}catch(o){r(o)}},n=e=>e.done?o(e.value):Promise.resolve(e.value).then(t,i);n((a=a.apply(e,s)).next())}));var e,s,a}}}});const K=g(" 流程查看 "),V={class:"m-1 desc-wrap"},q={class:"m-4 desc-wrap"};W.render=function(e,o,r,t,s,a){const i=v("ProcessBackButton"),n=v("BaseActionButtons"),p=v("ApprovalHistory"),c=v("PageWrapper");return y(),B(c,{contentBackground:"",class:"!mt-4"},{title:P((()=>[w(i),K,w(n)])),extra:P((()=>[])),footer:P((()=>[])),default:P((()=>[w("div",V,[(y(),B(A(e.currentView),{ref:"processFormRef"},null,512))]),w("div",q,[w(p,{ref:"approvalHistoryRef"},null,512)])])),_:1})};export default W;
  