1import{r as l,j as e,l as g,M as x}from"./vendor-ui-core-DMppRjSS.js";import{B as b}from"./Layout-Bjvo0Nfo.js";import{c as h}from"./teachable-pricing-CpNy9eXe.js";const c=l.forwardRef(({className:t,type:a,...o},s)=>e.jsx("input",{type:a,className:h("flex h-11 w-full rounded-xl border-2 border-input bg-background px-4 py-2.5 text-base ring-offset-background transition-colors duration-200 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:border-primary/50 hover:border-primary/30 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:s,...o}));c.displayName="Input";function v({variant:t="default",title:a="Get Weekly Course Creation Tips",description:o="Join 10,000+ course creators. Free tips on building and growing your online course business."}){const[s,d]=l.useState(""),[f,p]=l.useState(!1),[i,m]=l.useState(!1),u=r=>{if(r.preventDefault(),!s)return;m(!0);const n=JSON.parse(localStorage.getItem("newsletter_subscribers")||"[]");n.includes(s)||(n.push(s),localStorage.setItem("newsletter_subscribers",JSON.stringify(n))),setTimeout(()=>{m(!1),p(!0)},500)};return f?e.jsxs("div",{className:`rounded-xl border border-success/30 bg-success/10 p-6 text-center ${t==="compact"?"p-4":""}`,children:[e.jsx(g,{className:"mx-auto mb-3 h-8 w-8 text-success"}),e.jsx("p",{className:"font-medium text-foreground",children:"You're subscribed!"}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Check your inbox for a welcome email."})]}):t==="compact"?e.jsxs("div",{className:"rounded-xl border border-border bg-card p-4",children:[e.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[e.jsx(x,{className:"h-4 w-4 text-primary"}),e.jsx("span",{className:"text-sm font-medium text-foreground",children:a})]}),e.jsxs("form",{onSubmit:u,className:"flex gap-2",children:[e.jsx(c,{type:"email",placeholder:"[email protected]",value:s,onChange:r=>d(r.target.value),required:!0,className:"flex-1","aria-label":"Email address"}),e.jsx(b,{type:"submit",size:"sm",disabled:i,children:i?"...":"Subscribe"})]})]}):e.jsx("section",{className:"border-t border-b border-border bg-muted/30 py-12",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"mx-auto max-w-xl text-center",children:[e.jsx("div",{className:"mb-4 flex justify-center",children:e.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-primary/10",children:e.jsx(x,{className:"h-6 w-6 text-primary"})})}),e.jsx("h2",{className:"mb-2 text-xl font-display tracking-heading font-bold text-foreground",children:a}),e.jsx("p",{className:"mb-6 text-muted-foreground",children:o}),e.jsxs("form",{onSubmit:u,className:"flex flex-col gap-3 sm:flex-row sm:gap-2",children:[e.jsx(c,{type:"email",placeholder:"[email protected]",value:s,onChange:r=>d(r.target.value),required:!0,className:"flex-1","aria-label":"Email address"}),e.jsx(b,{type:"submit",disabled:i,className:"sm:w-auto",children:i?"Subscribing...":"Subscribe â It's Free"})]}),e.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:"No spam, ever. Unsubscribe anytime."})]})})})}export{c as I,v as N};
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.