1import{j as e}from"./client-BdA7rF3J.js";function b({event:a,emailTemplate:g,setEmailTemplate:x,emailRecipients:n,setEmailRecipients:u,emailSubject:o,setEmailSubject:t,emailMessage:s,setEmailMessage:d,showEmailPreview:i,setShowEmailPreview:h,isDropdownOpen:y,setIsDropdownOpen:l}){var c,m;return e.jsxs("div",{className:`transition-opacity duration-200 ${y?"opacity-50":"opacity-100"}`,children:[e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Volunteer Email"}),e.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mt-1",children:"Send emails to volunteers and participants for this event"})]}),e.jsx("div",{children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:"Email Template"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3",children:[{name:"Volunteer Recruitment",description:"Invite people to volunteer"},{name:"Event Reminder (1 week before)",description:"Week-ahead reminder notice"},{name:"Event Reminder (1 day before)",description:"Last-minute reminder"},{name:"Thank You Message",description:"Express gratitude after event"},{name:"Follow-up Survey",description:"Gather feedback and ideas"},{name:"Custom Message",description:"Create your own content"}].map(r=>e.jsxs("button",{onClick:()=>{x(r.name),r.name==="Event Reminder (1 week before)"?(t(`Reminder: ${a.name} is next week!`),d(`Dear [Volunteer Name], 2 3This is a friendly reminder that ${a.name} is coming up next week on ${a.date?new Date(a.date).toLocaleDateString():"[Date]"}. 4 5Event Details: 6ð Date: ${a.date?new Date(a.date).toLocaleDateString():"[Date]"} 7â° Time: ${a.time||"[Time]"} 8ð Location: ${a.location||"[Location]"} 9 10Please confirm your attendance by replying to this email. 11 12Thank you for your continued support! 13 14Best regards, 15Keep Soddy-Daisy Beautiful Team`)):r.name==="Thank You Message"&&(t(`Thank you for volunteering at ${a.name}!`),d(`Dear [Volunteer Name], 16 17Thank you so much for volunteering at ${a.name}! Your dedication and hard work made this event a tremendous success. 18 19Together, we made a real difference in our community. Your contribution helped us: 20⢠[Achievement 1] 21⢠[Achievement 2] 22⢠[Achievement 3] 23 24We couldn't have done it without volunteers like you. Keep an eye out for our next event - we'd love to have you join us again! 25 26With heartfelt gratitude, 27Keep Soddy-Daisy Beautiful Team`))},className:`p-3 rounded-lg border-2 transition-all text-sm ${g===r.name?"border-indigo-500 bg-indigo-50 dark:bg-indigo-900/20 text-indigo-700 dark:text-indigo-300":"border-gray-200 dark:border-gray-700 hover:border-gray-300 dark:hover:border-gray-600 text-gray-700 dark:text-gray-300"}`,children:[e.jsx("div",{className:"font-medium",children:r.name}),e.jsx("div",{className:"text-xs opacity-75 mt-1",children:r.description})]},r.name))})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:["Recipients (",((c=a.volunteers)==null?void 0:c.length)||"0"," people)"]}),e.jsxs("select",{value:n,onChange:r=>u(r.target.value),onFocus:()=>l(!0),onBlur:()=>l(!1),className:"w-full md:w-1/2 px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-100 relative z-10",children:[e.jsx("option",{children:"All Event Volunteers (8)"}),e.jsx("option",{children:"All Activity Volunteers (24)"}),e.jsx("option",{children:"All Volunteers (127)"}),e.jsx("option",{children:"Selected Volunteers"}),e.jsx("option",{children:"Custom List"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:"Email Subject"}),e.jsx("input",{type:"text",value:o,onChange:r=>t(r.target.value),className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:"Message"}),e.jsx("textarea",{value:s,onChange:r=>d(r.target.value),className:"w-full h-48 p-3 border border-gray-300 dark:border-gray-600 rounded-md bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 text-sm"})]}),e.jsx("div",{className:"bg-orange-50 dark:bg-orange-900/20 border border-orange-200 dark:border-orange-800 rounded-lg p-4",children:e.jsxs("div",{className:"flex items-center",children:[e.jsx("svg",{className:"w-5 h-5 text-orange-600 dar
27k:text-orange-400",fill:"currentColor",viewBox:"0 0 20 20",children:e.jsx("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})}),e.jsxs("p",{className:"ml-2 text-sm text-orange-800 dark:text-orange-200",children:["This email will be sent to ",e.jsx("strong",{children:((m=a.volunteers)==null?void 0:m.length)||"0"})," volunteers. Make sure to review the content before sending."]})]})}),e.jsxs("div",{className:"flex space-x-3",children:[e.jsx("button",{onClick:()=>h(!i),className:"px-6 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700 transition",children:i?"Hide Preview":"Preview Email"}),e.jsx("button",{className:"px-6 py-2 bg-green-600 text-white rounded-md hover:bg-green-700 transition",children:"Send Email"}),e.jsx("button",{className:"px-6 py-2 border border-gray-300 dark:border-gray-600 text-gray-700 dark:text-gray-300 rounded-md hover:bg-gray-50 dark:hover:bg-gray-700 transition",children:"Save as Draft"})]}),i&&e.jsxs("div",{className:"mt-4 p-4 bg-gray-50 dark:bg-gray-700/50 rounded-lg",children:[e.jsx("h4",{className:"font-semibold text-gray-900 dark:text-white mb-2",children:"Email Preview:"}),e.jsxs("div",{className:"bg-white dark:bg-gray-800 p-4 rounded border border-gray-200 dark:border-gray-600",children:[e.jsxs("div",{className:"border-b pb-2 mb-3",children:[e.jsx("div",{className:"text-xs text-gray-500",children:"From: Keep Soddy-Daisy Beautiful <[email protected]>"}),e.jsxs("div",{className:"text-xs text-gray-500",children:["To: ",n]}),e.jsxs("div",{className:"font-medium",children:["Subject: ",o]})]}),e.jsx("div",{className:"whitespace-pre-line text-sm",children:s}),e.jsx("div",{className:"mt-4 pt-2 border-t text-xs text-gray-500",children:"Keep Soddy-Daisy Beautiful | Soddy-Daisy, TN | [email protected]"})]})]})]})})]})}const v=Object.freeze(Object.defineProperty({__proto__:null,default:b},Symbol.toStringTag,{value:"Module"}));export{b as E,v as _};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.