import{K as Ne,ak as ne,r as c,aZ as we,a as Pe,b as t,j as o,U as Ie,B as l,O as De,P as X,T as Te,p as A,q as $e,a3 as Oe,e as Me,J as ie,a8 as ze,a6 as Y,a9 as ee,a_ as Be,ab as te,a$ as Ae,V as We,s as u,S as ae,ae as Le,I as Re,t as re,A as H,aS as C,aR as Ee,G as B,v as qe,aM as je,w as Ue,x as Ve,y as oe,z as g,F as Fe,b0 as Qe}from"./index-CYy8zBsj.js";import{u as Ge,a as He,b as _e,c as Je,r as Ke}from"./finishedGoodsInventoryApi-I8E3yh1h.js";import{u as Ze,C as Xe}from"./useDebounce-B0RO7V40.js";import{r as Ye}from"./renderStatusBox-D4-b4PNd.js";import{C as et}from"./Close-DNeXdihK.js";const tt=Ne.injectEndpoints({endpoints:T=>({setMakerPackingStatus:T.mutation({query:({orderId:N,orderNumber:n})=>({url:"packing-order",method:"POST",body:{orderId:N,orderNumber:n}})}),getPackingOrdesByPage:T.mutation({query:({page:N,size:n,searchByName:w,type:P})=>({url:`packing-order/search-by-criteria?type=${P}&page=${N}&size=${n}`,method:"POST",body:w})})})}),{useSetMakerPackingStatusMutation:xt,useGetPackingOrdesByPageMutation:at}=tt,rt=({open:T,onClose:N,packing:n,onApprove:w,onReject:P,entity:$})=>{const b=ne();if(!n)return null;const v=(n.items||[]).reduce((i,m)=>{const f=m.masterBarcode;return i[f]||(i[f]=[]),i[f].push(m),i},{}),W=()=>{const i=window.open("","_blank");if(i){const m=`
        <html>
          <head>
            <title>Packing Details - ${n.packingNumber}</title>
            <style>
              body { font-family: 'Segoe UI', Arial, sans-serif; margin: 0; padding: 24px; background: #fff; color: #222; }
              .header { text-align: center; margin-bottom: 32px; border-bottom: 2px solid #1976d2; padding-bottom: 16px; }
              .header h1 { margin: 0; font-size: 2.2rem; color: #1976d2; }
              .header h2 { margin: 0; font-size: 1.2rem; color: #555; font-weight: 400; }
              .info-section { margin-bottom: 28px; }
              .info-grid { display: flex; gap: 32px; justify-content: center; margin-bottom: 12px; }
              .info-item { background: #f5faff; border: 1px solid #e3eafc; padding: 14px 18px; border-radius: 8px; min-width: 180px; }
              .info-label { font-weight: 600; color: #1976d2; font-size: 13px; }
              .info-value { font-size: 15px; margin-top: 4px; color: #222; }
              .section-title { font-size: 1.1rem; color: #1976d2; font-weight: 600; margin-bottom: 10px; margin-top: 30px; }
              .table-section { margin-bottom: 24px; border-radius: 10px; box-shadow: 0 2px 8px #e3eafc; background: #fafdff; padding: 10px 10px 4px 10px; }
              .table-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
              .table-title { font-weight: 600; color: #1976d2; font-size: 1rem; }
              .table-subtitle { color: #888; font-size: 12px; }
              table { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
              th, td { border: 1px solid #e3eafc; padding: 4px 7px; font-size: 12px; }
              th { background: #e3eafc; color: #1976d2; font-weight: 600; }
              td { background: #fff; }
              .table-summary { background: #f5faff; padding: 6px; border-radius: 0 0 8px 8px; font-size: 12px; color: #1976d2; border: 1px solid #e3eafc; border-top: none; }
              .sub-table-title { font-size: 0.95rem; color: #388e3c; font-weight: 600; margin: 7px 0 2px 0; }
              .overall-summary { background: #e3f2fd; padding: 10px; border-radius: 8px; border: 1px solid #1976d2; margin-top: 18px; }
              .overall-title { font-weight: 700; color: #1976d2; margin-bottom: 7px; font-size: 1.05rem; }
              .overall-stats { display: flex; gap: 24px; font-size: 0.98rem; }
              .highlight { color: #388e3c; font-weight: 600; }
              @media print {
                body { margin: 0; padding: 0; background: #fff; }
                .no-print { display: none; }
                .header { margin-bottom: 12px; padding-bottom: 6px; }
                .info-section { margin-bottom: 10px; }
                .info-grid { gap: 10px; margin-bottom: 4px; }
                .info-item { padding: 6px 8px; min-width: 120px; font-size: 11px; background: #fff !important; border-color: #e3eafc !important; }
                .info-label { font-size: 11px; }
                .info-value { font-size: 12px; }
                .table-section, .overall-summary { box-shadow: none !important; background: #fff !important; margin-bottom: 10px; padding: 4px 2px 2px 2px; page-break-inside: avoid; }
                .sub-table-title { margin: 3px 0 1px 0; font-size: 11px; }
                table { margin-bottom: 2px; }
                th, td { padding: 2px 4px; font-size: 10px; }
                .table-summary { padding: 3px; font-size: 10px; }
                .overall-summary { padding: 5px; margin-top: 8px; }
                .overall-title { font-size: 11px; margin-bottom: 3px; }
                .overall-stats { gap: 10px; font-size: 10px; }
              }
            </style>
          </head>
          <body>
            <div class="header">
              <h1>Packing Details</h1>
              <h2>Packing No: ${n.packingNumber} | Date: ${re(n.createdAt||"")}</h2>
            </div>
            <div class="info-section">
              <div class="info-grid">
                <div class="info-item">
                  <div class="info-label">Client Name</div>
                  <div class="info-value">${n.clientName}</div>
                </div>
                <div class="info-item">
                  <div class="info-label">Phone Number</div>
                  <div class="info-value">${n.phoneNumber}</div>
                </div>
                <div class="info-item">
                  <div class="info-label">Experience Center</div>
                  <div class="info-value">${n.experienceCenterName||"Main Unit"}</div>
                </div>
              </div>
            </div>
            ${Object.entries(v).map(([f,x])=>{const s=x[0],k=x.reduce((a,h)=>a+(parseFloat(h.sqft)||0),0);return`
                  <div class="table-section">
                    <div class="table-header">
                      <div class="table-title">${s.name} (${s.country})</div>
                      <div class="table-subtitle">Master Barcode: <span class="highlight">${f}</span></div>
                    </div>
                    <table>
                      <thead>
                        <tr>
                         <th>S.No</th>
                          <th>Master Barcode</th>
                          <th>Country</th>
                          <th>Type</th>
                          <th>Name</th>
                          <th>Unit</th>
                          <th>Sqft</th>
                        </tr>
                      </thead>
                      <tbody>
                        ${x.map((a,h)=>`<tr>
                                <td>${h+1}</td>
                                <td>${a.masterBarcode}</td>
                                <td>${a.country}</td>
                                <td>${a.type}</td>
                                <td>${a.name}</td>
                                <td>${a.unit}</td>
                                <td>${a.sqft}</td>
                              </tr>`).join("")}
                      </tbody>
                    </table>
                    <div class="table-summary">
                      Items: ${x.length} | Total Sqft: <span class="highlight">${k}</span>
                    </div>
                    ${x.map(a=>a.packingItemDetailDTOList&&a.packingItemDetailDTOList.length>0?`<div class="sub-table-title">Sub Items for ${a.name} (${a.masterBarcode}):</div>
                                <table>
                                  <thead>
                                    <tr>
                                      <th>S.No</th>
                                      <th>Sub Barcode</th>
                                      <th>Width</th>
                                      <th>Length</th>
                                      <th>UOM</th>
                                      <th>Quantity</th>
                                      <th>Storage Type</th>
                                    </tr>
                                  </thead>
                                  <tbody>
                                    ${a.packingItemDetailDTOList.map((h,I)=>`<tr>
                                            <td>${I+1}</td>
                                            <td>${h.subBarcode}</td>
                                            <td>${h.width}</td>
                                            <td>${h.length}</td>
                                            <td>${h.uom}</td>
                                            <td>${h.quantity}</td>
                                            <td>${h.storageType||"-"}</td>
                                          </tr>`).join("")}
                                  </tbody>
                                </table>`:"").join("")}
                  </div>
                `}).join("")}
            <div class="overall-summary">
              <div class="overall-title">Overall Summary</div>
              <div class="overall-stats">
                <span>Total Items: <span class="highlight">${n.items.length}</span></span>
                <span>Total Sqft: <span class="highlight">${n.totalSqft}</span></span>
              </div>
            </div>
          </body>
        </html>
      `;i.document.write(m),i.document.close(),i.focus(),i.print(),i.close()}};return t(Qe,{open:T,onClose:N,children:o(l,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"95%",maxWidth:1200,maxHeight:"95vh",bgcolor:"background.paper",borderRadius:3,boxShadow:24,p:0,overflow:"hidden"},children:[t(l,{sx:{p:3,borderBottom:`1px solid ${b.palette.divider}`,backgroundColor:C(b.palette.primary.main,.07)},children:o(l,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[o(l,{children:[o(u,{variant:"h5",fontWeight:700,color:"primary",children:["Packing Details - ",n.packingNumber]}),o(u,{variant:"body2",color:"text.secondary",sx:{mt:.5},children:["Created on ",re(n.createdAt)]})]}),o(l,{sx:{display:"flex",alignItems:"center",gap:1},children:[n.status==="PENDING"&&$.write&&o(ie,{children:[t(H,{btnType:"approve",onClick:()=>w==null?void 0:w("APPROVED",n.id),children:"Approve"}),t(H,{btnType:"close",onClick:()=>P==null?void 0:P("REJECTED",n.id),children:"Reject"})]}),t(H,{btnType:"print",onClick:W,children:"Print"}),t(A,{onClick:N,size:"large",children:t(et,{})})]})]})}),o(l,{sx:{p:{xs:1,md:3},maxHeight:"calc(95vh - 120px)",overflow:"auto"},children:[o(Ee,{sx:{p:3,mb:3,backgroundColor:i=>i.palette.mode==="dark"?"rgba(3, 169, 244, 0.1)":C(i.palette.info.main,.07),borderRadius:2,boxShadow:0},children:[t(u,{variant:"h6",sx:{mb:2,color:b.palette.info.main,fontWeight:600},children:"Client Information"}),o(B,{container:!0,spacing:3,children:[t(B,{item:!0,xs:12,md:4,children:o(l,{children:[t(u,{variant:"body2",color:"text.secondary",gutterBottom:!0,fontWeight:600,children:"Client Name"}),t(u,{variant:"body1",fontWeight:700,color:"primary.main",children:n.clientName})]})}),t(B,{item:!0,xs:12,md:4,children:o(l,{children:[t(u,{variant:"body2",color:"text.secondary",gutterBottom:!0,fontWeight:600,children:"Phone Number"}),t(u,{variant:"body1",fontWeight:700,color:"primary.main",children:n.phoneNumber})]})}),t(B,{item:!0,xs:12,md:4,children:o(l,{children:[t(u,{variant:"body2",color:"text.secondary",gutterBottom:!0,fontWeight:600,children:"Experience Center"}),t(u,{variant:"body1",fontWeight:700,color:"primary.main",children:n.experienceCenterName||"Main Unit"})]})})]})]}),Object.entries(v).map(([i,m])=>{const f=m[0],x=m.reduce((s,k)=>s+(parseFloat(k.sqft)||0),0);return o(l,{sx:{mb:4,borderRadius:2,boxShadow:1,background:s=>s.palette.mode==="dark"?"rgba(255,255,255,0.02)":"#fff",p:2,border:s=>`1px solid ${s.palette.mode==="dark"?"rgba(25, 118, 210, 0.2)":C(s.palette.primary.main,.08)}`},children:[o(l,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2,p:1.5,backgroundColor:s=>s.palette.mode==="dark"?"rgba(25, 118, 210, 0.1)":C(s.palette.primary.main,.04),borderRadius:1,border:s=>`1px solid ${s.palette.mode==="dark"?"rgba(25, 118, 210, 0.2)":C(s.palette.primary.main,.08)}`},children:[o(l,{children:[o(u,{variant:"h6",sx:{color:b.palette.primary.main,fontWeight:700},children:[f.name," (",f.country,")"]}),f.type&&o(u,{variant:"body2",color:"text.secondary",sx:{mt:.5},children:["Colour: ",t("span",{style:{color:b.palette.info.main,fontWeight:600},children:f.type})]})]}),o(u,{variant:"h6",sx:{color:b.palette.primary.main,fontWeight:700},children:["Price: ₹",f.sellingPricePerUom]}),o(u,{variant:"body2",color:"text.secondary",children:["Master Barcode: ",t("span",{style:{color:b.palette.success.main,fontWeight:600},children:i})]})]}),(()=>{const k=m.filter(a=>a.packingItemDetailDTOList&&a.packingItemDetailDTOList.length>0).flatMap(a=>a.packingItemDetailDTOList).filter((a,h,I)=>h===I.findIndex(L=>L.subBarcode===a.subBarcode));return k.length>0?t(l,{sx:{mt:2,mb:2,ml:2,background:a=>a.palette.mode==="dark"?"rgba(3, 169, 244, 0.1)":"#f5faff",borderRadius:1,p:2,border:a=>`1px solid ${a.palette.mode==="dark"?"rgba(3, 169, 244, 0.2)":C(a.palette.info.main,.08)}`},children:t(qe,{component:je,sx:{boxShadow:0},children:o(Ue,{size:"small",children:[t(Ve,{children:o(oe,{children:[t(g,{sx:{fontWeight:700},children:"S.No"}),t(g,{sx:{fontWeight:700},children:"Sub Barcode"}),t(g,{sx:{fontWeight:700},children:"Width"}),t(g,{sx:{fontWeight:700},children:"Length"}),t(g,{sx:{fontWeight:700},children:"UOM"}),t(g,{sx:{fontWeight:700},children:"Quantity"}),t(g,{sx:{fontWeight:700},children:"Storage Type"})]})}),t(Fe,{children:k.map((a,h)=>o(oe,{children:[t(g,{children:h+1}),t(g,{children:a.subBarcode}),t(g,{children:a.width}),t(g,{children:a.length}),t(g,{children:a.uom}),t(g,{children:a.quantity}),t(g,{children:a.storageType||"-"})]},a.id||`${a.subBarcode}-${h}`))})]})})}):null})(),o(l,{sx:{background:s=>s.palette.mode==="dark"?"rgba(25, 118, 210, 0.1)":"#e3f2fd",p:1.5,borderRadius:1,mt:1,fontWeight:600,color:b.palette.primary.main},children:["Items: ",m.length," | Total Sqft: ",t("span",{style:{color:b.palette.success.main},children:x})]})]},i)}),o(l,{sx:{mt:3,p:2,backgroundColor:i=>i.palette.mode==="dark"?"rgba(25, 118, 210, 0.1)":C(i.palette.primary.main,.07),borderRadius:2,border:i=>`1px solid ${i.palette.mode==="dark"?"rgba(25, 118, 210, 0.2)":C(i.palette.primary.main,.08)}`,display:"flex",justifyContent:"space-between",alignItems:"center",boxShadow:0},children:[t(u,{variant:"h6",color:"primary",fontWeight:700,children:"Overall Summary"}),o(l,{sx:{display:"flex",gap:3},children:[o(u,{variant:"body1",color:"text.secondary",children:["Total Items: ",t("span",{style:{fontWeight:700,color:b.palette.primary.main},children:n.items.length})]}),o(u,{variant:"body1",color:"text.secondary",children:["Total Sqft: ",t("span",{style:{fontWeight:700,color:b.palette.success.main},children:n.totalSqft})]})]})]})]})]})})},yt=({onCreateNew:T,onEditPacking:N})=>{const n=ne(),[w,P]=c.useState("list"),[$,b]=c.useState("PENDING"),[v,W]=c.useState({packingNumber:"",clientName:"",experienceCenter:"",phoneNumber:""}),[i,m]=c.useState(null),[f,x]=c.useState(!1),[s,k]=c.useState(null),[a,h]=c.useState(null),[I,L]=c.useState(null),[ot,nt]=c.useState(!1),[it,st]=c.useState(null),[se,le]=c.useState({}),R=we(e=>e.userRole.roleDetails),de=[v.packingNumber,v.clientName,v.experienceCenter,v.phoneNumber].filter(Boolean).join(" ");c.useEffect(()=>{if(R){const e=R.find(p=>p.applicationEntityName.toLowerCase().replace(/\s+/g,"")==="packinglists");le(e)}},[R]);const E=Ze(de,500),[D,q]=c.useState({page:0,pageSize:10}),{openSnackbar:S}=Pe(),[M,j]=c.useState([]),[ce,U]=c.useState(0),[_,{data:lt={},isLoading:pe}]=at(),[dt]=Ge(),[ct]=He(),[he]=_e(),{data:V,isLoading:pt,refetch:ht}=Je(s!==null?{id:s}:Ke.skipToken,{refetchOnMountOrArgChange:!0});c.useEffect(()=>{if(V&&s){const e=Se(V);m(e)}},[V,s]);const[ue,F]=c.useState(null),Q=c.useCallback(async(e,p)=>{F(null);try{const r=await _({page:e,size:p,searchByName:{searchValue:E},type:$});if(r&&r.data){const y=r.data,z=(y.data||[]).map((d,O)=>({packingNumber:d.packingNumber||`temp-${d.id||O}`,orderNumber:d.orderNumber||d.packingNumber||`temp-${d.id||O}`,clientName:d.clientName||"",phoneNumber:d.phoneNumber||"",totalSqft:d.totalSqft||0,totalAmount:d.totalAmount||0,items:d.packingItemsDTOList||[],id:d.id||d.orderId||O,orderId:d.orderId||d.id,createdDate:d.createdDate||"",experience:d.experience||"Main Unit",status:d.status||""}));j(z),U(y.totalCount||0)}else{F(r.error);const y=r.error;j([]),U(0)}}catch(r){F(r),j([]),U(0)}},[_,E,$]);c.useEffect(()=>{Q(D.page,D.pageSize)},[Q,D,E]),new Set(M.map(e=>e.clientName)).size,M.reduce((e,p)=>e+(p.totalSqft||0),0),M.reduce((e,p)=>e+(p.totalAmount||0),0);const[me,ge]=c.useState(null),be=async e=>{ge(e.id);try{e.orderId?(k(e.orderId),x(!0)):(m(e),x(!0))}catch{m(e),x(!0)}},J=()=>{x(!1),m(null),k(null)},G=()=>{h(null),L(null)},fe=()=>{I&&S("Packing List approved!","success"),G()},xe=()=>{I&&S("Packing List rejected!","error"),G()},K=async(e,p)=>{var r;if(i&&i.id){const y=parseInt(me);if(isNaN(y)){S("Invalid packing ID","error");return}const z=await he({id:y,status:e});if("data"in z)S(`Order Booking ${e.toLowerCase()}!`,"success"),Q(D.page,D.pageSize),J();else{const d=z.error,O=((r=d==null?void 0:d.data)==null?void 0:r.message)??"An error occurred";S(O,"error")}}},Z=(e,p)=>{W(r=>({...r,[e]:p})),q(r=>({...r,page:0}))},ye=(e,p)=>{b(p),q(r=>({...r,page:0}))},ve=e=>{e&&(navigator&&navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(e).then(()=>{S("Pack No copied to clipboard.","success")}).catch(()=>{S("Failed to copy Pack No.","error")}):S("Clipboard not supported in this browser.","error"))},ke=[{field:"clientName",headerName:"Client",flex:1},{field:"phoneNumber",headerName:"Phone",flex:1},{field:"experience",headerName:"Experience",flex:1},{field:"orderNumber",headerName:"Pack No",flex:1,renderCell:e=>{const p=e.value||e.row.orderNumber||e.row.packingNumber||"";return o(ae,{direction:"row",alignItems:"center",spacing:1,children:[t(u,{variant:"body2",sx:{fontFamily:"monospace"},children:p}),p&&t(A,{size:"small",onClick:r=>{r.stopPropagation(),ve(p)},children:t(Xe,{fontSize:"small"})})]})}},{field:"createdDate",headerName:"Created On",flex:1,renderCell:e=>Le(e.value)},{field:"status",headerName:"Status",flex:1,renderCell:e=>Ye(e.value)},{field:"action",headerName:"Action",flex:1.5,sortable:!1,renderCell:e=>((e.row.status||"").toUpperCase(),t(ae,{direction:"row",spacing:.5,alignItems:"center",children:t(Re,{type:"View",onClick:()=>be(e.row)})}))}];function Se(e){var p;return{packingNumber:e.packingNumber,orderNumber:e.orderNumber||e.packingNumber,clientName:e.clientName,phoneNumber:e.phoneNumber,experienceCenterName:e.experience||"Main Unit",totalSqft:Array.isArray(e.packingItemsDTOList)?e.packingItemsDTOList.reduce((r,y)=>r+(y.totalQuantity||0),0):0,totalAmount:Array.isArray(e.packingItemsDTOList)?e.packingItemsDTOList.reduce((r,y)=>r+(y.totalQuantity||0)*(y.sellingPricePerUom||0),0):0,items:Array.isArray(e.packingItemsDTOList)?e.packingItemsDTOList.map(r=>({id:r.id,country:r.country,type:r.colour||"",name:r.productName,masterBarcode:r.masterBarcode,barcode:r.masterBarcode,unit:r.uom,sqft:r.totalQuantity,rate:r.sellingPricePerUom||0,total:((r.totalQuantity||0)*(r.sellingPricePerUom||0)).toFixed(2),sellingPricePerUom:r.sellingPricePerUom||0,packingItemDetailDTOList:r.packingItemDetailDTOList||[]})):[],createdAt:e.createdDate||e.date||"",status:e.status||"",id:((p=e.id)==null?void 0:p.toString())||""}}const Ce=c.useCallback(()=>t("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:n.palette.text.secondary,fontSize:"16px"},children:"No Data Available"}),[n.palette.text.secondary]);return t(We,{error:ue,children:o(l,{p:2,sx:{width:"100%"},children:[o(Ie,{children:[t(l,{sx:{mb:3},children:o(De,{value:$,onChange:ye,"aria-label":"packing list tabs",sx:{mb:2,"& .MuiTab-root":{fontWeight:600,textTransform:"none",fontSize:"1rem"}},children:[t(X,{value:"PENDING",label:"PENDING"}),t(X,{value:"APPROVED",label:"APPROVED"})]})}),o(l,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:3},children:[t(l,{sx:{display:"flex",gap:2,alignItems:"center",flexWrap:"wrap"},children:t(Te,{placeholder:"Search packing number...",variant:"outlined",size:"small",value:v.packingNumber,sx:{width:240,"& .MuiOutlinedInput-root":{backgroundColor:e=>e.palette.mode==="dark"?"rgba(255,255,255,0.05)":"white","&:hover":{"& .MuiOutlinedInput-notchedOutline":{borderColor:"primary.main"}}}},onChange:e=>Z("packingNumber",e.target.value),InputProps:{startAdornment:t(A,{edge:"start",size:"small",sx:{color:"text.secondary"},children:t(Oe,{})}),endAdornment:v.packingNumber&&t(A,{edge:"end",onClick:()=>Z("packingNumber",""),size:"small",sx:{color:"text.secondary"},children:t($e,{})})}})}),t(l,{})]}),w==="list"?t(Me,{columns:ke,rows:M,checkboxSelection:!1,enableManageColumns:!0,defaultHiddenColumns:["id"],autoHeight:!0,getRowId:e=>e.packingNumber||e.id||`row-${Math.random()}`,rowCount:ce,paginationMode:"server",paginationModel:D,onPaginationModelChange:q,pageSizeOptions:[10,25,50,100],components:{NoRowsOverlay:Ce},loading:pe}):t(ie,{})]}),t(rt,{open:f,onClose:J,packing:i,onApprove:K,onReject:K,entity:se}),o(ze,{anchorEl:a,open:!!a,onClose:G,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{sx:{mt:1,minWidth:180,boxShadow:e=>e.palette.mode==="dark"?"0 8px 32px rgba(0,0,0,0.3)":"0 8px 32px rgba(0,0,0,0.12)",borderRadius:3,border:"1px solid",borderColor:e=>e.palette.divider,overflow:"hidden"}},children:[o(Y,{onClick:fe,sx:{py:2,px:2,"&:hover":{backgroundColor:e=>e.palette.mode==="dark"?"success.dark":"success.50"},borderBottom:"1px solid",borderColor:e=>e.palette.divider},children:[t(ee,{children:t(l,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:"50%",backgroundColor:"success.100",mr:1.5},children:t(Be,{fontSize:"small",sx:{color:"success.main"}})})}),t(te,{primary:"Approve",primaryTypographyProps:{fontSize:"0.95rem",fontWeight:600,color:"success.main"},secondary:"Mark as approved",secondaryTypographyProps:{fontSize:"0.75rem",color:"text.secondary"}})]}),o(Y,{onClick:xe,sx:{py:2,px:2,"&:hover":{backgroundColor:e=>e.palette.mode==="dark"?"error.dark":"error.50"}},children:[t(ee,{children:t(l,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:"50%",backgroundColor:"error.100",mr:1.5},children:t(Ae,{fontSize:"small",sx:{color:"error.main"}})})}),t(te,{primary:"Reject",primaryTypographyProps:{fontSize:"0.95rem",fontWeight:600,color:"error.main"},secondary:"Mark as rejected",secondaryTypographyProps:{fontSize:"0.75rem",color:"text.secondary"}})]})]})]})})};export{yt as default};
