1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CounterSigFormDialog-BFfAUHAp.js","assets/jspdf-D30lQ_ys.js","assets/react-pdf-CiRvGOjn.js","assets/ag-grid-react-Cvi7zz2g.js","assets/ag-grid-community-DgkugROF.js","assets/index-BeCDJ2GY.js","assets/ag-grid-enterprise-BRKZrOzu.js","assets/ag-charts-B9701BJR.js","assets/microsoft-BQSsBj1o.js","assets/index-HjXQqGBp.css","assets/mappers-DhoI7UCh.js","assets/helpers-_shp62hd.js","assets/TableRow-0999PQhP.js","assets/TableCell-DxHRuWzH.js","assets/MenuItem-BooRt6AV.js","assets/InputAdornment-an9r9uQO.js","assets/RadioGroup-CmGKQQPD.js","assets/SwitchBase-TlZjw4VG.js","assets/Grid-BBMrhGf-.js","assets/FormControlLabel-DdWjzyZX.js","assets/Checkbox-CdFJdX_5.js","assets/Collapse-DFeY0qal.js","assets/useFetchRowCsCrFormById-hRKe4mAL.js","assets/ListItemAvatar-3SV0nwV-.js","assets/Chip-RgG0-0Mv.js","assets/AttachFile-CoQmTrQk.js","assets/Delete-BdUVppGu.js","assets/Visibility-Dcx-z9TN.js","assets/jszip.min-DQWWqVTk.js","assets/useRowCsCrWorkflowActions-CTuTJRAj.js","assets/DialogActions-C-5Bg9Od.js","assets/useFetchMyInfo-Ds4ZpmaE.js","assets/documentPreviewAdapters-DaReHIUv.js","assets/ListItem-fQTYOw8q.js","assets/NetsuiteIntegrationModal-CpL3r6qO.js","assets/DatePicker-CgsWvtlb.js","assets/useThemeProps-BFOzI-2-.js","assets/index-CdJKtI6t.js","assets/index-Chjiymov.js","assets/formatErrorMessage-DkKmrRLY.js","assets/visuallyHidden-Dan1xhjv.js","assets/AdapterDateFns-DBLxwNC-.js","assets/Autocomplete-BdHFHlqd.js","assets/DeleteOutlined-CU1i0dWK.js","assets/useFetchNetsuiteCustomLists-cNx0ttFd.js","assets/Skeleton-DgCJY8P2.js"])))=>i.map(i=>d[i]); 2import{_ as ye}from"./jspdf-D30lQ_ys.js";import{j as e}from"./react-pdf-CiRvGOjn.js";import{r,h as Fe}from"./ag-grid-react-Cvi7zz2g.js";import{V as De}from"./Visibility-Dcx-z9TN.js";import{O as Re,f as c,k as Ce,T as j,u as Ve,bF as ke,X as Be,Q as Pe,R as We,W as Ee,_ as fe,a5 as ze,V as Me}from"./index-BeCDJ2GY.js";import{u as qe,A as he}from"./useFetchRowCsCrFormById-hRKe4mAL.js";import{u as _e}from"./useFetchRowCsCrForm-CF8Bk5dw.js";import{u as Le,a as He,b as Oe}from"./useFetchRowCsCrNetsuiteForms-_52_U7eu.js";import{i as ge,c as Qe,e as $e,C as te,n as Ge,v as re,s as oe}from"./helpers-_shp62hd.js";import{T as Ze,a as se}from"./Tabs-DVjYnumP.js";import{C as Ue,a as Xe}from"./CardContent-GKLn5Lh1.js";import{C as Je}from"./Chip-RgG0-0Mv.js";import"./ag-grid-community-DgkugROF.js";import"./ag-grid-enterprise-BRKZrOzu.js";import"./ag-charts-B9701BJR.js";import"./microsoft-BQSsBj1o.js";import"./ListItemAvatar-3SV0nwV-.js";import"./useFetchMyInfo-Ds4ZpmaE.js";import"./KeyboardArrowRight-DX6dh-af.js";const Ke=m=>{const u=String(m||"").trim().toLowerCase();return u==="pending"?"pending":u==="approved"?"approved":u==="rejected"||u==="denied"?"rejected":"pending"},xe=m=>{if(!m)return NaN;const u=String(m).replace(" ","T");return Date.parse(u.endsWith("Z")?u:`${u}Z`)},Ye=(m=!0)=>{const[u,P]=r.useState([]),[x,v]=r.useState(!1),[y,A]=r.useState(null),T=r.useCallback(async()=>{v(!0),A(null);try{const f=await Re.get("/api/FormWorkflow/actions-for-user"),q=(Array.isArray(f.data)?f.data:[]).map(i=>({id:i.id,workflowActionId:i.id,formVersionId:i.formVersionId,approvalStatus:Ke(i.status),statusRaw:i.status,transactionDateTime:i.transactionDateTime})).filter(i=>!!i.formVersionId),F={};for(const i of q){const k=String(i.formVersionId),h=F[k];if(!h){F[k]=i;continue}const I=xe(h.transactionDateTime),z=xe(i.transactionDateTime);!Number.isNaN(z)&&(Number.isNaN(I)||z>I)&&(F[k]=i)}const V=Object.values(F);return P(V),V}catch(f){throw console.error("Error fetching workflow actions for user:",f?.response?.data||f.message,f),A(f?.response?.data||f.message||"Failed to fetch workflow actions for user"),P([]),f}finally{v(!1)}},[]);return r.useEffect(()=>{m&&T()},[m,T]),{data:u,loading:x,error:y,refetch:T}},et=()=>e.jsxs(c,{sx:{height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",gap:1},children:[e.jsx(Ce,{size:28}),e.jsx(j,{sx:{fontSize:13,color:"#374151"},children:"Loading approvalsâ¦"})]});function tt({id:m,effectiveData:u,hasHydrated:P,navigate:x,refetch:v,refetchForms:y}){const[A,T]=r.useState(!1),[f,w]=r.useState(null),[q,F]=r.useState(null),V=r.useRef(null),i=r.useRef(!1),k=r.useCallback(d=>(Array.isArray(d)?d:[]).filter(a=>!a?.isDenied&&a?.approvalStatus==="pending").sort((a,C)=>{const b=new Date(ge(a.transactionDateTime||a.createdDate||"")),B=new Date(ge(C.transactionDateTime||C.createdDate||""));return(Number.isNaN(B.getTime())?0:B.getTime())-(Number.isNaN(b.getTime())?0:b.getTime())}),[]),h=r.useMemo(()=>k(u),[u,k]),I=r.useMemo(()=>h.findIndex(d=>String(d?.formVersionId||"")===String(f||"")),[h,f]),z=r.useMemo(()=>I<0?null:h[I+1]||null,[h,I]),_=r.useMemo(()=>
2{if(!m)return null;const d=String(m);return(u||[]).find(a=>String(a?.formVersionId||"")===d&&!a?.isDenied&&a?.approvalStatus==="pending")||null},[m,u]),W=r.useCallback(()=>{T(!1),w(null),F(null),V.current=null},[]),N=r.useCallback((d,a)=>{const C=String(d||"");C&&(V.current=C,w(C),F(a||null),T(!0))},[]),E=r.useCallback(async()=>{i.current=!0,W(),x("/row/approval-tracking",{replace:!0});try{await Promise.all([v?.(),y?.()])}finally{setTimeout(()=>{i.current=!1},50)}},[W,x,v,y]),G=r.useCallback(async(...d)=>{const a=d?.[0];a?.stopPropagation?.(),a?.preventDefault?.(),await E()},[E]),Z=r.useCallback(async d=>{const a=Array.isArray(h)?h:[],C=a.findIndex(O=>String(O?.formVersionId||"")===String(d||""));if(C===-1){await E();return}const b=a[C+1]||null;if(!b){await E();return}const B=String(b?.formVersionId||""),X=b?.workflowActionId||null;N(B,X),x(`/row/approval-tracking/${B}`,{replace:!0}),Promise.all([v?.(),y?.()]).catch(()=>{})},[h,E,N,x,v,y]),U=r.useCallback(d=>{if(i.current||A)return;const a=String(d?.formVersionId||"");a&&(N(a,d?.workflowActionId||null),x(`/row/approval-tracking/${a}`))},[i,A,x,N]);return r.useEffect(()=>{if(i.current||!m||!P||!_)return;const d=String(m);V.current===d&&A||N(d,_?.workflowActionId||null)},[m,P,_,A,N]),{editOpen:A,setEditOpen:T,selectedFormVersionId:f,selectedWorkflowActionId:q,pendingQueue:h,currentPendingIndex:I,nextPendingRow:z,openRow:U,closeDialog:G,advanceToNextPending:Z}}const rt=r.lazy(()=>ye(()=>import("./CounterSigFormDialog-BFfAUHAp.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33]))),ot=r.lazy(()=>ye(()=>import("./NetsuiteIntegrationModal-CpL3r6qO.js"),__vite__mapDeps([34,2,3,4,1,10,11,35,5,6,7,8,9,36,37,38,39,40,15,30,33,24,41,42,18,14,19,20,17,25,43,27,32,29,31,28,22,23,44,45]))),Nt=()=>{const m=Ve(),{id:u}=ke(),P=r.useRef(null),x=Be("(max-width: 768px)"),{canApproveInNetsuite:v}=Le(),{data:y,loading:A,error:T,refetch:f}=Ye(!0),{data:w,loading:q,error:F,refetch:V}=_e({includeArchived:!0,includeAllVersions:!0}),{data:i,loading:k,error:h}=He(),{data:I,loading:z,error:_}=Oe(!0),W=A||q||k,[N,E]=r.useState(0),[G,Z]=r.useState(!1);r.useEffect(()=>{const t=Array.isArray(y)&&y.length>0||Array.isArray(w)&&w.length>0||Array.isArray(i)&&i.length>0;!W&&t&&Z(!0)},[W,y,w,i]);const U=r.useCallback((t,s)=>{E(s)},[]),d=r.useMemo(()=>{const t=[...Array.isArray(w)?w:[],...Array.isArray(i)?i:[]],s={};return t.forEach(n=>{(Array.isArray(n?.formVersions)?n.formVersions:[]).forEach(l=>{const R=l?.id;if(!R)return;const S=l?.rowCsCrForm||{},g=l?.rowCsCrNetsuiteForm||{},M=g?.newVendorForm||{},D=g?.parentRowCsCrForm||{},Ae=S?.derivedHeader||{},Te=Array.isArray(l?.formActions)?l.formActions:[],me=n?.formType||l?.formType||"",p=String(me).trim()==="RowCsCrNetsuite",we=g?.parentRowCsCrFormVersionId||g?.ParentRowCsCrFormVersionId||null,pe=p?D?.subsidiaryName||"":Ae?.subsidiary||S?.subsidiaryName||"";s[String(R)]={formType:me,formId:n?.id||l?.formId||null,formVersionId:R,parentRowCsCrFormVersionId:we,netsuiteFormVersionId:g?.formVersionId||R,rowCsCrNetsuiteForm:g,version:te(l?.version??l?.Version),requestTitle:n?.requestTitle||l?.requestTitle||"(no title)",createdBy:n?.createdBy||l?.createdBy||"",createdByEmail:n?.createdByEmail||l?.createdByEmail||"",companyName:p&&M?.companyName||"",terms:p&&M?.terms||"",preferredPaymentMethod:p&&M?.preferredPaymentMethod||"",taxId:p&&M?.taxId||"",subsidiary:pe,subsidiaryName:pe,subsidiaryId:p?D?.subsidiaryId??null:S?.subsidiaryId??null,agreementType:p?D?.agreementType||"":S?.agreementType||"",portfolioProject:String(p?D?.portfolioProject||"":S?.portfolioProject||"").trim(),totalCompensation:p?D?.totalCompensation??0:S?.totalCompensation??S?.totalComp??l?.totalCompensation??0,compensationType:p?D?.compensationType||"":S?.compensationType||"",compensationFrequency:p?D?.compensationFrequency||"":S?.compensationFrequency||"",attorneyName:p?D?.attorneyName||"":S?.attorneyName||"",billReferenceNo:p&&g?.billReferenceNo||"",billTransactionDate:p&&g?.billTransactionDate||"",vendorBillDate:p&&g?.vendorBillDate||"",dueDate:p&&g?.dueDate||"",createdDate:l?.createdDate||n?.createdDate||"",approvers:$e(Te),hasChecks:!!l?.hasChecks,checksStatus:Qe(l),isDenied:!!l?.isDenied,isApproved:!!l?.isApproved}})}),s},[w,i]),a=r.useMemo(()=>(Array.isArray(y)?y:[]).map(s=>{const n=s?.formVersionId?String(s.formVersionId):"",o=n?d[n]:null,l=o?.formType||"",R=String(l).trim()==="RowCsCrNetsuite";let g=Ge(s?.approvalStatus);
2R&&(o?.isDenied?g="rejected":o?.isApproved&&(g="approved"));const M=I?I?.data.find(D=>D.vendorId===o?.rowCsCrNetsuiteForm?.pirateVendorId)?.companyName??o?.companyName:null;return{...s,formVersionId:n,formType:l,approvalStatus:g,workflowActionId:s?.workflowActionId||s?.id||null,formId:o?.formId||null,parentRowCsCrFormVersionId:o?.parentRowCsCrFormVersionId||null,netsuiteFormVersionId:o?.netsuiteFormVersionId||n||null,rowCsCrNetsuiteForm:o?.rowCsCrNetsuiteForm||null,version:o?.version??null,requestTitle:o?.requestTitle||"(no title)",createdBy:o?.createdBy||"",createdByEmail:o?.createdByEmail||"",subsidiary:o?.subsidiary||"",subsidiaryId:o?.subsidiaryId??null,subsidiaryName:o?.subsidiaryName||"",agreementType:o?.agreementType||"",portfolioProject:o?.portfolioProject||"",totalCompensation:o?.totalCompensation??0,compensationType:o?.compensationType||"",compensationFrequency:o?.compensationFrequency||"",attorneyName:o?.attorneyName||"",companyName:M||"",terms:o?.terms||"",preferredPaymentMethod:o?.preferredPaymentMethod||"",taxId:o?.taxId||"",billReferenceNo:o?.billReferenceNo||"",billTransactionDate:o?.billTransactionDate||"",vendorBillDate:o?.vendorBillDate||"",dueDate:o?.dueDate||"",createdDate:o?.createdDate||s?.transactionDateTime||"",approvers:o?.approvers||[],checksStatus:o?.checksStatus||"Checks Needed",hasChecks:!!o?.hasChecks,isDenied:!!o?.isDenied,isApproved:!!o?.isApproved}}),[y,d]),{editOpen:C,selectedFormVersionId:b,selectedWorkflowActionId:B,pendingQueue:X,currentPendingIndex:O,nextPendingRow:J,openRow:L,closeDialog:ne,advanceToNextPending:be}=tt({id:u,effectiveData:a,hasHydrated:G,navigate:m,refetch:f,refetchForms:V}),H=r.useMemo(()=>b?a.find(t=>String(t?.formVersionId||"")===String(b)):null,[a,b]),K=String(H?.formType||"").trim()==="RowCsCrNetsuite",Y=H?.parentRowCsCrFormVersionId||H?.netsuiteFormVersionId||H?.formVersionId||b||null,ve=N===0?"approvalEdit":"view";qe(!K&&J?.formVersionId?J.formVersionId:null,!!(!K&&C&&J?.formVersionId));const Ie=r.useCallback(t=>{switch(t){case"approved":return{label:"Approved",bg:"#ECFDF3",color:"#166534",border:"#BBF7D0"};case"rejected":return{label:"Rejected",bg:"#FEF2F2",color:"#B91C1C",border:"#FECACA"};default:return{label:"Pending",bg:"#FFFBEB",color:"#92400E",border:"#FDE68A"}}},[]),Ne=({value:t})=>{const s=Ie(t);return e.jsx(Je,{label:s.label,size:"small",sx:{bgcolor:s.bg,color:s.color,border:`1px solid ${s.border}`,fontWeight:700}})},ae=({value:t})=>{const s=String(t||""),n=s.toLowerCase().includes("needed");return e.jsx(c,{sx:{display:"inline-flex",alignItems:"center",px:1,py:"2px",borderRadius:999,fontSize:12,fontWeight:800,bgcolor:n?"#FEF3C7":"#ECFDF3",color:n?"#92400E":"#166534",border:"1px solid",borderColor:n?"#FDE68A":"#BBF7D0"},children:s||"â"})},ie=r.useCallback(t=>{const s=te(t?.value);return e.jsx("span",{children:s??"â"})},[]),Q=r.useCallback(t=>e.jsx(he,{approvers:t?.data?.approvers||[],variant:"grid",compact:!0,maxVisible:3}),[]),le=r.useCallback(t=>e.jsx(ae,{value:t?.value}),[]),$=r.useCallback(t=>{const s=t?.data;return e.jsx(c,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx(Pe,{title:"View Request",children:e.jsx(We,{size:"small",onClick:n=>{n.stopPropagation(),L(s)},children:e.jsx(De,{fontSize:"small"})})})})},[L]),de=r.useCallback(t=>e.jsx(c,{sx:{whiteSpace:"pre-line",lineHeight:1.2,fontSize:13,py:.5},children:t?.value||""}),[]),ce=r.useMemo(()=>[{headerName:"Actions",field:"actions",width:110,pinned:"left",sortable:!1,filter:!1,cellRenderer:$},{headerName:"Version",field:"version",width:200,minWidth:90,cellRenderer:ie},{headerName:"Portfolio Project",field:"portfolioProject",minWidth:200},{headerName:"Request Tract(s)",field:"requestTitle",flex:1,minWidth:240},{headerName:"Subsidiary",field:"subsidiary",minWidth:180},{headerName:"Agreement Type",field:"agreementType",minWidth:375,filter:!0},{headerName:"Total Comp",field:"totalCompensation",minWidth:180,valueFormatter:t=>re(t.value)},{headerName:"Submitted",field:"transactionDateTime",minWidth:200,valueFormatter:t=>oe(t.value)},{headerName:"Approvers",field:"approvers",minWidth:300,sortable:!1,filter:!1,cellRenderer:Q},{headerName:"Checks",field:"checksStatus",minWidth:170,sortable:!1,filter:!1,cellRenderer:le}],[Q,le,ie,$]),ue=r.useMemo(()=>[{headerName:"Actions",field:"actions",width:110,minWidth:110,pinned:"left",suppressSizeToFit:!0,sortable:!1,filter:!1,cellRenderer:$},{headerName:"Company Name",field:"companyName",minWidth:190},{headerName:"Bill Number",field:"billReferenceNo",minWidth:190},{headerName:"Total Comp",field:"totalCompensation",minWidth:180,cellStyle:{fontWeight:"bold"},valueFormatter:t=>re(t.value)},{headerName:"Request Tract(s)",field:"requestTitle",flex:1,minWidth:240,cellRenderer:
2de},{headerName:"Subsidiary",field:"subsidiaryName",minWidth:250},{headerName:"Created By",field:"createdBy",minWidth:170},{headerName:"Created Date",field:"createdDate",valueFormatter:t=>oe(t.value),minWidth:210},{headerName:"Version",field:"version",width:130,minWidth:130},{headerName:"Approvers",field:"approvers",minWidth:320,flex:1,sortable:!1,filter:!1,cellRenderer:Q}],[$,de,Q]),Se=r.useMemo(()=>v?ue:ce,[v,ue,ce]),je=r.useMemo(()=>({resizable:!0,sortable:!0,filter:!0}),[]),ee=r.useMemo(()=>{const s=["pending","approved","rejected"][N];return(a||[]).filter(n=>s==="rejected"?!!n?.isDenied:s==="pending"?!n?.isDenied&&n?.approvalStatus==="pending":s==="approved"?!n?.isDenied&&n?.approvalStatus==="approved":!1).sort((n,o)=>{const l=new Date(n.transactionDateTime||n.createdDate||"").getTime(),R=new Date(o.transactionDateTime||o.createdDate||"").getTime();return(Number.isNaN(R)?0:R)-(Number.isNaN(l)?0:l)})},[N,a]);return e.jsxs(c,{sx:{p:1},children:[e.jsxs(Ee,{elevation:0,sx:{borderRadius:3,p:2,border:"1px solid #e5e7eb",bgcolor:"#fafafa"},children:[e.jsx(c,{sx:{mb:1.5,display:"flex",justifyContent:"space-between",alignItems:"center"},children:e.jsx(j,{variant:"h6",sx:{fontSize:18,fontWeight:600,color:"#111827"},children:"My Approval Tracking"})}),T&&e.jsx(c,{sx:{mb:1,color:"error.main",fontSize:12},children:String(T)}),F&&e.jsx(c,{sx:{mb:1,color:"error.main",fontSize:12},children:String(F)}),h&&e.jsx(c,{sx:{mb:1,color:"error.main",fontSize:12},children:String(h)}),e.jsx(c,{sx:{borderBottom:1,borderColor:"divider",mb:1},children:e.jsxs(Ze,{value:N,onChange:U,textColor:"primary",indicatorColor:"primary",variant:x?"fullWidth":"standard",sx:{minHeight:36,"& .MuiTab-root":{minHeight:36,fontSize:13,fontWeight:500,textTransform:"uppercase",mr:x?0:2},"& .MuiTabs-indicator":{height:3,borderRadius:2}},children:[e.jsx(se,{label:"Pending"}),e.jsx(se,{label:"Approved"}),e.jsx(se,{label:"Rejected"})]})}),e.jsx(c,{sx:{height:x?"auto":"calc(100vh - 400px)",minHeight:"600px"},children:x?e.jsx(c,{sx:{mt:1},children:W?e.jsx(c,{sx:{py:6,display:"flex",justifyContent:"center"},children:e.jsx(Ce,{size:28})}):ee.length===0?e.jsx(c,{sx:{py:6,textAlign:"center",color:"#6b7280",fontSize:13},children:"No approvals found"}):e.jsx(fe,{spacing:1.25,children:ee.map(t=>{const s=te(t?.version??t?.Version);return e.jsx(Ue,{variant:"outlined",sx:{borderRadius:2,borderColor:"#e5e7eb",bgcolor:"#fff"},onClick:()=>L(t),children:e.jsxs(Xe,{sx:{pb:1.5},children:[e.jsxs(fe,{direction:"row",spacing:1,sx:{justifyContent:"space-between"},children:[e.jsxs(c,{sx:{minWidth:0},children:[e.jsx(j,{sx:{fontWeight:800,fontSize:15},noWrap:!0,children:t.requestTitle||"(no title)"}),e.jsxs(j,{sx:{color:"#6b7280",fontSize:13,mt:.25},children:[e.jsx("strong",{children:"Version:"})," ",s??"â"]}),v&&t.formType==="RowCsCrNetsuite"&&e.jsxs(j,{sx:{color:"#6b7280",fontSize:13,mt:.25},children:[e.jsx("strong",{children:"Company:"})," ",t.companyName||"(n/a)"]}),e.jsxs(j,{sx:{color:"#6b7280",fontSize:13,mt:.25},children:[e.jsx("strong",{children:"Bill Number:"})," ",t.billReferenceNo||"(n/a)"]}),e.jsxs(j,{sx:{color:"#6b7280",fontSize:13,mt:.25},children:[e.jsx("strong",{children:"Portfolio Project:"})," ",t.portfolioProject||"(n/a)"]}),e.jsxs(j,{sx:{color:"#6b7280",fontSize:13,mt:.25},children:[e.jsx("strong",{children:"Subsidiary:"})," ",t.subsidiary||"(n/a)"]}),e.jsxs(j,{sx:{color:"#6b7280",fontSize:13,mt:.25},children:[e.jsx("strong",{children:"Total Comp:"})," ",re(t.totalCompensation)]}),e.jsx(j,{sx:{color:"#6b7280",fontSize:13,mt:.25},children:t.agreementType||"(no agreement type)"})]}),e.jsx(Ne,{value:t.approvalStatus})]}),e.jsx(ze,{sx:{my:1.25}}),e.jsxs(j,{sx:{fontSize:12,color:"#6b7280",mb:.75},children:[e.jsx("strong",{children:"Submitted:"})," ",oe(t.transactionDateTime)||"(n/a)"]}),e.jsx(c,{sx:{mt:.5},children:e.jsx(he,{approvers:t.approvers||[]})}),e.jsx(c,{sx:{mt:.75},children:e.jsx(ae,{value:t.checksStatus})}),e.jsxs(c,{sx:{display:"flex",alignItems:"center",gap:1,mt:1.25},children:[e.jsx(c,{sx:{flex:1}}),e.jsx(Me,{variant:"outlined",size:"small",onClick:n=>{n.stopPropagation(),L(t)},sx:{height:36,px:2,fontWeight:600,whiteSpace:"nowrap"},children:"View"})]})]})},t.workflowActionId||t.formVersionId)})})}):e.jsx("div",{className:"ag-theme-alpine",style:{width:"100%",height:"100%"},children:e.jsx(Fe,{ref:P,rowData:ee,columnDefs:Se,defaultColDef:je,onRowClicked:t=>L(t.data),rowSelection:void 0,loading:W,loadingOverlayComponent:et,overlayNoRowsTemplate:`
3 <span class="ag-overlay-no-rows-center"> 4 No approvals found 5 </span> 6 `,getRowHeight:t=>t?.data?.approvers?.length?86:48})})})]}),e.jsx(r.Suspense,{fallback:null,children:K?e.jsx(ot,{mode:ve,open:C,onClose:ne,selectedFormId:Y,selectedFormActionId:B,formId:H?.formId,formVersionId:Y,source:"netsuite",vendorData:I,vendorLoading:z,vendorError:_},Y||"empty-netsuite-approval"):e.jsx(rt,{mode:"view",open:C,onClose:ne,selectedFormId:b,selectedFormActionId:B,queuePosition:O>=0?O+1:null,queueTotal:X.length,onWorkflowActionComplete:async({formVersionId:t})=>{await be(t)}})})]})};export{Nt 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.