import{r as e,z as o}from"./vendor-s2rfM_Vj.js";import{D as t,L as s,P as a,B as l}from"./t-r-vendor-gn7FMrPE.js";const r="_pdf-dialog_1vi4l_1",i=({visible:i,handleVisible:n,iframe:c})=>{const[d,h]=e.useState(!0),[p,m]=e.useState(!1);return o.jsxs(t,{className:r,style:{padding:0,overflow:"auto",backgroundColor:"var(--theme-black7)",backdropFilter:"blur(5px)",height:p?"100vh":"fit-content"},width:p?"100vw":"90vw",visible:i,placement:"center",mode:"modal",onClose:()=>n(!1),preventScrollThrough:!0,showOverlay:!0,theme:"default",footer:!1,header:!1,closeBtn:!1,closeOnEscKeydown:!0,closeOnOverlayClick:!0,confirmOnEnter:!1,destroyOnClose:!0,children:[o.jsx(s,{loading:d,size:"large",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}}),o.jsx("iframe",{title:"OnePageIframe",src:c,width:"100%",height:p?"100%":"700px",loading:"lazy",onLoad:()=>h(!1)}),o.jsx(a,{content:"前往【在线简历】",trigger:"hover",children:o.jsx(l,{style:{position:"absolute",right:"20px",bottom:"60px"},onClick:()=>{window.open(c)},variant:"base",shape:"square",icon:o.jsx("i",{className:"ovo link",style:{fontSize:24}})})}),o.jsx(l,{style:{position:"absolute",right:"20px",bottom:"20px"},onClick:()=>{m(!p)},ghost:!0,variant:"base",shape:"square",icon:o.jsx("i",{className:"ovo fullscreen",style:{fontSize:24}})})]})};export{i as default};
