import{r as m,b as t}from"./app-DTeOhhdM.js";import{S as s}from"./SingleView-CIASBRyC.js";import{quotationSingleViewConfig as a}from"./quotationSingleViewConfig-B-vISuiH.js";import l from"./QuotationPrintPage-DMITl-pu.js";import"./AuthenticatedLayout-DNj-hWy1.js";import"./helper-Gzy5oJm-.js";import"./asyncToGenerator-BfWTt6ZC.js";import"./createLucideIcon-0QtVMxKe.js";import"./defualtLogo-C0dU5cUD.js";import"./SendForApprovalModal-D4xv6430.js";import"./inputtextarea.esm-Dd-bVwF0.js";import"./inputtext.esm-DvYkLvTo.js";import"./column.esm-CqBIx_TJ.js";import"./index.esm-xhUioO7y.js";import"./index.esm-BlFJNgmX.js";import"./index.esm-CVWS0Xy2.js";import"./checkbox.esm-BR_P7NMp.js";import"./toast.esm-CLj0hUIX.js";import"./ApprovalActionModal-PtHx0E0N.js";import"./numberToWords.min-02Sh2OYb.js";/* empty css                */function I({auth:r,quotation:i,userApprovalAssignment:n}){const[e,o]=m.useState(!1),p={...a,printConfig:{label:"Print",icon:"pi pi-print",onPrint:()=>{o(!0),setTimeout(()=>{window.print(),setTimeout(()=>{o(!1)},500)},300)},className:"p-button-info p-button-sm"}};return t.jsxs(t.Fragment,{children:[e&&t.jsx("div",{className:"print-view print:block hidden",children:t.jsx(l,{quotationInfo:i})}),t.jsx(s,{auth:r,data:i,userApprovalAssignment:n,config:p})]})}export{I as default};
