1import{r as e,j as t,R as i,u as r}from"./vendor-react-DejgYtBM.js";import{S as o,z as a,R as n,C as s,B as l,i as d,v as c,D as u,q as p,M as m,A as x,m as h,F as g,r as v,j as f,y as b,E as y,J as j,K as w,O as I,f as k,W as _,L as P,Z as S}from"./vendor-semi-D8d7bTtM.js";import{u as C,C as M}from"./CardTable-Cq0lqlnD.js";import{d as N,e as T,a$ as R,X as z,bS as q,q as $,C as V,ae as A,bw as K,a1 as F,Q as E,ba as W}from"./vendor-icons-EJvJ5X-w.js";import{b1 as L,b9 as O,P as U,ax as G,ba as D,S as H,bb as Q,bc as B,w as Y,aF as J,A as X,bd as Z,be as ee,bf as te,bg as ie,u as re,U as oe,B as ae,v as ne,s as se}from"./index-BeIIFw6E.js";import{u as le}from"./useIsMobile-D_kfVI0u.js";import{r as de,a as ce}from"./RenderUtils-CDnwzZ19.js";import"./vendor-motion-Chfy_MiU.js";const ue=({title:i,items:r=[],activeValue:a,onChange:n,t:s=e=>e,collapsible:l=!0,collapseCount:d=6,loading:c=!1})=>{const[u,p]=e.useState(!1),m=C(c),x=l&&r.length>d,h=x&&!u?r.slice(0,d):r;return t.jsxs("div",{className:"mb-5",children:[i&&t.jsx("div",{style:{fontSize:"12px",fontWeight:600,color:"hsl(var(--muted-foreground))",textTransform:"uppercase",letterSpacing:"0.05em",marginBottom:"4px",padding:"0 4px"},children:m?t.jsx(o.Title,{active:!0,style:{width:60,height:12}}):i}),m?t.jsx("div",{className:"space-y-1",children:Array.from({length:5}).map((e,i)=>t.jsxs("div",{className:"flex items-center justify-between px-1 py-1",children:[t.jsx(o.Title,{active:!0,style:{width:50+i%3*20+"px",height:13}}),t.jsx(o.Title,{active:!0,style:{width:24,height:13}})]},i))}):t.jsxs(t.Fragment,{children:[h.map(e=>{const i=(e=>Array.isArray(a)?a.includes(e.value):a===e.value)(e),r=e.disabled||"number"==typeof e.tagCount&&0===e.tagCount;return t.jsx(pe,{item:e,active:i,disabled:r,onChange:n},String(e.value))}),x&&t.jsxs("button",{onClick:()=>p(e=>!e),style:{display:"flex",alignItems:"center",gap:"3px",background:"none",border:"none",cursor:"pointer",padding:"2px 4px",marginTop:"2px",fontSize:"12px",color:"hsl(var(--muted-foreground))"},children:[u?t.jsx(N,{size:12}):t.jsx(T,{size:12}),t.jsx("span",{children:s(u?"æ¶èµ·":"å±å¼æ´å¤")})]})]})]})},pe=({item:e,active:r,disabled:o,onChange:n})=>{const s=i.useRef(null),[l,d]=i.useState(!1);i.useEffect(()=>{const e=s.current;e&&d(e.scrollWidth>e.clientWidth)},[e.label]);const c=t.jsx("span",{ref:s,style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minWidth:0,flex:1},children:e.label});return t.jsxs("div",{onClick:()=>{o||n(e.value)},style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"3px 6px",borderRadius:"6px",cursor:o?"not-allowed":"pointer",opacity:o?.35:1,transition:"background 0.15s",userSelect:"none"},className:`slg-item ${r?"slg-item--active":""} ${o?"":"slg-item--hoverable"}`,children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px",minWidth:0,flex:1,fontSize:"13px",fontWeight:r?600:400,color:r?"hsl(var(--primary))":"hsl(var(--foreground))"},children:[e.icon&&t.jsx("span",{style:{flexShrink:0,display:"flex",alignItems:"center"},children:e.icon}),l?t.jsx(a,{content:e.label,trigger:"hover",children:c}):c]}),void 0!==e.tagCount&&t.jsx("span",{style:{flexShrink:0,marginLeft:"8px",fontSize:"12px",color:r?"hsl(var(--primary))":"hsl(var(--muted-foreground))",fontWeight:r?600:400},children:e.tagCount})]})},me=({filterGroup:e,setFilterGroup:i,usableGroup:r={},groupRatio:o={},models:a=[],loading:n=!1,t:s})=>{const l=["all",...Object.keys(r).filter(e=>""!==e)].map(e=>{const t="all"===e?a.length:a.filter(t=>t.enable_groups&&t.enable_groups.includes(e)).length;let i="";if("all"===e)i=s("å
¨é¨");else{const t=o[e];i=null!=t?`x${t}`:"x1"}return{value:e,label:"all"===e?s("å
¨é¨åç»"):e,tagCount:i,disabled:0===t,modelCount:t}});return t.jsx(ue,{title:s("å¯ç¨ä»¤çåç»"),items:l.filter(e=>"all"===e.value||e.modelCount>0),activeValue:e,onChange:i,loading:n,t:s})},xe=({filterQuotaType:e,setFilterQuotaType:i,models:r=[],loading:o=!1,t:a})=>{const n=e=>r.filter(t=>"all"===e||t.quota_type===e).length,s=[{value:"all",label:a("å
¨é¨ç±»å"),tagCount:n("all")},{value:0,label:a("æé计费"),tagCount:n(0)},{value:1,label:a("ææ¬¡è®¡è´¹"),tagCount:n(1)},{value:2,label:a("æåç´ è®¡è´¹"),tagCount:n(2)},{value:3,label:a("æè§é¢å°ºå¯¸è®¡è´¹"),tagCount:n(3)},{value:4,label:a("æè§é¢æ¶é´è®¡è´¹"),tagCount:n(4)}];return t.jsx(ue,{title:a("计费类å"),items:s.filter(e=>"all"===e.value||"number"!=typeof e.tagCount||e.tagCount>
10),activeValue:e,onChange:i,loading:o,t:a})},he=({title:i,items:r=[],activeValue:m,onChange:x,t:h=e=>e,style:g={},collapsible:v=!0,collapseHeight:f=200,withCheckbox:b=!1,loading:y=!1})=>{const[j,w]=e.useState(!1),[I]=e.useState(12),[k,_]=(()=>{const[t,i]=e.useState(0),r=e.useRef(null);return e.useEffect(()=>{const e=r.current;if(!e)return;const t=new ResizeObserver(e=>{for(let t of e){const{width:e}=t.contentRect;i(e)}});return t.observe(e),i(e.getBoundingClientRect().width),()=>{t.disconnect()}},[]),[r,t]})(),P=le(),S=({text:i})=>{const r=e.useRef(null),[o,n]=e.useState(!1);e.useEffect(()=>{const e=r.current;e&&n(e.scrollWidth>70)},[i,_]);const s=P?"click":"hover",l=t.jsx("span",{ref:r,className:"sbg-ellipsis",style:{maxWidth:"70px",display:"block",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",pointerEvents:"auto"},onClick:e=>{P&&o&&e.stopPropagation()},children:i});return o?t.jsx(a,{content:i,trigger:s,children:l}):l},{columns:M,showTags:R}=_<=280?{columns:1,showTags:!0}:_<=380?{columns:2,showTags:!0}:_<=460?{columns:3,showTags:!1}:{columns:3,showTags:!0},z=Math.max(1,Math.floor(f/32)),q=v&&r.length>M*z,$=C(y),V=[4,4],A=()=>Math.floor(24/M),K=j?{}:{WebkitMaskImage:"linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0.2) 80%, transparent 100%)"},F=()=>{w(!j)},E={position:"absolute",left:0,right:0,textAlign:"center",bottom:-10,fontWeight:400,cursor:"pointer",fontSize:"12px",color:"hsl(var(--muted-foreground))",display:"flex",alignItems:"center",justifyContent:"center",gap:4},W=$?(()=>{const e=t.jsx(n,{gutter:V,style:{lineHeight:"32px",...g},children:Array.from({length:I}).map((e,i)=>t.jsx(s,{span:A(),children:t.jsxs("div",{style:{width:"100%",height:"32px",display:"flex",alignItems:"center",justifyContent:"flex-start",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius)",padding:"0 12px",gap:"6px"},children:[b&&t.jsx(o.Title,{active:!0,style:{width:14,height:14}}),t.jsx(o.Title,{active:!0,style:{width:60+i%3*20+"px",height:14}})]})},i))});return t.jsx(o,{loading:!0,active:!0,placeholder:e})})():t.jsx(n,{gutter:V,style:{lineHeight:"32px",...g},children:r.map(e=>{const i=e.disabled||"number"==typeof e.tagCount&&0===e.tagCount,r=Array.isArray(m)?m.includes(e.value):m===e.value;return b?t.jsx(s,{span:A(),children:t.jsx(l,{onClick:()=>{},theme:r?"light":"outline",type:r?"primary":"tertiary",disabled:i,className:"sbg-button",icon:t.jsx(c,{checked:r,onChange:()=>x(e.value),disabled:i,style:{pointerEvents:"auto"}}),style:{width:"100%",cursor:"default"},children:t.jsxs("div",{className:"sbg-content",style:{display:"flex",alignItems:"center",gap:6},children:[e.icon&&t.jsx("span",{className:"sbg-icon",children:e.icon}),t.jsx(S,{text:e.label}),void 0!==e.tagCount&&R&&t.jsx(d,{className:"sbg-tag",color:"grey",shape:"circle",size:"small",children:e.tagCount})]})})},e.value):t.jsx(s,{span:A(),children:t.jsx(l,{onClick:()=>x(e.value),theme:r?"light":"outline",type:r?"primary":"tertiary",disabled:i,className:"sbg-button",style:{width:"100%"},children:t.jsxs("div",{className:"sbg-content",style:{display:"flex",alignItems:"center",gap:6},children:[e.icon&&t.jsx("span",{className:"sbg-icon",children:e.icon}),t.jsx(S,{text:e.label}),void 0!==e.tagCount&&R&&t.jsx(d,{className:"sbg-tag",color:"white",shape:"circle",size:"small",children:e.tagCount})]})})},e.value)})});return t.jsxs("div",{className:"mb-8 "+(_<=400?"sbg-compact":""),ref:k,children:[i&&t.jsx(u,{margin:"12px",align:"left",children:$?t.jsx(o.Title,{active:!0,style:{width:80,height:14}}):i}),q&&!$?t.jsxs("div",{style:{position:"relative"},children:[t.jsx(p,{isOpen:j,collapseHeight:f,style:{...K},children:W}),j?null:t.jsxs("div",{onClick:F,style:{...E},children:[t.jsx(T,{size:14}),t.jsx("span",{children:h("å±å¼æ´å¤")})]}),j&&t.jsxs("div",{onClick:F,style:{...E,position:"static",marginTop:8,bottom:"auto"},children:[t.jsx(N,{size:14}),t.jsx("span",{children:h("æ¶èµ·")})]})]}):W]})},ge=({filterEndpointType:e,setFilterEndpointType:i,models:r=[],allModels:o=[],loading:a=!1,t:n})=>{const s=e=>"all"===e?r.length:r.filter(t=>t.supported_endpoint_types&&t.supported_endpoint_types.includes(e)).length,l=(()=>{const e=new Set;return(o.length>0?o:r).forEach(t=>{t.supported_endpoint_types&&Array.isArray(t.supported_endpoint_types)&&t.supported_endpoint_types.forEac
1h(t=>{e.add(t)})}),Array.from(e).sort()})(),d=[{value:"all",label:n("å
¨é¨ç«¯ç¹"),tagCount:s("all"),disabled:0===r.length},...l.map(e=>{const t=s(e);return{value:e,label:e,tagCount:t,disabled:0===t}})];return t.jsx(he,{title:n("端ç¹ç±»å"),items:d.filter(e=>"all"===e.value||"number"!=typeof e.tagCount||e.tagCount>0),activeValue:e,onChange:i,loading:a,t:n})},ve=({filterVendor:e,setFilterVendor:r,models:o=[],allModels:a=[],vendors:n=[],loading:s=!1,t:l})=>{const d=i.useMemo(()=>{const e=[],t=new Map;let i=!1;if(n.length>0){const i=new Set;n.forEach(r=>{i.has(r.name)||(i.add(r.name),e.push(r.name),r.icon&&t.set(r.name,r.icon))})}else{const i=new Set;(a.length>0?a:o).forEach(e=>{e.vendor_name&&(i.add(e.vendor_name),e.vendor_icon&&!t.has(e.vendor_name)&&t.set(e.vendor_name,e.vendor_icon))}),e.push(...Array.from(i).sort())}return(a.length>0?a:o).forEach(e=>{e.vendor_name||(i=!0)}),{vendors:e,vendorIcons:t,hasUnknownVendor:i}},[n,a,o]),c=i.useCallback(e=>"all"===e?o.length:"unknown"===e?o.filter(e=>!e.vendor_name).length:o.filter(t=>t.vendor_name===e).length,[o]),u=i.useMemo(()=>{const e=[{value:"all",label:l("å
¨é¨ä¾åºå"),tagCount:c("all"),disabled:0===o.length}];if(d.vendors.forEach(t=>{const i=c(t),r=d.vendorIcons.get(t);e.push({value:t,label:t,icon:r?L(r,16):null,tagCount:i,disabled:0===i})}),d.hasUnknownVendor){const t=c("unknown");e.push({value:"unknown",label:l("æªç¥ä¾åºå"),tagCount:t,disabled:0===t})}return e},[d,c,l]);return t.jsx(ue,{title:l("ä¾åºå"),items:u.filter(e=>"all"===e.value||"number"!=typeof e.tagCount||e.tagCount>0),activeValue:e,onChange:r,loading:s,t:l})},fe=({filterTags:e=[],setFilterTags:r,models:o=[],allModels:a=[],loading:n=!1,t:s})=>{const l=i.useMemo(()=>{const e=new Set;return(a.length>0?a:o).forEach(t=>{t.tags&&t.tags.split(/[,;|\s]+/).map(e=>e.trim()).filter(Boolean).forEach(t=>e.add(t.toLowerCase()))}),Array.from(e).sort((e,t)=>e.localeCompare(t))},[a,o]),d=i.useCallback(t=>{if("all"===t)return o.length;const i=t.toLowerCase();return o.filter(t=>{if(!t.tags)return!1;const r=t.tags.toLowerCase().split(/[,;|\s]+/).map(e=>e.trim()).filter(Boolean);return!!r.includes(i)&&e.filter(e=>e.toLowerCase()!==i).every(e=>r.includes(e.toLowerCase()))}).length},[o,e]),c=i.useCallback(t=>{if("all"===t)r([]);else{const i=t.toLowerCase();e.map(e=>e.toLowerCase()).includes(i)?r(e.filter(e=>e.toLowerCase()!==i)):r([...e,t])}},[e,r]),u=i.useMemo(()=>{const e=[{value:"all",label:s("å
¨é¨æ ç¾"),tagCount:o.length,disabled:0===o.length}];return l.forEach(t=>{const i=d(t);e.push({value:t,label:t,tagCount:i,disabled:0===i})}),e},[l,d,s,o.length]),p=i.useMemo(()=>0===e.length?["all"]:e,[e]);return t.jsx(ue,{title:s("æ ç¾"),items:u.filter(e=>"all"===e.value||"number"!=typeof e.tagCount||e.tagCount>0),activeValue:p,onChange:c,loading:n,t:s})},be=({filterModelType:e,setFilterModelType:r,models:o=[],allModels:a=[],loading:n=!1,t:s})=>{const l=i.useMemo(()=>{const e=new Set;return(a.length>0?a:o).forEach(t=>{t.model_type&&e.add(t.model_type)}),Array.from(e).sort((e,t)=>e.localeCompare(t))},[a,o]),d=i.useCallback(e=>"all"===e?o.length:o.filter(t=>t.model_type===e).length,[o]),c=i.useMemo(()=>{const e=[{value:"all",label:s("å
¨é¨ç±»å"),tagCount:d("all"),disabled:0===o.length}];return l.forEach(t=>{const i=d(t);e.push({value:t,label:t,tagCount:i,disabled:0===i})}),e},[l,d,s,o.length]);return 0===l.length?null:t.jsx(ue,{title:s("模åç±»å"),items:c.filter(e=>"all"===e.value||"number"!=typeof e.tagCount||e.tagCount>0),activeValue:e,onChange:r,loading:n,t:s})},ye=({models:t=[],filterGroup:i="all",filterQuotaType:r="all",filterEndpointType:o="all",filterVendor:a="all",filterTags:n=[],filterModelType:s="all",searchValue:l=""})=>{const d=t,c=(e,t=[])=>{if(!(t.includes("group")||"all"===i||e.enable_groups&&e.enable_groups.includes(i)))return!1;if(!t.includes("quota")&&"all"!==r&&e.quota_type!==r)return!1;if(!(t.includes("endpoint")||"all"===o||e.supported_endpoint_types&&e.supported_endpoint_types.includes(o)))return!1;if(!t.includes("vendor")&&"all"!==a)if("unknown"===a){if(e.vendor_name)return!1}else if(e.vendor_name!==a)return!1;if(!t.includes("tag")&&n.length>0){const t=((e="")=>e.toLowerCase().split(/[,;|\s]+/).map(e=>
1e.trim()).filter(Boolean))(e.tags);if(!n.every(e=>t.includes(e.toLowerCase())))return!1}if(!t.includes("modelType")&&"all"!==s&&e.model_type!==s)return!1;if(!t.includes("search")&&l){const t=l.toLowerCase();if(!e.model_name.toLowerCase().includes(t))return!1}return!0},u=e.useMemo(()=>d.filter(e=>c(e,["quota"])),[d,i,o,a,n,s,l]),p=e.useMemo(()=>d.filter(e=>c(e,["endpoint"])),[d,i,r,a,n,s,l]),m=e.useMemo(()=>d.filter(e=>c(e,["vendor"])),[d,i,r,o,n,s,l]),x=e.useMemo(()=>d.filter(e=>c(e,["tag"])),[d,i,r,o,a,s,l]),h=e.useMemo(()=>d.filter(e=>c(e,["modelType"])),[d,i,r,o,a,n,l]);return{quotaTypeModels:u,endpointTypeModels:p,vendorModels:m,groupCountModels:e.useMemo(()=>d.filter(e=>c(e,["group"])),[d,r,o,a,n,s,l]),tagModels:x,modelTypeModels:h}},je=({showWithRecharge:e,setShowWithRecharge:i,currency:r,setCurrency:o,handleChange:a,setActiveKey:n,showRatio:s,setShowRatio:l,viewMode:d,setViewMode:c,filterGroup:u,setFilterGroup:p,handleGroupClick:m,filterQuotaType:x,setFilterQuotaType:h,filterEndpointType:g,setFilterEndpointType:v,filterVendor:f,setFilterVendor:b,filterTags:y,setFilterTags:j,filterModelType:w,setFilterModelType:I,currentPage:k,setCurrentPage:_,tokenUnit:P,setTokenUnit:S,loading:C,t:M,...N})=>{const{quotaTypeModels:T,vendorModels:z,tagModels:q,modelTypeModels:$,groupCountModels:V}=ye({models:N.models,filterGroup:u,filterQuotaType:x,filterEndpointType:g,filterVendor:f,filterTags:y,filterModelType:w,searchValue:N.searchValue});return t.jsxs("div",{className:"p-2",children:[t.jsxs("button",{type:"button",className:"pricing-reset-btn",onClick:()=>O({handleChange:a,setShowWithRecharge:i,setCurrency:o,setShowRatio:l,setViewMode:c,setFilterGroup:p,setFilterQuotaType:h,setFilterEndpointType:v,setFilterVendor:b,setFilterTags:j,setFilterModelType:I,setCurrentPage:_,setTokenUnit:S}),title:M("éç½®å
¨é¨ç鿡件"),children:[t.jsx(R,{size:14,className:"pricing-reset-icon"}),t.jsx("span",{children:M("éç½®")})]}),t.jsx(ve,{filterVendor:f,setFilterVendor:b,models:z,allModels:N.models,vendors:N.vendors,loading:C,t:M}),t.jsx(be,{filterModelType:w,setFilterModelType:I,models:$,allModels:N.models,loading:C,t:M}),t.jsx(fe,{filterTags:y,setFilterTags:j,models:q,allModels:N.models,loading:C,t:M}),t.jsx(me,{filterGroup:u,setFilterGroup:m,usableGroup:N.usableGroup,groupRatio:N.groupRatio,models:V,loading:C,t:M}),t.jsx(xe,{filterQuotaType:x,setFilterQuotaType:h,models:T,loading:C,t:M})]})},we=({showWithRecharge:e,setShowWithRecharge:i,currency:r,setCurrency:o,showRatio:a,setShowRatio:n,viewMode:s,setViewMode:l,tokenUnit:d,setTokenUnit:c,loading:u=!1,t:p})=>{const m=[{value:"ratio",label:p("æ¾ç¤ºåç")},{value:"tableView",label:p("è¡¨æ ¼è§å¾")},{value:"tokenUnit",label:p("æKæ¾ç¤ºåä½")}];return t.jsx("div",{children:t.jsx(he,{title:p("æ¾ç¤ºè®¾ç½®"),items:m,activeValue:(()=>{const e=[];return a&&e.push("ratio"),"table"===s&&e.push("tableView"),"K"===d&&e.push("tokenUnit"),e})(),onChange:e=>{switch(e){case"ratio":n(!a);break;case"tableView":l("table"===s?"card":"table");break;case"tokenUnit":c("K"===d?"M":"K")}},withCheckbox:!0,collapsible:!1,loading:u,t:p})})},Ie=({sidebarProps:e,t:i})=>{const{showWithRecharge:r,setShowWithRecharge:o,currency:a,setCurrency:n,handleChange:s,setActiveKey:l,showRatio:d,setShowRatio:c,viewMode:u,setViewMode:p,filterGroup:m,setFilterGroup:x,filterQuotaType:h,setFilterQuotaType:g,filterEndpointType:v,setFilterEndpointType:f,filterVendor:b,setFilterVendor:y,filterTags:j,setFilterTags:w,filterModelType:I,setFilterModelType:k,tokenUnit:_,setTokenUnit:P,loading:S,...C}=e,{quotaTypeModels:M,endpointTypeModels:N,vendorModels:T,tagModels:R,modelTypeModels:z,groupCountModels:q}=ye({models:C.models,filterGroup:m,filterQuotaType:h,filterEndpointType:v,filterVendor:b,filterTags:j,filterModelType:I,searchValue:e.searchValue});return t.jsxs(t.Fragment,{children:[t.jsx(we,{showWithRecharge:r,setShowWithRecharge:o,currency:a,setCurrency:n,showRatio:d,setShowRatio:c,viewMode:u,setViewMode:p,tokenUnit:_,setTokenUnit:P,loading:S,t:i}),t.jsx(ve,{filterVendor:b,setFilterVendor:y,models:T,allModels:C.models,vendors:C.vendors,loading:S,t:i}),t.jsx(be,{filterModelType:I,setFilterModelType:k,models:z,allModels:C.models,loading:S,t:i}),t.jsx(fe,{filterTags:j,setFilterTags:w,models:R,allModels:C.models,loading:S,t:i}),t.jsx(me,{filterGroup:m,setFilterGroup:x,usableGroup:C.usableGroup,groupRatio:C.groupRatio,models:q,loading:S,t:i}),t.jsx(xe,{filterQuotaType:h,setFilterQuotaType:g,models:M,loading:S,t:i}),t.jsx(ge,{filterEndpointType:v,setFilterEndpointType:f,models:N,allModels:C.models,loading:S,t:i})]})}
1,ke=({onReset:e,onConfirm:i,t:r})=>t.jsxs("div",{className:"flex justify-end",children:[t.jsx(l,{theme:"outline",type:"tertiary",onClick:e,children:r("éç½®")}),t.jsx(l,{theme:"solid",type:"primary",onClick:i,children:r("ç¡®å®")})]}),_e=({visible:e,onClose:i,sidebarProps:r,t:o})=>{const a=t.jsx(ke,{onReset:()=>O({handleChange:r.handleChange,setShowWithRecharge:r.setShowWithRecharge,setCurrency:r.setCurrency,setShowRatio:r.setShowRatio,setViewMode:r.setViewMode,setFilterGroup:r.setFilterGroup,setFilterQuotaType:r.setFilterQuotaType,setFilterEndpointType:r.setFilterEndpointType,setFilterVendor:r.setFilterVendor,setFilterTags:r.setFilterTags,setFilterModelType:r.setFilterModelType,setCurrentPage:r.setCurrentPage,setTokenUnit:r.setTokenUnit}),onConfirm:i,t:o});return t.jsx(m,{title:o("çé"),visible:e,onCancel:i,footer:a,style:{width:"100%",height:"100%",margin:0},bodyStyle:{padding:0,height:"calc(100vh - 160px)",overflowY:"auto",scrollbarWidth:"none",msOverflowStyle:"none"},children:t.jsx(Ie,{sidebarProps:r,t:o})})},Pe="unknown",Se=e.memo(({vendor:e,size:i=36,t:r})=>{const o=e?.name===Pe?"?":e?.name?.charAt(0)?.toUpperCase()||"AI";return e?.icon?t.jsx("div",{style:{width:i,height:i,borderRadius:10,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",background:"hsl(var(--muted) / 0.5)",border:"1px solid hsl(var(--border))"},children:L(e.icon,i-8)}):t.jsx(x,{size:"default",style:{width:i,height:i,borderRadius:10,fontSize:Math.floor(.35*i),fontWeight:700,background:"hsl(var(--primary) / 0.1)",color:"hsl(var(--primary))"},children:o})});Se.displayName="VendorIcon";const Ce=e.memo(({filterVendor:i,models:o=[],allModels:n=[],t:s,isMobile:l=!1})=>{r();const[d,c]=e.useState(0),[u,p]=e.useState(!1),[x,h]=e.useState(""),g=e.useMemo(()=>{const e=new Map;return(n.length>0?n:o).forEach(t=>{if(!t.vendor_name)return;const i=e.get(t.vendor_name);i?i.count++:e.set(t.vendor_name,{name:t.vendor_name,icon:t.vendor_icon,description:t.vendor_description,count:1})}),Array.from(e.values()).sort((e,t)=>e.name.localeCompare(t.name))},[n,o]);e.useEffect(()=>{if("all"!==i||g.length<=1)return void c(0);const e=setInterval(()=>c(e=>(e+1)%g.length),2200);return()=>clearInterval(e)},[i,g.length]);const v="all"===i?g[d%Math.max(g.length,1)]:g.find(e=>e.name===i),f="all"===i?s("模å广åº"):i===Pe?s("æªç¥ä¾åºå"):i,b="all"===i?s("æ¢ç´¢å¹¶ä½éªæ¥èªå
¨çé¡¶å° AI ä¾åºåçæ¨¡åï¼å
æ¬å¾åãè§é¢ã对è¯çå¤ç§ç±»åã"):v?.description||s("该ä¾åºåæä¾å¤ç§ AI 模åï¼éç¨äºä¸åçåºç¨åºæ¯ã"),y=o.length;return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"mx-3 rounded-2xl border overflow-hidden",style:{background:"all"===i?"linear-gradient(110deg, rgba(56,189,248,0.10) 0%, rgba(129,140,248,0.12) 50%, rgba(244,114,182,0.10) 100%)":"linear-gradient(110deg, rgba(16,185,129,0.08) 0%, rgba(5,150,105,0.10) 60%, rgba(16,185,129,0.06) 100%)",borderColor:"hsl(var(--border))"},children:t.jsxs("div",{className:"flex items-center justify-between px-4 py-3 gap-3",children:[t.jsx("div",{className:"flex-shrink-0",children:(()=>{if("all"===i){const e=g.slice(0,8);return t.jsxs("div",{className:"flex items-center gap-0",children:[e.map((i,r)=>t.jsx(a,{content:i.name,position:"top",children:t.jsx("div",{style:{marginLeft:0===r?0:-10,zIndex:e.length-r,transition:"transform 0.2s",transform:r===d%Math.max(e.length,1)?"scale(1.15)":"scale(1)"},children:t.jsx(Se,{vendor:i,size:36,t:s})})},i.name)),g.length>8&&t.jsxs("div",{style:{marginLeft:-10,zIndex:0,width:36,height:36,borderRadius:10,background:"hsl(var(--muted))",border:"1px solid hsl(var(--border))",display:"flex",alignItems:"center",justifyContent:"center",fontSize:10,color:"hsl(var(--foreground) / 0.55)",fontWeight:600},children:["+",g.length-8]})]})}return v?t.jsx(Se,{vendor:v,size:52,t:s}):null})()}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[t.jsx("h2",{className:"text-base font-bold truncate",children:f}),t.jsx("span",{style:{fontSize:10,fontWeight:600,padding:"1px 7px",borderRadius:20,background:"hsl(var(--foreground) / 0.07)",color:"hsl(var(--foreground) / 0.55)",border:"1px solid hsl(var(--border))",flexShrink:0}
1,children:s("å
± {{count}} 个模å",{count:y})})]}),t.jsx("p",{className:"text-xs leading-relaxed line-clamp-1 cursor-pointer",style:{color:"hsl(var(--foreground) / 0.55)",margin:0},onClick:()=>{h(b),p(!0)},children:b})]}),t.jsx("div",{className:"flex items-center gap-2 flex-shrink-0"})]})}),t.jsx(m,{title:"all"===i?s("模å广åº"):f,visible:u,onCancel:()=>p(!1),footer:null,width:l?"95%":520,bodyStyle:{maxHeight:"60vh",overflowY:"auto"},children:t.jsx("p",{className:"text-sm leading-relaxed",children:x})})]})});Ce.displayName="PricingVendorIntro";const Me={allVendors:{primary:"37 99 235",background:"rgba(59, 130, 246, 0.1)",border:"rgba(59, 130, 246, 0.2)",gradient:"linear-gradient(90deg, rgba(56, 189, 248, 0.16) 0%, rgba(129, 140, 248, 0.18) 50%, rgba(244, 114, 182, 0.18) 100%)"},specific:{primary:"16 185 129",background:"rgba(16, 185, 129, 0.1)",border:"rgba(16, 185, 129, 0.2)",gradient:"linear-gradient(90deg, rgba(16, 185, 129, 0.16) 0%, rgba(5, 150, 105, 0.16) 50%, rgba(16, 185, 129, 0.10) 100%)"},neutral:{background:"rgba(156, 163, 175, 0.1)",border:"rgba(156, 163, 175, 0.2)"}},Ne={all:120,specific:100},Te=24,Re=80,ze=20,qe=14,$e=40,Ve=40,Ae={cover:(e,t)=>({"--palette-primary-darkerChannel":e,backgroundImage:t||"linear-gradient(90deg, rgba(var(--palette-primary-darkerChannel) / 22%), rgba(var(--palette-primary-darkerChannel) / 10%))",backgroundColor:"hsl(var(--foreground) / 0.02)",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}),body:{display:"none"},title:{backgroundColor:"rgba(255, 255, 255, 0.25)",borderRadius:8,backdropFilter:"blur(4px)"},tag:{backgroundColor:"rgba(255, 255, 255, 0.2)",borderRadius:9999,backdropFilter:"blur(4px)",border:"1px solid rgba(255,255,255,0.3)"},description:{backgroundColor:"rgba(255, 255, 255, 0.2)",borderRadius:4,backdropFilter:"blur(4px)"},avatar:e=>{const t=e?Me.allVendors:Me.specific;return{backgroundColor:t.background,borderRadius:12,border:`1px solid ${t.border}`}},searchInput:{backgroundColor:Me.neutral.background,borderRadius:8,border:`1px solid ${Me.neutral.border}`},button:{backgroundColor:Me.neutral.background,borderRadius:8,border:`1px solid ${Me.neutral.border}`}},Ke=(e={},i=null)=>t.jsx("div",{className:"animate-pulse",style:e},i),Fe=e.memo(({isAllVendors:e=!1,isMobile:i=!1})=>{const r=t.jsx(h,{className:"pricing-header-card !rounded-2xl shadow-sm border-0",bodyStyle:Ae.body,cover:t.jsx("div",{className:"relative h-full",style:Ae.cover(e?Me.allVendors.primary:Me.specific.primary,e?Me.allVendors.gradient:Me.specific.gradient),children:t.jsxs("div",{className:"relative z-10 h-full flex items-center justify-between p-4",children:[t.jsxs("div",{className:"flex-1 min-w-0 mr-4",children:[t.jsxs("div",{className:"flex flex-row flex-wrap items-center gap-2 sm:gap-3 mb-2",children:[Ke({...Ae.title,width:e?Ne.all:Ne.specific,height:Te},"title"),Ke({...Ae.tag,width:Re,height:ze},"tag")]}),t.jsxs("div",{className:"space-y-2",children:[Ke({...Ae.description,width:"100%",height:qe},"desc1"),Ke({...Ae.description,backgroundColor:"rgba(255, 255, 255, 0.15)",width:"75%",height:qe},"desc2")]})]}),t.jsx("div",{className:"flex-shrink-0 w-16 h-16 rounded-2xl bg-white/90 shadow-md backdrop-blur-sm flex items-center justify-center",children:Ke({...Ae.avatar(e),width:$e,height:Ve},"avatar")})]})})});return t.jsx(o,{loading:!0,active:!0,placeholder:r})});Fe.displayName="PricingVendorIntroSkeleton",e.memo(({loading:e=!1,filterVendor:i,...r})=>C(e)?t.jsx(Fe,{isAllVendors:"all"===i,isMobile:r.isMobile}):t.jsx(Ce,{filterVendor:i,...r})).displayName="PricingVendorIntroWithSkeleton";const Ee=e.memo(({selectedRowKeys:i=[],copyText:r,handleChange:o,handleCompositionStart:a,handleCompositionEnd:n,isMobile:s=!1,searchValue:d="",setShowFilterModal:c,showWithRecharge:p,setShowWithRecharge:m,currency:x,setCurrency:h,showRatio:f,setShowRatio:b,viewMode:y,setViewMode:j,tokenUnit:w,setTokenUnit:I,t:k})=>{const _=e.useCallback(()=>{c?.(!0)},[c]),P=e.useCallback(()=>{j?.("table"===y?"card":"table")},[y,j]),S=e.useCallback(()=>{I?.("K"===w?"M":"K")},[w,I]);return e.useCallback(e=>{m?.(e)},[m]),t.jsxs("div",{className:"flex items-center gap-2 w-full",children:[t.jsx("div",{className:"flex-1",children:t.jsx(g,{prefix:t.jsx(z,{size:16}),placeholder:k("æ¨¡ç³æç´¢æ¨¡ååç§°"),value:d,onCompositionStart:a,onCompositionEnd:n,onChange:o,showClear:!0})}),!s&&t.jsxs(t.Fragment,{children:[t.jsx(u,{layout:"vertical",margin:"8px"}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:"text-sm text-gray-600",children:k("åç")}),t.jsx(v,{checked:f,onChange:b})]}),t.jsx(l,{theme:"table"===y?"solid":"outline",type:"table"===y?"primary":"tertiary",onClick:P,children:k("è¡¨æ ¼è§å¾")}),t.jsx(l,{theme:"K"===w?"solid":"outline",type:"K"===w?"primary":"tertiary",onClick:S,children:w})]}),s&&t.jsx(l,{theme:"outline",type:"tertiary",icon:t.jsx(q,{size:16}),onClick:_,children:k("çé")})]})});
1Ee.displayName="SearchActions";const We=e.memo(({selectedRowKeys:i,copyText:r,handleChange:o,handleCompositionStart:a,handleCompositionEnd:n,isMobile:s,sidebarProps:l,filterVendor:d,models:c,filteredModels:u,loading:p,searchValue:m,showWithRecharge:x,setShowWithRecharge:h,currency:g,setCurrency:v,showRatio:f,setShowRatio:b,viewMode:y,setViewMode:j,tokenUnit:w,setTokenUnit:I,t:k})=>{const[_,P]=e.useState(!1);return t.jsx(t.Fragment,{children:s?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"w-full",children:t.jsx(Ee,{selectedRowKeys:i,copyText:r,handleChange:o,handleCompositionStart:a,handleCompositionEnd:n,isMobile:s,searchValue:m,setShowFilterModal:P,showWithRecharge:x,setShowWithRecharge:h,currency:g,setCurrency:v,showRatio:f,setShowRatio:b,viewMode:y,setViewMode:j,tokenUnit:w,setTokenUnit:I,loading:p,t:k})}),t.jsx(_e,{visible:_,onClose:()=>P(!1),sidebarProps:l,t:k})]}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"px-3 mt-3",children:t.jsx("div",{className:"pricing-search-row",children:t.jsx(Ee,{selectedRowKeys:i,copyText:r,handleChange:o,handleCompositionStart:a,handleCompositionEnd:n,isMobile:!1,searchValue:m,setShowFilterModal:P,showWithRecharge:x,setShowWithRecharge:h,currency:g,setCurrency:v,showRatio:f,setShowRatio:b,viewMode:y,setViewMode:j,tokenUnit:w,setTokenUnit:I,t:k})})}),t.jsx(_e,{visible:_,onClose:()=>P(!1),sidebarProps:l,t:k})]})})});We.displayName="PricingTopSection";const Le=e=>{if(!e)return"-";const i=e.split(",").filter(e=>e.trim());return ce({items:i,renderItem:(e,i)=>t.jsx(d,{color:G(e.trim()),shape:"circle",size:"small",children:e.trim()},i),maxDisplay:3})},Oe=({filteredModels:i,loading:r,rowSelection:o,pageSize:n,setPageSize:s,selectedGroup:l,groupRatio:c,groupModelRatio:u,copyText:p,setModalImageUrl:m,setIsModalOpenurl:x,currency:g,tokenUnit:v,displayPrice:I,searchValue:k,showRatio:_,compactMode:P=!1,openModelDetail:S,t:C})=>{const M=le(),N=e.useRef(new WeakMap),T=e.useMemo(()=>(N.current=new WeakMap,(({t:e,selectedGroup:i,groupRatio:r,groupModelRatio:o,copyText:n,setModalImageUrl:s,setIsModalOpenurl:l,currency:c,tokenUnit:u,displayPrice:p,showRatio:m,isMobile:x=!1,priceDataCache:h})=>{const g=h||new WeakMap,v=e=>{let t=g.get(e);return t||(t=D({record:e,selectedGroup:i,groupRatio:r,groupModelRatio:o,tokenUnit:u,displayPrice:p,currency:c}),g.set(e,t)),t},b={title:e("å¯ç¨ç«¯ç¹ç±»å"),dataIndex:"supported_endpoint_types",render:(e,i,r)=>{return(o=e)&&0!==o.length?t.jsx(f,{wrap:!0,children:o.map((e,i)=>t.jsx(d,{color:G(e),shape:"circle",children:e},e))}):null;var o}},y={title:e("模ååç§°"),dataIndex:"model_name",render:(e,t,i)=>U(e,{onClick:()=>{n(e)}}),onFilter:(e,t)=>t.model_name.toLowerCase().includes(e.toLowerCase())},j={title:e("计费类å"),dataIndex:"quota_type",render:(i,r,o)=>{const a="aigc-video-vidu"===r.model_name||"aigc-video-kling"===r.model_name||"aigc-video-hailuo"===r.model_name||"aigc-template-effect-vidu"===r.model_name||"kling-motion-control"===r.model_name||"kling-avatar-image2video"===r.model_name||"viduq2"===r.model_name||"viduq1"===r.model_name||"vidu2.0"===r.model_name||"viduq2-turbo"===r.model_name||"viduq2-pro"===r.model_name||"viduq1-classic"===r.model_name||"audio1.0"===r.model_name||"vidu-tts"===r.model_name,n="doubao-seedance-2-0-260128"===r.model_name||"doubao-seedance-2-0-fast-260128"===r.model_name,s="doubao-seedream-5-0-260128"===r.model_name||"doubao-seedream-5-0-pro-260628"===r.model_name||r.model_name&&r.model_name.startsWith("doubao-seedream-5-0-pro"),l="qwen-image-3.0"===r.model_name||"qwen-image-3.0-pro"===r.model_name;return a?t.jsx(d,{color:"orange",shape:"circle",children:e("æç§è®¡è´¹")}):n?t.jsx(d,{color:"violet",shape:"circle",children:e("æé计费")}):s||l?t.jsx(d,{color:"cyan",shape:"circle",children:e("æå¼ 计费")}):function(e,i){switch(e){case 1:return t.jsx(d,{color:"teal",shape:"circle",children:i("ææ¬¡è®¡è´¹")});case 0:return t.jsx(d,{color:"violet",shape:"circle",children:i("æé计费")});default:return i("æªç¥")}}(parseInt(i),e)},sorter:(e,t)=>e.quota_type-t.quota_type},w={title:e("æè¿°"),dataIndex:"description",render:e=>de(e,200)},I={title:e("æ ç¾"),dataIndex:"tags",render:Le},k=[y,{title:e("ä¾åºå"),dataIndex:"vendor_name",render:(e,i)=>{return r=e,o=i.vendor_icon,r?t.jsx(d,{color:"white",shape:"circle",prefixIcon:L(o||"Layers",14),children:r}):"-";var r,o}}
1,w,I,j],_={title:()=>t.jsxs("div",{className:"flex items-center space-x-1",children:[t.jsx("span",{children:e("åç")}),t.jsx(a,{content:e("åçæ¯ä¸ºäºæ¹ä¾¿æ¢ç®ä¸åä»·æ ¼çæ¨¡å"),children:t.jsx($,{size:16,className:"text-blue-500 cursor-pointer",onClick:()=>{s("/ratio.png"),l(!0)}})})]}),dataIndex:"model_ratio",render:(i,r,o)=>{const a=parseFloat(r.completion_ratio.toFixed(3)),n=v(r);return t.jsxs("div",{className:"space-y-1",children:[t.jsxs("div",{className:"text-gray-700",children:[e("模ååç"),"ï¼",0===r.quota_type?i:e("æ ")]}),t.jsxs("div",{className:"text-gray-700",children:[e("è¡¥å
¨åç"),"ï¼",0===r.quota_type?a:e("æ ")]}),t.jsxs("div",{className:"text-gray-700",children:[e("åç»åç"),"ï¼",n?.usedGroupRatio??"-"]})]})}},P={title:e("模åä»·æ ¼"),dataIndex:"model_price",...x?{}:{fixed:"right"},render:(i,r,o)=>{const a=v(r);if(a.isPerToken)return t.jsx("div",{className:"space-y-1",children:a.isGeminiOmniTier?t.jsxs(t.Fragment,{children:[t.jsxs("div",{children:[e("è¾å
¥")," ",a.inputPrice," / 1",a.unitLabel," tokens"]}),t.jsxs("div",{children:[e("ææ¬è¾åº")," ",a.completionPrice," / 1",a.unitLabel," tokens"]}),t.jsxs("div",{children:[e("è§é¢è¾åº")," ",a.videoOutputPrice," / 1",a.unitLabel," tokens"]})]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{children:[e("è¾å
¥")," ",a.inputPrice," / 1",a.unitLabel," tokens"]}),t.jsxs("div",{children:[e("è¾åº")," ",a.completionPrice," / 1",a.unitLabel," ","tokens"]}),a.cacheCreation5mPrice?t.jsxs("div",{children:[e("5mç¼ååå»ºä»·æ ¼")," ",a.cacheCreation5mPrice," / 1",a.unitLabel," tokens"]}):a.cacheCreationPrice&&t.jsxs("div",{children:[e("ç¼ååå»ºä»·æ ¼")," ",a.cacheCreationPrice," / 1",a.unitLabel," tokens"]}),a.cacheCreation1hPrice&&t.jsxs("div",{children:[e("1hç¼ååå»ºä»·æ ¼")," ",a.cacheCreation1hPrice," / 1",a.unitLabel," tokens"]}),a.cacheHitPrice&&t.jsxs("div",{children:[e("ç¼åå½ä¸ä»·æ ¼")," ",a.cacheHitPrice," / 1",a.unitLabel," tokens"]})]})});if(a.isPerTime)return t.jsxs("div",{children:[e("ä»·æ ¼"),"ï¼",a.price,"/",a.timeUnit]});{const i=r.model_name?.startsWith("pixverse-")&&"pixverse-upload"!==r.model_name;return t.jsxs("div",{children:[e(i?"积ååä»·":"模åä»·æ ¼"),"ï¼",a.price]})}}},S=[...k];return S.push(b),m&&S.push(_),S.push(P),S})({t:C,selectedGroup:l,groupRatio:c,groupModelRatio:u,copyText:p,setModalImageUrl:m,setIsModalOpenurl:x,currency:g,tokenUnit:v,displayPrice:I,showRatio:_,isMobile:M,priceDataCache:N.current})),[C,l,c,u,p,m,x,g,v,I,_,M]),R=e.useMemo(()=>{const e=T.map(e=>"model_name"===e.dataIndex?{...e,filteredValue:k?[k]:[]}:e);return P?e.map(({fixed:e,...t})=>t):e},[T,k,P]);return e.useMemo(()=>t.jsx(h,{className:"!rounded-xl overflow-hidden",bordered:!1,children:t.jsx(b,{columns:R,dataSource:i,loading:r,rowSelection:o,scroll:P?void 0:{x:"max-content"},onRow:e=>({onClick:()=>S&&S(e),style:{cursor:"pointer"}}),empty:t.jsx(y,{image:t.jsx(w,{style:{width:150,height:150}}),darkModeImage:t.jsx(j,{style:{width:150,height:150}}),description:C("æç´¢æ ç»æ"),style:{padding:30}}),pagination:{defaultPageSize:30,pageSize:n,showSizeChanger:!0,pageSizeOptions:[30,60,90,120],onPageSizeChange:e=>s(e)}})}),[i,r,R,o,n,s,S,C,P])},Ue=({skeletonCount:e=100,rowSelection:i=!1,showRatio:r=!1})=>{const a=t.jsxs("div",{className:"px-3 pt-3",children:[t.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6 gap-3",children:Array.from({length:e}).map((e,i)=>t.jsxs("div",{className:"rounded-2xl border border-border",style:{padding:"14px 14px 0 14px",background:"hsl(var(--background))"},children:[t.jsxs("div",{className:"flex items-start justify-between mb-3",children:[t.jsx(o.Avatar,{size:"large",style:{width:56,height:56,borderRadius:16}}),t.jsxs("div",{className:"flex gap-1.5",children:[t.jsx(o.Button,{size:"small",style:{width:40,height:18,borderRadius:20}}),t.jsx(o.Button,{size:"small",style:{width:56,height:18,borderRadius:20}})]})]}),t.jsx(o.Title,{style:{width:100+i%3*30+"px",height:16,marginBottom:4}}),t.jsx(o.Title,{style:{width:60,height:12,marginBottom:8}}),t.jsx(o.Paragraph,{rows:2,style:{marginBottom:8},title:!1}),t.jsx(o.Title,{style:{width:120,height:12,marginBottom:8}}),t.jsx("div",{className:"flex gap-1.5 mb-2",children:Array.from({length:2+i%2}).map((e,i)=>t.jsx(o.Button,{size:"small",style:{width:50,height:16,borderRadius:20}},i))}),t.jsxs("div",{className:"flex gap-2 pt-2 pb-3 border-t border-border",children:[t.jsx(o.Button,{size:"small",style:{width:28,height:28,borderRadius:8}}),t.jsx(o.Button,{size:"small",style:{flex:1,height:28,borderRadius:8}})]})]},i))}),t.jsx("div",{className:"flex justify-center mt-6 py-4 border-t pricing-pagination-divider",children:t.jsx(o.Button,{style:{width:300,height:32}})})]});return t.jsx(o,{loading:!0,active:!0,placeholder:a})},Ge={"text-to-image":{text:"#7c3aed",bg:"rgba(124,58,237,0.08)",border:"rgba(124,58,237,0.22)"},"image-to-image":{text:"#2563eb",bg:"rgba(37,99,235,0.08)",border:"rgba(37,99,235,0.22)"}
1,"text-to-video":{text:"#ea580c",bg:"rgba(234,88,12,0.08)",border:"rgba(234,88,12,0.22)"},"image-to-video":{text:"#059669",bg:"rgba(5,150,105,0.08)",border:"rgba(5,150,105,0.22)"},"video-to-video":{text:"#db2777",bg:"rgba(219,39,119,0.08)",border:"rgba(219,39,119,0.22)"},"audio-to-video":{text:"#9333ea",bg:"rgba(147,51,234,0.08)",border:"rgba(147,51,234,0.22)"},"text-to-audio":{text:"#9333ea",bg:"rgba(147,51,234,0.08)",border:"rgba(147,51,234,0.22)"},"audio-to-audio":{text:"#9333ea",bg:"rgba(147,51,234,0.08)",border:"rgba(147,51,234,0.22)"},LLM:{text:"#0284c7",bg:"rgba(2,132,199,0.08)",border:"rgba(2,132,199,0.22)"}},De={text:"#64748b",bg:"rgba(100,116,139,0.08)",border:"rgba(100,116,139,0.22)"},He={label:"æé计费",dot:"#10b981"},Qe={label:"æå¼ 计费",dot:"#10b981"},Be={label:"æåç´ è®¡è´¹",dot:"#f59e0b"},Ye={label:"æè§é¢å°ºå¯¸è®¡è´¹",dot:"#f59e0b"},Je={label:"æç§è®¡è´¹",dot:"#f97316"},Xe={label:"æè§é¢æ¶é¿è®¡è´¹",dot:"#f97316"},Ze={label:"ææ¬¡è®¡è´¹",dot:"#64748b"},et=({filteredModels:i,loading:r,rowSelection:o,pageSize:n,setPageSize:s,currentPage:l,setCurrentPage:c,selectedGroup:u,groupRatio:p,groupModelRatio:m,copyText:h,setModalImageUrl:g,setIsModalOpenurl:v,currency:f,tokenUnit:b,displayPrice:k,showRatio:_,t:P,selectedRowKeys:S=[],setSelectedRowKeys:M,openModelDetail:N})=>{const T=C(r),R=(l-1)*n,z=i.slice(R,R+n),q=le(),[A]=e.useContext(H),K=!1!==A?.status?.model_cover_image_enabled,F=(e,i=40)=>{const r="flex items-center justify-center rounded-2xl bg-muted/40 border border-border/50 overflow-hidden flex-shrink-0",o={width:i+16,height:i+16};if(!e?.model_name)return t.jsx("div",{className:r,style:o,children:t.jsx(x,{size:"default",style:{width:i-4,height:i-4},children:"?"})});if(e.icon)return t.jsx("div",{className:r,style:o,children:L(e.icon,i)});if(e.vendor_icon)return t.jsx("div",{className:r,style:o,children:L(e.vendor_icon,i)});const a=e.model_name.slice(0,2).toUpperCase();return t.jsx("div",{className:r,style:o,children:t.jsx(x,{size:"default",style:{width:i,height:i,borderRadius:0,fontSize:Math.floor(.38*i),fontWeight:700,background:"hsl(var(--primary) / 0.12)",color:"hsl(var(--primary))"},children:a})})},E=e=>{if(!e.model_type)return null;const i=Ge[e.model_type]||De;return t.jsx("span",{style:{fontSize:10,color:i.text,background:i.bg,border:`1px solid ${i.border}`,borderRadius:20,padding:"1px 7px",fontWeight:600,letterSpacing:.2,whiteSpace:"nowrap",flexShrink:0},children:e.model_type})},W=e=>{if(!e.tags)return null;const i=e.tags.toLowerCase().split(",").map(e=>e.trim());return i.includes("new")||i.includes("æ°")?t.jsx("span",{style:{fontSize:9,color:"#fff",background:"#16a34a",borderRadius:4,padding:"1px 5px",fontWeight:700,flexShrink:0},children:"NEW"}):i.includes("hot")||i.includes("çé¨")?t.jsx("span",{style:{fontSize:9,color:"#fff",background:"#dc2626",borderRadius:4,padding:"1px 5px",fontWeight:700,flexShrink:0},children:"HOT"}):null};return T?t.jsx(Ue,{rowSelection:!!o,showRatio:_}):i&&0!==i.length?t.jsxs("div",{className:"px-3 pt-3",children:[t.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6 gap-3",children:z.map((e,i)=>{const r=(e=>e.key??e.model_name??e.id)(e),o=S.includes(r),n=D({record:e,selectedGroup:u,groupRatio:p,groupModelRatio:m,tokenUnit:b,displayPrice:k,currency:f}),s=K&&!!e.cover_image,l="doubao-seedream-4-0-250828"===(c=e).model_name||"doubao-seedream-4-5-251128"===c.model_name||"doubao-seedream-5-0-260128"===c.model_name||"doubao-seedream-5-0-pro-260628"===c.model_name||c.model_name&&c.model_name.startsWith("doubao-seedream-5-0-pro")||"qwen-image-3.0"===c.model_name||"qwen-image-3.0-pro"===c.model_name?Qe:"grok-imagine-video"===c.model_name||"grok-imagine-video-1.5-preview"===c.model_name||"kling-3.0-turbo"===c.model_name?Je:B(c.model_name)||0===c.quota_type?He:1===c.quota_type?Ze:2===c.quota_type?Be:3===c.quota_type?Ye:4===c.quota_type?Je:5===c.quota_type?
1Xe:6===c.quota_type?Qe:null;var c;const x=(e=>{if(!e.tags)return[];const t=new Set(["new","hot","æ°","çé¨"]);return e.tags.split(",").map(e=>e.trim()).filter(e=>e&&!t.has(e.toLowerCase()))})(e),y=e.step_ratios&&Array.isArray(e.step_ratios)&&e.step_ratios.length>0;return t.jsxs("div",{role:"button",tabIndex:0,onKeyDown:t=>"Enter"===t.key&&N&&N(e),onClick:()=>N&&N(e),className:"group relative flex flex-col rounded-2xl border bg-[hsl(var(--background))] transition-all duration-200 cursor-pointer hover:shadow-md hover:-translate-y-0.5 overflow-hidden "+(o?"border-primary/60 shadow-sm shadow-primary/10":"border-border hover:border-foreground/20"),style:{minHeight:270},children:[s&&t.jsxs("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:"16/9",background:"hsl(var(--muted))"},children:[t.jsx("img",{src:e.cover_image,alt:e.model_name_display||e.model_name,style:{width:"100%",height:"100%",objectFit:"cover",display:"block"},loading:"lazy",onError:e=>{e.currentTarget.style.display="none"}}),t.jsxs("div",{className:"absolute top-2 right-2 flex gap-1",children:[W(e),E(e)]})]}),t.jsxs("div",{className:"flex flex-col flex-1",style:{padding:"12px 14px 0 14px"},children:[!s&&t.jsxs("div",{className:"flex items-start justify-between mb-3",children:[F(e,40),t.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap justify-end",children:[W(e),E(e)]})]}),t.jsxs("div",{className:"mb-1.5",children:[t.jsx("h3",{className:"font-semibold text-sm leading-snug line-clamp-1 text-foreground",children:e.model_name_display||e.model_name}),e.vendor_name&&t.jsx("span",{className:"text-[11px] text-muted-foreground",children:e.vendor_name}),e.total_groups>1&&t.jsx(d,{color:"blue",shape:"circle",size:"small",style:{fontSize:10,marginTop:2},children:e.group_name||e.current_group})]}),t.jsx("p",{className:"text-[11.5px] leading-relaxed text-muted-foreground line-clamp-3 mb-2 flex-1",style:{minHeight:42},children:e.description||""}),t.jsx("div",{className:"text-[11px] flex flex-col gap-0.5 mb-2",style:{color:"hsl(var(--foreground) / 0.75)"},children:Q(n,P)}),_&&t.jsxs("div",{className:"mb-2 rounded-lg px-2.5 py-2",style:{background:"hsl(var(--muted) / 0.6)",border:"1px solid hsl(var(--border))"},children:[t.jsxs("div",{className:"flex items-center gap-1 mb-1.5",children:[t.jsx("span",{className:"text-xs font-semibold",style:{color:"hsl(var(--foreground) / 0.75)"},children:P("åçä¿¡æ¯")}),t.jsx(a,{content:P("åçæ¯ä¸ºäºæ¹ä¾¿æ¢ç®ä¸åä»·æ ¼çæ¨¡å"),children:t.jsx($,{size:12,style:{color:"hsl(var(--primary))",cursor:"pointer"},onClick:e=>{e.stopPropagation(),g("/ratio.png"),v(!0)}})})]}),t.jsxs("div",{className:"grid grid-cols-3 gap-1 text-xs",style:{color:"hsl(var(--foreground) / 0.80)"},children:[t.jsxs("div",{children:[t.jsxs("span",{style:{color:"hsl(var(--foreground) / 0.50)"},children:[P("模å")," "]}),0===e.quota_type?e.model_ratio:P("æ ")]}),t.jsxs("div",{children:[t.jsxs("span",{style:{color:"hsl(var(--foreground) / 0.50)"},children:[P("è¡¥å
¨")," "]}),0===e.quota_type?parseFloat((e.completion_ratio||0).toFixed(3)):P("æ ")]}),t.jsxs("div",{children:[t.jsxs("span",{style:{color:"hsl(var(--foreground) / 0.50)"},children:[P("åç»")," "]}),n?.usedGroupRatio??"-"]})]})]}),(x.length>0||y||l)&&t.jsxs("div",{className:"flex items-center gap-1 flex-wrap mb-2",children:[y&&0===e.quota_type&&t.jsx("span",{style:{fontSize:10,color:"#d97706",background:"rgba(217,119,6,0.1)",border:"1px solid rgba(217,119,6,0.25)",borderRadius:20,padding:"1px 6px"},children:P("é¶æ¢¯")}),x.slice(0,3).map((e,i)=>t.jsx("span",{style:{fontSize:10,color:"hsl(var(--foreground) / 0.60)",background:"hsl(var(--foreground) / 0.05)",border:"1px solid hsl(var(--border))",borderRadius:20,padding:"1px 6px"},children:e},i)),l&&t.jsxs("span",{style:{fontSize:10,color:l.dot,background:`${l.dot}14`,border:`1px solid ${l.dot}38`,borderRadius:20,padding:"1px 6px",marginLeft:"auto"},children:[t.jsx("span",{style:{display:"inline-block",width:5,height:5,borderRadius:"50%",background:l.dot,verticalAlign:"middle",marginRight:3,marginBottom:1}}),P(l.label)]})]}),t.jsx("div",{className:"flex items-center gap-2 border-t pt-2 pb-3 mt-auto",style:{borderColor:"hsl(var(--border))"},children:t.jsx(a,{content:P("å¤å¶æ¨¡åå"),position:"top",children:t.jsx("button",{type:"button",onClick:t=>{t.stopPropagation(),h(e.model_name)},className:"flex items-center justify-center w-7 h-7 rounded-lg border border-border text-muted-foreground hover:text-foreground hover:bg-muted/60 transition-colors flex-shrink-0",children:t.jsx(V,{size:12})})})})]})]},r||i)})}),i.length>0&&t.jsx("div",{className:"flex justify-center mt-5 py-3 border-t pricing-pagination-divider",children:t.jsx(I,{currentPage:l,pageSize:n,total:i.length,showSizeChanger:!0,pageSizeOptions:[30,60,90,120],size:q?"small":"default",showQuickJumper:q,onPageChange:e=>c(e),onPageSizeChange:e=>{s(e),c(1)}})})]}):t.jsx("div",{className:"flex justify-center items-center py-20",children:t.jsx(y,{image:t.jsx(w,{style:{width:150,height:150}}),darkModeImage:t.jsx(j,{style:{width:150,height:150}}),description:P("æç´¢æ ç»æ")})})}
1,tt=({viewMode:e="table",...i})=>"card"===e?t.jsx(et,{...i}):t.jsx(Oe,{...i}),it=({isMobile:e,sidebarProps:i,...r})=>t.jsxs("div",{className:e?"pricing-content-mobile":"pricing-scroll-hide",children:[t.jsx("div",{className:"pricing-search-header",children:t.jsx(We,{...r,isMobile:e,sidebarProps:i,showWithRecharge:i.showWithRecharge,setShowWithRecharge:i.setShowWithRecharge,currency:i.currency,setCurrency:i.setCurrency,showRatio:i.showRatio,setShowRatio:i.setShowRatio,viewMode:i.viewMode,setViewMode:i.setViewMode,tokenUnit:i.tokenUnit,setTokenUnit:i.setTokenUnit})}),t.jsx("div",{className:e?"pricing-view-container-mobile":"pricing-view-container",children:t.jsx(tt,{...r,viewMode:i.viewMode})})]}),{Paragraph:rt}=k,ot={"text-to-image":{text:"#7c3aed",bg:"rgba(124,58,237,0.10)",border:"rgba(124,58,237,0.25)"},"image-to-image":{text:"#2563eb",bg:"rgba(37,99,235,0.10)",border:"rgba(37,99,235,0.25)"},"text-to-video":{text:"#ea580c",bg:"rgba(234,88,12,0.10)",border:"rgba(234,88,12,0.25)"},"image-to-video":{text:"#059669",bg:"rgba(5,150,105,0.10)",border:"rgba(5,150,105,0.25)"},"video-to-video":{text:"#db2777",bg:"rgba(219,39,119,0.10)",border:"rgba(219,39,119,0.25)"},"audio-to-video":{text:"#9333ea",bg:"rgba(147,51,234,0.10)",border:"rgba(147,51,234,0.25)"},"text-to-audio":{text:"#9333ea",bg:"rgba(147,51,234,0.10)",border:"rgba(147,51,234,0.25)"},"audio-to-audio":{text:"#9333ea",bg:"rgba(147,51,234,0.10)",border:"rgba(147,51,234,0.25)"},LLM:{text:"#0284c7",bg:"rgba(2,132,199,0.10)",border:"rgba(2,132,199,0.25)"}},at={text:"#64748b",bg:"rgba(100,116,139,0.10)",border:"rgba(100,116,139,0.25)"},nt=({modelData:e,size:i=48})=>{const r={width:i,height:i,borderRadius:Math.floor(.28*i),display:"flex",alignItems:"center",justifyContent:"center",background:"hsl(var(--background) / 0.9)",border:"1px solid hsl(var(--border))",flexShrink:0,overflow:"hidden"},o=Math.floor(.6*i);if(e?.icon)return t.jsx("div",{style:r,children:L(e.icon,o)});if(e?.vendor_icon)return t.jsx("div",{style:r,children:L(e.vendor_icon,o)});const a=(e?.model_name||"AI").slice(0,2).toUpperCase();return t.jsx("div",{style:{...r,fontSize:Math.floor(.32*i),fontWeight:700,color:"hsl(var(--primary))",background:"hsl(var(--primary) / 0.10)"},children:a})},st=({modelData:e,vendorsMap:i={},t:r})=>{const o=ot[e?.model_type]||(e?.model_type?at:null),a=(e?.tags||"").split(",").map(e=>e.trim()).filter(Boolean),n=a.some(e=>["new","æ°"].includes(e.toLowerCase())),s=a.some(e=>["hot","çé¨"].includes(e.toLowerCase()));return t.jsxs("div",{className:"flex items-center gap-3 min-w-0 w-full",children:[t.jsx(nt,{modelData:e,size:44}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[t.jsx(rt,{className:"!mb-0 !text-base !font-bold",copyable:{content:e?.model_name||"",onCopy:()=>Y(r("å·²å¤å¶æ¨¡ååç§°"))},children:t.jsx("span",{className:"whitespace-normal break-all",children:e?.model_name_display||e?.model_name||r("æªç¥æ¨¡å")})}),n&&t.jsx("span",{style:{fontSize:10,color:"#fff",background:"#16a34a",borderRadius:4,padding:"1px 5px",fontWeight:700},children:"NEW"}),s&&t.jsx("span",{style:{fontSize:10,color:"#fff",background:"#dc2626",borderRadius:4,padding:"1px 5px",fontWeight:700},children:"HOT"}),o&&t.jsx("span",{style:{fontSize:11,color:o.text,background:o.bg,border:`1px solid ${o.border}`,borderRadius:20,padding:"1px 8px",fontWeight:600},children:e.model_type})]}),e?.vendor_name&&t.jsx("div",{className:"text-xs mt-0.5",style:{color:"hsl(var(--foreground) / 0.50)"},children:e.vendor_name})]})]})},{Text:lt}=k,dt=["#7c3aed","#2563eb","#ea580c","#059669","#db2777","#9333ea","#0284c7","#b45309","#dc2626","#0369a1"],ct=({children:e,subtitle:i})=>t.jsxs("div",{className:"mb-3",children:[t.jsx("span",{className:"text-sm font-semibold text-foreground",children:e}),i&&t.jsx("div",{className:"text-xs mt-0.5",style:{color:"hsl(var(--foreground) / 0.45)"},children:i})]}),ut=({modelData:e,vendorsMap:i={},t:r})=>{const o=J(),a=e?.description||e?.vendor_description?e.description||`${r("ä¾åºåä¿¡æ¯ï¼")}${e.vendor_description}`:r("ææ æ¨¡åæè¿°"),n=(e?.tags||"").split(",").map(e=>
1e.trim()).filter(Boolean).filter(e=>!["new","hot","æ°","çé¨"].includes(e.toLowerCase()));return t.jsxs("div",{className:"mb-5",children:[t.jsx(ct,{subtitle:r("模åçè¯¦ç»æè¿°ååºæ¬ç¹æ§"),children:r("åºæ¬ä¿¡æ¯")}),t.jsx("p",{className:"text-sm leading-relaxed mb-3",style:{color:"hsl(var(--foreground) / 0.75)"},children:a}),n.length>0&&t.jsx("div",{className:"flex flex-wrap gap-1.5 mb-1",children:n.map((e,i)=>{const r=(o=e,dt[Math.abs(o.split("").reduce((e,t)=>(e<<5)-e+t.charCodeAt(0),0))%dt.length]);var o;return t.jsx("span",{style:{fontSize:11,color:r,background:`${r}14`,border:`1px solid ${r}35`,borderRadius:20,padding:"2px 9px",fontWeight:500},children:e},i)})}),e?.model_name&&["speech-2.8-hd","speech-2.8-turbo","speech-2.6-hd","speech-2.6-turbo","speech-02-hd","speech-02-turbo"].includes(e.model_name)&&t.jsx("div",{className:"mt-4 rounded-xl p-4",style:{background:"rgba(234,88,12,0.06)",border:"1px solid rgba(234,88,12,0.20)"},children:t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx(A,{size:16,style:{color:"#ea580c",flexShrink:0,marginTop:1}}),t.jsxs("div",{children:[t.jsx("div",{className:"text-sm font-semibold mb-2",style:{color:"#ea580c"},children:r("èªå®ä¹é³è²é¢å¤è´¹ç¨è¯´æ")}),t.jsxs("div",{className:"text-xs leading-relaxed space-y-2",style:{color:"hsl(var(--foreground) / 0.75)"},children:[t.jsxs("div",{children:[t.jsx(lt,{strong:!0,className:"text-xs",children:r("ð¨ é³è²è®¾è®¡ï¼")}),t.jsxs("div",{className:"ml-3 mt-1 space-y-0.5",children:[t.jsxs("div",{children:["⢠",r("è·å¾æ°è®¾è®¡çé³è²æ¶ï¼ä¸ä¼ç«å³æ¶åè´¹ç¨")]}),t.jsxs("div",{children:["⢠",r("é³è²çæè´¹ç¨å°å¨é¦æ¬¡ä½¿ç¨æ¤é³è²è¿è¡è¯é³åææ¶æ¶å")]}),t.jsxs("div",{children:["⢠",t.jsx("span",{style:{color:"#dc2626",fontWeight:600},children:r("é¢å¤è´¹ç¨ï¼{{currencySymbol}}15.8/é³è²ï¼é¦æ¬¡ä½¿ç¨æ¶ï¼",{currencySymbol:o})})]})]})]}),t.jsxs("div",{children:[t.jsx(lt,{strong:!0,className:"text-xs",children:r("ð¤ å¿«éå¤å»ï¼")}),t.jsxs("div",{className:"ml-3 mt-1 space-y-0.5",children:[t.jsxs("div",{children:["⢠",r("è·å¾å¤å»é³è²æ¶ï¼ä¸ä¼ç«å³æ¶åè´¹ç¨")]}),t.jsxs("div",{children:["⢠",r("é³è²å¤å»è´¹ç¨å°å¨é¦æ¬¡ä½¿ç¨æ¤å¤å»é³è²è¿è¡è¯é³åææ¶æ¶å")]}),t.jsxs("div",{children:["⢠",t.jsx("span",{style:{color:"#dc2626",fontWeight:600},children:r("é¢å¤è´¹ç¨ï¼{{currencySymbol}}15.8/é³è²ï¼é¦æ¬¡ä½¿ç¨æ¶ï¼",{currencySymbol:o})})]})]})]}),t.jsxs("div",{className:"rounded-lg p-2 mt-2",style:{background:"hsl(var(--muted) / 0.5)"},children:["ð¡ ",r("æç¤ºï¼ä½¿ç¨å®æ¹é¢ç½®é³è²ä¸ä¼äº§çé¢å¤è´¹ç¨")]})]})]})]})}),B(e?.model_name)&&t.jsx("div",{className:"mt-4 rounded-xl p-4",style:{background:"rgba(16,185,129,0.06)",border:"1px solid rgba(16,185,129,0.22)"},children:t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx(A,{size:16,style:{color:"#059669",flexShrink:0,marginTop:1}}),t.jsxs("div",{children:[t.jsx("div",{className:"text-sm font-semibold mb-2",style:{color:"#059669"},children:r("计费说æ")}),t.jsxs("div",{className:"text-xs leading-relaxed space-y-1",style:{color:"hsl(var(--foreground) / 0.75)"},children:[t.jsxs("div",{children:["⢠",r("æä¸æ¸¸å®é
token ç¨éå䏿¡£ç»ç®ï¼è¾å
¥ãææ¬è¾åºï¼å«æèï¼ãè§é¢è¾åº")]}),t.jsxs("div",{children:["⢠",r("è¾å
¥ï¼ææ¬/å¾ç/è§é¢/é³é¢ï¼ç»ä¸æè¾å
¥æ¡£è®¡ä»·")]}),t.jsxs("div",{children:["⢠",r("æäº¤æ¶æä¿å®ä¼°ç®é¢æ£ï¼å®æåæçå®ç¨éå¤éå°è¡¥")]})]})]})]})})]})},pt={POST:{color:"#059669",bg:"rgba(5,150,105,0.10)",border:"rgba(5,150,105,0.25)"},GET:{color:"#2563eb",bg:"rgba(37,99,235,0.10)",border:"rgba(37,99,235,0.25)"}},mt=()=>t.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),t.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),xt=()=>t.jsx("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"20 6 9 17 4 12"})});function ht({text:i,t:r}){const[o,a]=e.useState(!1);return t.jsx("button",{onClick:async e=>{e.stopPropagation();try{await navigator.clipboard.writeText(i),a(!0),setTimeout(()=>a(!1),1800)}catch{const e=document.createElement("textarea");e.value=i,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),a(!0),setTimeout(()=>a(!1),1800)}},title:r(o?"å·²å¤å¶":"å¤å¶è·¯å¾"),style:{flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",width:22,height:22,borderRadius:5,border:"none",background:o?"rgba(5,150,105,0.12)":"transparent",color:o?"#059669":"hsl(var(--foreground) / 0.35)",cursor:"pointer",transition:"background 0.15s, color 0.15s",padding:0},onMouseEnter:e=>{o||(e.currentTarget.style.background="hsl(var(--foreground) / 0.08)",e.currentTarget.style.color="hsl(var(--foreground) / 0.65)")},onMouseLeave:e=>{o||(e.currentTarget.style.background="transparent",e.currentTarget.style.color="hsl(var(--foreground) / 0.35)")},children:o?t.jsx(xt,{}):t.jsx(mt,{})})}const gt=({modelData:e,endpointMap:i={},t:r})=>{const o=e?.supported_endpoint_types||[];return 0===o.length?null:t.jsxs("div",{className:"mb-5",children:[t.jsxs("div",{className:"mb-3",children:[t.jsx("span",{className:"text-sm font-semibold text-foreground",children:r("API端ç¹")}),t.jsx("div",{className:"text-xs mt-0.5",style:{color:"hsl(var(--foreground) / 0.45)"},children:r("æ¨¡åæ¯æçæ¥å£ç«¯ç¹ä¿¡æ¯")})]}),t.jsx("div",{className:"rounded-xl overflow-hidden border",style:{borderColor:"hsl(var(--border))"},children:o.map((a,n)=>{const s=i[a]||{};let l=s.path||"";l.includes("{model}")&&(l=l.replaceAll("{model}",e?.model_name||""));const d=s.method||"POST",c=pt[d]||pt.POST;return t.jsxs("div",{className:"flex items-start gap-3 px-4 py-2.5",style:{borderBottom:n<o.length-1?"1px solid hsl(var(--border))":"none",background:n%2==0?"transparent":"hsl(var(--foreground) / 0.015)"}
1,children:[t.jsx("span",{style:{fontSize:10,color:c.color,background:c.bg,border:`1px solid ${c.border}`,borderRadius:4,padding:"1px 6px",fontWeight:700,flexShrink:0,marginTop:2},children:d}),t.jsx("span",{className:"text-sm font-medium flex-shrink-0",style:{color:"hsl(var(--foreground) / 0.80)",minWidth:80,marginTop:1},children:a}),l&&t.jsx("span",{className:"text-xs font-mono flex-1 min-w-0 break-all",style:{color:"hsl(var(--foreground) / 0.55)",lineHeight:"1.6",marginTop:1},children:l}),l&&t.jsx(ht,{text:l,t:r})]},a)})})]})},{Text:vt}=k,ft=["wan2.7-image-pro","qwen-image-2.0-2026-03-03","qwen-image-3.0","qwen-image-3.0-pro","doubao-seedream-4-0-250828","doubao-seedream-4-5-251128","doubao-seedream-5-0-260128","doubao-seedream-5-0-pro-260628","bytedance/seedream-4","black-forest-labs/flux-fill-dev","fal-ai/qwen-image-edit-lora","fal-ai/qwen-image-edit-plus","fal-ai/imagen4/preview","fal-ai/bytedance/seedream/v4/edit","fal-ai/bytedance/seedream/v4/text-to-image","fal-ai/flux-pro/kontext/max/multi","fal-ai/flux-pro/kontext/max","fal-ai/flux-pro/kontext/text-to-image","fal-ai/flux-pro/kontext","fal-ai/flux-1/schnell/redux","fal-ai/flux-1/dev/redux","fal-ai/flux-1/dev/image-to-image","fal-ai/flux-1/dev","fal-ai/nano-banana","fal-ai/nano-banana/edit","lucataco/flux-schnell-lora","lucataco/flux-dev-lora","stability-ai/stable-diffusion","stability-ai/sdxl","stability-ai/stable-diffusion-inpainting","stability-ai/stable-diffusion-img2img"],bt=["MiniMax-Voice-Design","speech-01","speech-01-hd","speech-01-turbo","speech-02","speech-02-turbo","speech-2.6-turbo","speech-2.6-hd","speech-2.8-hd","speech-2.8-turbo"],yt={"480p":414720,"720p":878592,"1080p":2088960},jt=({record:e,priceData:t})=>{const i=e?.model_name||"";if(te.has(i))return t?.perCreditPrice??null;const r=ie[i];if(!r)return null;const o=t?.[r.source];return"number"!=typeof o||Number.isNaN(o)?null:o*r.multiplier},wt=[{duration:"â¤5s",c360:45,c540:45,c720:60,c1080:120},{duration:"6-10s",c360:68,c540:68,c720:90,c1080:180},{duration:"11-15s",c360:90,c540:90,c720:120,c1080:240},{duration:"16-20s",c360:113,c540:113,c720:150,c1080:300}];function It({perCredit:e,formatPrice:i,t:r,pixverseTplStats:o,actions:a,isImageTemplate:n}){const s={marginTop:"10px",marginBottom:"4px",fontSize:"13px",fontWeight:600},l=[{title:r("æ¶é¿æ¡£"),dataIndex:"duration"},{title:"360p",render:(t,r)=>`${r.c360} (${i(e*r.c360)})`},{title:"540p",render:(t,r)=>`${r.c540} (${i(e*r.c540)})`},{title:"720p",render:(t,r)=>`${r.c720} (${i(e*r.c720)})`},{title:"1080p",render:(t,r)=>`${r.c1080} (${i(e*r.c1080)})`}],d=a.join(" / ");let c;if(o)if(o.count){const{count:a,min_credit:n,max_credit:l,min_example:d,max_example:u,samples:p}=o,m=[{label:r("ç¹ææ¨¡æ¿æ»æ°"),value:String(a)},{label:r("æä½å次积å"),value:`${n} (${i(e*n)})${d?` â ${d.display_name||d.template_id} · ${d.desc_key}`:""}`},{label:r("æé«å次积å"),value:`${l} (${i(e*l)})${u?` â ${u.display_name||u.template_id} · ${u.desc_key}`:""}`}],x=(p||[]).map((t,r)=>({key:`${t.template_id}-${r}`,tpl:t.display_name||String(t.template_id),descKey:t.desc_key,credits:t.credit,price:i(e*t.credit)}));c=t.jsxs("div",{children:[t.jsx(b,{columns:[{title:r("维度"),dataIndex:"label"},{title:r("å¼"),dataIndex:"value"}],dataSource:m,pagination:!1,size:"small",rowKey:"label"}),x.length>0&&t.jsxs(t.Fragment,{children:[t.jsx("div",{style:{...s,marginTop:"8px"},children:r("æ½æ ·ä»£è¡¨æ¨¡æ¿ï¼æä»·æ ¼åä½ï¼")}),t.jsx(b,{columns:[{title:r("模æ¿"),dataIndex:"tpl"},{title:r("æ¡£ä½"),dataIndex:"descKey"},{title:r("积å"),dataIndex:"credits"},{title:r("ä»·æ ¼"),dataIndex:"price"}],dataSource:x,pagination:!1,size:"small",rowKey:"key"})]})]})}else c=t.jsx("div",{style:{fontSize:"12px",color:"#999"},children:r("ç¹ææ± æ°æ®æä¸å¯ç¨ï¼è¯·æä¸æ¹éç¨å
åºè¡¨å¯¹è´¦ï¼æç»æ£è´¹ä»¥ä¸æ¸¸ credits 为å")});else c=t.jsx("div",{style:{fontSize:"12px",color:"#999"},children:r("ç¹ææ± æ°æ®å è½½ä¸â¦")});return t.jsxs("div",{children:[t.jsx("div",{style:{...s,marginTop:n?0:"14px"},children:n?r("ç¹ææ¨¡æ¿ï¼template_id å¿
å¡«ï¼æ¬æ¥å£ä»
æç¹æè®¡è´¹ï¼"):r("ç¹ææ¨¡æ¿ï¼template_id å¯éï¼ä»
")+d+r(" æ¯æï¼")}),c,t.jsx("div",{style:s,children:r("éç¨è¡¨")}),t.jsx(b,{columns:l,dataSource:wt,pagination:!1,size:"small",rowKey:"duration"})]})}const kt=({modelData:r,groupRatio:o,groupModelRatio:a,currency:n,tokenUnit:s,displayPrice:l,showRatio:c,usableGroup:u,autoGroups:p=[],usdExchangeRate:m,priceRate:h,showOfficialDiscount:g=!0,t:v})=>{const f=le(),y=Array.isArray(r?.enable_groups)?r.enable_groups:[],j=p.filter(e=>y.includes(e)),w=Array.isArray(r?.step_ratios)&&r.step_ratios.length>0,I=e.useRef(null),k=e.useRef(null),_=e.useRef(null),P=e.useRef(null),S=e.useRef(null),C=e.useRef(null),N=e.useRef(0),T=e.useRef(0),R=e.useRef(null),z=e.useRef(null),q=e.useRef({left:0,right:0}),[$,V]=e.useState(0),A=e.useCallback((e,t)=>{const i=q.current;i.left===e&&i.right===t||(q.current={left:e,right:t},_.current?.style.setProperty("--rail-glow",String(e)),P.current?.style.setProperty("--rail-glow",String(t)))},[]),W=e.useCallback(e=>{_.current?.classList.toggle("pricing-table-scroll-rail--triggered","left"===e),P.current?.classList.toggle("pricing-table-scroll-rail--triggered","right"===e)},[]),L=e.useCallback(e=>{if(N.current<0)return void A(1,0);if(N.current>0)return void A(0,1);const t=k.current;if(!t)return;const i=t.getBoundingClientRect();if(i.width<=0)return;const r=e-i.left,o=.42*i.width,a=r<=o?1-r/o:0,n=r>
1=i.width-o?(r-(i.width-o))/o:0;A(a,n)},[A]),O=e.useCallback(e=>{R.current=e,z.current=e,null==C.current&&(C.current=requestAnimationFrame(()=>{C.current=null;const e=z.current;null!=e&&L(e)}))},[L]),U=e.useCallback(e=>{O(e.clientX)},[O]),G=e.useCallback(()=>{0===N.current&&A(0,0)},[A]),H=e.useCallback(e=>{k.current?.classList.toggle("pricing-table-scroll-wrap--active",e)},[]),Q=e.useCallback(()=>{N.current=0,T.current=0,null!=S.current&&(cancelAnimationFrame(S.current),S.current=null),H(!1),W(null),null!=R.current?L(R.current):A(0,0)},[H,W,L,A]),Y=e.useCallback(()=>{const e=(performance.now()-T.current)/1e3,t=Math.min(1,e/1.8);return 2.5+11.5*t*t},[]),J=e.useCallback(()=>{const e=N.current;if(!e)return;const t=Y(),i=I.current;i&&i.querySelectorAll(".semi-table-body, .semi-table-body-outer, .semi-table-content").forEach(i=>{i.scrollWidth<=i.clientWidth+1||(i.scrollLeft+=e*t)}),S.current=requestAnimationFrame(J)},[Y]),te=e.useCallback(e=>{Q(),N.current=e,T.current=performance.now(),H(!0);const t=e<0?"left":"right";W(t),A("left"===t?1:0,"right"===t?1:0),S.current=requestAnimationFrame(J)},[J,Q,H,W,A]),ie=e.useCallback(e=>({onMouseDown:t=>{t.preventDefault(),te(e)},onTouchStart:()=>{te(e)},onMouseUp:Q,onTouchEnd:Q,onTouchCancel:Q}),[te,Q]);e.useEffect(()=>{if(!w)return;const e=()=>Q();return window.addEventListener("mouseup",e),window.addEventListener("touchend",e),()=>{null!=C.current&&(cancelAnimationFrame(C.current),C.current=null),Q(),window.removeEventListener("mouseup",e),window.removeEventListener("touchend",e)}},[w,Q]),e.useEffect(()=>{if(!w)return;const e=I.current;if(!e)return;const t=()=>{const t=Math.round(e.getBoundingClientRect().height);t>0&&V(e=>e===t?e:t)};let i;t(),"undefined"!=typeof ResizeObserver&&(i=new ResizeObserver(()=>{t()}),i.observe(e));const r=[50,200,500].map(e=>setTimeout(t,e));return()=>{i?.disconnect(),r.forEach(clearTimeout)}},[w,r?.model_name,r?.enable_groups,c]);const[re,oe]=e.useState(null);e.useEffect(()=>{if(!new Set(["pixverse-image-template","pixverse-video"]).has(r?.model_name))return;let e=!1;return X.get("/api/pricing/pixverse_templates_stats").then(t=>{if(e)return;const i=t?.data?.data;i&&"number"==typeof i.count&&oe(i)}).catch(()=>{}),()=>{e=!0}},[r?.model_name]);const ae=(e,t="")=>{if("number"!=typeof e||isNaN(e)){const e=l(0).match(/^[^\d.]*/);return`${e?e[0]:"$"}0.000`}return`${t}${l(e)}`},ne=e=>{if(!e||"string"!=typeof e)return 0;const t=e.match(/[\d.]+/);return t?parseFloat(t[0]):0},se=e.useMemo(()=>Z(r,m),[r,m]),de=()=>{const e=Object.keys(u||{}).filter(e=>""!==e).filter(e=>"auto"!==e).filter(e=>y.includes(e)).map(e=>{const t=r?D({record:r,selectedGroup:e,groupRatio:o,groupModelRatio:a,tokenUnit:s,displayPrice:l,currency:n}):{inputPrice:"-",outputPrice:"-",price:"-"},i=t.usedGroupRatio??(o&&o[e]?o[e]:1),d=ft.includes(r?.model_name),c=bt.includes(r?.model_name)||r?.model_name?.startsWith("speech-");let u;const p=r?.model_name||"",m=p.startsWith("qwen3-tts"),x=p.startsWith("qwen-tts")||m;u="aigc-image-gem"===p||"aigc-image-qwen"===p||"aigc-image-hunyuan"===p?v("ææ¬¡è®¡è´¹"):"aigc-video-vidu"===p||"aigc-video-kling"===p||"aigc-video-hailuo"===p||"aigc-template-effect-vidu"===p||"kling-avatar-image2video"===p||"viduq3-pro"===p||"viduq3-turbo"===p||"viduq3"===p||"viduq3-mix"===p||"viduq2"===p||"viduq1"===p||"vidu2.0"===p||"viduq2-turbo"===p||"viduq2-pro"===p||"viduq1-classic"===p||"audio1.0"===p||"vidu-tts"===p||"kling-3.0-turbo"===p||"grok-imagine-video"===p||"grok-imagine-video-1.5-preview"===p?v("æç§è®¡è´¹"):"kling-image"===p||"kling-omni-image"===p?v("æå¼ 计费"):"doubao-seedance-2-0-260128"===p||"doubao-seedance-2-0-fast-260128"===p||B(p)?v("æé计费"):d?v("æå¼ 计费"):c?v("ææ¬¡è®¡è´¹"):0===r?.quota_type?v("æé计费"):1===r?.quota_type?v("ææ¬¡è®¡è´¹"):2===r?.quota_type?v("æåç´ è®¡è´¹"):3===r?.quota_type?v("æè§é¢å°ºå¯¸è®¡è´¹"):4===r?.quota_type?v("æè§é¢æ¶é´è®¡è´¹"):"-";let f="-",b="-";"aigc-image"===p||"aigc-video"===p||"aigc-image-gem"===p||"aigc-image-qwen"===p||"aigc-image-hunyuan"===p||"aigc-video-vidu"===p||"aigc-video-kling"===p||"aigc-video-hailuo"===p||"aigc-template-effect-vidu"===p||"viduq3-pro"===p||"viduq3-turbo"===p||"viduq3"===p||"viduq3-mix"===p||"viduq2"===p||"viduq1"===p||"vidu2.0"===p||"viduq2-turbo"===p||"viduq2-pro"===p||"viduq1-classic"===p||"audio1.0"===p||"vidu-tts"===p||"kling-3.0-turbo"===p?f=t.price:(f=d||c||1===r?.quota_type?t.price:"-",b=d||c||4!==r?.quota_type?"-":t.price);let y="-";if(!d&&!c&&0===r?.quota_type)if(m){const e=l(0).match(/^[^\d.]*/);y=`${e?e[0]:"$"}0.0000`}else y=t.completionPrice||t.outputPrice;
1return{key:e,group:e,ratio:i,officialDiscount:g?ee({record:r,priceData:t,currentPrice:jt({record:r,priceData:t}),autoOfficialConfig:se,priceRate:h}):null,billingType:u,inputPrice:d||0!==r?.quota_type?"-":t.inputPrice,outputPrice:y,fixedPrice:f,pixelPrice:d||2!==r?.quota_type?"-":t.price,videoPrice:d||3!==r?.quota_type?"-":t.price,videoTimePrice:b,audioInputPrice:0===r?.quota_type&&t.audioInputPrice||null,audioOutputPrice:0===r?.quota_type&&t.audioCompletionPrice||null,imageInputPrice:d||0!==r?.quota_type?null:t.imageInputPrice||null,cacheCreationPrice:0===r?.quota_type&&t.cacheCreationPrice||null,cacheCreation5mPrice:0===r?.quota_type&&t.cacheCreation5mPrice||null,cacheCreation1hPrice:0===r?.quota_type&&t.cacheCreation1hPrice||null,cacheHitPrice:0===r?.quota_type&&t.cacheHitPrice||null,rawPrice:t.rawPrice,perCreditPrice:t.perCreditPrice,priceData:t,isQwen3TTS:m,isQwenTTS:x,modelRatio:r?.model_ratio,completionRatio:m?0:r?.completion_ratio}}),i=ft.includes(r?.model_name||""),p=bt.includes(r?.model_name)||r?.model_name?.startsWith("speech-"),m=[{title:v("åç»"),dataIndex:"group",render:(e,i)=>t.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t.jsxs(d,{color:"white",size:"small",shape:"circle",children:[e,v("åç»")]}),i.officialDiscount&&t.jsx(d,{color:"red",size:"small",shape:"circle",children:i.officialDiscount.label})]})}];c&&m.push({title:v("åç"),dataIndex:"ratio",render:e=>t.jsxs(d,{color:"white",size:"small",shape:"circle",children:[e,"x"]})});const x=r?.model_name||"";if("aigc-image"===x||"aigc-video"===x||"aigc-image-gem"===x||"aigc-image-qwen"===x||"aigc-image-hunyuan"===x||"aigc-video-vidu"===x||"aigc-video-kling"===x||"aigc-video-hailuo"===x||"aigc-template-effect-vidu"===x||"viduq3-pro"===x||"viduq3-turbo"===x||"viduq3"===x||"viduq3-mix"===x||"viduq2"===x||"viduq1"===x||"vidu2.0"===x||"viduq2-turbo"===x||"viduq2-pro"===x||"viduq1-classic"===x||"audio1.0"===x||"vidu-tts"===x||m.push({title:v("计费类å"),dataIndex:"billingType",render:e=>{let i="grey";return e===v("æé计费")?i="violet":e===v("æå¼ 计费")?i="pink":e===v("ææ¬¡è®¡è´¹")?i="teal":e===v("æåç´ è®¡è´¹")?i="blue":e===v("æè§é¢å°ºå¯¸è®¡è´¹")?i="green":e===v("æè§é¢æ¶é´è®¡è´¹")?i="orange":e===v("æç§è®¡è´¹")&&(i="amber"),t.jsx(d,{color:i,size:"small",shape:"circle",children:e||"-"})}}),"aigc-image"===x)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const r=ne(e);return i.ratio,t.jsx("div",{children:t.jsx(b,{columns:[{title:v("模å"),dataIndex:"model",width:120},{title:v("çæ¬å·"),dataIndex:"version",width:100},{title:v("å辨ç"),dataIndex:"resolution",width:220},{title:v("ä»·æ ¼"),dataIndex:"price",width:150}],dataSource:[{model:"Qwen",version:"0925",resolution:v("ä¸åºå"),price:ae(30*r/20)+" / "+v("å¼ ")},{model:"GEM",version:"3.0",resolution:"4Kï¼çè¾¹ ⤠2160ï¼",price:ae(180*r/20)+" / "+v("å¼ ")},{model:"GEM",version:"3.0",resolution:"720Pã1080Pã2Kï¼çè¾¹ ⤠1440ï¼",price:ae(100*r/20)+" / "+v("å¼ ")},{model:"GEM",version:"2.5",resolution:v("ä¸åºå"),price:ae(30*r/20)+" / "+v("å¼ ")},{model:"Hunyuan",version:"3.0",resolution:"1Kï¼çè¾¹ ⤠1024ï¼",price:ae(20*r/20)+" / "+v("å¼ ")},{model:"Hunyuan",version:"3.0",resolution:"2Kï¼çè¾¹ ⤠2048ï¼",price:ae(28*r/20)+" / "+v("å¼ ")},{model:"Hunyuan",version:"3.0",resolution:"4Kï¼çè¾¹ > 2048ï¼",price:ae(36*r/20)+" / "+v("å¼ ")}],pagination:!1,size:"small",scroll:{x:"max-content"}})})}});else if("aigc-image-gem"===x)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const r=ne(e);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("模å"),dataIndex:"model",width:80},{title:v("çæ¬å·"),dataIndex:"version",width:100},{title:v("å辨ç"),dataIndex:"resolution",width:220},{title:v("ä»·æ ¼"),dataIndex:"price",width:150}],dataSource:[{model:"GEM",version:"3.0",resolution:"4Kï¼çè¾¹ ⤠2160ï¼",price:ae(180*r/30)+" / "+v("å¼ ")},{model:"GEM",version:"3.0",resolution:"720Pã1080Pã2Kï¼çè¾¹ ⤠1440ï¼",price:ae(100*r/30)+" / "+v("å¼ ")},{model:"GEM",version:"2.5",resolution:v("ä¸åºå"),price:ae(30*r/30)+" / "+v("å¼ ")}],pagination:!1,size:"small",scroll:{x:"max-content"}})})}});
1else if("aigc-image-qwen"===x)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const r=ne(e);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("模å"),dataIndex:"model",width:80},{title:v("çæ¬å·"),dataIndex:"version",width:100},{title:v("å辨ç"),dataIndex:"resolution",width:220},{title:v("ä»·æ ¼"),dataIndex:"price",width:150}],dataSource:[{model:"Qwen",version:"0925",resolution:v("ä¸åºå"),price:ae(r)+" / "+v("å¼ ")}],pagination:!1,size:"small",scroll:{x:"max-content"}})})}});else if("aigc-image-hunyuan"===x)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const r=ne(e);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("模å"),dataIndex:"model",width:100},{title:v("çæ¬å·"),dataIndex:"version",width:100},{title:v("å辨ç"),dataIndex:"resolution",width:220},{title:v("ä»·æ ¼"),dataIndex:"price",width:150}],dataSource:[{model:"Hunyuan",version:"3.0",resolution:"1Kï¼çè¾¹ ⤠1024ï¼",price:ae(20*r/20)+" / "+v("å¼ ")},{model:"Hunyuan",version:"3.0",resolution:"2Kï¼çè¾¹ ⤠2048ï¼",price:ae(28*r/20)+" / "+v("å¼ ")},{model:"Hunyuan",version:"3.0",resolution:"4Kï¼çè¾¹ > 2048ï¼",price:ae(36*r/20)+" / "+v("å¼ ")}],pagination:!1,size:"small",scroll:{x:"max-content"}})})}});else if("aigc-video-vidu"===x)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const r=ne(e);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("模å"),dataIndex:"model",width:80},{title:v("çæ¬å·"),dataIndex:"version",width:120},{title:v("å辨ç"),dataIndex:"resolution",width:150},{title:v("æ¶é¿"),dataIndex:"duration",width:80},{title:v("ä»·æ ¼"),dataIndex:"price",width:180}],dataSource:[{model:"Vidu",version:"q2",resolution:"çè¾¹ ⤠720P",duration:"1-10s",price:ae(32*r/25)+" / "+v("ç§")},{model:"Vidu",version:"q2",resolution:"çè¾¹ ⤠1080P",duration:"1-10s",price:ae(47*r/25)+" / "+v("ç§")},{model:"Vidu",version:"q2-pro",resolution:"çè¾¹ ⤠720P",duration:"1-10s",price:ae(35*r/25)+" / "+v("ç§")},{model:"Vidu",version:"q2-pro",resolution:"çè¾¹ ⤠1080P",duration:"1-10s",price:ae(70*r/25)+" / "+v("ç§")},{model:"Vidu",version:"q3-pro",resolution:"çè¾¹ ⤠540P",duration:"1-16s",price:ae(44*r/25)+" / "+v("ç§")},{model:"Vidu",version:"q3-pro",resolution:"çè¾¹ ⤠720P",duration:"1-16s",price:ae(93.7*r/25)+" / "+v("ç§")},{model:"Vidu",version:"q3-pro",resolution:"çè¾¹ ⤠1080P",duration:"1-16s",price:ae(100*r/25)+" / "+v("ç§")},{model:"Vidu",version:"q3-turbo",resolution:"çè¾¹ ⤠540P",duration:"1-16s",price:ae(25*r/25)+" / "+v("ç§")},{model:"Vidu",version:"q3-turbo",resolution:"çè¾¹ ⤠720P",duration:"1-16s",price:ae(38*r/25)+" / "+v("ç§")},{model:"Vidu",version:"q3-turbo",resolution:"çè¾¹ ⤠1080P",duration:"1-16s",price:ae(50*r/25)+" / "+v("ç§")},{model:"Vidu",version:"q2-turbo",resolution:"çè¾¹ ⤠720P",duration:"1-10s",price:ae(25*r/25)+" / "+v("ç§")},{model:"Vidu",version:"q2-turbo",resolution:"çè¾¹ ⤠1080P",duration:"1-10s",price:ae(47*r/25)+" / "+v("ç§")}],pagination:!1,size:"small",scroll:{x:"max-content"}})})}});else if("aigc-template-effect-vidu"===x)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:e=>t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"font-semibold text-orange-600",children:e}),t.jsxs("div",{className:"text-xs text-gray-500",children:["/ ",v("ç§")]})]})});else if("aigc-video-kling"===x)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const r=ne(e);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("模å"),dataIndex:"model",width:80},{title:v("çæ¬å·"),dataIndex:"version",width:120},{title:v("å辨ç"),dataIndex:"resolution",width:150},{title:v("æ¶é¿"),dataIndex:"duration",width:80},{title:v("ä»·æ ¼"),dataIndex:"price",width:180}],dataSource:[{model:"Kling",version:"O1",resolution:"çè¾¹ ⤠720P",duration:"5s",price:ae(90*r/30*5)},{model:"Kling",version:"O1",resolution:"çè¾¹ ⤠720P",duration:"10s",price:ae(90*r/30*10)},{model:"Kling",version:"O1",resolution:"çè¾¹ ⤠1080P",duration:"5s",price:ae(120*r/30*5)},{model:"Kling",version:"O1",resolution:"çè¾¹ ⤠1080P",duration:"10s",price:ae(120*r/30*10)},{model:"Kling",version:"2.6",resolution:v("æ 声"),duration:"5s",price:ae(50*r/30*5)},{model:"Kling",version:"2.6",resolution:v("æ 声"),duration:"10s",price:ae(50*r/30*10)},{model:"Kling",version:"2.6",resolution:v("æå£°"),duration:"5s",price:ae(100*r/30*5)},{model:"Kling",version:"2.6",resolution:v("æå£°"),duration:"10s",price:ae(100*r/30*10)},{model:"Kling",version:"2.6",resolution:v("å¨ä½æ§å¶ (std/720P)"),duration:"5s",price:ae(50*r/30*5)},{model:"Kling",version:"2.6",resolution:v("å¨ä½æ§å¶ (std/720P)"),duration:"10s",price:ae(50*r/30*10)},{model:"Kling",version:"2.6",resolution:v("å¨ä½æ§å¶ (pro/1080P)"),duration:"5s",price:ae(80*r/30*5)},{model:"Kling",version:"2.6",resolution:v("å¨ä½æ§å¶ (pro/1080P)"),duration:"10s",price:ae(80*r/30*10)},{model:"Kling",version:"2.5",resolution:"çè¾¹ ⤠720P",duration:"5s",price:ae(30*r/30*5)},{model:"Kling",version:"2.5",resolution:"çè¾¹ ⤠720P",duration:"10s",price:ae(30*r/30*10)},{model:"Kling",version:"2.5",resolution:"çè¾¹ ⤠1080P",duration:"5s",price:ae(50*r/30*5)},{model:"Kling",version:"2.5",resolution:"çè¾¹ ⤠1080P",duration:"10s",price:ae(50*r/30*10)},{model:"Kling",version:"1.6ã2.0ã2.1",resolution:"çè¾¹ ⤠720P",duration:"5s",price:ae(40*r/30*5)},{model:"Kling",version:"1.6ã2.0ã2.1",resolution:"çè¾¹ ⤠720P",duration:"10s",price:ae(40*r/30*10)},{model:"Kling",version:"1.6ã2.0ã2.1",resolution:"çè¾¹ ⤠1080P",duration:"5s",price:ae(70*r/30*5)},{model:"Kling",version:"1.6ã2.0ã2.1",resolution:"çè¾¹ ⤠1080P",duration:"10s",price:ae(70*r/30*10)},{model:"Kling",version:"3.0",resolution:v("çè¾¹ ⤠720Pï¼æ 声ï¼"),duration:"3~15s",price:ae(60*r/30*1)+" / "+v("ç§")},{model:"Kling",version:"3.0",resolution:v("çè¾¹ ⤠720Pï¼æå£°ï¼"),duration:"3~15s",price:ae(90*r/30*1)+" / "+v("ç§")},{model:"Kling",version:"3.0",resolution:v("çè¾¹ ⤠1080Pï¼æ 声ï¼"),duration:"3~15s",price:ae(80*r/30*1)+" / "+v("ç§")},{model:"Kling",version:"3.0",resolution:v("çè¾¹ ⤠1080Pï¼æå£°ï¼"),duration:"3~15s",price:ae(120*r/30*1)+" / "+v("ç§")},{model:"Kling",version:"3.0-Omni",resolution:v("çè¾¹ ⤠720Pï¼æ åèè§é¢ï¼æ 声ï¼"),duration:"3~15s",price:ae(60*r/30*1)+" / "+v("ç§")},{model:"Kling",version:"3.0-Omni",resolution:v("çè¾¹ ⤠720Pï¼æ åèè§é¢ï¼æå£°ï¼"),duration:"3~15s",price:ae(80*r/30*1)+" / "+v("ç§")},{model:"Kling",version:"3.0-Omni",resolution:v("çè¾¹ ⤠720Pï¼æåèè§é¢ï¼æ 声ï¼"),duration:"3~10s",price:ae(90*r/30*1)+" / "+v("ç§")},{model:"Kling",version:"3.0-Omni",resolution:v("çè¾¹ ⤠720Pï¼æåèè§é¢ï¼æå£°ï¼"),duration:"3~10s",price:ae(110*r/30*1)+" / "+v("ç§")},{model:"Kling",version:"3.0-Omni",resolution:v("çè¾¹ ⤠1080Pï¼æ åèè§é¢ï¼æ 声ï¼"),duration:"3~15s",price:ae(80*r/30*1)+" / "+v("ç§")},{model:"Kling",version:"3.0-Omni",resolution:v("çè¾¹ ⤠1080Pï¼æ åèè§é¢ï¼æå£°ï¼"),duration:"3~15s",price:ae(100*r/30*1)+" / "+v("ç§")},{model:"Kling",version:"3.0-Omni",resolution:v("çè¾¹ ⤠1080Pï¼æåèè§é¢ï¼æ 声ï¼"),duration:"3~10s",price:ae(120*r/30*1)+" / "+v("ç§")},{model:"Kling",version:"3.0-Omni",resolution:v("çè¾¹ ⤠1080Pï¼æåèè§é¢ï¼æå£°ï¼"),duration:"3~10s",price:ae(140*r/30*1)+" / "+v("ç§")}],pagination:!1,size:"small",scroll:{x:"max-content"}})})}});
1else if("aigc-video-hailuo"===x)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const r=ne(e);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("模å"),dataIndex:"model",width:80},{title:v("çæ¬å·"),dataIndex:"version",width:120},{title:v("å辨ç"),dataIndex:"resolution",width:150},{title:v("æ¶é¿"),dataIndex:"duration",width:80},{title:v("ä»·æ ¼"),dataIndex:"price",width:180}],dataSource:[{model:"Hailuo",version:"02ã2.3",resolution:"çè¾¹ ⤠768P",duration:"6s",price:ae(33*r/23*6)},{model:"Hailuo",version:"02ã2.3",resolution:"çè¾¹ ⤠768P",duration:"10s",price:ae(33*r/23*10)},{model:"Hailuo",version:"02ã2.3",resolution:"çè¾¹ ⤠1080P",duration:"6s",price:ae(58*r/23*6)},{model:"Hailuo",version:"2.3-Fast",resolution:"çè¾¹ ⤠768P",duration:"6s",price:ae(23*r/23*6)},{model:"Hailuo",version:"2.3-Fast",resolution:"çè¾¹ ⤠768P",duration:"10s",price:ae(23*r/23*10)},{model:"Hailuo",version:"2.3-Fast",resolution:"çè¾¹ ⤠1080P",duration:"6s",price:ae(39*r/23*6)}],pagination:!1,size:"small",scroll:{x:"max-content"}})})}});else if("viduq3-pro"===x)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const r=i.perCreditPrice||ne(e),o=e=>ae(r*e);return t.jsxs("div",{children:[t.jsx("div",{className:"text-xs text-gray-500 mb-2",children:v("æ¶é¿ 1-16 ç§ï¼é»è®¤ 5 ç§")}),t.jsx(b,{columns:[{title:v("è½å"),dataIndex:"ability",width:150},{title:v("æ¸
æ°åº¦"),dataIndex:"resolution",width:80},{title:v("æ¯ç§ä»·æ ¼"),dataIndex:"price",width:120}],dataSource:[{ability:v("å¾çè§é¢ · æçè§é¢ · é¦å°¾å¸§"),resolution:"1080P",price:o(32)},{ability:v("å¾çè§é¢ · æçè§é¢ · é¦å°¾å¸§"),resolution:"720P",price:o(30)},{ability:v("å¾çè§é¢ · æçè§é¢ · é¦å°¾å¸§"),resolution:"540P",price:o(14)}],pagination:!1,size:"small",scroll:{x:"max-content"}})]})}});else if("viduq3-turbo"===x)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const r=i.perCreditPrice||ne(e),o=e=>ae(r*e);return t.jsxs("div",{children:[t.jsx("div",{className:"text-xs text-gray-500 mb-2",children:v("æ¶é¿ 1-16 ç§ï¼é»è®¤ 5 ç§")}),t.jsx(b,{columns:[{title:v("è½å"),dataIndex:"ability",width:150},{title:v("æ¸
æ°åº¦"),dataIndex:"resolution",width:80},{title:v("æ¯ç§ä»·æ ¼"),dataIndex:"price",width:120}],dataSource:[{ability:v("å¾çè§é¢ · æçè§é¢ · é¦å°¾å¸§"),resolution:"1080P",price:o(16)},{ability:v("å¾çè§é¢ · æçè§é¢ · é¦å°¾å¸§"),resolution:"720P",price:o(12)},{ability:v("å¾çè§é¢ · æçè§é¢ · é¦å°¾å¸§"),resolution:"540P",price:o(8)}],pagination:!1,size:"small",scroll:{x:"max-content"}})]})}});else if("viduq3"===x)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const r=i.perCreditPrice||ne(e),o=e=>ae(r*e);return t.jsxs("div",{children:[t.jsx("div",{className:"text-xs text-gray-500 mb-2",children:v("æ¶é¿ 3-16 ç§ï¼é»è®¤ 5 ç§")}),t.jsx(b,{columns:[{title:v("è½å"),dataIndex:"ability",width:100},{title:v("æ¸
æ°åº¦"),dataIndex:"resolution",width:80},{title:v("æ¯ç§ä»·æ ¼"),dataIndex:"price",width:120}],dataSource:[{ability:v("åèçè§é¢"),resolution:"1080P",price:o(25)+" / "+v("ç§")},{ability:v("åèçè§é¢"),resolution:"720P",price:o(20)+" / "+v("ç§")},{ability:v("åèçè§é¢"),resolution:"540P",price:o(10)+" / "+v("ç§")}],pagination:!1,size:"small",scroll:{x:"max-content"}})]})}});else if("viduq3-mix"===x)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const r=i.perCreditPrice||ne(e),o=e=>ae(r*e);return t.jsxs("div",{children:[t.jsx("div",{className:"text-xs text-gray-500 mb-2",children:v("æ¶é¿ 1-16 ç§ï¼é»è®¤ 5 ç§ï¼ä¸æ¯æ 540P")}),t.jsx(b,{columns:[{title:v("è½å"),dataIndex:"ability",width:100},{title:v("æ¸
æ°åº¦"),dataIndex:"resolution",width:80},{title:v("æ¯ç§ä»·æ ¼"),dataIndex:"price",width:120}],dataSource:[{ability:v("åèçè§é¢"),resolution:"1080P",price:o(30)+" / "+v("ç§")},{ability:v("åèçè§é¢"),resolution:"720P",price:o(25)+" / "+v("ç§")}],pagination:!1,size:"small",scroll:{x:"max-content"}})]})}});else if("viduq2"===x)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const r=i.perCreditPrice||ne(e),o=e=>ae(r*e),a=o(15),n=o(10);return t.jsxs("div",{children:[t.jsx("div",{className:"font-semibold text-base mb-2",children:v("è§é¢çæ")}),t.jsxs("div",{className:"text-xs text-gray-500 mb-2",children:["å¾ç/åèçé³è§é¢ç´åºé¢å¤ ",a,"ï¼å¯ç¨æ¨èæç¤ºè¯é¢å¤ ",n]}),t.jsx(b,{columns:[{title:v("è½å"),dataIndex:"ability",width:120},{title:v("模å"),dataIndex:"model",width:100},{title:v("å辨ç"),dataIndex:"resolution",width:80},{title:v("å®ä»·"),dataIndex:"pricing",width:320}],dataSource:[{ability:"æç",model:"Q2",resolution:"540P",pricing:`第1ç§${o(10)}ï¼åç»æ¯ç§+${o(2)}`},{ability:"æç",model:"Q2",resolution:"720P",pricing:`第1ç§${o(15)}ï¼åç»æ¯ç§+${o(5)}`},{ability:"æç",model:"Q2",resolution:"1080P",pricing:`第1ç§${o(20)}ï¼åç»æ¯ç§+${o(10)}`},{ability:"åèç",model:"Q2",resolution:"540P",pricing:`第1ç§${o(15)}ï¼åç»æ¯ç§+${o(5)}`},{ability:"åèç",model:"Q2",resolution:"720P",pricing:`第1ç§${o(25)}ï¼åç»æ¯ç§+${o(5)}`},{ability:"åèç",model:"Q2",resolution:"1080P",pricing:`第1ç§${o(75)}ï¼åç»æ¯ç§+${o(10)}`}],pagination:!1,size:"small",scroll:{x:"max-content"}}),t.jsx("div",{className:"font-semibold text-base mt-4 mb-2",children:v("å¾åçæ")}),t.jsx(b,{columns:[{title:v("è½å"),dataIndex:"ability",width:130},{title:v("è¾å
¥å¾çæ°é"),dataIndex:"imageCount",width:120},{title:v("å辨ç"),dataIndex:"resolution",width:100},{title:v("ä»·æ ¼"),dataIndex:"price",width:120}],dataSource:[{ability:"æçå¾",imageCount:"0",resolution:"1080p",price:o(6)},{ability:"æçå¾",imageCount:"0",resolution:"2K",price:o(8)},{ability:"æçå¾",imageCount:"0",resolution:"4K",price:o(10)},{ability:"åèçå¾",imageCount:"1~3å¼ ",resolution:"1080P",price:o(8)},{ability:"åèçå¾",imageCount:"1~3å¼ ",resolution:"2K",price:o(12)},{ability:"åèçå¾",imageCount:"1~3å¼ ",resolution:"4K",price:o(20)},{ability:"åèçå¾",imageCount:"4~7å¼ ",resolution:"1080P",price:o(10)},{ability:"åèçå¾",imageCount:"4~7å¼ ",resolution:"2K",price:o(16)},{ability:"åèçå¾",imageCount:"4~7å¼ ",resolution:"4K",price:o(30)}],pagination:!1,size:"small",scroll:{x:"max-content"}})]})}});
1else if("viduq2-pro"===x)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const r=i.perCreditPrice||ne(e),o=e=>ae(r*e),a=o(15),n=o(10);return t.jsxs("div",{children:[t.jsxs("div",{className:"text-xs text-gray-500 mb-2",children:["å¾çé³è§é¢ç´åºé¢å¤ ",a,"ï¼å¯ç¨æ¨èæç¤ºè¯é¢å¤ ",n]}),t.jsx(b,{columns:[{title:v("è½å"),dataIndex:"ability",width:120},{title:v("模å"),dataIndex:"model",width:80},{title:v("å辨ç"),dataIndex:"resolution",width:80},{title:v("å®ä»·"),dataIndex:"pricing",width:320}],dataSource:[{ability:"å¾ç&é¦å°¾å¸§",model:"Q2-pro",resolution:"540P",pricing:`第1ç§${o(8)}ï¼ç¬¬2ç§${o(10)}ï¼ç¬¬3ç§å¼å§æ¯ç§+${o(5)}`},{ability:"å¾ç&é¦å°¾å¸§",model:"Q2-pro",resolution:"720P",pricing:`第1ç§${o(15)}ï¼åç»æ¯ç§+${o(10)}`},{ability:"å¾ç&é¦å°¾å¸§",model:"Q2-pro",resolution:"1080P",pricing:`第1ç§${o(55)}ï¼åç»æ¯ç§+${o(15)}`}],pagination:!1,size:"small",scroll:{x:"max-content"}})]})}});else if("viduq2-turbo"===x)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const r=i.perCreditPrice||ne(e),o=e=>ae(r*e),a=o(15),n=o(10);return t.jsxs("div",{children:[t.jsxs("div",{className:"text-xs text-gray-500 mb-2",children:["å¾çé³è§é¢ç´åºé¢å¤ ",a,"ï¼å¯ç¨æ¨èæç¤ºè¯é¢å¤ ",n]}),t.jsx(b,{columns:[{title:v("è½å"),dataIndex:"ability",width:120},{title:v("模å"),dataIndex:"model",width:100},{title:v("å辨ç"),dataIndex:"resolution",width:80},{title:v("å®ä»·"),dataIndex:"pricing",width:320}],dataSource:[{ability:"å¾ç&é¦å°¾å¸§",model:"Q2-turbo",resolution:"540P",pricing:`第1ç§${o(6)}ï¼åç»æ¯ç§+${o(2)}`},{ability:"å¾ç&é¦å°¾å¸§",model:"Q2-turbo",resolution:"720P",pricing:`第1ç§${o(8)}ï¼ç¬¬2ç§${o(10)}ï¼ç¬¬3ç§å¼å§æ¯ç§+${o(10)}`},{ability:"å¾ç&é¦å°¾å¸§",model:"Q2-turbo",resolution:"1080P",pricing:`第1ç§${o(35)}ï¼åç»æ¯ç§+${o(10)}`}],pagination:!1,size:"small",scroll:{x:"max-content"}})]})}});else if("viduq1"===x)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const r=i.perCreditPrice||ne(e),o=e=>ae(r*e);return t.jsxs("div",{children:[t.jsx("div",{className:"font-semibold text-base mb-2",children:v("è§é¢çæ")}),t.jsx(b,{columns:[{title:v("è½å"),dataIndex:"ability",width:150},{title:v("æ¶é¿"),dataIndex:"duration",width:80},{title:v("æ¸
æ°åº¦"),dataIndex:"resolution",width:100},{title:v("ä»·æ ¼"),dataIndex:"price",width:120}],dataSource:[{ability:"åèçè§é¢",duration:"5S",resolution:"1080p",price:o(80)},{ability:"å¾çè§é¢",duration:"5S",resolution:"1080p",price:o(80)},{ability:"é¦å°¾å¸§",duration:"5S",resolution:"1080p",price:o(80)},{ability:"æçè§é¢",duration:"5S",resolution:"1080p",price:o(80)}],pagination:!1,size:"small",scroll:{x:"max-content"}}),t.jsx("div",{className:"font-semibold text-base mt-4 mb-2",children:v("å¾åçæ")}),t.jsx(b,{columns:[{title:v("è½å"),dataIndex:"ability",width:150},{title:v("è¾å
¥å¾çæ°é"),dataIndex:"imageCount",width:120},{title:v("æ¸
æ°åº¦"),dataIndex:"resolution",width:100},{title:v("ä»·æ ¼"),dataIndex:"price",width:120}],dataSource:[{ability:"åèçå¾",imageCount:"1~7å¼ ",resolution:"1080p",price:o(20)}],pagination:!1,size:"small",scroll:{x:"max-content"}})]})}});else if("viduq1-classic"===x)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const r=i.perCreditPrice||ne(e),o=e=>ae(r*e);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("è½å"),dataIndex:"ability",width:150},{title:v("æ¶é¿"),dataIndex:"duration",width:80},{title:v("æ¸
æ°åº¦"),dataIndex:"resolution",width:100},{title:v("ä»·æ ¼"),dataIndex:"price",width:120}],dataSource:[{ability:"å¾çè§é¢",duration:"5S",resolution:"1080p",price:o(80)},{ability:"é¦å°¾å¸§",duration:"5S",resolution:"1080p",price:o(80)}],pagination:!1,size:"small",scroll:{x:"max-content"}})})}});else if("vidu2.0"===x)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const r=i.perCreditPrice||ne(e),o=e=>ae(r*e);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("è½å"),dataIndex:"ability",width:120},{title:v("å辨ç"),dataIndex:"resolution",width:100},{title:v("æ¶é¿"),dataIndex:"duration",width:80},{title:v("ä»·æ ¼"),dataIndex:"price",width:120}],dataSource:[{ability:"å¾çè§é¢",resolution:"360P",duration:"4s",price:o(20)},{ability:"å¾çè§é¢",resolution:"720P",duration:"4s",price:o(40)},{ability:"å¾çè§é¢",resolution:"720P",duration:"8s",price:o(100)},{ability:"å¾çè§é¢",resolution:"1080P",duration:"4s",price:o(100)},{ability:"é¦å°¾å¸§",resolution:"360P",duration:"4s",price:o(20)},{ability:"é¦å°¾å¸§",resolution:"720P",duration:"4s",price:o(40)},{ability:"é¦å°¾å¸§",resolution:"720P",duration:"8s",price:o(100)},{ability:"é¦å°¾å¸§",resolution:"1080P",duration:"4s",price:o(100)},{ability:"åèçè§é¢",resolution:"360P",duration:"4s",price:o(80)},{ability:"åèçè§é¢",resolution:"720P",duration:"4s",price:o(80)}],pagination:!1,size:"small",scroll:{x:"max-content"}})})}});
1else if("audio1.0"===x)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const r=i.perCreditPrice||ne(e),o=e=>ae(r*e);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("è½å"),dataIndex:"ability",width:150},{title:v("æ¶é¿"),dataIndex:"duration",width:120},{title:v("ä»·æ ¼"),dataIndex:"price",width:120}],dataSource:[{ability:"æçé³é¢",duration:"å°äº5ç§",price:o(10)},{ability:"æçé³é¢",duration:"å°äº10ç§",price:o(20)},{ability:"坿§æç鳿",duration:"å°äº5ç§",price:o(10)},{ability:"坿§æç鳿",duration:"å°äº10ç§",price:o(20)}],pagination:!1,size:"small",scroll:{x:"max-content"}})})}});else if("vidu-tts"===x)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const r=i.perCreditPrice||ne(e);return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"font-semibold text-orange-600",children:ae(10*r)}),t.jsxs("div",{className:"text-xs text-gray-500",children:["/ 500 ",v("å符")]})]})}});else if("grok-imagine-video-1.5"===x)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const o=parseFloat(r?.model_price)||0,a=i.ratio||1;return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"font-semibold text-orange-600",children:ae(60*o*a)}),t.jsxs("div",{className:"text-xs text-gray-500",children:["/ ",v("次")]})]})}});else if("grok-imagine-video"===x||"grok-imagine-video-1.5-preview"===x)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const o=parseFloat(r?.model_price)||0,a=i.ratio||1,n=e=>ae(o*e*a),s={"grok-imagine-video":{tiers:[{label:"480p",ratio:5},{label:"720p",ratio:7}],imageRatio:.2,editVideoRatio:1},"grok-imagine-video-1.5-preview":{tiers:[{label:"480p",ratio:8},{label:"720p",ratio:14}],imageRatio:1}}[x],l=!!s.editVideoRatio,d=s.tiers.map(e=>({key:e.label,resolution:e.label,outputVideo:n(e.ratio)+" / "+v("ç§"),inputImage:n(s.imageRatio)+" / "+v("å¼ "),...l?{inputVideo:n(s.editVideoRatio)+" / "+v("ç§")}:{}})),c=[{title:v("å辨ç"),dataIndex:"resolution",width:100},{title:v("è¾å
¥å¾ç"),dataIndex:"inputImage",width:140},...l?[{title:v("è¾å
¥è§é¢"),dataIndex:"inputVideo",width:140}]:[],{title:v("è¾åºè§é¢"),dataIndex:"outputVideo",width:140}];return t.jsx("div",{children:t.jsx(b,{columns:c,dataSource:d,pagination:!1,size:"small",scroll:{x:"max-content"}})})}});else if("doubao-seedream-5-0-pro-260628"===x||x&&x.startsWith("doubao-seedream-5-0-pro"))m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const o=i.priceData?.usedGroupRatio??1,a=parseFloat(r?.model_price||0)*o;return t.jsxs("div",{children:[t.jsx("div",{className:"text-xs text-gray-500 mb-1",children:v("æå¼ 计费ï¼è¾åº â¤236ä¸åç´ ä¸º 1Kï¼>236ä¸ä¸º 2Kï¼ç©º size æ 2Kï¼ï¼åèå¾ç¬¬ 2 å¼ èµ·å¦è®¡")}),t.jsx(b,{columns:[{title:v("计费项"),dataIndex:"item",width:100},{title:v("说æ"),dataIndex:"desc",width:220},{title:v("ä»·æ ¼"),dataIndex:"price",width:140,render:e=>t.jsxs("span",{className:"whitespace-nowrap",children:[t.jsx("span",{className:"font-semibold text-orange-600",children:e}),t.jsxs("span",{className:"text-xs text-gray-500",children:[" / ",v("å¼ ")]})]})}],dataSource:[{key:"1k",item:"1K",desc:v("è¾åº â¤236ä¸åç´ "),price:ae(30*a)},{key:"2k",item:"2K",desc:v("è¾åº >236ä¸åç´ ï¼é»è®¤ï¼"),price:ae(60*a)},{key:"ref",item:v("åèå¾"),desc:v("第2å¼ èµ·æ¯å¼ "),price:ae(2*a)}],pagination:!1,size:"small"})]})}});else if(i){const e="qwen-image-3.0-pro"===x,i="qwen-image-3.0"===x;m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:r=>t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"font-semibold text-orange-600",children:r}),t.jsxs("div",{className:"text-xs text-gray-500",children:["/ ",v("å¼ "),e||i?`ï¼${v("åºä»·")}ï¼`:""]}),e&&t.jsx("div",{className:"text-xs text-gray-500 mt-1",children:v("å®é
ï¼è¾åº 1KÃ25 / 2KÃ50ï¼åèå¾Ã2/å¼ ï¼é¢ç§¯â¤225ä¸ä¸º 1kï¼")}),i&&t.jsx("div",{className:"text-xs text-gray-500 mt-1",children:v("å®é
ï¼è¾åºÃ18ï¼åèå¾Ã2/å¼ ")})]})})}else if(p)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:e=>t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"font-semibold text-orange-600",children:e}),t.jsxs("div",{className:"text-xs text-gray-500",children:["/ ",v("ä¸å符")]})]})});else if(B(r?.model_name))m.push({title:v("ä»·æ ¼"),dataIndex:"priceData",render:e=>{const i="K"===e?.unitLabel?"1K":"1M";return t.jsx(b,{columns:[{title:v("æ¡£ä½"),dataIndex:"tier"},{title:v("ä»·æ ¼"),dataIndex:"price",render:e=>t.jsxs("span",{className:"whitespace-nowrap",children:[t.jsx("span",{className:"font-semibold text-orange-600",children:e}),t.jsxs("span",{className:"text-xs text-gray-500",children:[" / ",i," tokens"]})]})}],dataSource:[{key:"input",tier:v("è¾å
¥ï¼ææ¬/å¾ç/è§é¢/é³é¢ï¼"),price:e?.inputPrice||"-"},{key:"text",tier:v("ææ¬è¾åºï¼å«æèï¼"),price:e?.completionPrice||"-"},{key:"video",tier:v("è§é¢è¾åº"),price:e?.videoOutputPrice||"-"}],pagination:!1,size:"small"})}});else if(0===r?.quota_type)if(r?.step_ratios&&Array.isArray(r.step_ratios)&&r.step_ratios.length>0)m.push({title:v("ä»·æ ¼"),dataIndex:"inputPrice",render:(e,i)=>{const o=i.priceData?.usedGroupRatio||1,a=parseFloat(r.completion_ratio||1),n=r.step_ratios,d="K"===s?1e3:1;return t.jsx("div",{className:"!rounded-2xl overflow-hidden shadow-sm",children:t.jsx(b,{scroll:{x:"max-content"},columns:[{title:v("è¾å
¥Tokenæ°"),dataIndex:"input_token_size",width:150,fixed:"left"},{title:v("è¾åºTokenæ°"),dataIndex:"output_token_size",width:150},{title:v("è¾å
¥åç"),children:[{title:v("éæè"),dataIndex:"prompt_ratio",width:100},{title:v("æè"),dataIndex:"prompt_thinking_ratio",width:100}]},{title:v("è¾åºåç"),children:[{title:v("éæè"),dataIndex:"completion_ratio",width:100},{title:v("æè"),dataIndex:"completion_thinking_ratio",width:100}]},{title:v("è¾å
¥ä»·æ ¼"),children:[{title:v("éæè"),dataIndex:"input_price",width:180},{title:v("æè"),dataIndex:"input_thinking_price",width:180}]},{title:v("è¾åºä»·æ ¼"),children:[{title:v("éæè"),dataIndex:"output_price",width:180},{title:v("æè"),dataIndex:"output_thinking_price",width:180}]}],dataSource:n.map((e,t)=>{const i=2*r.model_ratio*e.prompt_step_ratio*o,c=r.model_ratio*a*2*e.completion_step_ratio*o,u=e.prompt_thinking_step_ratio>0||e.completion_thinking_step_ratio>0,p=u?2*r.model_ratio*(e.prompt_thinking_step_ratio||1)*o:i,m=u?r.model_ratio*a*2*(e.completion_thinking_step_ratio||1)*o:c,x=l(i),h=l(c),g=l(p),f=l(m),b=parseFloat(x.replace(/[^0-9.]/g,""))/d,y=parseFloat(h.replace(/[^0-9.]/g,""))/d,j=parseFloat(g.replace(/[^0-9.]/g,""))/d,w=parseFloat(f.replace(/[^0-9.]/g,""))/d,I=parseFloat(b.toFixed(6)),k=parseFloat(y.toFixed(6)),_=parseFloat(j.toFixed(6)),P=parseFloat(w.toFixed(6));let S,C;if(0===e.step_size||-1===e.step_size)S=v("ä¸é");else{const i=t>0?n[t-1].step_size:0;
1S=0===i||i===e.step_size?`[0, ${e.step_size.toLocaleString()}]`:`(${i.toLocaleString()}, ${e.step_size.toLocaleString()}]`}if(void 0===e.completion_step_size||0===e.completion_step_size||-1===e.completion_step_size)C=v("ä¸é");else{const i=t>0&&n[t-1].completion_step_size?n[t-1].completion_step_size:0;C=0===i||i===e.completion_step_size?`[0, ${e.completion_step_size.toLocaleString()}]`:`(${i.toLocaleString()}, ${e.completion_step_size.toLocaleString()}]`}return{key:t,input_token_size:S,output_token_size:C,prompt_ratio:`${e.prompt_step_ratio}x`,completion_ratio:`${e.completion_step_ratio}x`,prompt_thinking_ratio:u?`${e.prompt_thinking_step_ratio||1}x`:"-",completion_thinking_ratio:u?`${e.completion_thinking_step_ratio||1}x`:"-",input_price:`${ae(I)} / ${"K"===s?"1K":"1M"} tokens`,output_price:`${ae(k)} / ${"K"===s?"1K":"1M"} tokens`,input_thinking_price:u?`${ae(_)} / ${"K"===s?"1K":"1M"} tokens`:"-",output_thinking_price:u?`${ae(P)} / ${"K"===s?"1K":"1M"} tokens`:"-"}}),pagination:!1,size:"small"})})}});else if(r?.model_name?.startsWith("qwen-tts")||r?.model_name?.startsWith("qwen3-tts"))m.push({title:v("ä»·æ ¼"),dataIndex:"inputPrice",render:(e,i)=>{const o=i.priceData?.usedGroupRatio||1,a="K"===s?1e3:1,n="K"===s?"1K":"1M",d=r.model_ratio,c=2*d*o,u=d*parseFloat(r.completion_ratio||1)*2*o,p=100*c,m=e=>{const t=l(e),i=parseFloat(t.replace(/[^0-9.]/g,""))/a;return ae(i)};return t.jsxs("div",{children:[t.jsx(b,{columns:[{title:v("模å"),dataIndex:"model",width:220},{title:v("æç¤º"),dataIndex:"inputPrice",width:180,render:e=>t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"font-semibold",style:{color:"hsl(var(--warning))"},children:e}),t.jsxs("div",{className:"text-xs",style:{color:"hsl(var(--muted-foreground))"},children:["/ ",n," tokens"]})]})},{title:v("è¡¥å
¨"),dataIndex:"outputPrice",width:180,render:(e,i)=>i.model.startsWith("qwen3-tts")?t.jsx("div",{className:"font-semibold",style:{color:"hsl(var(--muted-foreground))"},children:v("ä¸è®¡è´¹")}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"font-semibold",style:{color:"hsl(var(--warning))"},children:e}),t.jsxs("div",{className:"text-xs",style:{color:"hsl(var(--muted-foreground))"},children:["/ ",n," tokens"]})]})}],dataSource:[{model:"qwen-tts",inputPrice:m(c),outputPrice:m(u)},{model:"qwen-tts-latest",inputPrice:m(c),outputPrice:m(u)},{model:"qwen-tts-2025-05-22",inputPrice:m(c),outputPrice:m(u)},{model:"qwen-tts-2025-06-05",inputPrice:m(c),outputPrice:m(u)},{model:"qwen3-tts-flash",inputPrice:m(p),outputPrice:"-"},{model:"qwen3-tts-flash-2025-11-27",inputPrice:m(p),outputPrice:"-"},{model:"qwen3-tts-flash-2025-09-18",inputPrice:m(p),outputPrice:"-"}],pagination:!1,size:"small",scroll:{x:"max-content"}}),t.jsxs("div",{className:"text-xs text-gray-500 mt-2",children:["* ",v("qwen3-tts ç³»åè¾å
¥ä»·æ ¼æ¯ qwen-tts ç 100 åï¼è¾åºä¸è®¡è´¹")]})]})}});else if(f){const e=`/ 1${"K"===s?"K":"M"} Tokens`;m.push({title:"",dataIndex:"inputPrice",render:(i,r)=>{const o=[{label:v("è¾å
¥ä»·æ ¼"),value:r.inputPrice},{label:v("è¡¥å
¨ä»·æ ¼"),value:r.outputPrice},r.imageInputPrice?{label:v("å¾çè¾å
¥ä»·æ ¼"),value:r.imageInputPrice}:null,r.cacheCreation5mPrice?{label:v("5mç¼ååå»ºä»·æ ¼"),value:r.cacheCreation5mPrice}:r.cacheCreationPrice?{label:v("ç¼ååå»ºä»·æ ¼"),value:r.cacheCreationPrice}:null,r.cacheCreation1hPrice?{label:v("1hç¼ååå»ºä»·æ ¼"),value:r.cacheCreation1hPrice}:null,r.cacheHitPrice?{label:v("ç¼åå½ä¸ä»·æ ¼"),value:r.cacheHitPrice}:null,r.audioInputPrice?{label:v("é³é¢è¾å
¥ä»·æ ¼"),value:r.audioInputPrice}:null,r.audioOutputPrice?{label:v("é³é¢è¡¥å
¨ä»·æ ¼"),value:r.audioOutputPrice}:null].filter(Boolean);return t.jsx("div",{className:"text-xs space-y-1",children:o.map(i=>t.jsxs("div",{children:[t.jsxs("div",{className:"font-semibold",style:{color:"hsl(var(--foreground) / 0.80)"},children:[i.label," ",i.value]}),t.jsx("div",{style:{color:"hsl(var(--muted-foreground))"},children:e})]},i.label))})}})}else{const e=`/ 1${"K"===s?"K":"M"} Tokens`;m.push({title:v("ä»·æ ¼æè¦"),dataIndex:"inputPrice",render:(i,r)=>
1{const o=[{label:v("è¾å
¥ä»·æ ¼"),value:r.inputPrice},{label:v("è¡¥å
¨ä»·æ ¼"),value:r.outputPrice},r.imageInputPrice?{label:v("å¾çè¾å
¥ä»·æ ¼"),value:r.imageInputPrice}:null,r.cacheCreation5mPrice?{label:v("5mç¼ååå»ºä»·æ ¼"),value:r.cacheCreation5mPrice}:r.cacheCreationPrice?{label:v("ç¼ååå»ºä»·æ ¼"),value:r.cacheCreationPrice}:null,r.cacheCreation1hPrice?{label:v("1hç¼ååå»ºä»·æ ¼"),value:r.cacheCreation1hPrice}:null,r.cacheHitPrice?{label:v("ç¼åå½ä¸ä»·æ ¼"),value:r.cacheHitPrice}:null,r.audioInputPrice?{label:v("é³é¢è¾å
¥ä»·æ ¼"),value:r.audioInputPrice}:null,r.audioOutputPrice?{label:v("é³é¢è¡¥å
¨ä»·æ ¼"),value:r.audioOutputPrice}:null].filter(Boolean);return t.jsx("div",{className:"space-y-1",children:o.map(i=>t.jsxs("div",{children:[t.jsxs("div",{className:"font-semibold",style:{color:"hsl(var(--warning))"},children:[i.label," ",i.value]}),t.jsx("div",{className:"text-xs",style:{color:"hsl(var(--muted-foreground))"},children:e})]},i.label))})}})}else if(1!==r?.quota_type||i)if(2!==r?.quota_type||i)if(3!==r?.quota_type||i)4!==r?.quota_type||i||(x.startsWith("happyhorse-1.0-")?m.push({title:v("ä»·æ ¼"),dataIndex:"videoTimePrice",render:(e,i)=>{const o=i.priceData?.usedGroupRatio??1,a=Number(r?.model_price||0)*o;return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("å辨ç"),dataIndex:"resolution"},{title:v("ä»·æ ¼ï¼æç§è®¡è´¹ï¼"),dataIndex:"price"}],dataSource:[{key:"720p",resolution:"720P",price:ae(90*a)+" / "+v("ç§")},{key:"1080p",resolution:"1080P",price:ae(160*a)+" / "+v("ç§")}],pagination:!1,size:"small"})})}}):x.startsWith("happyhorse-1.1-")?m.push({title:v("ä»·æ ¼"),dataIndex:"videoTimePrice",render:(e,i)=>{const o=i.priceData?.usedGroupRatio??1,a=Number(r?.model_price||0)*o;return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("å辨ç"),dataIndex:"resolution"},{title:v("ä»·æ ¼ï¼æç§è®¡è´¹ï¼"),dataIndex:"price"}],dataSource:[{key:"720p",resolution:"720P",price:ae(90*a)+" / "+v("ç§")},{key:"1080p",resolution:"1080P",price:ae(120*a)+" / "+v("ç§")}],pagination:!1,size:"small"})})}}):"wan2.5-i2v-preview"===x||"alibailian-video"===x?m.push({title:v("ä»·æ ¼"),dataIndex:"videoTimePrice",render:(e,i)=>{const r=ne(e);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("å辨ç"),dataIndex:"resolution"},{title:v("æ¶é¿"),dataIndex:"duration"},{title:v("ä»·æ ¼"),dataIndex:"price"}],dataSource:[{resolution:"480P",duration:"5s",price:ae(.3*r*5)},{resolution:"480P",duration:"10s",price:ae(.3*r*10)},{resolution:"720P",duration:"5s",price:ae(.6*r*5)},{resolution:"720P",duration:"10s",price:ae(.6*r*10)},{resolution:"1080P",duration:"5s",price:ae(1*r*5)},{resolution:"1080P",duration:"10s",price:ae(1*r*10)}],pagination:!1,size:"small"})})}}):"wan2.6-i2v"===x?m.push({title:v("ä»·æ ¼"),dataIndex:"videoTimePrice",render:(e,i)=>{const r=ne(e);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("å辨ç"),dataIndex:"resolution"},{title:v("æ¶é¿"),dataIndex:"duration"},{title:v("ä»·æ ¼"),dataIndex:"price"}],dataSource:[{resolution:"720P",duration:"5s",price:ae(.6*r*5)},{resolution:"720P",duration:"10s",price:ae(.6*r*10)},{resolution:"720P",duration:"15s",price:ae(.6*r*15)},{resolution:"1080P",duration:"5s",price:ae(1*r*5)},{resolution:"1080P",duration:"10s",price:ae(1*r*10)},{resolution:"1080P",duration:"15s",price:ae(1*r*15)}],pagination:!1,size:"small"})})}}):"wan2.6-i2v-flash"===x?m.push({title:v("ä»·æ ¼"),dataIndex:"videoTimePrice",render:(e,i)=>{const r=ne(e);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("é³é¢"),dataIndex:"hasAudio"},{title:v("å辨ç"),dataIndex:"resolution"},{title:v("æ¶é¿"),dataIndex:"duration"},{title:v("ä»·æ ¼"),dataIndex:"price"}],dataSource:[{hasAudio:v("æå£°"),resolution:"720P",duration:"5s",price:ae(.6*r*5)},{hasAudio:v("æå£°"),resolution:"720P",duration:"10s",price:ae(.6*r*10)},{hasAudio:v("æå£°"),resolution:"720P",duration:"15s",price:ae(.6*r*15)},{hasAudio:v("æå£°"),resolution:"1080P",duration:"5s",price:ae(1*r*5)},{hasAudio:v("æå£°"),resolution:"1080P",duration:"10s",price:ae(1*r*10)},{hasAudio:v("æå£°"),resolution:"1080P",duration:"15s",price:ae(1*r*15)},{hasAudio:v("æ 声"),resolution:"720P",duration:"5s",price:ae(.6*r*.5*5)},{hasAudio:v("æ 声"),resolution:"720P",duration:"10s",price:ae(.6*r*.5*10)},{hasAudio:v("æ 声"),resolution:"720P",duration:"15s",price:ae(.6*r*.5*15)},{hasAudio:v("æ 声"),resolution:"1080P",duration:"5s",price:ae(1*r*.5*5)},{hasAudio:v("æ 声"),resolution:"1080P",duration:"10s",price:ae(1*r*.5*10)},{hasAudio:v("æ 声"),resolution:"1080P",duration:"15s",price:ae(1*r*.5*15)}],pagination:!1,size:"small"})})}}):"sora-2"===x?m.push({title:v("ä»·æ ¼"),dataIndex:"videoTimePrice",render:(e,i)=>{const r=ne(e);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("å辨ç"),dataIndex:"resolution"},{title:v("æ¶é¿"),dataIndex:"duration"},{title:v("ä»·æ ¼"),dataIndex:"price"}],dataSource:[{resolution:"720x1280,1280x720",duration:"4s",price:ae(4*r)},{resolution:"720x1280,1280x720",duration:"8s",price:ae(8*r)},{resolution:"720x1280,1280x720",duration:"12s",price:ae(12*r)}],pagination:!1,size:"small"})})}}):"sora-2-pro"===x?m.push({title:v("ä»·æ ¼"),dataIndex:"videoTimePrice",render:(e,i)=>{const r=ne(e);return t.jsx("div",{className:"!rounded-2xl overflow-hidden shadow-sm",children:t.jsx(b,{columns:[{title:v("å辨ç"),dataIndex:"resolution"},{title:v("æ¶é¿"),dataIndex:"duration"},{title:v("ä»·æ ¼"),dataIndex:"price"}],dataSource:[{resolution:"720x1280,1280x720",duration:"4s",price:ae(1*r*4)},{resolution:"720x1280,1280x720",duration:"8s",price:ae(1*r*8)},{resolution:"720x1280,1280x720",duration:"12s",price:ae(1*r*12)},{resolution:"1024x1792,1792x1024",duration:"4s",price:ae(1.666667*r*4)},{resolution:"1024x1792,1792x1024",duration:"8s",price:ae(1.666667*r*8)},{resolution:"1024x1792,1792x1024",duration:"12s",price:ae(1.666667*r*12)}],pagination:!1})})}}):"kling-motion-control"===x?m.push({title:v("ä»·æ ¼"),dataIndex:"videoTimePrice",render:(e,i)=>{const r=ne(e);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("çæ¬"),dataIndex:"version"},{title:v("模å¼"),dataIndex:"mode"},{title:v("ä»·æ ¼ï¼æç§è®¡è´¹ï¼"),dataIndex:"price"}],dataSource:[{key:"v26-std",version:"V2.6",mode:"std (720P)",price:ae(1*r)+v("/ç§")},{key:"v26-pro",version:"V2.6",mode:"pro (1080P)",price:ae(1.6*r)+v("/ç§")},{key:"v3-std",version:"V3.0",mode:"std (720P)",price:ae(1.8*r)+v("/ç§")},{key:"v3-pro",version:"V3.0",mode:"pro (1080P)",price:ae(2.4*r)+v("/ç§")}],pagination:!1,size:"small"})})}}):m.push({title:v("ä»·æ ¼"),dataIndex:"videoTimePrice",render:e=>t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"font-semibold text-orange-600",children:e}),t.jsxs("div",{className:"text-xs text-gray-500",children:["/ ",v("ç§")]})]})}));else{const e=(e=>(e=>"string"==typeof e&&e.startsWith("doubao-seedance-1-"))(e)?e.includes("lite-i2v")?["480p","720p"]:["480p","720p","1080p"]:[])(x);e.length>0?m.push({title:v("ä»·æ ¼"),dataIndex:"videoPrice",render:(i,r)=>{const o=r?.priceData?.rawPrice??r?.rawPrice??0,a=e.map(e=>{const t=o*(24*(yt[e]||0)*1/1024)/1e6;return{key:e,resolution:e.toUpperCase(),price:ae(t)}});return t.jsx(b,{columns:[{title:v("å辨ç"),dataIndex:"resolution"},{title:v("ä»·æ ¼ï¼æå°ºå¯¸è®¡è´¹ï¼"),dataIndex:"price",render:e=>t.jsxs("span",{className:"whitespace-nowrap",children:[t.jsx("span",{className:"font-semibold text-orange-600",children:e}),t.jsxs("span",{className:"text-xs text-gray-500",children:[" / ",v("ç§")]})]})}],dataSource:a,pagination:!1,size:"small"})}}):m.push({title:v("ä»·æ ¼"),dataIndex:"videoPrice",render:e=>t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"font-semibold text-orange-600",children:e}),t.jsxs("div",{className:"text-xs text-gray-500",children:["/ ","K"===s?"1K":"1M"," tokens"]})]})})}else m.push({title:v("ä»·æ ¼"),dataIndex:"pixelPrice",render:e=>t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"font-semibold text-orange-600",children:e}),t.jsx("div",{className:"text-xs text-gray-500",children:"/ åç´ "})]})});else{const e=r?.model_name||"";if(e.includes("dall"))m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const r=ne(e);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("è´¨é"),dataIndex:"quality"},{title:v("å辨ç"),dataIndex:"resolution"},{title:v("ä»·æ ¼"),dataIndex:"price"}],dataSource:[{quality:"Standard",resolution:"1024Ã1024",price:ae(r)},{quality:"Standard",resolution:"1024Ã1792 1792Ã1024",price:ae(2*r)},{quality:"HD",resolution:"1024Ã1024",price:ae(2*r)},{quality:"HD",resolution:"1024Ã1792 1792Ã1024",price:ae(3*r)}],pagination:!1,size:"small"})})}});else if("kling-image"===e)m.push({title:v("åå¼ ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const r=ne(e);return t.jsxs("div",{children:[t.jsx("div",{className:"text-xs text-gray-500 mb-1",children:v("æå¼ 计费ï¼åæ° n èå´ 1-9")}),t.jsx(b,{columns:[{title:v("模åçæ¬"),dataIndex:"version"},{title:v("çæç±»å"),dataIndex:"generationType"},{title:v("å辨ç"),dataIndex:"resolution"},{title:v("åå¼ ä»·æ ¼"),dataIndex:"price"}],dataSource:[{version:"kling-v1",generationType:v("æçå¾"),resolution:"1K",price:ae(1*r)},{version:"kling-v1",generationType:v("å¾çå¾"),resolution:"1K",price:ae(1*r)},{version:"kling-v1-5",generationType:v("æçå¾"),resolution:"1K",price:ae(4*r)},{version:"kling-v1-5",generationType:v("å¾çå¾"),resolution:"1K",price:ae(8*r)},{version:"kling-v2",generationType:v("æçå¾"),resolution:"1K/2K",price:ae(4*r)},{version:"kling-v2",generationType:v("å¾çå¾"),resolution:"1K",price:ae(8*r)},{version:"kling-v2",generationType:v("å¤å¾çå¾"),resolution:"1K",price:ae(16*r)},{version:"kling-v2-new",generationType:v("å¾çå¾"),resolution:"1K",price:ae(8*r)},{version:"kling-v2-1",generationType:v("æçå¾"),resolution:"1K",price:ae(4*r)},{version:"kling-v2-1",generationType:v("å¤å¾çå¾"),resolution:"1K",price:ae(16*r)},{version:"kling-v3",generationType:v("æçå¾/å¾çå¾"),resolution:"1K/2K",price:ae(8*r)},{version:"-",generationType:v("æ©å¾"),resolution:"1K",price:ae(8*r)}],pagination:!1,size:"small"})]})}});else if("kling-omni-image"===e)m.push({title:v("åå¼ ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const r=ne(e);return t.jsxs("div",{children:[t.jsx("div",{className:"text-xs text-gray-500 mb-1",children:v("æå¼ 计费ï¼åæ° n èå´ 1-9")}),t.jsx(b,{columns:[{title:v("模åçæ¬"),dataIndex:"version"},{title:v("çæç±»å"),dataIndex:"generationType"},{title:v("å辨ç"),dataIndex:"resolution"},{title:v("åå¼ ä»·æ ¼"),dataIndex:"price"}],dataSource:[{version:"kling-image-o1",generationType:v("æçå¾/å¾çå¾"),resolution:"1K/2K",price:ae(1*r)},{version:"kling-v3-omni",generationType:v("æçå¾/å¾çå¾"),resolution:"1K/2K",price:ae(1*r)},{version:"kling-v3-omni",generationType:v("æçå¾/å¾çå¾"),resolution:"4K",price:ae(2*r)}],pagination:!1,size:"small"})]})}});else if("kling-video"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const r=ne(e);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("模åçæ¬"),dataIndex:"version"},{title:v("模å¼"),dataIndex:"mode"},{title:v("æ¶é¿"),dataIndex:"duration"},{title:v("é³é¢"),dataIndex:"hasAudio"},{title:v("é³è²"),dataIndex:"hasVoiceId"},{title:v("ä»·æ ¼"),dataIndex:"price"}],dataSource:[{version:"kling-v1",mode:"std",duration:"5s",hasAudio:"-",hasVoiceId:"-",price:ae(1*r)},{version:"kling-v1",mode:"std",duration:"10s",hasAudio:"-",hasVoiceId:"-",price:ae(2*r)},{version:"kling-v1",mode:"pro",duration:"5s",hasAudio:"-",hasVoiceId:"-",price:ae(3.5*r)},{version:"kling-v1",mode:"pro",duration:"10s",hasAudio:"-",hasVoiceId:"-",price:ae(7*r)},{version:"kling-v1-5",mode:"std",duration:"5s",hasAudio:"-",hasVoiceId:"-",price:ae(2*r)},{version:"kling-v1-5",mode:"std",duration:"10s",hasAudio:"-",hasVoiceId:"-",price:ae(4*r)},{version:"kling-v1-5",mode:"pro",duration:"5s",hasAudio:"-",hasVoiceId:"-",price:ae(3.5*r)},{version:"kling-v1-5",mode:"pro",duration:"10s",hasAudio:"-",hasVoiceId:"-",price:ae(7*r)},{version:"kling-v1-6",mode:"std",duration:"5s",hasAudio:"-",hasVoiceId:"-",price:ae(2*r)},{version:"kling-v1-6",mode:"std",duration:"10s",hasAudio:"-",hasVoiceId:"-",price:ae(4*r)},{version:"kling-v1-6",mode:"pro",duration:"5s",hasAudio:"-",hasVoiceId:"-",price:ae(3.5*r)},{version:"kling-v1-6",mode:"pro",duration:"10s",hasAudio:"-",hasVoiceId:"-",price:ae(7*r)},{version:"kling-v2-master",mode:"std",duration:"5s",hasAudio:"-",hasVoiceId:"-",price:ae(10*r)},{version:"kling-v2-master",mode:"std",duration:"10s",hasAudio:"-",hasVoiceId:"-",price:ae(20*r)},{version:"kling-v2-1",mode:"std",duration:"5s",hasAudio:"-",hasVoiceId:"-",price:ae(2*r)},{version:"kling-v2-1",mode:"std",duration:"10s",hasAudio:"-",hasVoiceId:"-",price:ae(4*r)},{version:"kling-v2-1",mode:"pro",duration:"5s",hasAudio:"-",hasVoiceId:"-",price:ae(3.5*r)},{version:"kling-v2-1",mode:"pro",duration:"10s",hasAudio:"-",hasVoiceId:"-",price:ae(7*r)},{version:"kling-v2-1-master",mode:"-",duration:"5s",hasAudio:"-",hasVoiceId:"-",price:ae(10*r)},{version:"kling-v2-1-master",mode:"-",duration:"10s",hasAudio:"-",hasVoiceId:"-",price:ae(20*r)},{version:"kling-v2-5-turbo",mode:"std",duration:"5s",hasAudio:"-",hasVoiceId:"-",price:ae(1.5*r)},{version:"kling-v2-5-turbo",mode:"std",duration:"10s",hasAudio:"-",hasVoiceId:"-",price:ae(3*r)},{version:"kling-v2-5-turbo",mode:"pro",duration:"5s",hasAudio:"-",hasVoiceId:"-",price:ae(2.5*r)},{version:"kling-v2-5-turbo",mode:"pro",duration:"10s",hasAudio:"-",hasVoiceId:"-",price:ae(5*r)},{version:"kling-v2-6",mode:"std",duration:"5s",hasAudio:v("å¦"),hasVoiceId:v("å¦"),price:ae(1.5*r)},{version:"kling-v2-6",mode:"std",duration:"10s",hasAudio:v("å¦"),hasVoiceId:v("å¦"),price:ae(3*r)},{version:"kling-v2-6",mode:"pro",duration:"5s",hasAudio:v("å¦"),hasVoiceId:v("å¦"),price:ae(2.5*r)},{version:"kling-v2-6",mode:"pro",duration:"10s",hasAudio:v("å¦"),hasVoiceId:v("å¦"),price:ae(5*r)},{version:"kling-v2-6",mode:"pro",duration:"5s",hasAudio:v("æ¯"),hasVoiceId:v("å¦"),price:ae(5*r)},{version:"kling-v2-6",mode:"pro",duration:"10s",hasAudio:v("æ¯"),hasVoiceId:v("å¦"),price:ae(10*r)},{version:"kling-v2-6",mode:"pro",duration:"5s",hasAudio:v("æ¯"),hasVoiceId:v("æ¯"),price:ae(6*r)},{version:"kling-v2-6",mode:"pro",duration:"10s",hasAudio:v("æ¯"),hasVoiceId:v("æ¯"),price:ae(12*r)},{version:"kling-v3",mode:"std",duration:"3-15s",hasAudio:v("å¦"),hasVoiceId:v("å¦"),price:`${v("æ¯ç§")} ${ae(.6*r)}`},{version:"kling-v3",mode:"std",duration:"3-15s",hasAudio:v("æ¯"),hasVoiceId:v("å¦"),price:`${v("æ¯ç§")} ${ae(.9*r)}`},{version:"kling-v3",mode:"pro",duration:"3-15s",hasAudio:v("å¦"),hasVoiceId:v("å¦"),price:`${v("æ¯ç§")} ${ae(.8*r)}`},{version:"kling-v3",mode:"pro",duration:"3-15s",hasAudio:v("æ¯"),hasVoiceId:v("å¦"),price:`${v("æ¯ç§")} ${ae(1.2*r)}`}],pagination:!1,size:"small"})})}});else if("kling-omni-video"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const r=ne(e);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("模åçæ¬"),dataIndex:"version"},{title:v("模å¼"),dataIndex:"mode"},{title:v("æ¯å¦æåèè§é¢"),dataIndex:"hasVideo"},{title:v("é³é¢"),dataIndex:"hasAudio"},{title:v("ä»·æ ¼"),dataIndex:"price"}],dataSource:[{version:"kling-video-o1",mode:"std",hasVideo:v("å¦"),hasAudio:v("å¦"),price:`${v("æ¯ç§")} ${ae(.6*r)}`},{version:"kling-video-o1",mode:"std",hasVideo:v("æ¯"),hasAudio:v("å¦"),price:`${v("æ¯ç§")} ${ae(.9*r)}`},{version:"kling-video-o1",mode:"pro",hasVideo:v("å¦"),hasAudio:v("å¦"),price:`${v("æ¯ç§")} ${ae(.8*r)}`},{version:"kling-video-o1",mode:"pro",hasVideo:v("æ¯"),hasAudio:v("å¦"),price:`${v("æ¯ç§")} ${ae(1.2*r)}`},{version:"kling-v3-omni",mode:"std",hasVideo:v("å¦"),hasAudio:v("å¦"),price:`${v("æ¯ç§")} ${ae(.6*r)}`},{version:"kling-v3-omni",mode:"std",hasVideo:v("å¦"),hasAudio:v("æ¯"),price:`${v("æ¯ç§")} ${ae(.8*r)}`},{version:"kling-v3-omni",mode:"std",hasVideo:v("æ¯"),hasAudio:v("å¦"),price:`${v("æ¯ç§")} ${ae(.9*r)}`},{version:"kling-v3-omni",mode:"pro",hasVideo:v("å¦"),hasAudio:v("å¦"),price:`${v("æ¯ç§")} ${ae(.8*r)}`},{version:"kling-v3-omni",mode:"pro",hasVideo:v("å¦"),hasAudio:v("æ¯"),price:`${v("æ¯ç§")} ${ae(1*r)}`},{version:"kling-v3-omni",mode:"pro",hasVideo:v("æ¯"),hasAudio:v("å¦"),price:`${v("æ¯ç§")} ${ae(1.2*r)}`},{version:"kling-v
13-omni",mode:"4k",hasVideo:"-",hasAudio:"-",price:`${v("æ¯ç§")} ${ae(3*r)}`}],pagination:!1,size:"small"})})}});else if("kling-effects"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const r=ne(e);return t.jsxs("div",{children:[t.jsxs("div",{style:{marginBottom:"12px",padding:"8px 12px",background:"#f0f7ff",borderRadius:"6px",fontSize:"13px"},children:[t.jsxs("div",{style:{marginBottom:"6px",fontWeight:500},children:["ð ",v("ç¹æä»·æ ¼è¯´æ"),"ï¼"]}),t.jsxs("div",{style:{color:"#666",lineHeight:"1.6"},children:["⢠",v("åºåºä»·æ ¼"),": ",ae(r),t.jsx("br",{}),"⢠",v("å®é
ä»·æ ¼æ ¹æ®ä¸åç¹æåºæ¯èªå¨è®¡ç®ï¼å·²æ¯æ251ç§ç¹æç¬ç«å®ä»·ï¼"),t.jsx("br",{}),"⢠",v("ä»·æ ¼èå´"),": ",ae(1*r)," ~ ",ae(9*r),t.jsx("br",{})]}),t.jsxs("div",{style:{marginTop:"8px",padding:"6px 8px",background:"#fff",borderRadius:"4px",fontSize:"12px"},children:["ð ",v("宿´ç¹æå表åä»·æ ¼è¯·æ¥ç"),"ï¼",t.jsx("br",{}),t.jsx("a",{href:"https://app.klingai.com/cn/dev/document-api/quickStart/productIntroduction/effectsCenter",target:"_blank",rel:"noopener noreferrer",style:{color:"#1890ff",textDecoration:"underline"},children:v("å¯çµAI宿¹ç¹æä¸å¿ææ¡£")})]})]}),t.jsx(b,{columns:[{title:v("ç¹æç±»å"),dataIndex:"effectType"},{title:v("ä»·æ ¼ç¤ºä¾"),dataIndex:"price"},{title:v("说æ"),dataIndex:"note"}],dataSource:[{effectType:v("è¶
é«ä»·ç¹æ"),price:ae(9*r),note:v("å¦ french_elegance, flash_drive ç")},{effectType:v("é«ä»·ç¹æ"),price:ae(7*r),note:v("å¦ bullet_time, sedan_chair_dance ç")},{effectType:v("ä¸é«ä»·ç¹æ"),price:ae(5*r),note:v("å¦ daoma_dance, expression_challenge ç")},{effectType:v("ä¸ä»·ç¹æ"),price:ae(3.5*r),note:v("å¦ birthday_star, happy_birthday ç")},{effectType:v("ä¸ä½ä»·ç¹æ"),price:ae(2*r),note:v("å¦ running_man, angel_wing ç")},{effectType:v("ä½ä»·ç¹æ"),price:ae(1.5*r),note:v("å¦ hug_pro, kiss_pro ç")},{effectType:v("è¶
ä½ä»·ç¹æ"),price:ae(1*r),note:v("å¦ a_list_look, boss_coming ç")}],pagination:!1,size:"small"}),t.jsxs("div",{style:{marginTop:"12px",fontSize:"12px",color:"#999"},children:["* ",v("åäººç¹æä¹æå¯¹åº effect_scene åºå®ä»·æ ¼è®¡è´¹ï¼ä¸æ¶é¿ãæ¨¡åæ å
³ï¼")]})]})}});else if("kling-audio"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const r=ne(e);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("模å"),dataIndex:"version"},{title:v("ä»·æ ¼"),dataIndex:"price"}],dataSource:[{version:v("æç鳿"),price:ae(5*r)},{version:v("è§é¢ç鳿"),price:ae(5*r)},{version:v("è¯é³åæ"),price:ae(1*r)}],pagination:!1,size:"small"})})}});else if("kling-3.0-turbo"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const o=i.ratio??i.priceData?.usedGroupRatio??1,a=Number(r?.model_price||.01)*o;return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("å辨ç"),dataIndex:"resolution"},{title:v("ä»·æ ¼ï¼æç§è®¡è´¹ï¼"),dataIndex:"price"}],dataSource:[{resolution:"720Pï¼æå£°ï¼",price:ae(80*a)+" / "+v("ç§")},{resolution:"1080Pï¼æå£°ï¼",price:ae(100*a)+" / "+v("ç§")}],pagination:!1,size:"small"})})}});else if("suno_music_open"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const o=i.perCreditPrice??parseFloat(r?.model_price||.01)*(i.ratio??1)*4.5,a=e=>ae(o*e);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("åè½"),dataIndex:"feature"},{title:v("ä»·æ ¼"),dataIndex:"price"}],dataSource:[{feature:v("åèµ·åä½"),price:a(10)},{feature:v("çæé³æ"),price:a(2)},{feature:v("人声伴å¥å离"),price:a(10)},{feature:v("å
¨è½¨éè¯æ²å离+MIDI"),price:a(50)},{feature:v("è·åæè¯æ¶é´çº¿(URL)"),price:a(5)},{feature:v("çææè¯"),price:ae(0)},{feature:v("æåé³ä¹é£æ ¼"),price:ae(0)},{feature:v("ä¸ä¼ åèé³é¢"),price:ae(0)},{feature:v("å建ææé£æ ¼(Persona)"),price:ae(0)}],pagination:!1,size:"small"})})}});else if("pixverse-video"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:e=>{const i=ne(e),r=[{quality:"360p",noAudio:6,withAudio:8},{quality:"540p",noAudio:8,withAudio:10},{quality:"720p",noAudio:10,withAudio:13},{quality:"1080p",noAudio:19,withAudio:24}].map(e=>({quality:e.quality,duration:v("æ¯ç§"),noAudio:`${e.noAudio} (${ae(i*e.noAudio)})`,withAudio:`${e.withAudio} (${ae(i*e.withAudio)})`}
1)),o=[{quality:"360p",noAudio:5,withAudio:7},{quality:"540p",noAudio:7,withAudio:9},{quality:"720p",noAudio:9,withAudio:12},{quality:"1080p",noAudio:18,withAudio:23}].map(e=>({quality:e.quality,duration:v("æ¯ç§"),noAudio:`${e.noAudio} (${ae(i*e.noAudio)})`,withAudio:`${e.withAudio} (${ae(i*e.withAudio)})`})),a=[];Object.entries({"360p / 540p":{5:[35,80],8:[70,115],10:[77,122]},"720p":{5:[45,90],8:[90,135],10:[99,144]},"1080p":{5:[75,120],8:[150,195],10:[165,210]}}).forEach(([e,t])=>{Object.entries(t).forEach(([t,[r,o]])=>{a.push({quality:e,duration:`${t}s`,noAudio:`${r} (${ae(i*r)})`,withAudio:`${o} (${ae(i*o)})`})})});const n=[];Object.entries({"360p / 540p":{5:[45,55,75,85],8:[90,100,120,130],10:[99,109,129,139]},"720p":{5:[60,70,90,100],8:[120,130,150,160],10:[132,142,162,172]},"1080p":{5:[120,130,150,160],8:[240,250,270,280],10:[264,274,294,304]}}).forEach(([e,t])=>{Object.entries(t).forEach(([t,[r,o,a,s]])=>{n.push({quality:e,duration:`${t}s`,singleNo:`${r} (${ae(i*r)})`,singleAudio:`${o} (${ae(i*o)})`,multiNo:`${a} (${ae(i*a)})`,multiAudio:`${s} (${ae(i*s)})`})})});const s={"360p / 540p":{5:45,8:90},"720p":{5:60,8:120},"1080p":{5:120,8:240}},l=[];Object.entries(s).forEach(([e,t])=>{Object.entries(t).forEach(([t,r])=>{l.push({quality:e,duration:`${t}s`,mode:"normal",credits:r,price:ae(i*r)})})});const d=[];Object.entries(s).forEach(([e,t])=>{Object.entries(t).forEach(([t,r])=>{d.push({quality:e,duration:`${t}s`,mode:"normal",credits:r,price:ae(i*r)})});const r=t[5];d.push({quality:e,duration:"5s",mode:"fast",credits:2*r,price:ae(i*r*2)})});const c=[];Object.entries(s).forEach(([e,t])=>{Object.entries(t).forEach(([t,r])=>{c.push({quality:e,duration:`${t}s`,mode:"normal",credits:r,price:ae(i*r)})})});const u=[{title:v("å辨ç"),dataIndex:"quality"},{title:v("æ¶é¿"),dataIndex:"duration"},{title:v("ä¸å¸¦å£°é³ (积å/ä»·æ ¼)"),dataIndex:"noAudio"},{title:v("å¸¦å£°é³ (积å/ä»·æ ¼)"),dataIndex:"withAudio"}],p=[{title:v("å辨ç"),dataIndex:"quality"},{title:v("æ¶é¿"),dataIndex:"duration"},{title:v("åé头·æ 声"),dataIndex:"singleNo"},{title:v("åé头·带声"),dataIndex:"singleAudio"},{title:v("å¤é头·æ 声"),dataIndex:"multiNo"},{title:v("å¤é头·带声"),dataIndex:"multiAudio"}],m=[{title:v("å辨ç"),dataIndex:"quality"},{title:v("æ¶é¿"),dataIndex:"duration"},{title:v("å¨ä½æ¨¡å¼"),dataIndex:"mode"},{title:v("积å"),dataIndex:"credits"},{title:v("ä»·æ ¼"),dataIndex:"price"}],x={marginTop:"10px",marginBottom:"4px",fontSize:"13px",fontWeight:600};return t.jsxs("div",{children:[t.jsx("div",{style:{...x,marginTop:0},children:v("C1ï¼æç§è®¡è´¹ï½æç / å¾ç / é¦å°¾å¸§ / å¤ä¸»ä½ï¼")}),t.jsx(b,{columns:u,dataSource:r,pagination:!1,size:"small",rowKey:"quality"}),t.jsx("div",{style:x,children:v("V6ï¼æç§è®¡è´¹ï½æç / å¾ç / é¦å°¾å¸§ / è§é¢å»¶é¿ï¼")}),t.jsx(b,{columns:u,dataSource:o,pagination:!1,size:"small",rowKey:"quality"}),t.jsx("div",{style:x,children:v("V5.6 åéå¤´ï¼ææ¬¡ï½æç / å¾ç / é¦å°¾å¸§ / å¤ä¸»ä½ï¼")}),t.jsx(b,{columns:u,dataSource:a,pagination:!1,size:"small",rowKey:e=>`${e.quality}-${e.duration}`}),t.jsx("div",{style:x,children:v("V5.5 å / å¤éå¤´ï¼ææ¬¡ï½æç / å¾ç / é¦å°¾å¸§ / è§é¢å»¶é¿ï¼")}),t.jsx(b,{columns:p,dataSource:n,pagination:!1,size:"small",rowKey:e=>`${e.quality}-${e.duration}`}),t.jsx("div",{style:x,children:v("V5ï¼ææ¬¡ï½ä»
normal 模å¼ï¼")}),t.jsx(b,{columns:m,dataSource:l,pagination:!1,size:"small",rowKey:e=>`${e.quality}-${e.duration}-${e.mode}`}),t.jsx("div",{style:x,children:v("V4.5 / V4 / V3.5ï¼ææ¬¡ï½fast ä»
5s å¯ç¨ï¼çå normal à 2ï¼")}),t.jsx(b,{columns:m,dataSource:d,pagination:!1,size:"small",rowKey:e=>`${e.quality}-${e.duration}-${e.mode}`}),t.jsx("div",{style:x,children:v("V4.5 å¤ä¸»ä½ fusionï¼ææ¬¡ï½åèçè§é¢ï¼")}),t.jsx(b,{columns:m,dataSource:c,pagination:!1,size:"small",rowKey:e=>`${e.quality}-${e.duration}-${e.mode}`}),It({perCredit:i,formatPrice:ae,t:v,pixverseTplStats:re,actions:["text2video","img2video","transition","extend","fusion"],isImageTemplate:!1})]})}});else if("pixverse-lipsync"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:e=>{const i=ne(e);return t.jsxs("div",{children:[t.jsx(b,{columns:[{title:v("计费æ¹å¼"),dataIndex:"mode"},{title:v("åä»·"),dataIndex:"unit"},{title:v("积å"),dataIndex:"credits"},{title:v("ä»·æ ¼"),dataIndex:"price"}],dataSource:[{mode:v("é³é¢å¯¹å£å"),unit:v("æ¯ç§"),credits:4,price:ae(4*i)}],pagination:!1,size:"small"}),t.jsxs("div",{style:{marginTop:"8px",fontSize:"12px",color:"#999"},children:["* ",v("æé³é¢æ¶é¿ï¼ç§ï¼åä¸åæ´ï¼è®¡è´¹ï¼body.duration å¿
å¡«")]})]})}});else if("pixverse-restyle"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:e=>{const i=ne(e);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("计费æ¹å¼"),dataIndex:"mode"},{title:v("åä»·"),dataIndex:"unit"},{title:v("积å"),dataIndex:"credits"},{title:v("ä»·æ ¼"),dataIndex:"price"}],dataSource:[{mode:v("è§é¢éç»"),unit:v("æ¯ç§"),credits:10,price:ae(10*i)}],pagination:!1,size:"small"})})}});else if("pixverse-multi-transition"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:e=>{const i=ne(e),r={1:23,2:27,3:32,4:36,5:45,6:59,7:72,8:90,9:95,10:99,11:104,12:108,13:117,14:126,15:135,16:144,17:153,18:162,19:171,20:180,21:189,22:198,23:207,24:216,25:225,26:234,27:243,28:252,29:261,30:270},o={1:30,2:36,3:42,4:48,5:60,6:78,7:96,8:120,9:126,10:132,11:138,12:144,13:156,14:168,15:180,16:192,17:204,18:216,19:228,20:240,21:252,22:264,23:276,24:288,25:300,26:312,27:324,28:336,29:348,30:360},a=e=>`${e} (${ae(i*e)})`,n=[];for(let t=1;t<=30;t+=1){const e=r[t],i=o[t],s=2*i;n.push({duration:`${t}s`,c360:a(e),c720:a(i),c1080:a(s)})}return t.jsxs("div",{children:[t.jsx(b,{columns:[{title:v("è§é¢æ»æ¶é¿"),dataIndex:"duration"},{title:v("360p / 540p (积å/ä»·æ ¼)"),dataIndex:"c360"},{title:v("720p (积å/ä»·æ ¼)"),dataIndex:"c720"},{title:v("1080p (积å/ä»·æ ¼)"),dataIndex:"c1080"}],dataSource:n,pagination:!1,size:"small",rowKey:"duration"}),t.jsxs("div",{style:{marginTop:"8px",fontSize:"12px",color:"#999",lineHeight:1.6},children:["* ",v("multi_transition ä»
æ¯æ v3.5 / v4 / v4.5 / v5ï¼2~7 个å
³é®å¸§ï¼æ»æ¶é¿ = æ¯å¸§ duration æ±å"),t.jsx("br",{}),"* ",v("1080p = 720p à 2ï¼360p ä¸ 540p åä»·")]})]})}});else if("pixverse-swap"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:e=>{const i=ne(e);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("å辨ç"),dataIndex:"quality"},{title:v("åä½"),dataIndex:"unit"},{title:v("积å"),dataIndex:"credits"},{title:v("ä»·æ ¼"),dataIndex:"price"}
1],dataSource:[{quality:"360p",unit:v("æ¯ç§"),credits:9,price:ae(9*i)},{quality:"540p",unit:v("æ¯ç§"),credits:9,price:ae(9*i)},{quality:"720p",unit:v("æ¯ç§"),credits:12,price:ae(12*i)}],pagination:!1,size:"small"})})}});else if("pixverse-mimic"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:e=>{const i=ne(e);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("å辨ç"),dataIndex:"quality"},{title:v("åä½"),dataIndex:"unit"},{title:v("积å"),dataIndex:"credits"},{title:v("ä»·æ ¼"),dataIndex:"price"}],dataSource:[{quality:"360p",unit:v("æ¯ç§"),credits:9,price:ae(9*i)},{quality:"540p",unit:v("æ¯ç§"),credits:10,price:ae(10*i)},{quality:"720p",unit:v("æ¯ç§"),credits:12,price:ae(12*i)}],pagination:!1,size:"small"})})}});else if("pixverse-modify"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:e=>{const i=ne(e);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("å辨ç"),dataIndex:"quality"},{title:v("åä½"),dataIndex:"unit"},{title:v("积å"),dataIndex:"credits"},{title:v("ä»·æ ¼"),dataIndex:"price"}],dataSource:[{quality:"360p",unit:v("æ¯ç§"),credits:8,price:ae(8*i)},{quality:"540p",unit:v("æ¯ç§"),credits:10,price:ae(10*i)},{quality:"720p",unit:v("æ¯ç§"),credits:12,price:ae(12*i)}],pagination:!1,size:"small"})})}});else if("pixverse-mask-selection"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:e=>{const i=ne(e);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("计费æ¹å¼"),dataIndex:"mode"},{title:v("积å"),dataIndex:"credits"},{title:v("ä»·æ ¼"),dataIndex:"price"}],dataSource:[{mode:v("Mask æ å¾ (åæ¥è®¡è´¹)"),credits:2,price:ae(2*i)}],pagination:!1,size:"small"})})}});else if("pixverse-image-template"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:e=>It({perCredit:ne(e),formatPrice:ae,t:v,pixverseTplStats:re,actions:["image_template"],isImageTemplate:!0})});else if("pixverse-sound-effect"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:e=>{const i=ne(e);return t.jsxs("div",{children:[t.jsx(b,{columns:[{title:v("计费æ¹å¼"),dataIndex:"mode"},{title:v("åä»·"),dataIndex:"unit"},{title:v("积å"),dataIndex:"credits"},{title:v("ä»·æ ¼"),dataIndex:"price"}],dataSource:[{mode:v("鳿çæ"),unit:v("æ¯ç§"),credits:2,price:ae(2*i)}],pagination:!1,size:"small"}),t.jsxs("div",{style:{marginTop:"8px",fontSize:"12px",color:"#999"},children:["* ",v("æé³ææ¶é¿ï¼ç§ï¼è®¡è´¹ï¼body.duration å¿
å¡«")]})]})}});else if("pixverse-upload"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:()=>t.jsx("div",{style:{fontSize:"12px",color:"#999"},children:v("ç´ æä¸ä¼ æ¥å£å
è´¹ï¼image/upload ä¸ media/uploadï¼")})});else if("gemini-3-pro-image"===e||"gemini-3-pro-image-preview"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const r=ne(e);return t.jsx("div",{className:"!rounded-2xl overflow-hidden shadow-sm",children:t.jsx(b,{columns:[{title:v("å辨ç"),dataIndex:"resolution"},{title:v("ä»·æ ¼"),dataIndex:"price"}],dataSource:[{resolution:"1K",price:ae(1*r)},{resolution:"2K",price:ae(1*r)},{resolution:"4K",price:ae(1.79*r)}],pagination:!1,size:"small"})})}});else if("gemini-3.1-flash-image"===e||"gemini-3.1-flash-image-preview"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const r=ne(e);return t.jsx("div",{className:"!rounded-2xl overflow-hidden shadow-sm",children:t.jsx(b,{columns:[{title:v("å辨ç"),dataIndex:"resolution"},{title:v("ä»·æ ¼"),dataIndex:"price"}],dataSource:[{resolution:"512",price:ae(.66696*r)},{resolution:"1K",price:ae(1*r)},{resolution:"2K",price:ae(1*r)},{resolution:"4K",price:ae(1.78571*r)}],pagination:!1,size:"small"})})}});else if("MiniMax-Hailuo-02"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(i,r)=>{const o=ne(i);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("模åçæ¬"),dataIndex:"version"},{title:v("ç±»å"),dataIndex:"type"},{title:v("å辨ç"),dataIndex:"resolution"},{title:v("æ¶é¿"),dataIndex:"duration"},{title:v("ä»·æ ¼"),dataIndex:"price"}],dataSource:[{version:e,type:v("æçè§é¢,å¾çè§é¢"),resolution:"768P",duration:"6s",price:ae(1*o)},{version:e,type:v("æçè§é¢,å¾çè§é¢"),resolution:"768P",duration:"10s",price:ae(2*o)},{version:e,type:v("æçè§é¢,å¾çè§é¢"),resolution:"1080P",duration:"6s",price:ae(1.75*o)},{version:e,type:v("å¾çè§é¢"),resolution:"512P",duration:"6s",price:ae(.3*o)},{version:e,type:v("å¾çè§é¢"),resolution:"512P",duration:"10s",price:ae(.5*o)}],pagination:!1,size:"small"})})}});else if("MiniMax-Hailuo-2.3"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(i,r)=>{const o=ne(i);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("模åçæ¬"),dataIndex:"version"},{title:v("ç±»å"),dataIndex:"type"},{title:v("å辨ç"),dataIndex:"resolution"},{title:v("æ¶é¿"),dataIndex:"duration"},{title:v("ä»·æ ¼"),dataIndex:"price"}],dataSource:[{version:e,type:v("æçè§é¢,å¾çè§é¢"),resolution:"768P",duration:"6s",price:ae(1*o)},{version:e,type:v("æçè§é¢,å¾çè§é¢"),resolution:"768P",duration:"10s",price:ae(2*o)},{version:e,type:v("æçè§é¢,å¾çè§é¢"),resolution:"1080P",duration:"6s",price:ae(1.75*o)}],pagination:!1,size:"small"})})}});else if("MiniMax-Hailuo-2.3-Fast"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(i,r)=>{const o=ne(i);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("模åçæ¬"),dataIndex:"version"},{title:v("ç±»å"),dataIndex:"type"},{title:v("å辨ç"),dataIndex:"resolution"},{title:v("æ¶é¿"),dataIndex:"duration"},{title:v("ä»·æ ¼"),dataIndex:"price"}],dataSource:[{version:e,type:v("å¾çè§é¢"),resolution:"768P",duration:"6s",price:ae(1*o)},{version:e,type:v("å¾çè§é¢"),resolution:"768P",duration:"10s",price:ae(o*(225/135))},{version:e,type:v("å¾çè§é¢"),resolution:"1080P",duration:"6s",price:ae(o*(231/135))}],pagination:!1,size:"small"})})}});else if("jimeng-videos"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(e,i)=>{const r=ne(e);return t.jsx("div",{className:"!rounded-2xl overflow-hidden shadow-sm",children:t.jsx(b,{columns:[{title:v("模åçæ¬"),dataIndex:"version"},{title:v("ç±»å"),dataIndex:"type"},{title:v("æ¶é¿"),dataIndex:"duration"},{title:v("ä»·æ ¼"),dataIndex:"price"}],dataSource:[{version:"jimengv3",type:v("æçè§é¢"),duration:"5s",price:ae(1*r)},{version:"jimengv3",type:v("æçè§é¢"),duration:"10s",price:ae(2*r)},{version:"jimengv3",type:v("å¾çè§é¢"),duration:"5s",price:ae(1*r)},{version:"jimengv3",type:v("å¾çè§é¢"),duration:"10s",price:ae(2*r)}],pagination:!1,size:"small"})})}});else if("kling-multi-elements"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:e=>{const i=ne(e);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("模åçæ¬"),dataIndex:"version"},{title:v("模å¼"),dataIndex:"mode"},{title:v("æ¶é¿"),dataIndex:"duration"},{title:v("ä»·æ ¼"),dataIndex:"price"}],dataSource:[{version:"kling-v1-6",mode:"std",duration:"5s",price:ae(3*i)},{version:"kling-v1-6",mode:"std",duration:"10s",price:ae(6*i)},{version:"kling-v1-6",mode:"pro",duration:"5s",price:ae(5*i)},{version:"kling-v1-6",mode:"pro",duration:"10s",price:ae(10*i)}],pagination:!1,size:"small"})})}});else if("kling-image-recognize"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:e=>{const i=ne(e);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("ä»·æ ¼"),dataIndex:"price"}],dataSource:[{price:v("æ¯æ¬¡")+ae(i)}],pagination:!1,size:"small"})})}});else if("kling-video-extend"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:e=>{const i=ne(e);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("模åçæ¬"),dataIndex:"version"},{title:v("模å¼"),dataIndex:"mode"},{title:v("æ¶é¿"),dataIndex:"duration"},{title:v("ä»·æ ¼"),dataIndex:"price"}],dataSource:[{version:"kling-v1",mode:"std",duration:"4~5s",price:ae(1*i)},{version:"kling-v1",mode:"pro",duration:"4~5s",price:ae(3.5*i)},{version:"kling-v1-5",mode:"std",duration:"4~5s",price:ae(2*i)},{version:"kling-v1-5",mode:"pro",duration:"4~5s",price:ae(3.5*i)},{version:"kling-v1-6",mode:"std",duration:"4~5s",price:ae(2*i)},{version:"kling-v1-6",mode:"pro",duration:"4~5s",price:ae(3.5*i)}],pagination:!1,size:"small"})})}});else if("kling-avatar-image2video"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:e=>{const i=ne(e);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("模å¼"),dataIndex:"mode"},{title:v("ä»·æ ¼ï¼æç§è®¡è´¹ï¼"),dataIndex:"price"}],dataSource:[{mode:"std",price:ae(1*i)+v("/ç§")},{mode:"pro",price:ae(2*i)+v("/ç§")}],pagination:!1,size:"small"})})}});else if("kling-advanced-lip-sync"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:e=>{const i=ne(e);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("ç±»å"),dataIndex:"type"},{title:v("ä»·æ ¼"),dataIndex:"price"}],dataSource:[{type:v("人è¸è¯å«"),price:v("æ¯æ¬¡")+ae(.1*i)},{type:v("对å£å"),price:v("æ¯5ç§")+ae(i)}],pagination:!1,size:"small"})})}});else if("kling-kolors-virtual-try-on"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:i=>{const r=ne(i);let o="",a="";return"kling-kolors-virtual-try-on"===e&&(o=v("èæè¯ç©¿"),a=v("AIèæè¯ç©¿åè½")),t.jsx("div",{children:t.jsx(b,{columns:[{title:v("åè½"),dataIndex:"function"},{title:v("说æ"),dataIndex:"description"},{title:v("ä»·æ ¼"),dataIndex:"price"}],dataSource:[{function:o,description:a,price:ae(r)}],pagination:!1,size:"small"})})}});else if("doubao-seedance-2-0-260128"===e||"doubao-seedance-2-0-fast-260128"===e)m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:(i,r)=>{const o=ne(i),a="doubao-seedance-2-0-fast-260128"===e,n=o*(a?2200:2800)/(a?3700:4600);return t.jsx("div",{children:t.jsx(b,{columns:[{title:v("åºæ¯"),dataIndex:"scene"},{title:v("ä»·æ ¼ï¼/1M tokensï¼"),dataIndex:"price"}],dataSource:[{scene:v("ä¸å«åèè§é¢"),price:ae(o)},{scene:v("å«åèè§é¢"),price:ae(n)}],pagination:!1,size:"small"})})}});else{const i=["speech-02-hd","speech-02-turbo","speech-2.6-hd","speech-2.6-turbo","speech-2.8-hd","speech-2.8-turbo"].includes(e);m.push({title:v("ä»·æ ¼"),dataIndex:"fixedPrice",render:e=>t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"font-semibold text-orange-600",children:e}),t.jsxs("div",{className:"text-xs text-gray-500",children:["/ ",v(i?"ä¸å符":"次")]})]})})}}return t.jsx(M,{dataSource:e.map(e=>({...e,billingType:i?v("æå¼ 计费"):e.billingType,fixedPrice:i?e.priceData?.price:e.fixedPrice})),columns:m,pagination:!1,size:"small",bordered:!1,className:"!rounded-lg",hidePagination:!0,rowKey:"key"})},ce=$>0?{height:$}:void 0,ue=e=>{const i=e<0?"left":"right";return t.jsx("div",{ref:"left"===i?_:P,role:"button",tabIndex:0,className:`pricing-table-scroll-rail pricing-table-scroll-rail--${i}`,style:ce,"aria-label":v(e<0?"åå·¦æ»å¨":"å峿»å¨"),title:v(e<0?"åå·¦æ»å¨":"å峿»å¨"),...ie(e),children:t.jsx("span",{className:"pricing-table-scroll-rail-indicator","aria-hidden":"true",children:e<0?t.jsx(F,{size:18}):t.jsx(E,{size:18})})})};return t.jsxs("div",{className:"pt-1",children:[t.jsxs("div",{className:"flex items-center mb-3",children:[t.jsx(x,{size:14,color:"orange",className:"mr-2 shadow-md",children:t.jsx(K,{size:16})}),t.jsxs("div",{children:[t.jsx(vt,{className:"text-base font-semibold",children:v("åç
1»ä»·æ ¼")}),t.jsx("div",{className:"text-xs text-muted-foreground",children:v("ä¸åç¨æ·åç»çä»·æ ¼ä¿¡æ¯")})]})]}),j.length>0&&t.jsxs("div",{className:"flex flex-wrap items-center gap-1 mb-4",children:[t.jsx("span",{className:"text-sm text-gray-600",children:v("autoåç»è°ç¨é¾è·¯")}),t.jsx("span",{className:"text-sm",children:"â"}),j.map((e,r)=>t.jsxs(i.Fragment,{children:[t.jsxs(d,{color:"white",size:"small",shape:"circle",children:[e,v("åç»")]}),r<j.length-1&&t.jsx("span",{className:"text-sm",children:"â"})]},e))]}),w?t.jsxs("div",{ref:k,className:"pricing-table-scroll-wrap",onMouseMove:U,onMouseLeave:G,children:[ue(-1),t.jsx("div",{ref:I,className:"pricing-table-scroll-body",children:de()}),ue(1)]}):de()]})},{Text:_t}=k,Pt=({visible:e,onClose:i,modelData:r,groupRatio:o,groupModelRatio:a,currency:n,tokenUnit:s,displayPrice:l,showRatio:d,usableGroup:c,vendorsMap:u,endpointMap:p,autoGroups:m,usdExchangeRate:x,priceRate:h,showOfficialDiscount:g=!0,t:v})=>{const f=le(),b=!!r?.cover_image;return t.jsxs(_,{placement:"right",title:t.jsx(st,{modelData:r,vendorsMap:u,t:v}),bodyStyle:{padding:"0",display:"flex",flexDirection:"column",borderBottom:"1px solid hsl(var(--border))",overflowY:"auto"},headerStyle:{borderBottom:"1px solid hsl(var(--border))",padding:"12px 16px"},visible:e,width:f?"100%":1e3,closeIcon:t.jsx(W,{size:16}),onCancel:i,children:[!r&&t.jsx("div",{className:"flex justify-center items-center py-20",children:t.jsx(_t,{type:"secondary",children:v("å è½½ä¸...")})}),r&&t.jsxs(t.Fragment,{children:[b&&t.jsx("div",{className:"w-full overflow-hidden",style:{aspectRatio:"3/1",maxHeight:260,background:"hsl(var(--muted))"},children:t.jsx("img",{src:r.cover_image,alt:r.model_name_display||r.model_name,style:{width:"100%",height:"100%",objectFit:"cover",display:"block"},onError:e=>{e.currentTarget.parentElement.style.display="none"}})}),t.jsxs("div",{className:(f?"p-4":"p-5")+" flex-1",children:[t.jsxs("div",{className:(f?"":"flex gap-6")+" mb-5",children:[t.jsx("div",{className:f?"":"flex-1 min-w-0",children:t.jsx(ut,{modelData:r,vendorsMap:u,t:v})}),!f&&r?.supported_endpoint_types?.length>0&&t.jsx("div",{style:{width:1,background:"hsl(var(--border))",flexShrink:0}}),r?.supported_endpoint_types?.length>0&&t.jsx("div",{className:f?"":"flex-1 min-w-0",children:t.jsx(gt,{modelData:r,endpointMap:p,t:v})})]}),t.jsx("div",{className:"border-t pt-5",style:{borderColor:"hsl(var(--border))"},children:t.jsx(kt,{modelData:r,groupRatio:o,groupModelRatio:a,currency:n,tokenUnit:s,displayPrice:l,showRatio:d,usableGroup:c,autoGroups:m,usdExchangeRate:x,priceRate:h,showOfficialDiscount:g,t:v})})]})]})]})},St=()=>{const e=new URLSearchParams(window.location.search),t=e.get("quota_type");return{keyword:e.get("keyword")||"",provider:e.get("provider")||"all",category:e.get("category")||"all",tag:e.get("tag")?e.get("tag").split(",").filter(Boolean):[],group:e.get("group")||"all",quota_type:"0"===t?0:"1"===t?1:"all"}},Ct=()=>{const{t}=re(),[i]=e.useState(St),r=e.useRef(!0),[o,a]=e.useState(i.keyword),n=e.useRef({isComposition:!1}),[s,l]=e.useState([]),[d,c]=e.useState(""),[u,p]=e.useState(!1),[x,h]=e.useState(i.group),[g,v]=e.useState(!1),[f,b]=e.useState(null),[y,j]=e.useState(i.group),[w,I]=e.useState(i.quota_type),[k,_]=e.useState("all"),[P,S]=e.useState(i.provider),[C,M]=e.useState(i.tag),[N,T]=e.useState(i.category),[R,z]=e.useState(30),[q,$]=e.useState(1),[V,A]=e.useState("USD"),[K,F]=e.useState(!1),[E,W]=e.useState("M"),[L,O]=e.useState([]),[U,G]=e.useState({}),[D,Q]=e.useState([]),[B,J]=e.useState(!0),[Z,ee]=e.useState({}),[te,ie]=e.useState({}),[le,de]=e.useState({}),[ce,ue]=e.useState({}),[pe,me]=e.useState([]),[xe]=e.useContext(H),[he]=e.useContext(oe),ge=e.useMemo(()=>xe?.status?.price??xe?.status?.original_price??.5,[xe]),ve=e.useMemo(()=>{const e=xe?.status?.usd_exchange_rate,t=parseFloat(e);return Number.isFinite(t)&&t>0?t:ge},[xe,ge]),fe=e.useMemo(()=>{const e=xe?.status?.show_official_discount;return null==e||!!e},[xe]),be=e.useMemo(()=>xe?.status?.currency_type??"USD",[xe]),ye=e.useMemo(()=>xe?.status?.custom_currency_symbol??"¤",[xe]),je=e.useMemo(()=>parseFloat(xe?.status?.custom_currency_exchange_rate)||1,[xe]);e.useEffect(()=>{["USD","CNY","CUSTOM","TOKENS"].includes(be)&&A(be)},[be]);const we=e.useMemo(()=>{let e=L;if("all"!==y&&(e=e.filter(e=>e.enable_groups.includes(y))),"all"!==w&&(e=e.filter(e=>e.quota_type===w)),"all"!==k&&(e=e.filter(e=>e.supported_endpoint_types&&e.supported_endpoint_types.includes(k))),"all"!==P&&(e="unknown"===P?e.filter(e=>!e.vendor_name):e.filter(e=>
1e.vendor_name===P)),C.length>0&&(e=e.filter(e=>{if(!e.tags)return!1;const t=e.tags.toLowerCase().split(/[,;|\s]+/).map(e=>e.trim()).filter(Boolean);return C.every(e=>t.includes(e.toLowerCase()))})),"all"!==N&&(e=e.filter(e=>e.model_type===N)),o.length>0){const t=o.toLowerCase();e=e.filter(e=>e.model_name&&e.model_name.toLowerCase().includes(t))}return e},[L,o,y,w,k,P,C,N]),Ie=e.useMemo(()=>({selectedRowKeys:s,onChange:e=>{l(e)}}),[s]),ke=(e,t=3)=>{if(!Number.isFinite(e))return(0).toFixed(t);const i=Math.abs(e);if(0===i||i>=1)return e.toFixed(t);const r=Math.floor(Math.log10(i)),o=Math.min(8,Math.max(4,2-r));return e.toFixed(o)},_e=async()=>{await(async()=>{J(!0);const e=await X.get("/api/pricing_new"),{success:t,message:i,data:o,vendors:a,group_ratio:n,group_model_ratio:s,usable_group:l,supported_endpoint:d,auto_groups:c}=e.data;if(t){ee(n),ie(s||{}),de(l),r.current?r.current=!1:h("all");const e={};Array.isArray(a)&&(a.forEach(t=>{e[t.id]=t}),Q(a)),G(e),ue(d||{}),me(c||[]),((e,t,i)=>{for(let r=0;r<e.length;r++){const o=e[r];if(o.key=o.model_name,o.group_ratio=t[o.model_name],o.vendor_id&&i[o.vendor_id]){const e=i[o.vendor_id];o.vendor_name=e.name,o.vendor_icon=e.icon,o.vendor_description=e.description}}O(e)})(o,n,e)}else se(i);J(!1)})()};return e.useEffect(()=>{_e().then()},[]),e.useEffect(()=>{const e=new URLSearchParams;o&&e.set("keyword",o),"all"!==P&&e.set("provider",P),"all"!==N&&e.set("category",N),C.length>0&&e.set("tag",C.join(",")),"all"!==y&&e.set("group",y),"all"!==w&&e.set("quota_type",String(w));const t=e.toString(),i=t?`${window.location.pathname}?${t}`:window.location.pathname;window.history.replaceState(null,"",i)},[o,P,N,C,y,w]),e.useEffect(()=>{$(1)},[y,w,k,P,C,N,o]),{searchValue:o,setSearchValue:a,selectedRowKeys:s,setSelectedRowKeys:l,modalImageUrl:d,setModalImageUrl:c,isModalOpenurl:u,setIsModalOpenurl:p,selectedGroup:x,setSelectedGroup:h,showModelDetail:g,setShowModelDetail:v,selectedModel:f,setSelectedModel:b,filterGroup:y,setFilterGroup:j,filterQuotaType:w,setFilterQuotaType:I,filterEndpointType:k,setFilterEndpointType:_,filterVendor:P,setFilterVendor:S,filterTags:C,setFilterTags:M,filterModelType:N,setFilterModelType:T,pageSize:R,setPageSize:z,currentPage:q,setCurrentPage:$,currency:V,setCurrency:A,showWithRecharge:K,setShowWithRecharge:F,tokenUnit:E,setTokenUnit:W,models:L,loading:B,groupRatio:Z,groupModelRatio:te,usableGroup:le,endpointMap:ce,autoGroups:pe,priceRate:ge,usdExchangeRate:ve,showOfficialDiscount:fe,filteredModels:we,rowSelection:Ie,vendorsMap:U,vendors:D,userState:he,statusState:xe,displayPrice:e=>{let t=e;return K&&(t=e*ge/ve),"CNY"===V?`Â¥${ke(t*ve)}`:"CUSTOM"===V?`${ye}${ke(t*je)}`:`$${ke(t)}`},refresh:_e,copyText:async e=>{let i=e;Array.isArray(e)&&(i=e.join(",")),await ne(i)?Y(t("å·²å¤å¶")+"ï¼"+i):m.error({title:t("æ æ³å¤å¶å°åªè´´æ¿ï¼è¯·æå¨å¤å¶"),content:i})},handleChange:e=>{a(e||"")},handleCompositionStart:()=>{n.current.isComposition=!0},handleCompositionEnd:e=>{n.current.isComposition=!1;const t=e.target.value;a(t||"")},handleGroupClick:e=>{h(e),j(e),ae("all"===e?t("å·²åæ¢è³æä¼åçè§å¾ï¼æ¯ä¸ªæ¨¡å使ç¨å
¶æä½åçåç»"):t("å½åæ¥ççåç»ä¸ºï¼{{group}}ï¼åç为ï¼{{ratio}}",{group:e,ratio:Z[e]??1}))},openModelDetail:e=>{b(e),v(!0)},closeModelDetail:()=>{v(!1),setTimeout(()=>{b(null)},300)},compositionRef:n,t}},Mt=()=>{const e=Ct(),{Sider:r,Content:o}=P,a=le(),[n,s]=i.useState(!1),[l,d]=i.useState("card"),c={...e,showRatio:n,setShowRatio:s,viewMode:l,setViewMode:d};return t.jsxs("div",{children:[t.jsxs(P,{className:"pricing-layout",children:[!a&&t.jsx(r,{className:"pricing-scroll-hide pricing-sidebar",width:void 0,style:{flex:"0 0 10%",maxWidth:"10%",width:"10%"},children:t.jsx(je,{...c})}),!a&&t.jsx(o,{className:"pricing-scroll-hide pricing-content",style:{flex:"0 0 90%",maxWidth:"90%",width:"90%"},children:t.jsx(it,{...c,isMobile:a,sidebarProps:c})}),a&&t.jsx(o,{className:"pricing-scroll-hide pricing-content",children:t.jsx(it,{...c,isMobile:a,sidebarProps:c})})]}),t.jsx(S,{src:e.modalImageUrl,visible:e.isModalOpenurl,onVisibleChange:t=>e.setIsModalOpenurl(t)}),t.jsx(Pt,{visible:e.showModelDetail,onClose:e.closeModelDetail,modelData:e.selectedModel,groupRatio:e.groupRatio,groupModelRatio:e.groupModelRatio,usableGroup:e.usableGroup,currency:e.currency,tokenUnit:e.tokenUnit,displayPrice:e.displayPrice,showRatio:c.showRatio,vendorsMap:e.vendorsMap,endpointMap:e.endpointMap,autoGroups:e.autoGroups,usdExchangeRate:e.usdExchangeRate,priceRate:e.priceRate,showOfficialDiscount:e.showOfficialDiscount,t:e.t})]})},Nt=()=>t.jsx("div",{className:"px-2",children:t.jsx(Mt,{})});
1export{Nt as default};
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.