PageSourceSearch

https://creatorstoolbox.com/assets/ComparisonPage-CG5Xtiji.js

js creatorstoolbox.com collected 2026-10-04 23:20:35 UTC 8,133 bytes, 1 lines download raw bytes

1import{r as W,j as s}from"./vendor-react-CCKJgqMw.js";import{ALL_TOOLS as u,TOOL_ALTERNATIVES as V,buildSEOSlug as q,getToolRoute as g}from"./catalog-_2Gng53B.js";import{a as _,M as U,D as Y,B as G,c as f,S as J}from"./index-DLPFdKcH.js";import"./toolDetails-BNyV42jH.js";import{bT as O,aD as C,Y as Q,aq as X,al as Z}from"./vendor-lucide-DTKdl0KW.js";const m=({label:e,a:r,b:t})=>s.jsxs("tr",{children:[s.jsx("th",{scope:"row",children:e}),s.jsx("td",{children:r}),s.jsx("td",{children:t})]}),N=e=>e.toolCategory||e.appCategory||e.resourceCategory||e.courseCategory||e.gameCategory||e.communityCategory||e.quizCategory||e.dealCategory||e.jobCategory||e.category,M=({tool:e})=>{var r;return(r=e.features)!=null&&r.length?s.jsx("ul",{className:"ct-comparison-features",children:e.features.slice(0,5).map((t,a)=>s.jsxs("li",{children:[s.jsx(X,{size:14,strokeWidth:1.8,"aria-hidden":"true"}),s.jsx("span",{children:t})]},`${a}:${t}`))}):s.jsx("span",{className:"ct-comparison-muted",children:"Not listed"})},P=e=>!e.defaultPrevented&&e.button===0&&!e.metaKey&&!e.ctrlKey&&!e.shiftKey&&!e.altKey,R=({embedded:e,id:r,title:t,caption:a,children:l})=>e?s.jsxs("details",{className:"ct-comparison-disclosure",children:[s.jsxs("summary",{children:[s.jsx("h3",{id:r,children:t}),s.jsx(Z,{size:16,"aria-hidden":"true"})]}),s.jsx("div",{className:"ct-comparison-disclosure-content",children:l})]}):s.jsxs("section",{className:"ct-comparison-section","aria-labelledby":r,children:[s.jsxs("div",{className:"ct-comparison-section-heading",children:[s.jsx("h2",{id:r,children:t}),a&&s.jsx("span",{children:a})]}),l]}),rs=({toolIdA:e,toolIdB:r,onToolClick:t,embedded:a=!1,onCompare:l,isLoggedIn:b,isPro:k,userAvatarUrl:w,userUsername:A,userName:B,onSearchClick:v,onAuth:y,onSignOut:F,onOpenProfile:$})=>{var L,D,E;const p=W.useId(),c=u.find(i=>i.id===e),n=u.find(i=>i.id===r);if(_({title:c&&n?`${c.title} vs ${n.title} | Comparison | Creators Toolbox`:"Comparison | Creators Toolbox",description:c&&n?`Compare ${c.title} and ${n.title} - features, pricing, and which is better for your workflow.`:void 0,enabled:!a}),!c||!n)return s.jsxs("div",{className:"ct-comparison-empty",children:[s.jsx(O,{size:24,"aria-hidden":"true"}),s.jsx("p",{children:"Comparison not found."}),s.jsxs("a",{href:"/",className:"ct-comparison-button",children:["Explore tools ",s.jsx(C,{size:15,"aria-hidden":"true"})]})]});const z=u.filter(i=>{const o=V[e]||[],h=V[r]||[];return(o.includes(i.id)||h.includes(i.id))&&i.id!==e&&i.id!==r}).slice(0,6),S=i=>{const o=["tools","resources","quizzes","courses","games","communities","apps","launches","deals","jobs"];window.location.href=i==="home"?"/":o.includes(i)?`/${i}`:`/${i}`},H=a?"h2":"h1",T=a?"h3":"h2",K=a?"h4":"h3",x=[c,n],j=(i,o)=>{P(i)&&(i.preventDefault(),t(o))};return s.jsxs("div",{children:[!a&&s.jsxs(s.Fragment,{children:[s.jsx(U,{isLoggedIn:b,isPro:k,userAvatarUrl:w,userName:B,onLogoClick:()=>{window.location.href="/"},onSearchClick:v||(()=>{}),onBookmarksClick:()=>{window.location.href="/bookmarks"},onAuth:y||(()=>{}),onViewChange:S,onOpenProfile:$||(()=>{})}),s.jsx("div",{className:"hidden lg:block",children:s.jsx(Y,{activeView:"",isLoggedIn:b,isPro:k,userAvatarUrl:w,userUsername:A,isMac:typeof navigator<"u"&&((L=navigator.platform)==null?void 0:L.toUpperCase().includes("MAC")),onLogoClick:()=>{window.location.href="/"},onSearchClick:v||(()=>{}),onSubmitClick:()=>window.dispatchEvent(new Event("ct:open-submit-modal")),onBookmarksClick:()=>{window.location.href="/bookmarks"},onUpgradeClick:()=>{window.location.href="/pricing"},onProfileSettingsClick:$||(()=>{}),onSignOut:F||(()=>{}),onTabClick:S,onCategorySelect:(i,o)=>{window.location.href=q(i,o,"upvotes")},onAuth:y||(()=>{})})})]}),s.jsxs("div",{className:`ct-comparison ${a?"ct-comparison--embedded":"ct-comparison--page ct-page-gutters ct-page-inset"}`,children:[s.jsxs("header",{className:a?"sr-only":"ct-comparison-intro",children:[!a&&s.jsxs("p",{className:"ct-comparison-eyebrow",children:[s.jsx(O,{size:16,"aria-hidden":"true"}),"Compare"]}),s.jsxs(H,{children:[c.title," ",s.jsx("span",{children:"vs"})," ",n.title]}),!a&&s.jsx("p",{className:"ct-comparison-subtitle",children:"Pricing, features, and a closer look at both."})]}),s.jsx("div",{className:"ct-comparison-products",children:x.map(i=>{var o,h;return s.jsxs("article",{className:"ct-comparison-product ct-brand-surface",children:[s.jsx(G,{variant:"orbits"}),s.jsxs("div",{className:"ct-comparison-product-heading",children:[s.jsx(f,{tool:i,size:"lg",containerClass:"ct-comparison-product-icon",radius:12}),s.jsxs("div",{className:"ct-comparison-product-name",children:[!a&&s.jsx("p",{className:"ct-comparison-kicker",children:N(i)}),s.jsx(T,{children:s.jsx("a",{href:g(i),onClick:d=>j(d,i.id),children:i.title})})]})]}),!a&&s.jsx("p",{className:"ct-comparison-product-description",children:i.description}),s.jsxs("div",{className:"ct-comparison-product-actions",children:[s.jsxs("a",{href:i.url||g(i),target:(o=i.url)!=null&&o.startsWith("http")?"_blank":void 0,rel:(h=i.url)!=null&&h.startsWith("http")?"noopener noreferrer":void 0,onClick:i.url?void 0:d=>j(d,i.id),className:"ct-comparison-button ct-comparison-button--primary","aria-label":`${i.url?"Visit website for":"View details for"} ${i.title}`,children:[i.url?"Visit Website":"View Details",s.jsx(Q,{size:16,"aria-hidden":"true"})]}),s.jsxs("a",{href:g(i),onClick:d=>j(d,i.id),className:"ct-comparison-detail-link","aria-label":`Learn more about ${i.title}`,children:["Learn more ",s.jsx(C,{size:14,"aria-hidden":"true"})]})]})]},i.id)})}),s.jsxs("section",{className:"ct-comparison-section","aria-labelledby":`${p}-overview`,children:[s.jsxs("div",{className:a?"sr-only":"ct-comparison-section-heading",children:[s.jsx(T,{id:`${p}-overview`,children:"At a glance"}),!a&&s.jsx("span",{children:"The essentials"})]}),s.jsx("div",{className:"ct-comparison-table-wrap",children:s.jsxs("table",{className:"ct-comparison-table",children:[s.jsxs("caption",{className:"sr-only",children:["Compare ",c.title," and ",n.title,": pricing, categories, audience, and features."]}),s.jsxs("colgroup",{children:[s.jsx("col",{className:"ct-comparison-label-column"}),s.jsx("col",{}),s.jsx("col",{})]}),s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{scope:"col",children:"Overview"}),x.map(i=>s.jsx("th",{scope:"col",children:s.jsxs("span",{className:"ct-comparison-column-name",children:[!a&&s.jsx(f,{tool:i,size:"xs",containerClass:"ct-comparison-table-icon",radius:6}),s.jsx("span",{children:i.title})]})},i.id))]})}),s.jsxs("tbody",{children:[s.jsx(m,{label:"Pricing",a:s.jsx("span",{className:"ct-comparison-price",children:c.price}),b:s.jsx("span",{className:"ct-comparison-price",children:n.price})}),s.jsx(m,{label:"Category",a:N(c),b:N(n)}),s.jsx(m,{label:"Best for",a:(D=c.personas)!=null&&D.length?c.personas.slice(0,3).join(", "):s.jsx("span",{className:"ct-comparison-muted",children:"Not listed"}),b:(E=n.personas)!=null&&E.length?n.personas.slice(0,3).join(", "):s.jsx("span",{className:"ct-comparison-muted",children:"Not listed"})}),s.jsx(m,{label:"Highlights",a:s.jsx(M,{tool:c}),b:s.jsx(M,{tool:n})})]})]})})]}),s.jsx(R,{embedded:a,id:`${p}-about`,title:"A closer look",children:s.jsx("div",{className:"ct-comparison-about-grid",children:x.map(i=>s.jsxs("article",{className:"ct-comparison-about",children:[s.jsxs(K,{children:["About ",i.title]}),s.jsx("p",{children:i.longDescription||i.description})]},i.id))})},`${e}:${r}:about`),z.length>0&&s.jsx(R,{embedded:a,id:`${p}-more`,title:"More comparisons",caption:"Explore alternatives",children:s.jsx("div",{className:"ct-comparison-related",children:z.map(i=>s.jsxs("a",{href:`/${e}-vs-${i.id}`,className:"ct-comparison-related-link",onClick:o=>{!l||!P(o)||(o.preventDefault(),l(e,i.id))},children:[s.jsx(f,{tool:i,size:"sm",containerClass:"ct-comparison-related-icon",radius:8}),s.jsxs("span",{children:[s.jsxs("span",{className:"ct-comparison-related-base",children:[c.title," vs"]}),s.jsx("strong",{children:i.title})]}),s.jsx(C,{size:16,"aria-hidden":"true"})]},i.id))})},`${e}:${r}:more`)]}),!a&&s.jsx(J,{})]})};export{rs as ComparisonPage};

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.