PageSourceSearch

https://mateq.ai/assets/Pricing-Blu9gOJt.js

js mateq.ai collected 2026-10-05 16:11:24 UTC 13,773 bytes, 1 lines download raw bytes

1import{R as i,n as oe,u as le,a as A,C as H,o as D,j as e,S as ce,b as me,p as de,L as P,r as M,g as ue,h as xe,M as he,q as c,A as ge,s as K,t as R,v as G,i as fe}from"./index-DyWV83gM.js";import{AuthModal as pe}from"./AuthModal-CLT8oQFH.js";import{s as j}from"./supabase-D_kz0RN6.js";import{c as J}from"./stripeService-GF_N4nxv.js";import{L as be}from"./loader-2-DvMZDIAe.js";import"./debugging-DmfSWYto.js";import"./auth-B8zwNqtX.js";import"./shield-80f2ryHI.js";import"./alert-circle-CvUZ9AVL.js";import"./clock-zAlj5_jF.js";import"./mail-UEYMC_Di.js";import"./user-CIo9X8Sf.js";import"./eye-off-20ogcAt5.js";import"./building-2-y0Vl6fp6.js";import"./users-D74pqx9Q.js";function Ee(){const[W,m]=i.useState(!1),[u,$]=i.useState(!1),[z,p]=i.useState(""),[N,w]=i.useState(""),[B,F]=i.useState("company"),[Y,b]=i.useState(!1),[Z,Q]=i.useState(!1),[y,C]=i.useState("companies"),[d,V]=i.useState("monthly"),[E,v]=i.useState(!1),[I,h]=i.useState(null),[x,k]=i.useState(null),[X,ee]=i.useState("subscription"),L=oe(),{language:n,locale:g}=le(),{translations:_}=A("navigation",n),{translations:te}=A("seo",n),{translations:se}=A("pricing",n),a=n==="de",l=(t,s)=>se[t]||s,T=(t,s)=>te[t]||s,ae=T("pricing.title",n==="de"?"Preise | Mateq Performance Marketing Control":"Pricing | Mateq Performance Marketing Control"),re=T("pricing.description",n==="de"?"Transparente Preise für Mateq: kostenloser Free-Plan zur Analyse, Plan-Optionen für Unternehmen und Agenturen. Jederzeit kündbar.":"Transparent pricing for Mateq: free analysis plan plus options for companies and agencies. Cancel anytime."),q=y==="companies"?H:D;i.useEffect(()=>{(async()=>{const{data:{session:r}}=await j.auth.getSession();if($(!!r),r!=null&&r.user){const{data:o}=await j.from("organization_members").select("organization_id").eq("user_id",r.user.id).limit(1).maybeSingle();o&&k(o.organization_id)}})();const{data:{subscription:s}}=j.auth.onAuthStateChange(async(r,o)=>{if($(!!o),o!=null&&o.user){const{data:S}=await j.from("organization_members").select("organization_id").eq("user_id",o.user.id).limit(1).maybeSingle();S&&k(S.organization_id)}else k(null)});return()=>s.unsubscribe()},[]),i.useEffect(()=>{!u||!x||j.from("organizations").select("is_agency").eq("id",x).single().then(({data:t})=>{t!=null&&t.is_agency&&C("agencies")})},[u,x]);const O=async t=>{if(t.ctaAction==="contact"){window.location.href="https://meetings-eu1.hubspot.com/mats-hess";return}if(t.planKey==="free"){u?L(`/${n}/dashboard`):(p(t.name),w(""),F(y==="agencies"?"agency":"company"),b(!0),m(!0));return}const s=d==="annual"?t.stripeAnnualPriceId:t.stripePriceId;if(!s){window.location.href="https://meetings-eu1.hubspot.com/mats-hess";return}if(!u){p(t.name),w(s),F(y==="agencies"?"agency":"company"),ee("subscription"),b(!0),m(!0);return}if(!x){h("No organization found. Please create an organization first.");return}try{v(!0),h(null);const r=await Promise.race([J(x,s,void 0,void 0,"subscription"),new Promise((o,S)=>setTimeout(()=>S(new Error("Checkout timed out")),3e4))]);if(!r.success||!r.url)throw new Error(r.error||"Checkout failed");window.location.href=r.url}catch(r){h(r instanceof Error?r.message:"Checkout failed"),v(!1)}};i.useEffect(()=>{if(u&&N&&x){const t=[...H,...D].find(s=>s.name===z);t&&O(t),p(""),w("")}},[u,x]);function ne(t){if(t.monthlyPrice===null)return a?"Individuell":"Custom";if(t.monthlyPrice===0)return a?"Kostenlos":"Free";if(d==="annual"&&t.annualPrice){const s=Math.round(t.annualPrice/12);return`${t.currency} ${f(s)}`}return`${t.currency} ${f(t.monthlyPrice)}`}function f(t){return a?t.toLocaleString("de-CH"):t.toLocaleString("en-US")}function U(t){return t.monthlyPrice!==null||!t.startingPrice?null:a?`Ab CHF ${f(t.startingPrice)}/Mt.`:`Starting from CHF ${f(t.startingPrice)}/mo`}function ie(t){if(!t.annualPrice||!t.monthlyPrice||t.monthlyPrice===0)return null;const r=t.monthlyPrice*12-t.annualPrice;return r<=0?null:a?`CHF ${f(r)}/Jahr sparen`:`Save ${t.currency} ${f(r)}/year`}return e.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-gray-50 to-gray-100",children:[e.jsx(ce,{title:ae,description:re,route:"pricing",locale:g,schema:[me(g),de(g)]}),e.jsx("nav",{className:"bg-white border-b border-gray-200 fixed top-0 left-0 right-0 z-50",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex justify-between items-center h-24",children:[e.jsx(P,{to:M("home",g),className:"flex items-center space-x-3",children:e.jsx("img",{src:"/mateq_ai_full_logo_transparent.png",alt:"Mateq AI",className:"h-32"})}),e.jsxs("div",{className:"flex items-center space-x-6",children:[e.jsxs("div",{className:"hidden md:flex md:items-center md:space-x-6",children:[e.jsx(P,{to:M("about",g),className:"text-sm font-medium text-gray-900 hover:text-[#69a08a]",children:_.about||(a?"Über uns":"About")}),e.jsx(ue,{}),e.jsx(P,{to:M("contact",g),className:"text-sm font-medium text-gray-900 hover:text-[#69a08a]",children:_.contact||(a?"Kontakt":"Contact")})]}),e.jsx(xe,{}),u?e.jsx(P,{to:`/${n}/dashboard`,className:"px-4 py-2 bg-[#69a08a] text-white rounded-lg hover:bg-[#5a8f7a] text-sm font-medium",children:"Dashboard"}):e.jsx("button",{onClick:()=>{b(!1),m(!0)},className:"px-4 py-2 bg-[#69a08a] text-white rounded-lg hover:bg-[#5a8f7a] text-sm font-medium",children:_.sign_in||(a?"Anmelden":"Sign In")}),e.jsx(he,{onSignIn:()=>{b(!1),m(!0)}})]})]})})}),e.jsx("main",{className:"pt-32 pb-24 px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"max-w-7xl mx-auto",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:l("headline",a?"Schlechte Daten kosten Geld. Wir beheben das.":"Bad data costs money. We fix it.")}),e.jsx("p",{className:"text-lg text-gray-600 max-w-2xl mx-auto",children:l("subheadline",a?"Sehen Sie Ihre Tracking-Probleme kostenlos. Zahlen Sie erst, wenn Sie beheben, überwachen und automatisieren möchten.":"See your tracking issues for free. Pay only when you're ready to fix, monitor, and automate.")})]}),e.jsx("div",{className:"flex justify-center mb-8",children:e.jsxs("div",{className:"inline-flex bg-gray-100 rounded-lg p-1",children:[e.jsx("button",{onClick:()=>C("companies"),className:`px-6 py-2 text-sm font-medium rounded-md transition-colors ${y==="companies"?"bg-white text-gray-900 shadow-sm":"text-gray-600 hover:text-gray-900"}`,children:l("toggle_companies",a?"Für Unternehmen":"For Companies")}),e.jsx("button",{onClick:()=>C("agencies"),className:`px-6 py-2 text-sm font-medium rounded-md transition-colors ${y==="agencies"?"bg-white text-gray-900 shadow-sm":"text-gray-600 hover:text-gray-900"}`,children:l("toggle_agencies",a?"Für Agenturen":"For Agencies")})]})}),e.jsx("div",{className:"flex justify-center mb-12",children:e.jsxs("div",{className:"inline-flex items-center space-x-3",children:[e.jsx("span",{className:`text-sm font-medium ${d==="monthly"?"text-gray-900":"text-gray-500"}`,children:l("billing_monthly",a?"Monatlich":"Monthly")}),e.jsx("button",{onClick:()=>
1V(d==="monthly"?"annual":"monthly"),className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors ${d==="annual"?"bg-[#69a08a]":"bg-gray-300"}`,children:e.jsx("span",{className:`inline-block h-4 w-4 rounded-full bg-white transition-transform ${d==="annual"?"translate-x-6":"translate-x-1"}`})}),e.jsxs("span",{className:`text-sm font-medium ${d==="annual"?"text-gray-900":"text-gray-500"}`,children:[l("billing_annual",a?"Jährlich":"Annual")," ",e.jsx("span",{className:"text-[#69a08a] text-xs",children:l("billing_annual_hint",a?"(~17% sparen)":"(save ~17%)")})]})]})}),e.jsx("div",{className:`grid gap-6 max-w-7xl mx-auto ${q.length<=4?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-5"}`,children:q.map(t=>{const s=d==="annual"?ie(t):null;return e.jsxs("div",{className:`bg-white rounded-2xl shadow-sm border p-6 flex flex-col ${t.popular?"ring-2 ring-[#69a08a] border-[#69a08a]":"border-gray-200"}`,children:[t.popular&&e.jsx("span",{className:"inline-block self-start px-3 py-1 text-xs font-semibold text-white bg-[#69a08a] rounded-full mb-3",children:l("most_popular",a?"Am beliebtesten":"Most Popular")}),e.jsx("h3",{className:"text-xl font-bold text-gray-900",children:t.name}),e.jsx("p",{className:"text-sm text-gray-500 mt-1 mb-4",children:c(t.tagline,n)}),e.jsxs("div",{className:"mb-4",children:[e.jsx("span",{className:"text-3xl font-bold text-gray-900",children:ne(t)}),t.monthlyPrice!==null&&t.monthlyPrice>0&&e.jsx("span",{className:"text-gray-500 text-sm",children:a?"/Mt.":"/mo"}),s&&e.jsx("p",{className:"text-xs text-[#69a08a] font-medium mt-1",children:s}),U(t)&&e.jsx("p",{className:"text-sm text-gray-500 mt-1",children:U(t)})]}),e.jsx("button",{onClick:()=>O(t),disabled:E,className:`w-full py-2.5 px-4 rounded-lg font-medium text-sm transition-colors mb-5 flex items-center justify-center ${t.popular?"bg-[#69a08a] text-white hover:bg-[#5a8f7a]":t.monthlyPrice===0?"bg-gray-900 text-white hover:bg-gray-800":"bg-gray-100 text-gray-900 hover:bg-gray-200"} disabled:opacity-50`,children:E?e.jsx(be,{className:"h-4 w-4 animate-spin"}):e.jsxs(e.Fragment,{children:[c(t.ctaLabel,n),e.jsx(ge,{className:"h-4 w-4 ml-1.5"})]})}),e.jsx("ul",{className:"space-y-2.5 flex-1",children:t.highlights.map((r,o)=>e.jsxs("li",{className:"flex items-start text-sm",children:[e.jsx(K,{className:"h-4 w-4 text-[#69a08a] mr-2 flex-shrink-0 mt-0.5"}),e.jsx("span",{className:"text-gray-700",children:c(r,n)})]},o))}),e.jsx("div",{className:"mt-4 pt-4 border-t border-gray-100",children:e.jsx("div",{className:"flex flex-wrap gap-1.5",children:t.limits.map((r,o)=>e.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-[10px] font-medium bg-gray-100 text-gray-600",children:c(r,n)},o))})})]},t.planKey)})}),R.length>0&&e.jsxs("div",{className:"mt-16 max-w-3xl mx-auto",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 text-center mb-6",children:l("addons_heading","Add-ons")}),e.jsx("div",{className:"space-y-3",children:R.map(t=>e.jsxs("div",{className:"flex items-center justify-between bg-white rounded-lg border border-gray-200 p-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-medium text-gray-900",children:c(t.name,n)}),e.jsx("p",{className:"text-sm text-gray-500",children:c(t.description,n)})]}),e.jsxs("span",{className:"text-lg font-bold text-gray-900 whitespace-nowrap ml-4",children:[t.price?`CHF ${t.price}`:a?"Individuell":"Custom",e.jsx("span",{className:"text-sm font-normal text-gray-500",children:c(t.period,n)})]})]},t.name.en))})]}),G.length>0&&e.jsxs("div",{className:"mt-12 max-w-3xl mx-auto",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 text-center mb-6",children:l("setup_heading",a?"Optionale Setup-Services":"Optional Setup Services")}),e.jsx("div",{className:"space-y-3",children:G.map(t=>e.jsxs("div",{className:"flex items-center justify-between bg-white rounded-lg border border-gray-200 p-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-medium text-gray-900",children:c(t.name,n)}),e.jsx("p",{className:"text-sm text-gray-500",children:c(t.description,n)})]}),e.jsx("span",{className:"text-sm font-bold text-gray-900 whitespace-nowrap ml-4",children:t.price?`CHF ${t.price} ${c(t.period,n)}`:c(t.period,n)})]},t.name.en))})]}),e.jsx("div",{className:"mt-16 max-w-4xl mx-auto",children:e.jsxs("div",{className:"bg-gradient-to-br from-gray-50 to-white rounded-2xl shadow-md border border-gray-200 p-8 text-center",children:[e.jsx("div",{className:"flex justify-center mb-4",children:e.jsx("div",{className:"w-16 h-16 bg-[#69a08a] bg-opacity-10 rounded-full flex items-center justify-center",children:e.jsx(K,{className:"h-8 w-8 text-[#69a08a]"})})}),e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-3",children:l("guarantee_heading",a?"Kostenlos starten – upgraden, wenn Sie bereit sind":"Start Free, Upgrade When Ready")}),e.jsx("p",{className:"text-gray-600 leading-relaxed max-w-2xl mx-auto",children:l("guarantee_text",a?"Sehen Sie alle Tracking-Probleme im Free-Plan – ohne Kreditkarte. Upgraden Sie jederzeit, um zu beheben, zu überwachen und zu automatisieren.":"See all your tracking issues on the Free plan — no credit card required. Upgrade anytime to start fixing, monitoring, and automating.")})]})}),e.jsx("div",{className:"mt-16 text-center",children:e.jsxs("p",{className:"text-gray-600",children:[l("custom_solution",a?"Sie brauchen eine individuelle Lösung?":"Need a custom solution?")," ",e.jsx("a",{href:"https://meetings-eu1.hubspot.com/mats-hess",target:"_blank",rel:"noopener noreferrer",className:"text-[#69a08a] font-medium hover:underline",children:l("contact_sales",a?"Kontaktieren Sie unser Sales-Team":"Contact our sales team")})]})})]})}),e.jsx(fe,{}),e.jsx(pe,{isOpen:W,onClose:()=>{m(!1),p(""),w("")},selectedPlan:z,setSelectedPlan:p,productCategory:B,isSignUp:Y,setIsSignUp:b,showPlans:Z,setShowPlans:Q,selectedPriceId:N,onSignupComplete:async t=>{if(!t){h("Organization creation failed."),m(!1);return}if(!N){m(!1),L(`/${n}/dashboard`);return}
1try{v(!0);const s=await Promise.race([J(t,N,void 0,void 0,X),new Promise((r,o)=>setTimeout(()=>o(new Error("Checkout timed out")),3e4))]);if(!s.success||!s.url)throw new Error(s.error||"Checkout failed");window.location.href=s.url}catch(s){h(s instanceof Error?s.message:"Checkout failed"),v(!1),m(!1)}}}),I&&e.jsxs("div",{className:"fixed bottom-4 right-4 max-w-md bg-red-50 border border-red-200 rounded-lg p-4 shadow-lg z-50",children:[e.jsx("p",{className:"text-sm text-red-700",children:I}),e.jsx("button",{onClick:()=>h(null),className:"mt-2 text-xs text-red-500 hover:text-red-700",children:"Dismiss"})]})]})}export{Ee 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.