1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="72a8dff9-442c-4396-96f5-d1c6bb30f64c",e._sentryDebugIdIdentifier="sentry-dbid-72a8dff9-442c-4396-96f5-d1c6bb30f64c")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[974],{63:(e,t,a)=>{"use strict";var s=a(7260);a.o(s,"useParams")&&a.d(t,{useParams:function(){return s.useParams}}),a.o(s,"usePathname")&&a.d(t,{usePathname:function(){return s.usePathname}}),a.o(s,"useRouter")&&a.d(t,{useRouter:function(){return s.useRouter}}),a.o(s,"useSearchParams")&&a.d(t,{useSearchParams:function(){return s.useSearchParams}})},1365:(e,t,a)=>{Promise.resolve().then(a.bind(a,2638)),Promise.resolve().then(a.t.bind(a,2619,23))},2638:(e,t,a)=>{"use strict";a.d(t,{default:()=>v});var s=a(5155),n=a(2115),r=a(63),l=a(7621);let i=["Knocking on the door \uD83D\uDEAA","Trying to curl the page \uD83C\uDF00","Sniffing for markdown \uD83D\uDC15","Falling back to HTML soup \uD83C\uDF5C","Reading the fine print \uD83D\uDD0D","Counting the tiers \uD83E\uDE9C","Hunting hidden fees \uD83D\uDD75ï¸","Untangling the pricing tree \uD83C\uDF33","Doing the math \uD83E\uDDEE","Handing out scores \uD83C\uDFC5"];function o(e){let{autofocus:t=!1,onQueryChange:a,initialValue:o=""}
1=e,c=(0,r.useRouter)(),[d,u]=(0,n.useState)(o),[m,h]=(0,n.useState)(!1),[x,g]=(0,n.useState)(null),[f,p]=(0,n.useState)(0),b=(0,n.useRef)(null);async function j(e){if(e.preventDefault(),d.trim()&&!m){h(!0),g(null);try{let e=await (0,l.i8)(d.trim());c.push("/".concat(e.rating.slug))}catch(e){g(e instanceof l.R3?e.message:"The agent tripped over that one. Try another page?"),h(!1)}}}return(0,n.useEffect)(()=>{var e;t&&(null==(e=b.current)||e.focus())},[t]),(0,n.useEffect)(()=>{if(!m)return;p(0);let e=setInterval(()=>p(e=>(e+1)%i.length),2600);return()=>clearInterval(e)},[m]),(0,s.jsxs)("form",{onSubmit:j,className:"w-full",children:[(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3",children:[(0,s.jsxs)("div",{className:"flex-1 flex items-center gap-2 bg-[#fffdf7] ink-border rounded-2xl px-4 py-3 shadow-[var(--shadow)]",children:[(0,s.jsx)("span",{className:"text-xl select-none",children:"\uD83D\uDD17"}),(0,s.jsx)("input",{ref:b,value:d,onChange:e=>{u(e.target.value),null==a||a(e.target.value)},disabled:m,placeholder:"paste a url to rate â or type to filterâ¦",className:"w-full bg-transparent outline-none text-lg font-medium placeholder:text-ink-soft/60 font-mono",inputMode:"url",autoComplete:"off",spellCheck:!1})]}),(0,s.jsx)("button",{type:"submit",disabled:m,className:"btn-pop bg-coral text-ink px-7 py-3 text-lg whitespace-nowrap disabled:opacity-70",children:m?"Ratingâ¦":"Rate it! â¨"})]}),m&&(0,s.jsxs)("div",{className:"mt-5 card p-5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("span",{className:"text-2xl animate-wobble inline-block",children:"\uD83E\uDD16"}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("div",{className:"font-display font-bold text-lg",children:i[f]}),(0,s.jsx)("div",{className:"text-sm text-ink-soft",children:"Agents read carefully â this can take up to a minute."})]})]}),(0,s.jsx)("div",{className:"mt-4 h-3 ink-border rounded-full overflow-hidden bg-paper-2",children:(0,s.jsx)("div",{className:"h-full bg-grape animate-marquee w-[200%] bg-[length:24px_24px] bg-[linear-gradient(45deg,rgba(255,255,255,0.35)_25%,transparent_25%,transparent_50%,rgba(255,255,255,0.35)_50%,rgba(255,255,255,0.35)_75%,transparent_75%)]"})})]}),x&&(0,s.jsxs)("div",{className:"mt-4 card p-4 bg-bubble/40 font-semibold flex items-center gap-2",children:[(0,s.jsx)("span",{className:"text-xl",children:"\uD83D\uDE2C"})," ",x]})]})}var c=a(2619),d=a.n(c);let u=[{key:"worst",label:"Worst offenders",emoji:"\uD83D\uDC80"},{key:"best",label:"Best pricing",emoji:"\uD83C\uDFC6"},{key:"agent",label:"Best for agents",emoji:"\uD83E\uDD16"},{key:"recent",label:"Fresh drops",emoji:"\uD83C\uDD95"}];function m(e){let{active:t,category:a}=e,n="devtools"===a?"":"category=".concat(a);return(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:u.map(e=>{let a=e.key===t,r=[n,"recent"===e.key?"":"sort=".concat(e.key)].filter(Boolean),l=r.length?"/?".concat(r.join("&")):"/";return(0,s.jsxs)(d(),{href:l,scroll:!1,className:"chip text-sm transition-colors ".concat(a?"bg-ink text-paper":"hover:bg-marigold"),children:[(0,s.jsx)("span",{className:"mr-1",children:e.emoji}),e.label]},e.key)})})}let h=["devtools","paas","ai-lab","saas","educational","other"],x={devtools:"DevTools",paas:"PaaS","ai-lab":"AI Labs",saas:"SaaS",educational:"Educational",other:"Other"},g={devtools:"\uD83D\uDEE0ï¸",paas:"\uD83D\uDE80","ai-lab":"\uD83E\uDDEA",saas:"\uD83D\uDCBC",educational:"\uD83C\uDF93",other:"\uD83D\uDCE6"};function f(e){let{active:t,sort:a}=e,n="recent"===a?"":"&sort=".concat(a),r=[...h.map(e=>({key:e,label:x[e],emoji:g[e]})),{key:"all",label:"All",emoji:"â¨"}];return(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:r.map(e=>{let a=e.key===t;return(0,s.jsxs)(d(),{href:"/?category=".concat(e.key).concat(n),scroll:!1,className:"chip text-sm transition-colors ".concat(a?"bg-ink text-paper":"hover:bg-sky"),children:[(0,s.jsx)("span",{className:"mr-1",children:e.emoji}),e.label]},e.key)})})}var p=a(7e3);function b(e){let{score:t,emoji:a,title:n}=e,r=(0,p.YH)(t);return(0,s.jsxs)("div",{className:"flex items-center gap-1.5 rounded-full border-2 border-ink px-2.5 py-1 font-display font-extrabold text-sm",style:{background:"".concat(r,"22")},title:n,children:[(0,s.jsx)("span",{className:"text-base leading-none",children:a}),(0,s.jsx)("span",{style:{color:r},children:t})]})}let j=["bg-marigold","bg-sky","bg-lime","bg-bubble","bg-grape","bg-coral"];function y(e){let{rating:t,rank:a}=e,n=j[a%j.length];return(0,s.jsxs)(d(),{href:"/".concat(t.slug),className:"card hover-pop p-4 flex items-center gap-3 sm:gap-4 group min-w-0",children:[(0,s.jsx)("div",{className:"shrink-0 w-11 h-11 rounded-xl ink-border ".concat(n," grid place-items-center font-display font-extrabold text-lg"),children:a+1}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("div",{className:"font-display font-extrabold text-lg leading-tight truncate",children:t.title}),(0,s.jsxs)("div",{className:"text-sm text-ink-soft font-mono truncate",children:[g[t.category]," ",(0,p.w4)(t.url)," \xb7 ",(0,p.fF)(t.createdAt)]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,s.jsx)(b,{score:t.pricingScore,emoji:"\uD83E\uDDFE",title:"Pricing clarity"}),(0,s.jsx)(b,{score:t.agentScore,emoji:"\uD83E\uDD16",title:"Agent easiness"})]})]})}function v(e){var t;let{ratings:a,sort:r,category:l,initialQuery:i=""}
1=e,[c,d]=(0,n.useState)(i),u=(0,n.useRef)(null),h=c.trim().toLowerCase(),g=(0,n.useMemo)(()=>"all"===l?a:a.filter(e=>e.category===l),[a,l]),b=(0,n.useMemo)(()=>h?a.filter(e=>"".concat(e.title," ").concat((0,p.w4)(e.url)," ").concat(e.slug).toLowerCase().includes(h)):g,[a,g,h]),j="all"===l?"All":null!=(t=x[l])?t:"DevTools";return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("section",{className:"mx-auto max-w-3xl px-4 pt-12 pb-10 text-center",children:[(0,s.jsx)("div",{className:"inline-block chip bg-marigold mb-5 animate-float-slow",children:"\uD83D\uDC40 the pricing-page roast machine"}),(0,s.jsxs)("h1",{className:"font-display font-extrabold text-[2.6rem] sm:text-6xl leading-[0.98] sm:leading-[0.95] tracking-tight text-balance",children:["How ",(0,s.jsx)("span",{className:"text-coral",children:"confusing"})," is",(0,s.jsx)("br",{className:"hidden sm:inline"})," that"," ",(0,s.jsx)("span",{className:"underline decoration-wavy decoration-sky",children:"pricing page"}),"?"]}),(0,s.jsx)("p",{className:"mt-5 text-base sm:text-lg text-ink-soft font-medium max-w-xl mx-auto",children:"Paste any pricing URL. An AI agent reads it, untangles the tiers, and hands out two scores â like Lighthouse, but for pricing pages."}),(0,s.jsx)("div",{className:"mt-8",children:(0,s.jsx)(o,{autofocus:!0,onQueryChange:function(e){d(e),u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{let t=new URLSearchParams;l&&t.set("category",l),r&&t.set("sort",r),e.trim()&&t.set("q",e.trim());let a=t.toString();window.history.replaceState(null,"",a?"/?".concat(a):"/")},350)},initialValue:i})}),(0,s.jsxs)("div",{className:"mt-4 flex flex-wrap items-center justify-center gap-x-5 gap-y-1 text-sm text-ink-soft font-medium",children:[(0,s.jsx)("span",{children:"\uD83E\uDDFE pricing clarity"}),(0,s.jsx)("span",{children:"\uD83E\uDD16 agent easiness"}),(0,s.jsx)("span",{children:"\uD83C\uDF89 confetti at 100/100"})]})]}),(0,s.jsxs)("section",{className:"mx-auto max-w-5xl px-4",children:[(0,s.jsx)("h2",{className:"font-display font-extrabold text-3xl mb-4",children:h?(0,s.jsxs)(s.Fragment,{children:["Matching ",(0,s.jsxs)("span",{className:"text-coral",children:["â",c.trim(),"â"]})," ",(0,s.jsx)("span",{className:"text-base font-medium text-ink-soft",children:"\xb7 across all categories"})]}):(0,s.jsxs)(s.Fragment,{children:["The ",(0,s.jsx)("span",{className:"text-coral",children:j})," leaderboard"]})}),(0,s.jsxs)("div",{className:"flex flex-col gap-2.5 mb-6 ".concat(h?"opacity-50":""),children:[(0,s.jsx)(f,{active:l,sort:r}),(0,s.jsx)(m,{active:r,category:l})]}),b.length>0?(0,s.jsx)("div",{className:"grid gap-3",children:b.map((e,t)=>(0,s.jsx)(y,{rating:e,rank:t},e.slug))}):h?(0,s.jsxs)("div",{className:"card card-lg p-10 text-center",children:[(0,s.jsx)("div",{className:"text-5xl mb-3",children:"\uD83D\uDD0D"}),(0,s.jsxs)("p",{className:"font-display font-bold text-xl",children:["No match for â",c.trim(),"â"]}),(0,s.jsxs)("p",{className:"text-ink-soft",children:["Nothing rated yet matches that â hit ",(0,s.jsx)("span",{className:"font-semibold",children:"Rate it!"})," ","above to score it."]})]}):(0,s.jsxs)("div",{className:"card card-lg p-10 text-center",children:[(0,s.jsx)("div",{className:"text-5xl mb-3",children:"\uD83E\uDED9"}),(0,s.jsxs)("p",{className:"font-display font-bold text-xl",children:["Nothing in ",j," yet"]}),(0,s.jsx)("p",{className:"text-ink-soft",children:"Paste a pricing page above, or try another category."})]})]})]})}},7e3:(e,t,a)=>{"use strict";function s(e){var t;return"great"==(t=e>=75?"great":e>=40?"ok":"bad")?"#16a34a":"ok"===t?"#f59e0b":"#ef4444"}function n(e){return e>=90?"Crystal clear":e>=75?"Easy to read":e>=50?"A bit fiddly":e>=25?"Pretty tangled":"Total maze"}function r(e){let t=new Date(e).getTime(),a=Math.round((Date.now()-t)/6e4);if(a<1)return"just now";if(a<60)return"".concat(a,"m ago");let s=Math.round(a/60);if(s<24)return"".concat(s,"h ago");let n=Math.round(s/24);return"".concat(n,"d ago")}function l(e){try{return new URL(e).hostname.replace(/^www\./,"")}catch(t){return e}}a.d(t,{NK:()=>n,YH:()=>s,fF:()=>r,w4:()=>l})},7621:(e,t,a)=>{"use strict";a.d(t,{R3:()=>n,i8:()=>r});let s="https://br-orange-glade-aj0h5crp-ratemypricing.compute.c-3.us-east-2.aws.neon.tech";
1class n extends Error{constructor(e,t){super(t),this.code=e,this.name="RateError"}}async function r(e){let t,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{t=await fetch("".concat(s,"/rate"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({url:e,force:a})})}catch(e){throw new n("network","Couldn't reach the agent. Check your connection and try again.")}if(!t.ok){var r,l,i;let e=await t.json().catch(()=>null);throw new n(null!=(r=null==e?void 0:e.error)?r:"request_failed",null!=(l=null==e?void 0:e.message)?l:429===(i=t.status)?"Too many ratings right now â try again in a little while.":i>=500?"The agent tripped over that one. Try another page?":"Something went wrong. Try another page?")}return await t.json()}}},e=>{e.O(0,[619,441,101,977],()=>e(e.s=1365)),_N_E=e.O()}]);
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.