import{i as e,n as t,t as n}from"./react-B8IZ02wI.js";import{Q as r}from"./button-DqbiydrF.js";import{n as i}from"./index-Bg7bo8aA.js";var a=t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M820 436h-40c-4.4 0-8 3.6-8 8v40c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-40c0-4.4-3.6-8-8-8zm32-104H732V120c0-4.4-3.6-8-8-8H300c-4.4 0-8 3.6-8 8v212H172c-44.2 0-80 35.8-80 80v328c0 17.7 14.3 32 32 32h168v132c0 4.4 3.6 8 8 8h424c4.4 0 8-3.6 8-8V772h168c17.7 0 32-14.3 32-32V412c0-44.2-35.8-80-80-80zM360 180h304v152H360V180zm304 664H360V568h304v276zm200-140H732V500H292v204H160V412c0-6.6 5.4-12 12-12h680c6.6 0 12 5.4 12 12v292z`}}]},name:`printer`,theme:`outlined`}})),o=e(n()),s=e(a());function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}var l=o.forwardRef((e,t)=>o.createElement(r,c({},e,{ref:t,icon:s.default}))),u=i();function d({name:e}){let t=(e||``).trim();return t?(0,u.jsxs)(`div`,{className:`doc-header-org`,"aria-label":`公司标识`,children:[(0,u.jsx)(`span`,{className:`doc-header-org-line`}),(0,u.jsx)(`span`,{className:`doc-header-org-name`,children:t}),(0,u.jsx)(`span`,{className:`doc-header-org-line`})]}):null}function f({runningHeader:e,header:t,footer:n,runningFooter:r,children:i,className:a}){return(0,u.jsxs)(`table`,{className:`doc-print-sheet${a?` ${a}`:``}`,children:[e?(0,u.jsx)(`thead`,{children:(0,u.jsx)(`tr`,{children:(0,u.jsx)(`td`,{className:`doc-print-sheet-cell`,children:(0,u.jsx)(`div`,{className:`doc-print-running-header`,children:e})})})}):null,(0,u.jsx)(`tbody`,{children:(0,u.jsx)(`tr`,{children:(0,u.jsxs)(`td`,{className:`doc-print-sheet-cell`,children:[(0,u.jsx)(`div`,{className:`doc-print-first-header`,children:t}),(0,u.jsx)(`div`,{className:`doc-print-body`,children:i}),n?(0,u.jsx)(`div`,{className:`doc-print-end-footer`,children:n}):null]})})}),r?(0,u.jsx)(`tfoot`,{children:(0,u.jsx)(`tr`,{children:(0,u.jsx)(`td`,{className:`doc-print-sheet-cell`,children:(0,u.jsx)(`div`,{className:`doc-print-running-footer`,children:r})})})}):null]})}function p({roles:e,items:t,isDraft:n,note:r=`签字确认（建议在末页签署）`}){let i=t?.length?t:(e||[]).map(e=>({role:e}));return(0,u.jsxs)(`div`,{className:`doc-page-signatures${n?` is-draft`:``}`,children:[(0,u.jsx)(`div`,{className:`doc-page-signatures-note`,children:r}),(0,u.jsx)(`div`,{className:`doc-page-signatures-grid`,children:i.map(e=>(0,u.jsxs)(`div`,{className:`doc-page-signatures-block`,children:[(0,u.jsxs)(`div`,{className:`doc-page-signatures-row`,children:[(0,u.jsx)(`span`,{className:`doc-page-signatures-role`,children:e.role}),(0,u.jsx)(`span`,{className:`doc-page-signatures-blank`,children:`签字：____________`}),(0,u.jsx)(`span`,{className:`doc-page-signatures-blank`,children:`日期：________`})]}),e.confirm?(0,u.jsx)(`div`,{className:`doc-page-signatures-confirm`,children:e.confirm}):null]},e.role))})]})}export{l as i,p as n,f as r,d as t};