import{aU as u,j as e}from"./react-vendor-xYZnmIII.js";import{u as c}from"./use-lang-Dg6I_Fym.js";import{c as p}from"./ui-components-CQM92IK3.js";import{B as d}from"./button-gradient-primary-B41CKBZO.js";import{I as b}from"./input-error-_LAmvivg.js";const y=({className:s,buttonText:a})=>{const{input:t}=c(),{data:o,setData:m,post:i,errors:l}=u({email:""}),n=r=>{r.preventDefault(),i(route("subscribes.store"))};return e.jsxs("form",{onSubmit:n,className:p("relative z-10",s),children:[e.jsxs("div",{className:"bg-background text-primary flex items-center justify-between gap-2 rounded-md border border-gray-400",children:[e.jsx("input",{type:"email",name:"email",value:o.email,onChange:r=>m("email",r.target.value),className:"h-[50px] w-full px-4 focus:outline-0",placeholder:t.email_placeholder}),e.jsx(d,{type:"submit",shadow:!1,className:"mr-1",children:a||"Subscribe"})]}),e.jsx(b,{message:l.email})]})};export{y as S};
