import{an as l,ao as e,b as o,o as S,a3 as z,cB as I,cC as x,ak as v,al as C}from"./index-DlNZgIG9.js";import{I as n}from"./Info-BNFINHa6.js";import{A as b}from"./ArrowBack-BZcePsO6.js";import{S as u}from"./Search-Bc43mxWD.js";import{C as g}from"./Close-DYYvLTb2.js";import{S as k}from"./Save-BbxTksNP.js";import{P as w}from"./Print-5sVZ3BbH.js";import{D as A}from"./Download-B_6JY8Qg.js";import{V as D}from"./Visibility-BGLCuSpL.js";import{E as H}from"./Edit-BDl58YiG.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(D,{fontSize:"small"}),Delete:o(C,{fontSize:"small"}),Download:o(A,{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"})},B={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"},q=({type:a,onClick:i,color:s,placement:c="top",icon:r,style:d={},tooltipTitle:f})=>{const m=r||y[a]||o(n,{fontSize:"small"}),h=s||B[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:c,children:o(S,{onClick:t=>{t.stopPropagation(),i(t)},sx:p,children:m})})};export{q as I};
