1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5823],{55823:(e,t,a)=>{a.d(t,{PricingPage:()=>b});var l=a(95155),s=a(48312),r=a(12115),n=a(52741),i=a(39989),o=a(75193),c=a(89239),d=a(66609),x=a(73446),m=a(23336);let p={...(0,s.V)(e=>e.extras.PRICING_ERROR_COPY),en:{checkout:"Could not start checkout.",portal:"Could not open billing portal."},fr:{checkout:"Impossible de lancer le paiement.",portal:"Impossible dâouvrir la gestion de la facturation."},pt:{checkout:"N\xe3o foi poss\xedvel iniciar o pagamento.",portal:"N\xe3o foi poss\xedvel abrir o gerenciamento da cobran\xe7a."},es:{checkout:"No se pudo iniciar el pago.",portal:"No se pudo abrir la gesti\xf3n de facturaci\xf3n."},de:{checkout:"Die Zahlung konnte nicht gestartet werden.",portal:"Die Abrechnungsverwaltung konnte nicht ge\xf6ffnet werden."},nl:{checkout:"De betaling kon niet worden gestart.",portal:"Het facturatiebeheer kon niet worden geopend."},it:{checkout:"Impossibile avviare il pagamento.",portal:"Impossibile aprire la gestione della fatturazione."},id:{checkout:"Pembayaran tidak dapat dimulai.",portal:"Pengelolaan penagihan tidak dapat dibuka."},fi:{checkout:"Maksamista ei voitu aloittaa.",portal:"Laskutuksen hallintaa ei voitu avata."}};function u(){return(0,l.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",className:"shrink-0 text-blue-500",strokeLinecap:"round",strokeLinejoin:"round",children:(0,l.jsx)("path",{d:"M20 6 9 17l-5-5"})})}async function h(e,t,a,l=!1){let s=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json",..."/api/billing/checkout"===e?(0,o.h)():{}},body:a?JSON.stringify(a):void 0}),r=await s.json().catch(()=>null);if(!s.ok||!r?.url)throw Error(l&&r?.error?r.error:t);return r.url}function b({locale:e="en",messages:t=x.en.pricing}){let{isLoaded:a,isSignedIn:s}=(0,n.As)(),[o,f]=(0,r.useState)("annual"),g=(0,i.sf)(),[j,v]=(0,r.useState)("free"),[N,w]=(0,r.useState)(!1),[k,y]=(0,r.useState)(null),C=!0===s,D="pro"===j,T=t=>(function(e,t){if("uz"===t||"sq"===t){var a;let l,s;return`${a={maximumFractionDigits:0},l="uz"===t||"sq"===t,s=new Intl.NumberFormat(l?"en-US":"pt"===t?"pt-BR":t,a),!l?s.format(e):s.formatToParts(e).map(e=>"group"===e.type?"\xa0":"decimal"===e.type?",":e.value).join("")}\u00a0US$`}return new Intl.NumberFormat("pt"===t?"pt-BR":t,{style:"currency",currency:"USD",maximumFractionDigits:0}).format(e)})(t,e);(0,r.useEffect)(()=>{if(!a)return;let e=!1,t=window.setTimeout(()=>{w(!0),fetch("/api/account").then(async t=>{if(!t.ok)throw Error("Could not load account plan.");let a=await t.json();e||v(a.plan)}).catch(()=>{e||v("free")}).finally(()=>{e||w(!1)})},0);return()=>{e=!0,window.clearTimeout(t)}},[a]);let _=async(t=o)=>{g.capture("checkout_clicked_pricing_page",{source:"pricing_page",interval:t}),y("checkout");try{let a=await h("/api/billing/checkout",p[e].checkout,{interval:t,locale:e,returnTo:(0,m.s6)(window.location)},"en"===e);window.location.href=a}catch(t){d.oR.error("en"===e&&t instanceof Error?t.message:p[e].checkout),y(null)}},P=async()=>{y("portal");try{let t=await h("/api/billing/portal",p[e].portal,{locale:e},"en"===e);window.location.href=t}catch(t){d.oR.error("en"===e&&t instanceof Error?t.message:p[e].portal),y(null)}};return(0,l.jsx)("div",{className:"bg-blue-50",children:(0,l.jsxs)("div",{className:"mx-auto max-w-5xl px-4 py-20",children:[(0,l.jsxs)("div",{className:"mb-5 text-center",children:[(0,l.jsx)("h1",{className:"text-5xl font-bold tracking-tight text-slate-900",children:t.title}),(0,l.jsxs)("div",{className:"mt-8 inline-flex items-center rounded-lg border border-slate-200 bg-slate-50 p-1.5",children:[(0,l.jsx)("button",{onClick:()=>f("monthly"),className:`rounded-md px-7 py-3 text-base font-bold transition-all ${"monthly"===o?"bg-white text-slate-900 shadow-sm":"text-slate-500 hover:text-slate-700"}`,children:t.monthly}),(0,l.jsxs)("button",{onClick:()=>f("annual"),className:`rounded-md px-7 py-3 text-base font-bold transition-all ${"annual"===o?"bg-white text-slate-900 shadow-sm":"text-slate-500 hover:text-slate-700"}`,children:[t.yearly,(0,l.jsxs)("span",{className:"relative ml-1.5 inline-block text-xs font-semibold text-transparent",children:[t.save50,(0,l.jsx)("span",{"aria-hidden":"true",className:"pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 whitespace-nowrap rounded bg-[linear-gradient(90deg,#2eb982_0%,#2ba34a_100%)] px-2 py-0.5 text-xs font-bold uppercase leading-4 text-white",children:t.save50})]})]})]})]}),(0,l.jsxs)("div",{className:"mx-auto grid max-w-4xl gap-8 md:grid-cols-2 md:items-start",children:[(0,l.jsxs)("div",{className:"rounded-2xl border border-slate-200 bg-slate-50 p-6 md:mt-12 md:p-7",children:[(0,l.jsx)("div",{className:"mb-4",children:(0,l.jsx)("h2",{className:"mb-1 text-xl font-bold text-slate-900",children:t.free.name})}),(0,l.jsx)("div",{className:"mb-2",children:(0,l.jsx)("span",{className:"text-4xl font-extrabold text-slate-900",children:T(0)})}),(0,l.jsx)("p",{className:"mb-5 text-base font-medium text-slate-500",children:t.free.quota}),(0,l.jsxs)("div",{className:"mb-6 space-y-4",children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 text-base font-bold text-slate-900",children:[(0,l.jsx)(u,{})," ",t.free.previewTitle]}),(0,l.jsx)("p",{className:"ml-7 text-sm text-slate-500",children:t.free.previewDescription})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 text-base font-bold text-slate-900",children:[(0,l.jsx)(u,{})," ",t.free.historyTitle]}),(0,l.jsx)("p",{className:"ml-7 text-sm text-slate-500",children:t.free.historyDescription})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 text-base font-bold text-slate-900",children:[(0,l.jsx)(u,{})," ",t.free.exportTitle]}),(0,l.jsx)("p",{className:"ml-7 text-sm text-slate-500",children:t.free.exportDescription})]})]}),C||D?(0,l.jsx)("div",{className:"rounded-lg border border-slate-300 px-4 py-3 text-center text-base font-bold text-slate-700",children:D?t.free.includedWithPro:t.free.currentPlan}):(0,l.jsx)(n.Ny,{mode:"modal",children:(0,l.jsx)(c.$,{variant:"outline",className:"h-11 w-full rounded-lg border-slate-300 text-base font-bold text-slate-700 hover:bg-slate-100",children:t.free.createAccount})})]}),(0,l.jsxs)("div",{className:"cta-shine cta-shine-on-light cta-shine-subtle relative rounded-2xl border-2 border-blue-500 bg-white p-8 shadow-lg shadow-blue-100/50",children:[D&&(0,l.jsx)("div",{className:"absolute right-6 top-6 rounded-full bg-blue-50 px-3 py-1 text-xs font-bold text-blue-700",children:t.pro.currentPlan}),(0,l.jsx)("div",{className:"mb-6",children:(0,l.jsx)("h2",{className:"mb-1 text-xl font-bold text-blue-600",children:t.pro.name})}),(0,l.jsxs)("div",{className:"mb-2 flex items-baseline gap-1",children:[(0,l.jsx)("span",{className:"text-5xl font-extrabold text-slate-900",children:T("monthly"===o?20:10)}),(0,l.jsx)("span",{className:"text-lg font-medium text-slate-500",children:t.pro.perMonth})]}),(0,l.jsx)("p",{className:"mb-8 text-base font-medium text-slate-500",children:"monthly"===o?t.pro.billedMonthly:t.pro.billedAnnually}),(0,l.jsxs)("div",{className:"mb-8 space-y-5",children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 text-base font-bold text-slate-900",children:[(0,l.jsx)(u,{})," ",t.pro.fileLimitTitle]}),(0,l.jsx)("p",{className:"ml-7 text-sm text-slate-500",children:t.pro.fileLimitDescription})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 text-base font-bold text-slate-900",children:[(0,l.jsx)(u,{})," ",t.pro.unlimitedTitle]}),(0,l.jsx)("p",{className:"ml-7 text-sm text-slate-500",children:t.pro.unlimitedDescription})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 text-base font-bold text-slate-900",children:[(0,l.jsx)(u,{})," ",t.pro.priorityTitle]}),(0,l.jsx)("p",{className:"ml-7 text-sm text-slate-500",children:t.pro.priorityDescription})]})]}),D?C?(0,l.jsx)(c.$,{onClick:()=>{P()},disabled:"portal"===k||N,className:"h-12 w-full rounded-lg bg-blue-500 text-base font-bold shadow-lg shadow-blue-200/50 hover:bg-blue-600",children:"portal"===k?t.pro.openingBilling:t.pro.manageBilling}):(0,l.jsx)("div",{className:"rounded-lg border border-blue-200 bg-blue-50 px-4 py-3 text-center text-base font-bold text-blue-700",children:t.pro.activeOnBrowser}):(0,l.jsx)(c.$,{onClick:()=>{_()},disabled:"checkout"===k||N,className:"cta-shine h-12 w-full rounded-lg bg-blue-500 text-base font-bold shadow-lg shadow-blue-200/50 hover:bg-blue-600",children:"checkout"===k?t.pro.redirecting:C?t.pro.upgrade:t.pro.goUnlimited}),!C&&D&&(0,l.jsx)("p",{className:"mt-3 text-center text-sm font-medium text-slate-500",children:t.pro.accountNote})]})]})]})})}}}]);
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.