import{j as l,bf as i,b2 as c}from"./react-vendor-xYZnmIII.js";import"./inertia-vendor-cBbDTmhJ.js";import"./ui-vendor-Ds9iwIxa.js";const x=({template:e,studentName:s,courseName:t,completionDate:a,logoUrl:r})=>{const{template_data:o}=e;return l.jsxs("div",{className:"relative flex min-h-[400px] flex-col justify-center rounded-lg border-4 p-8 text-center shadow-lg",style:{backgroundColor:o.backgroundColor,borderColor:o.borderColor,fontFamily:o.fontFamily},children:[l.jsx("div",{className:"absolute inset-4 rounded border-2",style:{borderColor:o.primaryColor}}),l.jsxs("div",{className:"relative z-10 space-y-6",children:[(r||e.logo_path)&&l.jsx("div",{className:"certificate-logo mx-auto mb-4 flex h-16 items-center justify-center",children:l.jsx("img",{src:r||e.logo_path||"",alt:"Logo",className:"h-full w-full object-contain"})}),!r&&!e.logo_path&&l.jsx(i,{className:"mx-auto mb-3 h-12 w-12",style:{color:o.borderColor}}),l.jsxs("div",{children:[l.jsx("h2",{className:"mb-2 text-3xl font-bold",style:{color:o.primaryColor,fontFamily:o.fontFamily},children:o.titleText}),l.jsx("div",{className:"mx-auto h-1 w-32",style:{backgroundColor:o.borderColor}})]}),l.jsx("p",{className:"text-lg",style:{color:o.secondaryColor,fontFamily:o.fontFamily},children:o.descriptionText}),l.jsxs("div",{className:"relative py-4",children:[l.jsx("p",{className:"text-3xl font-bold",style:{color:o.primaryColor,fontFamily:o.fontFamily},children:s}),l.jsx("div",{className:"mx-auto mt-2 h-0.5 w-48",style:{backgroundColor:o.borderColor}})]}),l.jsx("p",{className:"text-lg",style:{color:o.secondaryColor,fontFamily:o.fontFamily},children:o.completionText}),l.jsx("p",{className:"text-2xl font-semibold",style:{color:o.primaryColor,fontFamily:o.fontFamily},children:t}),l.jsxs("div",{className:"flex items-center justify-center gap-2 pt-4",children:[l.jsx(c,{className:"h-4 w-4",style:{color:o.secondaryColor}}),l.jsxs("p",{className:"text-sm",style:{color:o.secondaryColor,fontFamily:o.fontFamily},children:["Completed on: ",a]})]}),l.jsx("div",{className:"mt-6 border-t pt-4",style:{borderColor:o.borderColor},children:l.jsx("p",{className:"text-sm",style:{color:o.secondaryColor,fontFamily:o.fontFamily},children:o.footerText})})]})]})};export{x as default};
