PageSourceSearch

https://api.jarvisclaw.ai/static/js/async/3432.a37ff03226.js

js jarvisclaw.ai collected 2026-10-05 12:25:00 UTC 8,072 bytes, 1 lines download raw bytes

1"use strict";(self.rspackChunkjarvisclaw_web=self.rspackChunkjarvisclaw_web||[]).push([[3432],{7366(e,a,t){var o=t(68413);function r(e){let{schema:a,id:t}=e;return(0,o.useEffect)(()=>{let e=`schema-${t}`;document.getElementById(e)?.remove();let o=document.createElement("script");return o.id=e,o.type="application/ld+json",o.textContent=JSON.stringify({"@context":"https://schema.org",...a}),document.head.appendChild(o),()=>{o.remove()}},[a,t]),null}t.d(a,{S:()=>r})},85899(e,a,t){t.r(a),t.d(a,{Pricing:()=>C});var o=t(72361),r=t(68413),l=t(6702),n=t(71114),i=t(8322),s=t(90418),c=t(46775),d=t(56022),p=t(20769),u=t(7366),g=t(12011),h=t(54909),m=t(45064),x=t(27303),v=t(84473);function C(){let{t:e,i18n:a}=(0,l.Bd)(),[t,C]=(0,r.useState)(null),b=(0,s.h)("pricing",a.language);(0,i.Ch)({title:b.title,titleIsComplete:!0,description:b.description,keywords:b.keywords,canonicalPath:"/pricing"});let{models:y,vendors:k,groupRatio:w,usableGroup:f,endpointMap:j,autoGroups:M,isLoading:T,priceRate:A,usdExchangeRate:L,error:N}=(0,v.y)(),F=!!N&&(401===N.status||N.response?.status===401),{searchInput:S,sortBy:R,vendorFilter:P,groupFilter:E,quotaTypeFilter:U,endpointTypeFilter:q,tagFilter:O,tokenUnit:B,viewMode:G,priceMode:V,showRechargePrice:I,setSearchInput:D,setSortBy:_,setVendorFilter:z,setGroupFilter:Q,setQuotaTypeFilter:H,setEndpointTypeFilter:$,setTagFilter:J,setTokenUnit:K,setViewMode:W,setPriceMode:Z,filteredModels:X,hasActiveFilters:Y,activeFilterCount:ee,availableTags:ea,clearFilters:et,clearSearch:eo}=function(e){let a=(0,m.S)({from:"/{-$lang}/pricing/"}),[t,o]=(0,r.useState)(()=>{let e=a.priceMode;return e||!0!==a.rechargePrice||(e="recharge"),{search:a.search,sort:a.sort,vendor:a.vendor,group:a.group,quotaType:a.quotaType,endpointType:a.endpointType,tag:a.tag,tokenUnit:a.tokenUnit,view:a.view,priceMode:e}}),l=t.search||"",n=t.sort||h.QB.NAME,i=t.vendor||"all",s=t.group||"all",c=t.quotaType||h.zH.ALL,d=t.endpointType||h.s4.ALL,p=t.tag||"all",u="K"===t.tokenUnit?"K":"M",g=t.view===h.pV.TABLE?h.pV.TABLE:h.pV.CARD,v="recharge"===t.priceMode||"free"===t.priceMode?t.priceMode:"standard",C="free"===v,b=(0,r.useCallback)(e=>{o(a=>{let t={...a,...e};for(let e of Object.keys(t))(void 0===t[e]||null===t[e])&&delete t[e];return t})},[]),y=(0,r.useCallback)(e=>b({search:e||void 0}),[b]),k=(0,r.useCallback)(e=>b({sort:e===h.QB.NAME?void 0:e}),[b]),w=(0,r.useCallback)(e=>b({vendor:"all"===e?void 0:e}),[b]),f=(0,r.useCallback)(e=>b({group:"all"===e?void 0:e}),[b]),j=(0,r.useCallback)(e=>b({quotaType:e===h.zH.ALL?void 0:e}),[b]),M=(0,r.useCallback)(e=>b({endpointType:e===h.s4.ALL?void 0:e}),[b]),T=(0,r.useCallback)(e=>b({tag:"all"===e?void 0:e}),[b]),A=(0,r.useCallback)(e=>b({tokenUnit:"M"===e?void 0:e}),[b]),L=(0,r.useCallback)(e=>b({view:e===h.pV.CARD?void 0:e}),[b]),N=(0,r.useCallback)(e=>b({priceMode:e?"recharge":void 0}),[b]),F=(0,r.useCallback)(e=>b({priceMode:"standard"===e?void 0:e}),[b]),S=(0,r.useMemo)(()=>e&&0!==e.length?(0,x.Mt)(e):[],[e]),R=(0,r.useMemo)(()=>e&&0!==e.length?(0,x.mv)(e,{search:l,vendor:i,group:s,quotaType:c,endpointType:d,tag:p,sortBy:n,freeOnly:C}):[],[e,l,i,s,c,d,p,n,C]),P=(0,r.useMemo)(()=>"all"!==i||"all"!==s||c!==h.zH.ALL||d!==h.s4.ALL||"all"!==p,[i,s,c,d,p]),E=(0,r.useMemo)(()=>+("all"!==i)+ +("all"!==s)+ +(c!==h.zH.ALL)+ +(d!==h.s4.ALL)+ +("all"!==p),[i,s,c,d,p]);return{searchInput:l,sortBy:n,vendorFilter:i,groupFilter:s,quotaTypeFilter:c,endpointTypeFilter:d,tagFilter:p,tokenUnit:u,viewMode:g,priceMode:v,showRechargePrice:"recharge"===v,showFreeOnly:C,setSearchInput:y,setSortBy:k,setVendorFilter:w,setGroupFilter:f,setQuotaTypeFilter:j,setEndpointTypeFilter:M,setTagFilter:T,setTokenUnit:A,setViewMode:L,setPriceMode:F,setShowRechargePrice:N,filteredModels:R,hasActiveFilters:P,activeFilterCount:E,availableTags:S,clearFilters:(0,r.useCallback)(()=>{b({vendor:void 0,group:void 0,quotaType:void 0,endpointType:void 0,tag:void 0})},[b]),clearSearch:(0,r.useCallback)(()=>{b({search:void 0})},[b])}}(y||[]),er=(0,r.useCallback)(e=>{C(e)},[]),el=(0,r.useMemo)(()=>t&&(y||[]).find(e=>e.model_name===t)||null,[y,t]),en=(0,r.useMemo)(()=>Object.keys(f||{}).filter(e=>!h.An.includes(e)),[f]),ei=(0,r.useCallback)(()=>{et(),eo()},[et,eo]);return T?(0,o.jsx)(d.PublicLayout,{showMainContainer:!1,children:(0,o.jsx)("div",{className:"mx-auto w-full max-w-[1800px] px-3 pt-16 pb-8 sm:px-6 sm:pt-20 sm:pb-10 xl:px-8",children:(0,o.jsx)(g.LoadingSkeleton,{viewMode:G})})}):(0,o.jsxs)(d.PublicLayout,{showMainContainer:!1,children:[(0,o.jsx)(u.S,{id:"pricing",schema:{"@type":"WebAPI",name:"JarvisClaw Model Gateway",description:"OpenAI-compatible AI gateway with per-call pricing across chat, image, video, audio and embedding models. Settles per request in USDC via the x402 protocol.",documentation:"https://api.jarvisclaw.ai/docs/",provider:{"@type":"Organization",name:"JarvisClaw",url:"https://jarvisclaw.ai"},...y.length>0?{mainEntityOfPage:{"@type":"ItemList",name:"Available models",numberOfItems:y.length}}:{}}}),(0,o.jsx)("div",{className:"relative",children:(0,o.jsxs)(p.Z_,{className:"relative mx-auto w-full max-w-[1800px] px-3 pt-16 pb-8 sm:px-6 sm:pt-20 sm:pb-10 xl:px-8",children:[(0,o.jsx)("header",{className:"mb-6 border-b pb-5 sm:mb-8",children:(0,o.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between",children:[(0,o.jsxs)("div",{className:"space-y-1.5",children:[(0,o.jsx)("h1",{className:"text-2xl font-semibold tracking-tight text-foreground sm:text-3xl",children:e("Models")}),(0,o.jsx)("p",{className:"text-muted-foreground text-sm",children:e("{{count}} models available. Compare pricing and find the right model for your use case.",{count:y?.length||0})})]}),(0,o.jsx)(g.SearchBar,{value:S,onChange:D,onClear:eo,placeholder:e("Search model name, provider, or tag..."),className:"w-full shrink-0 sm:w-80"})]})}),(0,o.jsxs)("div",{className:"grid gap-4 xl:grid-cols-[330px_minmax(0,1fr)]",children:[(0,o.jsx)(g.PricingSidebar,{quotaTypeFilter:U,endpointTypeFilter:q,vend
1orFilter:P,groupFilter:E,tagFilter:O,onQuotaTypeChange:H,onEndpointTypeChange:$,onVendorChange:z,onGroupChange:Q,onTagChange:J,vendors:k||[],groups:en,groupRatios:w,tags:ea,models:y||[],hasActiveFilters:Y,onClearFilters:et,className:"hover-scrollbar sticky top-4 hidden max-h-[calc(100dvh-2rem)] self-start overflow-y-auto xl:block"}),(0,o.jsxs)("main",{className:"min-w-0 space-y-4",children:[(0,o.jsx)(g.PricingToolbar,{filteredCount:X.length,totalCount:y?.length,sortBy:R,onSortChange:_,tokenUnit:B,onTokenUnitChange:K,priceMode:V,onPriceModeChange:Z,viewMode:G,onViewModeChange:W,quotaTypeFilter:U,endpointTypeFilter:q,vendorFilter:P,groupFilter:E,tagFilter:O,onQuotaTypeChange:H,onEndpointTypeChange:$,onVendorChange:z,onGroupChange:Q,onTagChange:J,vendors:k||[],groups:en,groupRatios:w,tags:ea,models:y||[],hasActiveFilters:Y,activeFilterCount:ee,onClearFilters:et}),F?(0,o.jsxs)("div",{className:"border-border bg-card rounded-xl border px-6 py-14 text-center",children:[(0,o.jsx)("h2",{className:"text-base font-semibold",children:e("pricing.authGate.title","Sign in to see live model pricing")}),(0,o.jsx)("p",{className:"text-muted-foreground mx-auto mt-2 max-w-md text-sm leading-relaxed",children:e("pricing.authGate.body","This deployment restricts the model catalogue to signed-in accounts. Sign in to browse every model with per-call pricing.")}),(0,o.jsx)(c.$,{className:"mt-6",render:(0,o.jsx)(n.N_,{to:"/{-$lang}/sign-in",search:{redirect:location.href}}),children:e("Sign in")})]}):0===X.length?(0,o.jsx)(g.EmptyState,{searchQuery:S,hasActiveFilters:Y,onClearFilters:ei}):G===h.pV.CARD?(0,o.jsx)(g.ModelCardGrid,{models:X,onModelClick:er,priceRate:A,usdExchangeRate:L,tokenUnit:B,showRechargePrice:I}):(0,o.jsx)(g.PricingTable,{models:X,priceRate:A,usdExchangeRate:L,tokenUnit:B,showRechargePrice:I,onModelClick:er})]})]}),el&&(0,o.jsx)(g.ModelDetailsDrawer,{open:!!el,onOpenChange:e=>{e||C(null)},model:el,groupRatio:w||{},usableGroup:f||{},endpointMap:j||{},autoGroups:M||[],priceRate:A??1,usdExchangeRate:L??1,tokenUnit:B,showRechargePrice:I})]})})]})}}}]);

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.