PageSourceSearch

https://aiven.io/remix-chunks/all-pricing-table-COLqpC64.js

js aiven.io collected 2026-09-24 08:42:48 UTC 3,542 bytes, 2 lines download raw bytes

1import{j as n,c as C,r as b}from"./typography-C5LMSFAT.js";import{I as x}from"./button-BhJu3BAA.js";import{I as p}from"./info-icon-BKbNH3xg.js";import{b as i}from"./iframe-B8obmst8.js";import{u as y}from"./localization-DJH2FJIC.js";import{D as N}from"./misc-bYcQwmo8.js";import{g as j,p as G,a as u,b as w,P as g}from"./skeleton-2lT-3jZm.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"bb7bd624a8a3321ff6d1587f421551039a69f342"}}catch{}})();try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="8b95fec4-886c-4cd8-b9d1-940f9a9ea7ce",e._sentryDebugIdIdentifier="sentry-dbid-8b95fec4-886c-4cd8-b9d1-940f9a9ea7ce")})()}catch{}function S(){const[e,r]=b.useState([0]);function l(a){e.includes(a)?r(e.filter(t=>t!==a)):r([...e,a].sort())}return{index:e,onChange:l}}function P(e){const r=Object.values(e).reduce((o,s)=>(o.nodeCount+=s.minNodeCount+s.maxNodeCount,o.cpuCount+=s.minCpuCount+s.maxCpuCount,o.memoryGb+=s.minMemoryGb+s.maxMemoryGb,o.diskSpaceGb+=s.minDiskSpaceGb+s.maxDiskSpaceGb,o.shardCount+=s.minShardCount+s.maxShardCount,o),{nodeCount:0,cpuCount:0,memoryGb:0,diskSpaceGb:0,shardCount:0}),{nodeCount:l,cpuCount:a,memoryGb:t,diskSpaceGb:c,shardCount:d}=r;return{nodeCount:isNaN(l)||l===0,shardCount:isNaN(d)||d===0,cpuCount:isNaN(a)||a===0,memoryGb:isNaN(t)||t===0,diskSpaceGb:isNaN(c)||c===0}}function D(e,r,l,a){const t=l.index.includes(r),c=[],d=n.jsxs(i.Row,{activeClasses:"bg-secondary",active:t,onClick:()=>l.onChange(r),children:[n.jsx(i.Cell,{className:"align-middle!",children:n.jsx(x,{name:"chevron-down",color:"arrow",className:C("transition-transform",{"-rotate-180":t})})}),n.jsx(i.Cell,{children:e.name}),!a.nodeCount&&n.jsx(i.Cell,{className:"text-right",children:t?null:u(e.minNodeCount,e.maxNodeCount)}),!a.cpuCount&&n.jsx(i.Cell,{className:"text-right",children:t?null:u(e.minCpuCount,e.maxCpuCount)}),!a.memoryGb&&n.jsx(i.Cell,{className:"text-right",children:t?null:`${u(e.minMemoryGb,e.maxMemoryGb)}GB`}),!a.shardCount&&n.jsx(i.Cell,{className:"text-right",children:t?null:u(e.minShardCount,e.maxShardCount)}),!a.diskSpaceGb&&n.jsx(i.Cell,{className:"text-right",children:t?null:`${u(e.minDiskSpaceGb,e.maxDiskSpaceGb)}GB`}),n.jsx(i.Cell,{className:"text-right",children:t?null:`from ${w({value:e.minPricePerHourUsd})}`}),n.jsx(i.Cell,{className:"text-right",children:t?null:`from $${e.minPricePerMonthUsd}`})]},`${e.name}_${e.minNodeCount}_${e.minPricePerMonthUsd}`);c.push(d);const o=e.plans||[];if(t&&o.length>0){const s=o.map(m=>n.jsx(g,{plan:m,disabledColumns:a,formatCurrency:!0,showEmptyFirstColumn:!0},m.name));c.push(...s)}return c}function _({plans:e,isLoading:r}){if(e.length===0)return null;const{t:l}=y(N.PRICING),a=S(),t=j({plans:e}),c=P(t),d=G(c,{firstColumnLabel:"Plan",firstColumnKey:"plan"});return n.jsx("div",{className:"overflow-x-auto",children:n.jsxs(i,{isLoading:r,children:[n.jsxs(i.Head,{children:[n.jsx(i.Cell,{})," ",d.map(({key:o,label:s,width:m,align:h,tooltip:f})=>n.jsx(i.Cell,{className:h,width:m||"auto",children:n.jsxs("div",{className:C({"flex items-center justify-end gap-3":f}),children:[n.jsx("span",{children:l(o,s)}),f&&n.jsx(p,{tooltip:l(f)})]})},o))]}),n.jsx(i.Body,{children:Object.values(t).map((o,s)=>D(o,s,a,c))})]})})}export{_ as default};
2//# sourceMappingURL=all-pricing-table-COLqpC64.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.