PageSourceSearch

https://infinitispark.ai/assets/Warteliste-BJ5lIbND.js

js infinitispark.ai collected 2026-10-05 12:06:41 UTC 6,354 bytes, 11 lines download raw bytes

1import{c as y,u as S,r,s as A,j as e,L as N,I as P,B as z,n as B,p as k,q as F,t as I,S as H,A as W,F as $,H as q,e as u,f as K,a as U}from"./index-DGj7M__V.js";import{C as V}from"./check-DJiXC5h0.js";import{T as Z}from"./Trans-CHw67i8N.js";import{u as G}from"./usePageMeta-BXLZ03CZ.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const J=y("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/**
7 * @license lucide-react v0.462.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const O=y("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]]),Q=({source:t})=>{const{t:s,i18n:i}=S(),[n,x]=r.useState(""),[E,M]=r.useState(!1),[o,p]=r.useState(!1),[h,f]=r.useState(""),[b,C]=r.useState(""),[l,c]=r.useState("idle"),[d,D]=r.useState(""),g=r.useRef(Date.now()),L=A().trim().email({message:s("footer.emailError")}),T=async a=>{var w;a.preventDefault(),f("");const j=L.safeParse(n);if(!j.success){f(j.error.errors[0].message);return}p(!0);try{const m=Math.round((Date.now()-g.current)/1e3),{error:v}=await k.functions.invoke("newsletter-subscribe",{body:{email:n,fillSeconds:m,website:d,language:(w=i.language)!=null&&w.startsWith("en")?"en":"de",source:t,...F()}});if(v)throw v;C(n),c("idle"),M(!0),x("")}catch(m){console.error("Error joining the waitlist:",m),I({title:s("footer.subscribeError"),description:s("footer.subscribeErrorMessage"),variant:"destructive"})}finally{p(!1)}},R=async()=>{if(!(!b||l!=="idle")){c("loading");try{const a=Math.round((Date.now()-g.current)/1e3);await k.functions.invoke("newsletter-reconfirm",{body:{email:b,fillSeconds:a,website:d}})}catch(a){console.error("Error requesting waitlist re-confirmation:",a)}finally{c("done")}}};return E?e.jsxs("div",{className:"flex flex-col items-center gap-3",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-6 py-3 rounded-full bg-accent/10 text-accent",children:[e.jsx(V,{className:"w-5 h-5"}),e.jsx("span",{children:s("footer.confirmEmail")})]}),l==="done"?e.jsx("p",{className:"caption text-muted-foreground max-w-sm",children:s("footer.resendDone")}):e.jsxs("p",{className:"caption text-muted-foreground",children:[e.jsx("button",{type:"button",onClick:R,disabled:l==="loading",className:"underline underline-offset-4 hover:text-foreground transition-colors disabled:opacity-60",children:s("footer.resendLink")})," · ",e.jsx(N,{to:"/newsletter-bestaetigung",className:"underline underline-offset-4 hover:text-foreground transition-colors",children:s("footer.resendPageLink")})]})]}):e.jsxs("div",{children:[e.jsxs("form",{onSubmit:T,className:"flex flex-col sm:flex-row gap-3 max-w-md mx-auto",children:[e.jsxs("div",{"aria-hidden":"true",className:"absolute w-px h-px -left-[9999px] overflow-hidden",children:[e.jsx("label",{htmlFor:`website-url-${t}`,children:"Website"}),e.jsx("input",{id:`website-url-${t}`,name:"website",type:"text",tabIndex:-1,autoComplete:"off",value:d,onChange:a=>D(a.target.value)})]}),e.jsxs("div",{className:"flex-1",children:[e.jsx(P,{type:"email",placeholder:s("footer.emailPlaceholder"),value:n,onChange:a=>x(a.target.value),disabled:o,className:"h-12 rounded-full bg-background/50 border-border/50 focus:border-accent"}),h&&e.jsx("p",{className:"text-destructive text-sm mt-2 text-left pl-4",children:h})]}),e.jsx(z,{type:"submit",variant:"waitlist",className:"h-12 px-6",disabled:o,children:o?e.jsx(B,{className:"w-4 h-4 animate-spin"}):s("footer.subscribe")})]}),e.jsx("p",{className:"caption text-muted-foreground max-w-md mx-auto mt-4",children:e.jsx(Z,{i18nKey:"waitlistSignup.consent",components:{1:e.jsx(N,{to:"/datenschutz#warteliste",className:"text-accent hover:underline"})}})})]})},te=()=>{const{t}=S();
11G({title:t("waitlist.meta.title"),description:t("waitlist.meta.description"),path:"/warteliste"}),r.useEffect(()=>{window.scrollTo(0,0)},[]);const s=[{icon:J,title:t("waitlist.point1Title"),desc:t("waitlist.point1Desc"),bg:"bg-accent/20",color:"text-accent"},{icon:H,title:t("waitlist.point2Title"),desc:t("waitlist.point2Desc"),bg:"bg-spark-pink/20",color:"text-spark-pink"},{icon:O,title:t("waitlist.point3Title"),desc:t("waitlist.point3Desc"),bg:"bg-spark-cyan/20",color:"text-spark-cyan"}];return e.jsxs("div",{className:"min-h-screen bg-background relative",children:[e.jsx(W,{}),e.jsx($,{}),e.jsx(q,{}),e.jsx("main",{id:"main-content",className:"relative z-10 pt-28 pb-24 px-4",children:e.jsxs("div",{className:"container max-w-3xl",children:[e.jsx(u,{children:e.jsxs("div",{className:"text-center mb-12 relative",children:[e.jsx("div",{className:"inline-flex items-center gap-2 mb-6 px-4 py-1.5 rounded-full bg-accent/10 border border-accent/30 text-accent caption font-bold uppercase tracking-wider",children:t("waitlist.badge")}),e.jsxs("div",{className:"relative",children:[e.jsx("h1",{className:"mb-6",children:t("waitlist.title")}),e.jsx(K,{isActive:!0,count:16})]}),e.jsx("p",{className:"lead max-w-2xl mx-auto",children:t("waitlist.intro")})]})}),e.jsx(u,{children:e.jsx("div",{className:"grid sm:grid-cols-3 gap-4 mb-12",children:s.map(i=>e.jsxs("div",{className:"glass rounded-2xl p-6 border border-border/50 text-center",children:[e.jsx("div",{className:`w-12 h-12 mx-auto mb-4 rounded-xl ${i.bg} flex items-center justify-center`,children:e.jsx(i.icon,{className:`w-6 h-6 ${i.color}`})}),e.jsx("h2",{className:"heading-as-h5 mb-2",children:i.title}),e.jsx("p",{className:"text-muted-foreground leading-relaxed",children:i.desc})]},i.title))})}),e.jsx(u,{children:e.jsxs("div",{className:"glass rounded-3xl px-6 py-10 sm:px-10 text-center border border-accent/30",children:[e.jsx("p",{className:"font-bold mb-6",children:t("waitlist.note")}),e.jsx(Q,{source:"warteliste"})]})})]})}),e.jsx(U,{})]})};export{te as default};

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.