PageSourceSearch

https://astron.ai/assets/PersonalModelHome-BwEoBTgV.js

js astron.ai collected 2026-09-24 13:19:01 UTC 5,586 bytes, 1 lines download raw bytes

1import{r as t,j as o}from"./index-CJQpyVoF.js";import{M as j,a as k,C as R}from"./ModelCardList-E0lGCwkT.js";import{g as c,a as b}from"./ModelParamsTable-BE9To3Fs.js";import{u as z,j as P}from"./inviteCode-D9rgtvJs.js";import{R as _}from"./index-IM4B5Mz9.js";import{u as D}from"./useOrderIsExpired-C3lj0fcm.js";import{u as H}from"./useTranslation-CZJVCIH1.js";import"./index-B491JDAL.js";import"./icon_zhishi_search-VMy98n1a.js";import"./index-CS8YAtyi.js";import"./context-DKhv_b6t.js";import"./Compact-BviLumD4.js";import"./compact-item-5orumCwJ.js";import"./ContextIsolator-hwtSycux.js";import"./SearchOutlined-D1PhykWn.js";import"./reactNode-CvZomqk2.js";import"./button-COlcySkY.js";import"./index-Cb4CfQq0.js";import"./arrow-down-white-JDA--J6P.js";import"./SpaceButton-Du44tacF.js";import"./useUserStore-CzLMwWtH.js";import"./index-34CVpSRX.js";import"./index-DnoH8i83.js";import"./motion-BwoXtl0z.js";import"./zoom-DpNIHBsI.js";import"./useUrlParam-CZ4aw4md.js";import"./CloseOutlined-D5mcFo44.js";import"./AntdIcon-BKgxT62r.js";import"./utils-BAxb0YWC.js";import"./Icon-RcghnO3P.js";import"./index-BOgq_7CB.js";import"./common-BC0booSG.js";import"./index-CJrGXcrc.js";import"./icon_zhishi_upload_act-D7BMkVq5.js";import"./ai_chat_placeholder-ChZYJ5lQ.js";import"./modal-close-QVlieQPY.js";import"./index-IS3faKyI.js";import"./collapse-BbEVqHco.js";import"./fade-DU7Y_kU8.js";import"./useForceUpdate-DvJ9yelE.js";import"./progress-BRPegRc4.js";import"./CheckOutlined-DczzTUs8.js";import"./useLocale-Dmo9Agcu.js";import"./AppEntry-yGjZDq3c.js";import"./index-CiW30IE2.js";import"./tslib.es6-BO7bUXQ_.js";import"./dayjs.min-MSV7X6E-.js";import"./userAuth-Bzc-YaEz.js";import"./base64-Cs2W2fcZ.js";import"./index-BP4ecnBA.js";import"./globalStore-DBkxQF3u.js";import"./knowledge-B6Xt4n06.js";import"./plugin-C0dpnJ-K.js";import"./icon_dialog_del-CuIQ4TrY.js";import"./input-add-icon-C_hNQCQD.js";import"./index-BQyCNz27.js";import"./Overflow-Dh_HYkSz.js";import"./PurePanel-CKKM5xpM.js";import"./DownOutlined-Bedvisqk.js";import"./v4-CtRu48qb.js";import"./index-B92ElPs4.js";import"./index-CW5BC8-r.js";import"./lodash-DQpAQgZ8.js";import"./input_error_msg-00mgFdkQ.js";import"./icon_form_select-BmwEbWUU.js";import"./input-remove-icon-CMiTsaIm.js";import"./index-U-K3gcoz.js";import"./UpOutlined-COHBlDPP.js";import"./Table-B8VxV0Ub.js";import"./styleChecker-Qlp7tQr6.js";import"./addEventListener-B4p1orND.js";import"./conductUtil-BjxLXQtP.js";import"./index-D8n5n2bd.js";import"./index-TUPY4PN5.js";import"./index-Bzc9CXj1.js";import"./RightOutlined-DlN6rwzX.js";import"./EllipsisOutlined-DtZ6Tilt.js";import"./index-ad3S-Ulj.js";import"./index-BSH15dlR.js";import"./useBreakpoint-Bpehexoc.js";import"./responsiveObserver-DyJXlrPc.js";import"./Pagination-C67t5xY0.js";import"./LeftOutlined-C7JmM6ZX.js";import"./CaretDownOutlined-Dv3U9ShB.js";import"./traceAndOrder-Ckos_Swc.js";import"./index-xBPjzTPJ.js";import"./utils-DBy4YQWF.js";const Q="_scrollContainer_1g3d5_1",U="_placeholderContainer_1g3d5_8",W="_modelTypeTitle_1g3d5_14",q="_modelCardListFilterContainer_1g3d5_24",p={scrollContainer:Q,placeholderContainer:U,modelTypeTitle:W,modelCardListFilterContainer:q};function _t(){const{t:s}=H(),{withCheckIsExpired:w}=D(),[C,n]=t.useState([]),[l,g]=t.useState([]);t.useRef(null);const[d,F]=t.useState(""),[i,N]=t.useState(0),[f,M]=t.useState(()=>{try{return sessionStorage.getItem("personalModelQueckFilter")==="1"}catch{return!1}}),[y,A]=t.useState([]),m=z(r=>r.user);t.useEffect(()=>{c({type:2,page:1,filter:i,pageSize:9999}).then(e=>{const x=(e==null?void 0:e.records)??[];n(x)})},[i]),t.useEffect(()=>{c({type:1,page:1,filter:i,pageSize:9999}).then(e=>{const x=(e==null?void 0:e.records)??[];g(x)})},[]);const h=()=>{const r={type:2,page:1,filter:i,pageSize:9999};c(r).then(e=>{n((e==null?void 0:e.records)??[])}),r.type=1,c(r).then(e=>{g((e==null?void 0:e.records)??[])})},a=t.useMemo(()=>f?y:i===0?C:l,[C,y,f]),v=()=>{M(!0)},[E,O]=t.useState(""),[I,S]=t.useState(!1),[u,L]=t.useState([]),T=()=>{if(!(m!=null&&m.login)&&!(m!=null&&m.uid))return P();w(),O(""),S(!0)};return t.useEffect(()=>{b().then(r=>{L(r)})},[]),o.jsxs("div",{className:"w-full h-screen flex flex-col pt-5",children:[o.jsx("h1",{className:"font-medium text-[20px] text-[#222529] leading-none font-[PingFang-Sim]",
1style:{width:"86%",maxWidth:"1425px",margin:"0 auto 10px"},children:s("model.modelManagement")}),o.jsx("div",{className:p.scrollContainer,children:o.jsxs("div",{className:p.placeholderContainer,children:[o.jsxs("div",{className:p.modelTypeTitle,children:[" ",s("model.officialModel")]}),o.jsx("div",{className:p.modelCardListFilterContainer,children:(l==null?void 0:l.length)>0?o.jsx(j,{models:l,keyword:"",showShelfOnly:!1,refreshModels:h,categoryTree:u}):o.jsx(_,{description:s("model.emptyDescription"),buttonText:"",onCreate:()=>{}})}),o.jsxs("div",{className:p.modelTypeTitle,style:{marginTop:"20px"},children:[s("model.personalModel"),o.jsx("div",{className:p.modelCardListFilterContainer,children:o.jsx(k,{activeTab:"personalModel",shelfOffModel:[],searchInput:d,setSearchInput:F,refreshModels:v,filterType:i,setFilterType:N,setShowShelfOnly:M,handleCreateClick:T})})]}),(a==null?void 0:a.length)>0?o.jsx(j,{models:a,showCreate:!0,keyword:d,filterType:i,setModels:n,refreshModels:h,showShelfOnly:f,categoryTree:u}):o.jsx(_,{description:s(d?"model.searchNoResults":"model.emptyDescription"),buttonText:s("model.createModel"),onCreate:T}),I&&o.jsx(R,{setCreateModal:S,getModels:h,modelId:E,categoryTree:u,setModels:n,filterType:i})]})})]})}export{_t as PersonalModel,_t 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.