%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home2/rezakur1/ai.rezakurnia.com/zh-router-frontend/dist/assets/
Upload File :
Create Path :
Current File : //home2/rezakur1/ai.rezakurnia.com/zh-router-frontend/dist/assets/ModelsPage-C9mdEGGN.js

import{r as o,j as e}from"./index-BDMoG-ch.js";import{B as x}from"./Button-CLtEYZTH.js";import{C as u,a as h,b as f}from"./Card-DCk8Plvl.js";import{B as g}from"./Badge-BO45Wp4q.js";import{c as d}from"./format-CjhWL3Ta.js";import{F as j}from"./models-xubGwISg.js";const v={className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.7},m="mercury-3",w={"beam-1.0":[600,2400,300],"deepseek-v4.1-flash":[600,2400,300],"deepseek-v4.1-flash-1017":[600,2400,300],"deepseek-v4.1-flash-nvfp4":[600,2400,300],"deepseek-v4.1-flash-uncensored":[600,2400,300],"ernie-5.5-flash-preview":[600,2400,300],"hy4-flash":[600,2400,300],"ling-3.2-flash":[600,2400,300],"mimo-v2.6-flash":[600,2400,300],"minimax-m3.1-flash":[600,2400,300],"nemotron-3.5-lightning":[600,2400,300],"qwen-3.8-flash":[600,2400,300],"sensenova-6.8-flash":[600,2400,300],"solar-mini-4":[600,2400,300],"step-3.7-flash":[600,2400,300],"atria-dawn":[1800,7200,900],"exaone-v2.5":[1800,7200,900],hungerg:[1800,7200,900],iceman:[1800,7200,900],"mercury-3":[1800,7200,900],"qwen-3.8-27b":[1800,7200,900],"big-pickle":[4800,19200,2400],"flint-40b":[4800,19200,2400],"gpt-6-luna":[4800,19200,2400],"grok-4.7":[4800,19200,2400],"nemotron-3.5-super-vl":[4800,19200,2400],"seaglass-alpha":[4800,19200,2400]};function b(){return j.map(s=>{const[l,i,n]=w[s]??[0,0,0];return{id:s,context_window:null,max_output:null,reasoning_effort:"",status:"active",uptime:void 0,last_latency_ms:null,input_price_per_1m:l,output_price_per_1m:i,cache_price_per_1m:n}})}function L(){const[s,l]=o.useState(""),[i,n]=o.useState(null),c=o.useMemo(()=>{const t=b(),a=s.trim().toLowerCase();return a?t.filter(r=>r.id.toLowerCase().includes(a)):t},[s]),p=async t=>{try{await navigator.clipboard.writeText(t),n(t),window.setTimeout(()=>n(a=>a===t?null:a),1500)}catch{const a=document.createElement("textarea");a.value=t,document.body.appendChild(a),a.select();try{document.execCommand("copy"),n(t),window.setTimeout(()=>n(r=>r===t?null:r),1500)}finally{document.body.removeChild(a)}}};return e.jsxs("div",{className:"space-y-6",children:[e.jsx("div",{className:"flex flex-wrap items-center justify-between gap-4",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-bold tracking-tight text-white sm:text-2xl",children:"Model"}),e.jsx("p",{className:"mt-1 text-sm text-slate-500",children:"Cek katalog model yang tersedia."})]})}),e.jsx("div",{className:"space-y-6",children:e.jsxs(u,{children:[e.jsx(h,{title:"Katalog Model",subtitle:"Daftar model yang tersedia",action:e.jsx("div",{className:"relative",children:e.jsx("input",{value:s,onChange:t=>l(t.target.value),placeholder:"Cari model…",className:"input-solid w-44 px-3 py-1.5 text-xs"})})}),e.jsxs(f,{className:"p-0",children:[e.jsxs("div",{className:"flex items-start gap-2.5 border-b border-blue-400/10 bg-blue-500/[0.05] px-4 py-3",children:[e.jsx("svg",{className:"mt-0.5 h-4 w-4 shrink-0 text-blue-300",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.7,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"})}),e.jsx("p",{className:"text-xs leading-relaxed text-blue-200/85",children:"Jika terjadi kendala pada sebuah model (misalnya error atau maintenance), Anda bisa langsung berganti ke model lain yang tersedia di daftar ini."})]}),c.length===0?e.jsx("div",{className:"px-5 py-10 text-center text-sm text-slate-500",children:s?"Tidak ada model yang cocok.":"Belum ada model."}):e.jsx("div",{className:"p-2",children:c.map(t=>e.jsxs("div",{className:`flex w-full items-center gap-3 rounded-xl border px-3.5 py-2.5 transition-colors ${t.id===m?"border-emerald-400/25 bg-emerald-500/[0.04]":"border-white/[0.04] bg-white/[0.02]"}`,children:[e.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border border-white/[0.06] bg-white/[0.03] text-slate-500",children:e.jsx("svg",{...v,className:"h-4 w-4",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09z"})})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[e.jsx("p",{className:"truncate font-mono text-sm font-medium text-slate-100",children:t.id}),t.id===m&&e.jsx(g,{tone:"success",children:"Disarankan"})]}),e.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 text-[10px] text-slate-500",children:[e.jsxs("span",{title:"Input /1M token",children:["In Rp",d(t.input_price_per_1m??0),"/1M"]}),e.jsxs("span",{title:"Output /1M token",children:["Out Rp",d(t.output_price_per_1m??0),"/1M"]}),e.jsxs("span",{title:"Cache /1M token",children:["Cache Rp",d(t.cache_price_per_1m??0),"/1M"]})]})]}),e.jsx("div",{className:"flex shrink-0 items-center gap-1.5",children:e.jsx(x,{size:"sm",variant:"ghost",onClick:()=>p(t.id),children:i===t.id?"✓ Tersalin":"Salin"})})]},t.id))})]})]})})]})}export{L as default};

Zerion Mini Shell 1.0