import{aq as l,ar as e,b as o,o as S,a7 as z,cC as I,cD as x,ao as v,ap as C}from"./index-ktJf6c6X.js";import{I as n}from"./Info-CpCu9xRk.js";import{A as b}from"./ArrowBack-CSFOC-NM.js";import{S as u}from"./Search-C_VNuVke.js";import{C as g}from"./Close-Df3VFe0l.js";import{S as k}from"./Save-B8j_eMfM.js";import{P as w}from"./Print-DY33bUbh.js";import{D}from"./Download-DPcXZSRB.js";import{V as A}from"./Visibility-Ioj1Vg4d.js";import{E as H}from"./Edit-DWIZDP8n.js";const M=l(e.jsx("path",{fillRule:"evenodd",d:"M20 3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M10 17H5v-2h5zm0-4H5v-2h5zm0-4H5V7h5zm4.82 6L12 12.16l1.41-1.41 1.41 1.42L17.99 9l1.42 1.42z"}),"FactCheck"),V=l([e.jsx("path",{d:"M19.5 3.5 18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2v14H3v3c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3V2zM19 19c0 .55-.45 1-1 1s-1-.45-1-1v-3H8V5h11z"},"0"),e.jsx("path",{d:"M9 7h6v2H9zm7 0h2v2h-2zm-7 3h6v2H9zm7 0h2v2h-2z"},"1")],"ReceiptLong"),y={Edit:o(H,{fontSize:"small"}),View:o(A,{fontSize:"small"}),Delete:o(C,{fontSize:"small"}),Download:o(D,{fontSize:"small"}),Print:o(w,{fontSize:"small"}),Add:o(v,{fontSize:"small"}),Save:o(k,{fontSize:"small"}),Close:o(g,{fontSize:"small"}),Info:o(n,{fontSize:"small"}),Search:o(u,{fontSize:"small"}),Back:o(b,{fontSize:"small"}),AddMoney:o(x,{fontSize:"small"}),TransactionDetails:o(V,{fontSize:"small"}),QualityCheck:o(M,{fontSize:"small"}),GenBill:o(I,{fontSize:"small"})},L={Edit:"#1976d2",View:"#6a1b9a",Delete:"#d32f2f",Download:"#388e3c",Print:"#5d4037",Add:"#0288d1",Save:"#2e7d32",Close:"#616161",Info:"#0288d1",Search:"#455a64",Back:"#757575",AddMoney:"#2e7d32",TransactionDetails:"#3949ab",QualityCheck:"#00796b"},_=({type:a,onClick:i,color:s,placement:r="top",icon:c,style:d={},tooltipTitle:f})=>{const m=c||y[a]||o(n,{fontSize:"small"}),h=s||L[a]||"gray",p=a==="Back"?{position:"fixed",top:0,right:16,zIndex:1e3,backgroundColor:"#fff",borderRadius:"4px",width:40,height:40,boxShadow:"0 1px 2px rgba(0,0,0,0.2)",display:"flex",alignItems:"center",justifyContent:"center"}:{color:h,backgroundColor:"white",borderRadius:"8px",width:36,height:36,boxShadow:"0 1px 2px rgba(0,0,0,0.1)",border:"1px solid #e0e0e0","&:hover":{backgroundColor:"#f5f5f5"},...d};return o(z,{title:f||a,placement:r,children:o(S,{onClick:t=>{t.stopPropagation(),i(t)},sx:p,children:m})})};export{_ as I};
