1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="8c11b8cc-3ec1-01c1-288a-97a1404e72c1")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,800441,e=>{"use strict";var t=e.i(843476),s=e.i(271645);e.i(391065);var n=e.i(493253),a=e.i(982644),r=e.i(874795),l=e.i(87843),i=e.i(333363);let o=["zapier","make","n8n"],d={en:"en-US",de:"de-DE",es:"es-ES",fr:"fr-FR","pt-br":"pt-BR"};function m(e,t,s){return t?{...e,name:t.name||e.name,lastChecked:t.lastChecked||e.lastChecked,unitLabel:t.unitLabel||e.unitLabel,unitLabelPlural:t.unitLabelPlural||e.unitLabelPlural,perRunLabel:t.perRunLabel||e.perRunLabel,perRunHelp:t.perRunHelp||e.perRunHelp,caveat:t.caveat||e.caveat,whyDifferent:t.whyDifferent||e.whyDifferent,sources:e.sources.map((e,s)=>({...e,label:t.sources[s]?.label||e.label,href:t.sources[s]?.href||e.href})),plans:e.plans.map((e,s)=>({...e,name:t.planNames[s]||e.name})),volumeTiers:e.volumeTiers?.map(e=>({...e,sourceLabel:s}))}:e}let c={header:{eyebrow:"Compare pricing with competitors",title:"How much you could save",description:"Pick your current automation tool and model the same workflow volume on Latenode CPU-second pricing."},compareWithButton:"Compare with {name}",inputs:{monthlyRuns:{label:"Monthly workflow runs",suffix:"runs",helper:"Use the number of Zap runs, Make scenario runs, or n8n production workflow executions you expect each month.",sliderMinLabel:"0",sliderMaxLabel:"100k"},runtime:{label:"Average Latenode runtime",suffix:"sec/run",helper:"Fast API-to-API workflows may run in seconds. Browser, file, or AI-heavy jobs can run longer.",sliderMinLabel:"1 sec",sliderMaxLabel:"1 min"},billingCadence:{label:"Billing cadence"},sliderAriaLabel:"{label} slider"},n8nNotice:{title:"n8n counts full executions",description:"This mode uses one billable execution per workflow run. Step count is not used in the n8n estimate."},makeCadenceNotice:{title:"Published pricing",description:"Make annual/monthly credit-tier discounts should be re-checked before adding a cadence switch."},billingCadenceLabels:{annual:"Annual billing",monthly:"Monthly billing",published:"Published pricing"},metrics:{competitorEstimate:"{name} estimate",latenodeEstimate:"Latenode estimate",latenodeDetail:"{cpuSeconds} CPU seconds/month. {note}",monthlySavings:"Monthly savings",monthlyExtraCost:"Monthly extra cost",monthlyDifference:"Monthly difference",usageModeled:"Usage modeled",usageModeledDetail:"{units}/month. {runs} runs/month compared with {runtime} seconds average Latenode runtime.",noFx:"No FX",zeroUsd:"$0"},differenceDetails:{noSavingsAdjust:"No savings at these inputs. Adjust usage or runtime to model your workflows.",currencyUnavailable:"Currency conversion is unavailable for this comparison.",annualSavings:"{annual} saved per year at this usage level. {note}",annualExtraCost:"{annual} more per year at this usage level. Adjust usage or runtime to model a cheaper Latenode scenario.",noMonthlyDifference:"No monthly difference at this usage level. {note}"},whyDifferent:{title:"Why the numbers differ",suffix:" Latenode prices by execution time instead, so complex workflows do not automatically multiply cost by step count.",approximationPrefix:"Approximation:"},assumptions:{summary:"Assumptions and sources",pricingLastChecked:"Pricing last checked: {date}.",eurConversion:"EUR prices are converted for savings at 1 EUR = ${rate} USD, checked {date}."},eurUsdSource:{label:"EUR/USD market rate",href:"https://www.investing.com/currencies/eur-usd"},actions:{startFree:"Start free",checkLatenodeRates:"Check Latenode rates"}};function u(e,t){return new Intl.NumberFormat(t,{maximumFractionDigits:0}).format(e)}function x(e,t,s,n){return null===e?s.custom:0===e?s.free:new Intl.NumberFormat(n,{style:"currency",currency:t,minimumFractionDigits:2*(e<100),maximumFractionDigits:2*(e<100)}).format(e)}function p(e,t){return"annual"===e?t.annual:"monthly"===e?t.monthly:t.published}function h({label:e,value:s,detail:n,highlight:a=!1}){return(0,t.jsxs)("div",{className:`rounded-2xl border p-5 ${a?"border-[var(--ln-primary)] bg-[var(--ln-primary)]/10":"border-[var(--ln-border)] bg-white/5"}`,children:[(0,t.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.16em] text-[var(--ln-text-muted)]",children:e}),(0,t.jsx)("p",{className:"mt-2 min-w-0 break-words text-3xl font-bold leading-tight text-white md:text-4xl",children:s}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-[var(--ln-text-muted)]",children:n})]})}function b({id:e,label:s,value:n,onChange:a,helper:l,suffix:i,min:o=0,max:d,slider:m,sliderAriaLabel:c="{label} slider"}){let u=m?Math.min(Math.max(n,m.min),m.max):n;return(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:e,className:"mb-2 block text-sm font-semibold text-white",children:s}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{id:e,type:"number",min:o,max:d,inputMode:"decimal",value:n,onChange:e=>a(function(e,t,s,n){if(""===e.trim())return s;let a=Number(e);return Number.isFinite(a)?Math.max(s,Math.min(a,n)):t}(e.target.value,n,o,d)),className:"w-full rounded-xl border border-[var(--ln-border)] bg-white/5 px-4 py-3 pr-24 text-base font-semibold text-white outline-none transition-colors placeholder:text-[var(--ln-text-muted)] focus:border-[var(--ln-primary)]"}),i&&(0,t.jsx)("span",{className:"pointer-events-none absolute right-4 top-1/2 -translate-y-1/2 text-sm font-medium text-[var(--ln-text-muted)]",children:i})]}),m&&(0,t.jsxs)("div",{className:"mt-3",children:[(0,t.jsx)("input",{type:"range",min:m.min,max:m.max,step:m.step,value:u,onChange:e=>a(Number(e.target.value)),"aria-label":(0,r.interpolate)(c,{label:s}),className:"w-full accent-[var(--ln-primary)]"}),(0,t.jsxs)("div",{className:"mt-1 flex justify-between text-[10px] font-medium uppercase tracking-wide text-[var(--ln-text-muted)]",children:[(0,t.jsx)("span",{children:m.minLabel}),(0,t.jsx)("span",{children:n>m.max?`${m.maxLabel}+`:m.maxLabel})]})]}),(0,t.jsx)("p",{className:"mt-2 text-xs leading-relaxed text-[var(--ln-text-muted)]",children:l})]})}function g({ui:e=c,estimateMessages:g=i.DEFAULT_ESTIMATE_MESSAGES,competitors:f,locale:v="en",freeLabel:y="Free",customLabel:j="Custom"}
2){let[w,N]=(0,s.useState)(!1),[k,S]=(0,s.useState)(null),[C,M]=(0,s.useState)(1e4),[L,E]=(0,s.useState)(5),[U,R]=(0,s.useState)(5),[T,A]=(0,s.useState)("monthly"),P=d[v]??"en-US",F=k??"zapier",$=(0,s.useMemo)(()=>m(l.migrationCompetitors[F],f?.[F],g.publicTaskTierSourceLabel),[F,f,g.publicTaskTierSourceLabel]),D=$.billingCadences.includes(T)?T:$.defaultBillingCadence,B=(0,s.useMemo)(()=>(0,i.calculateMigrationComparison)({competitorId:F,competitor:$,monthlyRuns:C,unitsPerRun:L,runtimeSecondsPerRun:U,billingCadence:D,messages:g,numberLocale:P}),[D,F,$,g,C,P,U,L]),I="n8n"!==$.id,z=1===B.competitorUsage?$.unitLabel:$.unitLabelPlural,O=B.savings,_=B.savings?.monthly??null,H=B.savings?.annual??null,V=O?.note??"",W=null!==_&&_>0,Y=null!==_&&_<0,G={free:y,custom:j},K=W?e.metrics.monthlySavings:Y?e.metrics.monthlyExtraCost:e.metrics.monthlyDifference,Z=null!==_?x(Math.abs(_),"USD",G,P):"USD"===B.competitorCost.currency?e.metrics.zeroUsd:e.metrics.noFx,q=null===_||null===H?B.competitorCost.currency===B.latenodeCost.currency?e.differenceDetails.noSavingsAdjust:e.differenceDetails.currencyUnavailable:W?(0,r.interpolate)(e.differenceDetails.annualSavings,{annual:x(H,"USD",G,P),note:V}):Y?(0,r.interpolate)(e.differenceDetails.annualExtraCost,{annual:x(Math.abs(H),"USD",G,P)}):(0,r.interpolate)(e.differenceDetails.noMonthlyDifference,{note:V});return(0,t.jsxs)("div",{className:"ln-card overflow-hidden p-0",children:[(0,t.jsx)("div",{className:"border-b border-[var(--ln-border)] bg-white/[0.03] p-5 md:p-6",children:(0,t.jsxs)("div",{className:"flex flex-col gap-5 xl:flex-row xl:items-center xl:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-[var(--ln-primary-light)]",children:e.header.eyebrow}),(0,t.jsx)("h3",{className:"mt-2 text-2xl font-bold text-white md:text-3xl",children:e.header.title}),(0,t.jsx)("p",{className:"mt-2 max-w-2xl text-sm leading-relaxed text-[var(--ln-text-muted)]",children:e.header.description})]}),(0,t.jsx)("div",{className:"space-y-3 xl:text-right",children:(0,t.jsx)("div",{className:"grid gap-2 sm:grid-cols-3 xl:flex xl:flex-wrap xl:justify-end",children:o.map(s=>{let n=m(l.migrationCompetitors[s],f?.[s],g.publicTaskTierSourceLabel),a=s===k;return(0,t.jsx)("button",{type:"button",onClick:()=>{N(!0),S(s),A(n.defaultBillingCadence),E(n.defaultUnitsPerRun),R(n.defaultRuntimeSeconds)},className:`rounded-full border px-4 py-2 text-sm font-semibold transition-colors ${a?"border-[var(--ln-primary)] bg-[var(--ln-primary)] text-white":"border-[var(--ln-border)] bg-white/5 text-[var(--ln-text-soft)] hover:border-white/30"}`,children:(0,r.interpolate)(e.compareWithButton,{name:n.name})},s)})})})]})}),w&&(0,t.jsxs)("div",{id:"migration-calculator-panel",className:"grid gap-0 lg:grid-cols-[0.9fr_1.1fr]",children:[(0,t.jsx)("div",{className:"border-b border-[var(--ln-border)] p-5 md:p-6 lg:border-r lg:border-b-0",children:(0,t.jsxs)("div",{className:"space-y-5",children:[(0,t.jsx)(b,{id:"migration-monthly-runs",label:e.inputs.monthlyRuns.label,value:C,onChange:M,suffix:e.inputs.monthlyRuns.suffix,max:1e7,slider:{min:0,max:1e5,step:500,minLabel:e.inputs.monthlyRuns.sliderMinLabel,maxLabel:e.inputs.monthlyRuns.sliderMaxLabel},helper:e.inputs.monthlyRuns.helper,sliderAriaLabel:e.inputs.sliderAriaLabel}),I?(0,t.jsx)(b,{id:"migration-units-per-run",label:$.perRunLabel,value:L,onChange:E,suffix:$.unitLabelPlural,min:1,max:1e4,slider:{min:1,max:100,step:1,minLabel:"1",maxLabel:"100"},helper:$.perRunHelp,sliderAriaLabel:e.inputs.sliderAriaLabel}):(0,t.jsxs)("div",{className:"rounded-xl border border-[var(--ln-border)] bg-white/5 p-4",children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-white",children:e.n8nNotice.title}),(0,t.jsx)("p",{className:"mt-2 text-xs leading-relaxed text-[var(--ln-text-muted)]",children:e.n8nNotice.description})]}),(0,t.jsx)(b,{id:"migration-runtime",label:e.inputs.runtime.label,value:U,onChange:R,suffix:e.inputs.runtime.suffix,min:1,max:86400,slider:{min:1,max:60,step:1,minLabel:e.inputs.runtime.sliderMinLabel,maxLabel:e.inputs.runtime.sliderMaxLabel}
2,helper:e.inputs.runtime.helper,sliderAriaLabel:e.inputs.sliderAriaLabel}),$.billingCadences.length>1?(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"mb-2 text-sm font-semibold text-white",children:e.inputs.billingCadence.label}),(0,t.jsx)("div",{className:"grid grid-cols-2 gap-2",children:$.billingCadences.map(s=>(0,t.jsx)("button",{type:"button",onClick:()=>A(s),className:`rounded-xl border px-4 py-3 text-sm font-semibold transition-colors ${D===s?"border-[var(--ln-primary)] bg-[var(--ln-primary)]/20 text-white":"border-[var(--ln-border)] bg-white/5 text-[var(--ln-text-soft)] hover:border-white/30"}`,children:p(s,e.billingCadenceLabels)},s))})]}):(0,t.jsxs)("div",{className:"rounded-xl border border-[var(--ln-border)] bg-white/5 p-4",children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-white",children:p(D,e.billingCadenceLabels)}),(0,t.jsx)("p",{className:"mt-2 text-xs leading-relaxed text-[var(--ln-text-muted)]",children:e.makeCadenceNotice.description})]})]})}),(0,t.jsxs)("div",{className:"p-5 md:p-6",children:[(0,t.jsxs)("div",{className:"grid gap-4 md:grid-cols-2",children:[(0,t.jsx)(h,{label:(0,r.interpolate)(e.metrics.competitorEstimate,{name:$.name}),value:x(B.competitorCost.amount,B.competitorCost.currency,G,P),detail:`${B.competitorCost.planName}: ${B.competitorCost.note}`}),(0,t.jsx)(h,{label:e.metrics.latenodeEstimate,value:x(B.latenodeCost.amount,"USD",G,P),detail:(0,r.interpolate)(e.metrics.latenodeDetail,{cpuSeconds:u(B.latenodeCpuSeconds,P),note:B.latenodeCost.note}),highlight:!0}),(0,t.jsx)(h,{label:K,value:Z,detail:q,highlight:W}),(0,t.jsx)(h,{label:e.metrics.usageModeled,value:u(B.competitorUsage,P),detail:(0,r.interpolate)(e.metrics.usageModeledDetail,{units:z,runs:u(C,P),runtime:u(U,P)})})]}),(0,t.jsxs)("div",{className:"mt-5 rounded-2xl border border-[var(--ln-border)] bg-white/5 p-5",children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-white",children:e.whyDifferent.title}),(0,t.jsxs)("p",{className:"mt-2 text-sm leading-relaxed text-[var(--ln-text-muted)]",children:[$.whyDifferent,e.whyDifferent.suffix]}),B.competitorCost.isApproximate&&(0,t.jsxs)("p",{className:"mt-3 rounded-xl border border-amber-300/40 bg-amber-300/10 p-3 text-sm leading-relaxed text-amber-100",children:[e.whyDifferent.approximationPrefix," ",B.competitorCost.note]})]}),(0,t.jsxs)("details",{className:"mt-5 rounded-2xl border border-[var(--ln-border)] bg-black/10 p-5",children:[(0,t.jsx)("summary",{className:"cursor-pointer text-sm font-semibold text-white",children:e.assumptions.summary}),(0,t.jsxs)("div",{className:"mt-4 space-y-3 text-sm leading-relaxed text-[var(--ln-text-muted)]",children:[(0,t.jsx)("p",{children:$.caveat}),(0,t.jsx)("p",{children:(0,r.interpolate)(e.assumptions.pricingLastChecked,{date:$.lastChecked})}),"EUR"===$.currency&&(0,t.jsx)("p",{children:(0,r.interpolate)(e.assumptions.eurConversion,{rate:l.EUR_TO_USD_RATE.toFixed(2),date:l.EUR_TO_USD_RATE_LA
2ST_CHECKED})}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[$.sources.map(e=>(0,t.jsx)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"rounded-full border border-[var(--ln-border)] bg-white/5 px-3 py-1 text-xs font-semibold text-[var(--ln-primary-light)] transition-colors hover:border-[var(--ln-primary)]",children:e.label},e.href)),"EUR"===$.currency&&(0,t.jsx)("a",{href:e.eurUsdSource.href,target:"_blank",rel:"noopener noreferrer",className:"rounded-full border border-[var(--ln-border)] bg-white/5 px-3 py-1 text-xs font-semibold text-[var(--ln-primary-light)] transition-colors hover:border-[var(--ln-primary)]",children:e.eurUsdSource.label})]})]})]}),(0,t.jsxs)("div",{className:"mt-5 flex flex-col gap-3 sm:flex-row",children:[(0,t.jsx)(n.CTAButton,{href:a.LATENODE_SIGNUP_URL,size:"lg",className:"w-full sm:w-auto",children:e.actions.startFree}),(0,t.jsx)(n.CTAButton,{href:"#workflow-costs",variant:"secondary",size:"lg",className:"w-full sm:w-auto",children:e.actions.checkLatenodeRates})]})]})]})]})}e.s(["default",()=>g])},364858,e=>{"use strict";var t=e.i(843476),s=e.i(271645);let n=s.forwardRef(function({title:e,titleId:t,...n},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},n),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"}))});e.i(391065);var a=e.i(493253),r=e.i(12600),l=e.i(982644),i=e.i(807669),o=e.i(874795),d=e.i(333363);let m=[{minutes:10,priceUsd:0,label:"10 min (included)"},{minutes:20,priceUsd:10,label:"20 min â $10/mo"},{minutes:40,priceUsd:20,label:"40 min â $20/mo"},{minutes:60,priceUsd:30,label:"60 min â $30/mo"}],c=[{minutes:10,priceUsd:0,label:"10 min (included)"},{minutes:5,priceUsd:5,label:"5 min â $5/mo"},{minutes:1,priceUsd:10,label:"1 min â $10/mo"}],u=[{mb:16,priceUsd:0,label:"16 MB (included)"},{mb:32,priceUsd:5,label:"32 MB â $5/mo"},{mb:128,priceUsd:10,label:"128 MB â $10/mo"},{mb:256,priceUsd:20,label:"256 MB â $20/mo"},{mb:512,priceUsd:50,label:"512 MB â $50/mo"},{mb:1024,priceUsd:70,label:"1024 MB â $70/mo"}],x={"deepseek-v4-pro":{id:"deepseek-v4-pro",name:"DeepSeek V4 Pro",inputPerMillion:.5655,outputPerMillion:1.131},"claude-sonnet-4-5":{id:"claude-sonnet-4-5",name:"Claude Sonnet 4.5",inputPerMillion:3.9,outputPerMillion:19.5}},p=[{id:"classify",label:"Classify",inputTokens:400,outputTokens:50},{id:"summarize",label:"Summarize",inputTokens:800,outputTokens:200},{id:"custom",label:"Custom",inputTokens:1e3,outputTokens:300}];function h(e){return Math.round((e+Number.EPSILON)*100)/100}function b(e){return Number.isFinite(e)?Math.max(0,e):0}let g=[1e4,5e4,1e5,2e5,5e5,1e6,5e6],f="h-12 w-full rounded-xl border border-[var(--ln-border)] bg-white/5 px-4 text-sm font-semibold text-white outline-none transition-colors focus:border-[var(--ln-primary)]",v="rounded-lg border border-[var(--ln-border)] bg-white/5 px-2.5 py-1 text-xs font-semibold text-[var(--ln-text-soft)] transition-colors hover:border-white/30 hover:text-white",y={linkOnly:{estimateYourPrice:"Estimate your price"},receipt:{estimatedMonthlyTotal:"Estimated monthly total",runtime:"Runtime ({count} CPU sec)",payAsYouGo:"Pay as you go",builtInAi:"Built-in AI",basedOnRuns:"based on {count} runs",upgrades:"Upgrades",total:"Total",startFree:"Start free",secondsUnit:"sec",ratePerSec:"${amount}/sec"},volume:{monthlyRuns:"Monthly runs",runsSuffix:"runs",editMonthlyRuns:"Edit monthly runs",secondsPerRun:"Seconds per run",secSuffix:"sec",editSecondsPerRun:"Edit seconds per run",useSlider:"Use slider",runsSliderMin:"10k",runsSliderMax:"500k",secondsSliderMin:"1s",secondsSliderMax:"30s",comingFromZapierOrMake:"Coming from Zapier or Make?",knowCpuSeconds:"I already know CPU seconds"},tasks:{backToVolume:"Back to runs à seconds",monthlyTasks:"Monthly Zapier tasks or Make operations",tasksSuffix:"tasks",helper:"Rule of thumb: 1 Zapier task or Make operation â 1 CPU second. Approximate â real runtime can differ."},cpu:{backToVolume:"Back to runs à seconds",cpuSecondsLabel:"{count} CPU seconds/month",sliderMinLabel:"10k",sliderMaxLabel:"5M"},ai:{toggle:"Add built-in AI",toggleAriaLabel:"Estimate built-in AI Plug and Play",sampleRatesNote:"Sample rates for estimating â 400+ models available in the product.",presets:{classify:"Classify",summarize:"Summarize",custom:"Custom"},avgInputTokens:"Avg input tokens / call",avgOutputTokens:"Avg output tokens / call",aiCallsPerRun:"AI calls per run",bringYourOwnKeys:"Bring your own API keys â AI line becomes $0"},addons:{title:"Need more capacity?",subtitle:"Most teams skip this.",show:"Show",hide:"Hide",includedPrefix:"Included:",baseline:["5 parallel workers","10 min execution time","10 min polling interval","16 MB file size per run","1 RAG storage"],totalWorkers:"Total workers",executionTimeLimit:"Execution time limit",pollingInterval:"Polling interval",maxFileSize:"Max file size per run",extraRagStorages:"Extra RAG storages",highVolumeFiltering:"High-volume filtering",enableHighVolume:"Enable · $20/mo",extraWorkersHint:"Extra workers: $10 each/mo beyond the {count} included.",execTimeTiers:{10:"10 min (included)",20:"20 min â $10/mo",40:"40 min â $20/mo",60:"60 min â $30
2/mo"},pollingTiers:{10:"10 min (included)",5:"5 min â $5/mo",1:"1 min â $10/mo"},fileSizeTiers:{16:"16 MB (included)",32:"32 MB â $5/mo",128:"128 MB â $10/mo",256:"256 MB â $20/mo",512:"512 MB â $50/mo",1024:"1024 MB â $70/mo"}},addonHelp:{workers:{term:"Reserved Execution Workers",explanation:"Run more workflows at the same time. Helps when webhooks or batches pile up and you don't want runs waiting in a queue."},"exec-time":{term:"Execution Time Limit Per Execution",explanation:"How long one run can keep going before it stops. Useful for scrapers, slow APIs, and long batch jobs."},polling:{term:"Polling Triggers Interval",explanation:"How often Latenode checks apps that don't push webhooks (e.g. new email). Webhooks stay instant either way."},"file-size":{term:"Max File Size Limit Per Execution",explanation:"Largest file one run can process. Raise this for big exports, PDFs, or media â not a monthly transfer cap."},rag:{term:"Extra RAG Storages",explanation:"Extra searchable knowledge bases for AI. Split by client, project, or dataset so retrieval stays clean."},"high-volume-filtering":{term:"High-Volume Events Filtering",explanation:"Ingest noisy high-volume streams and filter early so only relevant events run full workflows (cheap filtered drops)."}}};function j(e){return 1e4*Math.round(Math.max(1e4,Math.min(e,5e5))/1e4)}function w(e){return Math.max(1,Math.min(Math.round(e),30))}function N(e){return new Intl.NumberFormat("en-US",{maximumFractionDigits:1}).format(e)}function k(e,t,s,n){if(""===e.trim())return s;let a=Number(e);return Number.isFinite(a)?Math.max(s,Math.min(a,n)):t}function S({term:e,explanation:s}){return(0,t.jsxs)("span",{className:"group relative inline-flex align-middle",children:[(0,t.jsx)("button",{type:"button","aria-label":`${e}: ${s}`,className:"ml-1 inline-flex h-5 w-5 items-center justify-center rounded-full border border-[var(--ln-border)] bg-white/5 text-[11px] font-bold text-[var(--ln-primary-light)] outline-none transition-colors hover:border-[var(--ln-primary)] focus:border-[var(--ln-primary)]",children:"?"}),(0,t.jsxs)("span",{className:"pointer-events-none absolute bottom-full left-1/2 z-40 mb-2 hidden w-64 max-w-[calc(100vw-2rem)] -translate-x-1/2 rounded-xl border border-[var(--ln-border)] bg-[var(--ln-bg-dark)] p-3 text-left text-xs font-normal leading-relaxed text-[var(--ln-text-muted)] shadow-xl group-hover:block group-focus-within:block",children:[(0,t.jsx)("span",{className:"mb-1 block font-semibold text-white",children:e}),s]})]})}function C({id:e,label:s,value:n,onChange:a,helper:r,suffix:l,min:i=0,max:o,step:d}){return(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:e,className:"mb-2 block text-sm font-semibold text-white",children:s}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{id:e,type:"number",min:i,max:o,step:d,inputMode:"decimal",value:n,onChange:e=>a(k(e.target.value,n,i,o)),className:`${f}${l?" pr-20":""}`}),l&&(0,t.jsx)("span",{className:"pointer-events-none absolute right-4 top-1/2 -translate-y-1/2 text-sm font-medium text-[var(--ln-text-muted)]",children:l})]}),r&&(0,t.jsx)("p",{className:"mt-2 text-xs leading-relaxed text-[var(--ln-text-muted)]",children:r})]})}function M({content:e={estimateYourPrice:"Estimate your price"}}){return(0,t.jsx)("a",{href:"#workflow-costs",className:"mb-5 inline-flex w-fit text-sm font-semibold text-[var(--ln-link)] underline underline-offset-4 transition-colors hover:text-[var(--ln-link-hover)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[var(--ln-primary-light)]",children:e.estimateYourPrice})}function L({content:e=y,freeLabel:M="Free"}={}){let[E,U]=(0,s.useState)("volume"),[R,T]=(0,s.useState)(!1),[A,P]=(0,s.useState)(!1),[F,$]=(0,s.useState)(1e4),[D,B]=(0,s.useState)(1),[I,z]=(0,s.useState)(0),[O,_]=(0,s.useState)(5e4),H=R||!(F>=1e4&&F<=5e5),V=A||!(D>=1&&D<=30),[W,Y]=(0,s.useState)(!1),[G,K]=(0,s.useState)("deepseek-v4-pro"),[Z,q]=(0,s.useState)("summarize"),[X,J]=(0,s.useState)(800),[Q,ee]=(0,s.useState)(200),[et,es]=(0,s.useState)(1),[en,ea]=(0,s.use
2State)(!1),[er,el]=(0,s.useState)(!1),[ei,eo]=(0,s.useState)(!1),[ed,em]=(0,s.useState)(5),[ec,eu]=(0,s.useState)(10),[ex,ep]=(0,s.useState)(10),[eh,eb]=(0,s.useState)(16),[eg,ef]=(0,s.useState)(0),[ev,ey]=(0,s.useState)(!1),ej=(0,s.useMemo)(()=>"tasks"===E?O:"volume"===E?F:"cpu"===E?Math.max(1,Math.round((g[I]??i.LATENODE_FREE_CPU_SECONDS)/Math.max(D,1))):F,[E,O,F,I,D]),ew=(0,s.useMemo)(()=>"cpu"===E?g[I]??i.LATENODE_FREE_CPU_SECONDS:"tasks"===E?+b(O):F*D,[E,I,O,F,D]),eN=(0,s.useMemo)(()=>{var e,t;let s,n,a,r,l,o,p,g,f,v;return s=b((e={cpuSeconds:ew,aiEnabled:W,bringYourOwnKeys:en,monthlyRuns:ej,aiCallsPerRun:et,modelId:G,inputTokens:X,outputTokens:Q,addonsEnabled:er,addons:{totalWorkers:ed,execTimeMinutes:ec,pollingMinutes:ex,fileSizeMb:eh,extraRagStorages:eg,highVolumeFiltering:ev}}).cpuSeconds),n=(0,d.calculateMarginalCpuSecondCost)(s),a=e.aiEnabled&&!e.bringYourOwnKeys?function(e){if(e.bringYourOwnKeys)return 0;let t=x[e.modelId],s=b(e.monthlyRuns),n=b(e.aiCallsPerRun),a=b(e.inputTokens),r=b(e.outputTokens);return h(s*n*((a*t.inputPerMillion+r*t.outputPerMillion)/1e6))}({monthlyRuns:e.monthlyRuns,aiCallsPerRun:e.aiCallsPerRun,modelId:e.modelId,inputTokens:e.inputTokens,outputTokens:e.outputTokens,bringYourOwnKeys:e.bringYourOwnKeys}):0,{cpuSeconds:s,cpuUsd:n,aiUsd:a,addonsUsd:v=e.addonsEnabled?(r=Math.max(0,Math.floor((t=e.addons).totalWorkers)-5),l=m.find(e=>e.minutes===t.execTimeMinutes),o=c.find(e=>e.minutes===t.pollingMinutes),p=u.find(e=>e.mb===t.fileSizeMb),g=10*Math.max(0,Math.floor(t.extraRagStorages)),f=20*!!t.highVolumeFiltering,h(10*r+(l?.priceUsd??0)+(o?.priceUsd??0)+(p?.priceUsd??0)+g+f)):0,totalUsd:h(n+a+v),withinFreeCpuAllowance:s<=i.LATENODE_FREE_CPU_SECONDS}},[ew,W,en,ej,et,G,X,Q,er,ed,ec,ex,eh,eg,ev]),ek=(0,s.useMemo)(()=>(0,d.calculateMarginalCpuSecondBrackets)(eN.cpuSeconds),[eN.cpuSeconds]),eS=e=>0===e?M:new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2*(e<100),maximumFractionDigits:2*(e<100)}).format(e),eC=t=>e.addonHelp[t],eM=(0,t.jsxs)("div",{className:"rounded-xl border border-[var(--ln-border)] bg-[var(--ln-bg-dark)]/50 p-4 md:sticky md:top-24",children:[(0,t.jsx)("p",{className:"text-xs uppercase tracking-wide text-[var(--ln-text-muted)]",children:e.receipt.estimatedMonthlyTotal}),(0,t.jsx)("p",{className:"mt-1 text-3xl font-bold text-white",children:eS(eN.totalUsd)}),(0,t.jsxs)("div",{className:"mt-4 space-y-2 border-t border-[var(--ln-border)] pt-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{type:"button",onClick:()=>eo(e=>!e),"aria-expanded":ei,className:"flex w-full items-start justify-between gap-3 text-left text-sm text-[var(--ln-text-soft)] transition-colors hover:text-white",children:[(0,t.jsxs)("span",{children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,o.interpolate)(e.receipt.runtime,{count:N(eN.cpuSeconds)}),(0,t.jsx)(r.ChevronIcon,{open:ei,className:"h-4 w-4 text-[var(--ln-primary-light)]"})]}),(0,t.jsx)("span",{className:`mt-0.5 block text-xs font-semibold ${eN.withinFreeCpuAllowance?"text-emerald-300":"text-[var(--ln-primary-light)]"}`,children:eN.withinFreeCpuAllowance?M:e.receipt.payAsYouGo})]}),(0,t.jsx)("span",{className:"shrink-0 font-semibold text-white",children:eS(eN.cpuUsd)})]}),ei&&(0,t.jsx)("div",{className:"mt-2 space-y-1.5 rounded-lg border border-[var(--ln-border)] bg-white/[0.03] p-3",children:ek.map(s=>{var n,a;return(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3 text-xs text-[var(--ln-text-muted)]",children:[(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"block font-medium text-[var(--ln-text-soft)]",children:s.label}),(0,t.jsxs)("span",{children:[N(s.seconds)," ",e.receipt.secondsUnit,s.rate>0?` \xd7 ${n=s.rate,a=e.receipt.ratePerSec,0===n?M:(0,o.interpolate)(a,{amount:n.toFixed(5)})}`:""]})]}),(0,t.jsx)("span",{className:"shrink-0 font-semibold text-white",children:0===s.costUsd?M:eS(s.costUsd)})]},s.label)})})]}),W&&(0,t.jsxs)("div",{className:"flex justify-between gap-3 text-sm text-[var(--ln-text-soft)]",children:[(0,t.jsxs)("span",{children:[e.receipt.builtInAi,(0,t.jsx)("span",{className:"mt-0.5 block text-xs text-[var(--ln-text-muted)]",children:(0,o.interpolate)(e.receipt.basedOnRuns,{count:N(ej)})})]}),(0,t.jsx)("span",{className:"shrink-0 font-semibold text-white",children:eS(eN.aiUsd)})]}),er&&(0,t.jsxs)("div",{className:"flex justify-between gap-3 text-sm text-[var(--ln-text-soft)]",children:[(0,t.jsx)("span",{children:e.receipt.upgrades}),(0,t.jsx)("span",{className:"shrink-0 font-semibold text-white",children:eS(eN.addonsUsd)})]}),(0,t.jsxs)("div",{className:"flex justify-between border-t border-[var(--ln-border)] pt-2 text-base font-bold text-white",children:[(0,t.jsx)("span",{children:e.receipt.total}),(0,t.jsx)("span",{children:eS(eN.totalUsd)})]})]}),(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)(a.CTAButton,{href:l.LATENODE_SIGNUP_URL,size:"base",className:"w-full justify-center",children:e.receipt.startFree})})]});return(0,t.jsx)("div",{className:"rounded-2xl border border-[var(--ln-primary)]/40 bg-[var(--ln-primary)]/10 p-5 md:p-6",children:(0,t.jsxs)("div",{className:"grid gap-6 md:grid-cols-[minmax(0,1.4fr)_minmax(260px,1fr)] md:items-start",children:[(0,t.jsx)("div",{className:"order-1 md:order-2",children:eM}),(0,t.jsxs)("div",{className:"order-2 space-y-5 md:order-1",children:["volume"===E&&(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"grid gap-6 sm:grid-cols-2 sm:gap-8",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsxs)("div",{className:"flex h-5 items-center justify-between gap-2",children:[(0,t.jsx)("label",{htmlFor:"payg-monthly-runs",className:"text-xs font-medium uppercase tracking-wide text-[var(--ln-text-muted)]",children:e.volume.monthlyRuns}),H&&(0,t.jsx)("button",{type:"button",onMouseDown:e=>e.preventDefault(),onClick:()=>{$(j(F)),T(!1)},className:"text-xs font-semibold text-[var(--ln-link)] transition-colors hover:text-[var(--ln-link-hover)]",children:e.volume.useSlider})]}),H?(0,t.jsxs)("div",{className:"relative mt-3",children:[(0,t.jsx)("input",{id:"payg-monthly-runs",type:"number",min:0,max:1e7,inputMode:"decimal",autoFocus:R,value:F,onChange:e=>$(k(e.target.value,F,0,1e7)),onBlur:()=>T(!1),onKeyDown:e=>{"Enter"===e.key&&e.target.blur()},className:`${f} pr-16`}),(0,t.jsx)("span",{className:"pointer-events-none absolute right-4 top-1/2 -translate-y-1/2 text-sm font-medium text-[var(--ln-text-muted)]",children:e.volume.runsSuffix})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mt-2 flex items-baseline gap-1.5",children:[(0,t.jsx)("span",{className:"text-2xl font-bold tabular-nums tracking-tight text-white",children:N(F)}),(0,t.jsx)("span",{className:"text-sm text-[var(--ln-text-muted)]",children:e.volume.runsSuffix}),(0,t.jsx)("button",{type:"button",onClick:()=>T(!0),className:"ml-0.5 inline-flex rounded-md p-1 text-[var(--ln-text-muted)] transition-colors hover:bg-white/10 hover:text-white","aria-label":e.volume.editMonthlyRuns,children:(0,t.jsx)(n,{className:"h-4 w-4","aria-hidden":!0})})]}),(0,t.jsx)("input",{id:"payg-monthly-runs",type:"range",min:1e4,max:5e5,step:1e4,value:j(F),onChange:e=>$(Number(e.target.value)),className:"mt-4 w-full accent-[var(--ln-primary)]"}),(0,t.jsxs)("div",{className:"mt-1.5 flex justify-between text-[11px] text-[var(--ln-text-muted)]",children:[(0,t.jsx)("span",{children:e.volume.runsSliderMin}),(0,t.jsx)("span",{children:e.volume.runsSliderMax})]})]})]}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsxs)("div",{className:"flex h-5 items-center justify-between gap-2",children:[(0,t.jsx)("label",{htmlFor:"payg-seconds-per-run",className:"text-xs font-medium uppercase tracking-wide text-[var(--ln-text-muted)]",children:e.volume.secondsPerRun}),V&&(0,t.jsx)("button",{type:"button",onMouseDown:e=>e.preventDefault(),onClick:()=>{B(w(D)),P(!1)},className:"text-xs font-semibold text-[var(--ln-link)] transition-colors hover:text-[var(--ln-link-hover)]",children:e.volume.useSlider})]}),V?(0,t.jsxs)("div",{className:"relative mt-3",children:[(0,t.jsx)("input",{id:"payg-seconds-per-run",type:"number",min:.1,max:86400,step:.1,inputMode:"decimal",autoFocus:A,value:D,onChange:e=>B(k(e.target.value,D,.1,86400)),onBlur:()=>P(!1),onKeyDown:e=>{"Enter"===e.key&&e.target.blur()},className:`${f} pr-14`}),(0,t.jsx)("span",{className:"pointer-events-none absolute right-4 top-1/2 -translate-y-1/2 text-sm font-medium text-[var(--ln-text-muted)]",children:e.volume.secSuffix})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mt-2 flex items-baseline gap-1.5",children:[(0,t.jsx)("span",{className:"text-2xl font-bold tabular-nums tracking-tight text-white",children:N(D)}),(0,t.jsx)("span",{className:"text-sm text-[var(--ln-text-muted)]",children:e.volume.secSuffix}),(0,t.jsx)("button",{type:"button",onClick:()=>P(!0),className:"ml-0.5 inline-flex rounded-md p-1 text-[var(--ln-text-muted)] transition-colors hover:bg-white/10 hover:text-white","aria-label":e.volume.editSecondsPerRun,children:(0,t.jsx)(n,{className:"h-4 w-4","aria-hidden":!0})})]}),(0,t.jsx)("input",{id:"payg-seconds-per-run",type:"range",min:1,max:30,step:1,value:w(D),onChange:e=>B(Number(e.target.value)),className:"mt-4 w-full accent-[var(--ln-primary)]"}),(0,t.jsxs)("div",{className:"mt-1.5 flex justify-between text-[11px] text-[var(--ln-text-muted)]",children:[(0,t.jsx)("span",{children:e.volume.secondsSliderMin}),(0,t.jsx)("span",{children:e.volume.secondsSliderMax})]})]})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:()=>U("tasks"),className:v,children:e.volume.comingFromZapierOrMake}),(0,t.jsx)("button",{type:"button",onClick:()=>U("cpu"),className:v,children:e.volume.knowCpuSeconds})]})]}),"tasks"===E&&(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("button",{type:"button",onClick:()=>U("volume"),className:v,children:e.tasks.backToVolume}),(0,t.jsx)(C,{id:"payg-monthly-tasks",label:e.tasks.monthlyTasks,value:O,onChange:_,suffix:e.tasks.tasksSuffix,max:1e7,helper:e.tasks.helper})]}),"cpu"===E&&(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("button",{type:"button",onClick:()=>U("volume"),className:v,children:e.cpu.backToVolume}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"payg-runtime",className:"block text-sm font-semibold text-white",children:(0,o.interpolate)(e.cpu.cpuSecondsLabel,{count:N(g[I]??0)})}),(0,t.jsx)("input",{id:"payg-runtime",type:"range",min:0,max:g.length-1,step:1,value:
2I,onChange:e=>z(Number(e.target.value)),className:"mt-3 w-full accent-[var(--ln-primary)]"}),(0,t.jsxs)("div",{className:"mt-1 flex justify-between text-[10px] text-[var(--ln-text-muted)]",children:[(0,t.jsx)("span",{children:e.cpu.sliderMinLabel}),(0,t.jsx)("span",{children:e.cpu.sliderMaxLabel})]})]})]}),(0,t.jsxs)("div",{className:"border-t border-[var(--ln-border)]/60 pt-5",children:[(0,t.jsxs)("label",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("span",{className:"text-sm font-semibold text-white",children:e.ai.toggle}),(0,t.jsx)("input",{type:"checkbox",checked:W,onChange:e=>Y(e.target.checked),className:"h-5 w-5 accent-[var(--ln-primary)]","aria-label":e.ai.toggleAriaLabel})]}),W&&(0,t.jsxs)("div",{className:"mt-4 space-y-4",children:[(0,t.jsx)("p",{className:"text-xs text-[var(--ln-text-muted)]",children:e.ai.sampleRatesNote}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:Object.keys(x).map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>K(e),className:`rounded-full border px-3 py-1.5 text-xs font-semibold transition-colors ${G===e?"border-[var(--ln-primary)] bg-[var(--ln-primary)] text-white":"border-[var(--ln-border)] bg-white/5 text-[var(--ln-text-soft)] hover:border-white/30"}`,children:x[e].name},e))}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:p.map(s=>{let n=e.ai.presets[s.id]??s.label;return(0,t.jsx)("button",{type:"button",onClick:()=>{q(s.id),J(s.inputTokens),ee(s.outputTokens)},className:`rounded-full border px-3 py-1.5 text-xs font-semibold transition-colors ${Z===s.id?"border-white/40 bg-white/10 text-white":"border-[var(--ln-border)] bg-white/5 text-[var(--ln-text-soft)]"}`,children:n},s.id)})}),"custom"===Z&&(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsx)(C,{id:"payg-input-tokens",label:e.ai.avgInputTokens,value:X,onChange:e=>{q("custom"),J(e)},max:1e6}),(0,t.jsx)(C,{id:"payg-output-tokens",label:e.ai.avgOutputTokens,value:Q,onChange:e=>{q("custom"),ee(e)},max:1e6})]}),(0,t.jsx)(C,{id:"payg-ai-calls",label:e.ai.aiCallsPerRun,value:et,onChange:es,min:0,max:100}),(0,t.jsxs)("label",{className:"flex items-start gap-2 text-sm text-[var(--ln-text-soft)]",children:[(0,t.jsx)("input",{type:"checkbox",checked:en,onChange:e=>ea(e.target.checked),className:"mt-1 accent-[var(--ln-primary)]"}),(0,t.jsx)("span",{children:e.ai.bringYourOwnKeys})]})]})]}),(0,t.jsxs)("div",{className:"border-t border-[var(--ln-border)]/60 pt-5",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>el(e=>!e),className:"flex w-full items-center justify-between gap-3 text-left","aria-expanded":er,children:[(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"text-sm font-semibold text-white",children:e.addons.title}),(0,t.jsx)("span",{className:"mt-1 block text-xs text-[var(--ln-text-muted)]",children:e.addons.subtitle})]}),(0,t.jsx)("span",{className:"shrink-0 text-sm font-semibold text-[var(--ln-primary-light)]",children:er?e.addons.hide:e.addons.show})]}),er&&(0,t.jsxs)("div",{className:"mt-4 space-y-4",children:[(0,t.jsxs)("p",{className:"text-xs text-[var(--ln-text-muted)]",children:[e.addons.includedPrefix," ",e.addons.baseline.join(" · ")]}),(0,t.jsxs)("div",{className:"grid items-start gap-4 sm:grid-cols-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:"payg-workers",className:"mb-2 flex items-center text-sm font-semibold text-white",children:[e.addons.totalWorkers,(0,t.jsx)(S,{term:eC("workers").term,explanation:eC("workers").explanation})]}),(0,t.jsx)("input",{id:"payg-workers",type:"number",min:5,max:100,value:ed,onChange:e=>em(k(e.target.value,ed,5,100)),className:f,"aria-describedby":"payg-workers-hint"})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:"payg-exec-time",className:"mb-2 flex items-center text-sm font-semibold text-white",children:[e.addons.executionTimeLimit,(0,t.jsx)(S,{term:eC("exec-time").term,explanation:eC("exec-time").explanation})]}),(0,t.jsx)("select",{id:"payg-exec-time",value:ec,onChange:e=>eu(Number(e.target.value)),className:f,children:m.map(s=>(0,t.jsx)("option",{value:s.minutes,children:e.addons.execTimeTiers[String(s.minutes)]??s.label},s.minutes))})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:"payg-polling",className:"mb-2 flex items-center text-sm font-semibold text-white",children:[e.addons.pollingInterval,(0,t.jsx)(S,{term:eC("polling").term,explanation:eC("polling").explanation})]}),(0,t.jsx)("select",{id:"payg-polling",value:ex,onChange:e=>ep(Number(e.target.value)),className:f,children:c.map(s=>(0,t.jsx)("option",{value:s.minutes,children:e.addons.pollingTiers[String(s.minutes)]??s.label},s.minutes))})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:"payg-file-size",className:"mb-2 flex items-center text-sm font-semibold text-white",children:[e.addons.maxFileSize,(0,t.jsx)(S,{term:eC("file-size").term,explanation:eC("file-size").explanation})]}),(0,t.jsx)("select",{id:"payg-file-size",value:eh,onChange:e=>eb(Number(e.target.value)),className:f,children:u.map(s=>(0,t.jsx)("option",{value:s.mb,children:e.addons.fileSizeTiers[String(s.mb)]??s.label},s.mb))})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:"payg-rag",className:"mb-2 flex items-center text-sm font-semibold text-white",children:[e.addons.extraRagStorages,(0,t.jsx)(S,{term:eC("rag").term,explanation:eC("rag").explanation})]}),(0,t.jsx)("input",{id:"payg-rag",type:"number",min:0,max:100,value:eg,onChange:e=>ef(k(e.target.value,eg,0,100)),className:f})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:"payg-high-volume",className:"mb-2 flex items-center whitespace-nowrap text-sm font-semibold text-white",children:[e.addons.highVolumeFiltering,(0,t.jsx)(S,{term:eC("high-volume-filtering").term,explanation:eC("high-volume-filtering").explanation})]}),(0,t.jsxs)("label",{htmlFor:"payg-high-volume",className:`${f} flex cursor-pointer items-center gap-3`,children:[(0,t.jsx)("input",{id:"payg-high-volume",type:"checkbox",checked:ev,onChange:e=>ey(e.target.checked),className:"h-4 w-4 shrink-0 accent-[var(--ln-primary)]"}),(0,t.jsx)("span",{className:"text-sm font-semibold text-[var(--ln-text-soft)]",children:e.addons.enableHighVolume})]})]})]}),(0,t.jsx)("p",{id:"payg-workers-hint",className:"text-xs text-[var(--ln-text-muted)]",children:(0,o.interpolate)(e.add
2ons.extraWorkersHint,{count:String(5)})})]})]})]})]})})}e.s(["PayAsYouGoEstimatorLink",()=>M,"default",()=>L],364858)},906558,e=>{"use strict";var t=e.i(843476),s=e.i(271645);let n={catalog:{eyebrow:"Optional upgrades for advanced users",title:"Most teams never need these",description:"About 90% of users are fine with the basic Pay as you go config â included workers, execution limits, file size, and polling. Expand only if a workflow hits a specific limit.",showLabel:"Show add-ons",hideLabel:"Hide add-ons",baselineTitle:"PAYG included baseline",baseline:["5 parallel workers","10 min execution time","10 min polling interval","16 MB file size per run","1 RAG storage"]},groups:[{category:"More capacity",addons:[{id:"workers",name:"Reserved Execution Workers",price:"$10 per worker/month",description:"Run more workflows at the same time. Helps when webhooks or batches pile up and you don't want runs waiting in a queue."},{id:"high-volume-filtering",name:"High-Volume Events Filtering",price:"$20/month",description:"Ingest noisy high-volume streams and filter early so only relevant events run full workflows (cheap filtered drops)."}]},{category:"Bigger jobs",addons:[{id:"file-size",name:"Max File Size Limit Per Execution",price:"From $5/month",description:"Largest file one run can process. Raise this for big exports, PDFs, or media â not a monthly transfer cap.",tiers:["32 MB - $5","128 MB - $10","256 MB - $20","512 MB - $50","1024 MB - $70"]},{id:"exec-time",name:"Execution Time Limit Per Execution",price:"From $10/month",description:"How long one run can keep going before it stops. Useful for scrapers, slow APIs, and long batch jobs.",tiers:["20 min - $10","40 min - $20","60 min - $30"]}]},{category:"Faster polling",addons:[{id:"polling",name:"Polling Triggers Interval",price:"From $5/month",description:"How often Latenode checks apps that don't push webhooks (e.g. new email). Webhooks stay instant either way.",tiers:["5 min - $5","1 min - $10"]}]},{category:"More AI context",addons:[{id:"rag",name:"Extra RAG Storages",price:"$10 per storage/month",description:"Extra searchable knowledge bases for AI. Split by client, project, or dataset so retrieval stays clean."}]}]};function a({term:e,explanation:s}){return(0,t.jsxs)("span",{className:"group/tip relative inline-flex align-middle",children:[(0,t.jsx)("button",{type:"button","aria-label":`${e}: ${s}`,className:"ml-1 inline-flex h-5 w-5 items-center justify-center rounded-full border border-[var(--ln-border)] bg-white/5 text-[11px] font-bold text-[var(--ln-primary-light)] outline-none transition-colors hover:border-[var(--ln-primary)] focus:border-[var(--ln-primary)]",children:"?"}),(0,t.jsxs)("span",{className:"pointer-events-none absolute bottom-full left-1/2 z-40 mb-2 hidden w-64 max-w-[calc(100vw-2rem)] -translate-x-1/2 rounded-xl border border-[var(--ln-border)] bg-[var(--ln-bg-dark)] p-3 text-left text-xs font-normal leading-relaxed text-[var(--ln-text-muted)] shadow-xl group-hover/tip:block group-focus-within/tip:block",children:[(0,t.jsx)("span",{className:"mb-1 block font-semibold text-white",children:e}),s]})]})}function r({content:e=n}={}){let l=(0,s.useRef)(null),{catalog:i,groups:o}=e;return(0,s.useEffect)(()=>{let e=()=>{"#addons"===window.location.hash&&l.current&&(l.current.open=!0)};return e(),window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)},[]),(0,t.jsxs)("details",{ref:l,className:"ln-card overflow-hidden group",children:[(0,t.jsx)("summary",{className:"cursor-pointer list-none p-5 md:p-6 [&::-webkit-details-marker]:hidden",children:(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs font-bold uppercase tracking-[0.2em] text-[var(--ln-primary)]",children:i.eyebrow}),(0,t.jsx)("h3",{className:"mt-2 text-xl font-bold text-white md:text-2xl",children:i.title}),(0,t.jsx)("p",{className:"mt-2 max-w-3xl text-sm leading-relaxed text-[var(--ln-text-muted)]",children:i.description})]}),(0,t.jsxs)("span",{className:"shrink-0 rounded-full border border-[var(--ln-border)] px-3 py-1 text-xs font-semibold text-[var(--ln-primary-light)]",children:[(0,t.jsx)("span",{className:"group-open:hidden",children:i.showLabel}),(0,t.jsx)("span",{className:"hidden group-open:inline",children:i.hideLabel})]})]})}),(0,t.jsxs)("div",{className:"border-t border-[var(--ln-border)] p-5 md:p-6",children:[(0,t.jsxs)("div",{className:"mb-6 rounded-xl border border-[var(--ln-border)] bg-white/5 p-4",children:[(0,t.jsx)("p",{className:"text-xs font-semibold uppercase tracking-wide text-[var(--ln-text-muted)]",children:i.baselineTitle}),(0,t.jsx)("ul",{className:"mt-2 grid gap-1 sm:grid-cols-2 lg:grid-cols-3",children:i.baseline.map(e=>(0,t.jsx)("li",{className:"text-sm text-[var(--ln-text-soft)]",children:e},e))})]}),(0,t.jsx)("div",{className:"grid gap-6 lg:grid-cols-2",children:o.map(e=>(0,t.jsxs)("div",{className:"rounded-xl border border-[var(--ln-border)] bg-white/5 p-5",children:[(0,t.jsx)("h4",{className:"mb-4 text-lg font-semibold text-white",children:e.category}),(0,t.jsx)("div",{className:"space-y-4",children:e.addons.map(e=>(0,t.jsxs)("div",{className:"rounded-lg border border-[var(--ln-border)]/60 p-4",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-start sm:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("h5",{className:"flex items-center text-base font-semibold text-white",children:[e.name,(0,t.jsx)(a,{term:e.n
2ame,explanation:e.description})]}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-[var(--ln-text-muted)]",children:e.description})]}),(0,t.jsx)("p",{className:"shrink-0 text-sm font-semibold text-[var(--ln-primary-light)]",children:e.price})]}),e.tiers&&(0,t.jsx)("div",{className:"mt-3 flex flex-wrap gap-2",children:e.tiers.map(e=>(0,t.jsx)("span",{className:"rounded-full bg-white/10 px-3 py-1 text-xs text-[var(--ln-text-soft)]",children:e},e))})]},e.id??e.name))})]},e.category))})]})]})}e.s(["default",()=>r])}]); 3 4//# debugId=8c11b8cc-3ec1-01c1-288a-97a1404e72c1 5//# sourceMappingURL=7657ed06900b1217.js.map
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.