import{a8 as l,a9 as e,b as o,o as S,ar as z,cB as I,cC as x}from"./index-BiWH3VAt.js";import{I as n}from"./Info-v4QA-gWF.js";import{A as v}from"./ArrowBack-BMo2pzuS.js";import{S as C}from"./Search-B7UYwkVS.js";import{C as b}from"./Close-CMjtrCFB.js";import{S as u}from"./Save-7pWTb-tX.js";import{A as g}from"./Add-Dk5aKU9x.js";import{P as k}from"./Print-ugnhVCCd.js";import{D as w}from"./Download-BB_KYndt.js";import{D as A}from"./Delete-CeXZNhlr.js";import{V as D}from"./Visibility-BMZwBcn_.js";import{E as H}from"./Edit-D-Mgl6aj.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(A,{fontSize:"small"}),Download:o(w,{fontSize:"small"}),Print:o(k,{fontSize:"small"}),Add:o(g,{fontSize:"small"}),Save:o(u,{fontSize:"small"}),Close:o(b,{fontSize:"small"}),Info:o(n,{fontSize:"small"}),Search:o(C,{fontSize:"small"}),Back:o(v,{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"},K=({type:t,onClick:i,color:s,placement:r="top",icon:c,style:d={},tooltipTitle:m})=>{const f=c||y[t]||o(n,{fontSize:"small"}),h=s||B[t]||"gray",p=t==="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:m||t,placement:r,children:o(S,{onClick:a=>{a.stopPropagation(),i(a)},sx:p,children:f})})};export{K as I};
