import{r as m,S as n,j as s,a as c}from"./app-BZJf8lgN.js";import{C as u}from"./CustomCKEditor-BpmNiC9B.js";import{I as r}from"./InputLabel-Dd3VnoK3.js";import{L as p}from"./layout-DZ5xjWdd.js";import{B as d}from"./button.esm-D_cwsnQR.js";import{I as x}from"./inputtext.esm-B1lZn37a.js";import{T as j}from"./toast.esm-CYGIlaDH.js";import"./hooks.esm-UVLztt_0.js";import"./CSSTransition-DBuKQJwM.js";import"./csstransition.esm-BNRxTMOa.js";import"./index.esm-CygY3Qsw.js";import"./index.esm-B5zYYMSp.js";import"./index.esm-hRnQzR_k.js";const M=()=>{const o=m.useRef(null),{data:a,setData:e,post:i}=n({asunto:"",texto:""}),l=()=>{i(route("subcriptores.email"),{onSuccess:()=>{o.current.show({severity:"success",summary:"Exito",detail:"Mails Enviados",life:3e3}),setTimeout(()=>{location.reload()},1e3)}})};return s.jsxs(p,{children:[s.jsx(c,{title:"Enviar Mail a Subscriptores"}),s.jsx("div",{className:"grid",children:s.jsx("div",{className:"col-12",children:s.jsxs("div",{className:"card",children:[s.jsx(j,{ref:o}),s.jsx(r,{children:"Asunto"}),s.jsx(x,{placeholder:"Asunto",className:"w-full mb-2",onChange:t=>e("asunto",t.target.value)}),s.jsx(r,{children:"Texto"}),s.jsx(u,{data:a.texto||"",onChange:t=>e("texto",t),placeholder:"Escribe aquí..."}),s.jsx(d,{className:"mt-5",onClick:l,children:"Enviar Correo"})]})})})]})};export{M as default};
//# sourceMappingURL=MailSubscriptores-B2YsD0Rn.js.map
