PageSourceSearch

https://aieducator.tools/_spa/assets/Compare-BrittaJe.js

js aieducator.tools collected 2026-10-01 14:32:39 UTC 9,143 bytes, 1 lines download raw bytes

1import{p as U,a as y,j as e,L as c,i as m,N as E,E as P,A as v,e as B,X as F}from"./index-DU7EiW5Z.js";import{C as d}from"./card-vIo_cNEI.js";import{B as C}from"./badge-DAERl6XE.js";import{S as f}from"./skeleton-DnwL0UfC.js";import{H as g}from"./Header-dH_zm7gK.js";import{F as j}from"./Footer-CcSM9az0.js";import{u as z,S as b,b as I}from"./seo-DuDYZpV4.js";import{i as $}from"./toolVisibility-BuFB-MU6.js";import{C as A}from"./check-DnvdljkK.js";import"./index-D7TqL6Li.js";import"./index-ChbWPcUi.js";import"./Normal_(1)_1770767936075-DWlfSefL.js";import"./arrow-left-Duva7iIn.js";import"./video-CfxPEA4p.js";import"./index-CUko9iY5.js";import"./mail-kXcN9TSZ.js";function t(o){return o.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}function i(o){if(!o)return e.jsx("span",{className:"text-muted-foreground",children:"Unknown"});const l=o.toLowerCase();return l.includes("yes")||l.includes("compliant")||l==="true"?e.jsxs("span",{className:"inline-flex items-center gap-1 text-green-700 dark:text-green-400",children:[e.jsx(A,{className:"h-4 w-4"})," Yes"]}):l.includes("no")||l==="false"||l.includes("not")?e.jsxs("span",{className:"inline-flex items-center gap-1 text-red-700 dark:text-red-400",children:[e.jsx(F,{className:"h-4 w-4"})," No"]}):e.jsx("span",{children:o})}function k(o){const l=parseFloat(o||"0");return l?e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx(B,{className:"h-4 w-4 fill-yellow-500 text-yellow-500"}),e.jsx("span",{className:"font-semibold",children:l.toFixed(1)}),e.jsx("span",{className:"text-muted-foreground text-sm",children:"/ 5"})]}):e.jsx("span",{className:"text-muted-foreground",children:"No reviews yet"})}function ee(){const{slug:o}=U(),l=(o||"").split("-vs-"),x=l[0],h=l.slice(1).join("-vs-"),{data:s,isLoading:p}=y({queryKey:["/api/tools/by-slug",x],enabled:!!x,queryFn:async()=>{const n=await fetch(`/api/tools/by-slug/${x}`);if(!n.ok)throw new Error("Tool not found");const r=await n.json();if(!$(r))throw new Error("Tool not found");return r}}),{data:a,isLoading:u}=y({queryKey:["/api/tools/by-slug",h],enabled:!!h,queryFn:async()=>{const n=await fetch(`/api/tools/by-slug/${h}`);if(!n.ok)throw new Error("Tool not found");const r=await n.json();if(!$(r))throw new Error("Tool not found");return r}}),N=s&&a?[t(s.name),t(a.name)].sort().join("-vs-"):o||"",L=s&&a?`${s.name} vs ${a.name}: Compared for Educators (2026) | AI Educator Tools`:"AI Tool Comparison | AI Educator Tools",w=s&&a?`Compare ${s.name} and ${a.name} for educators: pricing, safety compliance, classroom fit, features, and verified educator reviews.`:"Compare AI tools for education side by side.";if(z({title:L,description:w,canonicalPath:`/compare/${N}`,noindex:!p&&!u&&(!s||!a),enabled:!!(s&&a||!p&&!u),jsonLd:s&&a?[I([{name:"Home",path:"/"},{name:"AI Tools",path:"/tools"},{name:`${s.name} vs ${a.name}`}]),{"@context":"https://schema.org","@type":"WebPage",name:`${s.name} vs ${a.name}`,description:w,url:`${b}/compare/${N}`,about:[{"@type":"SoftwareApplication",name:s.name,url:`${b}/${t(s.name)}`},{"@type":"SoftwareApplication",name:a.name,url:`${b}/${t(a.name)}`}]}]:void 0}),p||u)return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(g,{}),e.jsxs("main",{className:"container mx-auto max-w-6xl px-4 py-12 flex-1",children:[e.jsx(f,{className:"h-12 w-2/3 mb-6"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsx(f,{className:"h-96"}),e.jsx(f,{className:"h-96"})]})]}),e.jsx(j,{})]});if(!s||!a)return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(g,{}),e.jsxs("main",{className:"container mx-auto max-w-3xl px-4 py-20 text-center flex-1",children:[e.jsx("h1",{className:"font-heading text-3xl font-bold mb-4",children:"Comparison not available"}),e.jsx("p",{className:"text-muted-foreground mb-6",children:"One or both tools could not be found."}),e.jsx(c,{href:"/tools",children:e.jsx(m,{children:"Browse all AI tools"})})]}),e.jsx(j,{})]});const T=[{label:"Category",a:s.category,b:a.category},{label:"Pricing",a:s.pricingType||s.pricing||"Unknown",b:a.pricingType||a.pricing||"Unknown"},{label:"Educator rating",a:k(s.rating),b:k(a.rating)}
1,{label:"GDPR compliant",a:i(s.gdprCompliant),b:i(a.gdprCompliant)},{label:"COPPA compliant",a:i(s.coppaCompliant),b:i(a.coppaCompliant)},{label:"FERPA compliant",a:i(s.ferpaCompliant),b:i(a.ferpaCompliant)},{label:"Collects student data",a:i(s.collectsStudentData),b:i(a.collectsStudentData)},{label:"Data hosting",a:s.dataHostingLocation||"Unknown",b:a.dataHostingLocation||"Unknown"},{label:"Minimum user age",a:s.minimumUserAge||"Unknown",b:a.minimumUserAge||"Unknown"},{label:"Launched",a:s.launchedYear||"Unknown",b:a.launchedYear||"Unknown"}];return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(g,{}),e.jsxs("main",{className:"container mx-auto max-w-6xl px-4 py-10 flex-1",children:[e.jsxs("nav",{className:"text-sm text-muted-foreground mb-4","aria-label":"Breadcrumb",children:[e.jsx(c,{href:"/",className:"hover:underline",children:"Home"}),e.jsx("span",{className:"mx-2",children:"/"}),e.jsx(c,{href:"/tools",className:"hover:underline",children:"Tools"}),e.jsx("span",{className:"mx-2",children:"/"}),e.jsxs("span",{children:[s.name," vs ",a.name]})]}),e.jsxs("h1",{className:"font-heading text-3xl md:text-4xl font-bold mb-3",children:[s.name," vs ",a.name]}),e.jsxs("p",{className:"text-lg text-muted-foreground mb-8 max-w-3xl",children:["A side-by-side comparison of ",s.name," and ",a.name," for educators: pricing, safety compliance, classroom fit, and verified educator reviews."]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mb-8",children:[s,a].map(n=>e.jsxs(d,{className:"p-6","data-testid":`compare-card-${t(n.name)}`,children:[e.jsxs("div",{className:"flex items-start gap-4 mb-4",children:[n.logoUrl&&e.jsxs("span",{className:"relative flex-shrink-0",children:[e.jsx("img",{src:n.logoUrl,alt:`${n.name} logo`,className:"w-16 h-16 rounded-full object-cover bg-muted",loading:"lazy"}),e.jsx(E,{tool:n,size:24})]}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h2",{className:"font-heading text-2xl font-bold",children:n.name}),n.tagline&&e.jsx("p",{className:"text-muted-foreground",children:n.tagline}),e.jsxs("div",{className:"mt-2 flex items-center gap-2 flex-wrap",children:[e.jsx(C,{variant:"secondary",children:n.category}),n.pricingType&&e.jsx(C,{variant:"outline",children:n.pricingType})]})]})]}),n.shortDescription&&e.jsx("p",{className:"mb-4",children:n.shortDescription}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(c,{href:`/${t(n.name)}`,children:e.jsx(m,{variant:"default",size:"sm",children:"Read full review"})}),n.website&&e.jsx("a",{href:n.website,target:"_blank",rel:"noopener nofollow",children:e.jsxs(m,{variant:"outline",size:"sm",children:["Visit site ",e.jsx(P,{className:"ml-1 h-3 w-3"})]})})]})]},n.id))}),e.jsx(d,{className:"p-0 overflow-hidden mb-10",children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{className:"bg-muted",children:e.jsxs("tr",{children:[e.jsx("th",{className:"text-left p-4 font-semibold",children:"Feature"}),e.jsx("th",{className:"text-left p-4 font-semibold",children:s.name}),e.jsx("th",{className:"text-left p-4 font-semibold",children:a.name})]})}),e.jsx("tbody",{children:T.map((n,r)=>e.jsxs("tr",{className:r%2?"bg-muted/30":"",children:[e.jsx("td",{className:"p-4 font-medium",children:n.label}),e.jsx("td",{className:"p-4",children:n.a}),e.jsx("td",{className:"p-4",children:n.b})]},n.label))})]})}),(s.features?.length||a.features?.length)&&e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mb-10",children:[s,a].map(n=>e.jsxs(d,{className:"p-6",children:[e.jsxs("h3",{className:"font-heading text-xl font-bold mb-3",children:[n.name," key features"]}),e.jsxs("ul",{className:"space-y-2",children:[(n.features||[]).slice(0,8).map((r,S)=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(A,{className:"h-5 w-5 text-green-600 flex-shrink-0 mt-0.5"}),e.jsx("span",{children:r})]},S)),!n.features?.length&&e.jsx("li",{className:"text-muted-foreground",children:"No features listed yet."})]})]},`feat-${n.id}`))}),e.jsxs(d,{className:"p-6 bg-muted/40",children:[e.jsx("h2",{className:"font-heading text-xl font-bold mb-3",children:"Which should you choose?"}),e.jsxs("p",{className:"mb-4",children:["Both ",s.name," and ",a.name," serve educators in the ",s.category.toLowerCase()," space. Pick ",s.name," if you prioritise ",s.tagline?.toLowerCase()||"its core focus",". Pick ",a.name," if you prioritise ",a.tagline?.toLowerCase()||"its core focus",". Read the full educator reviews for both before deciding."]}),e.jsxs("div",{className:"flex flex-wrap gap-3",children:[e.jsx(c,{href:`/alternatives/${t(s.name)}`,children:e.jsxs(m,{variant:"outline",size:"sm",children:["More alternatives to ",s.name," ",e.jsx(v,{className:"ml-1 h-3 w-3"})]})}),e.jsx(c,{href:`/alternatives/${t(a.name)}`,children:e.jsxs(m,{variant:"outline",size:"sm",children:["More alternatives to ",a.name," ",e.jsx(v,{className:"ml-1 h-3 w-3"})]})})]})]})]}),e.jsx(j,{})]})}
1export{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.