PageSourceSearch

https://kuailiaojie-webui.hf.space/_app/immutable/nodes/41.Cp9-JmOO.js

js kuailiaojie-webui.hf.space collected 2026-10-03 17:04:03 UTC 2,227 bytes, 2 lines download raw bytes

1import"../chunks/CWj6FrbW.js";import"../chunks/69_IOA4Y.js";import{p as E,g as b,o as N,h as C,i as D,a as O,b as x,s as B,k as d,l as g,m as L,e as n}from"../chunks/DtFjAPax.js";import{k as U}from"../chunks/zkWx44lg.js";import{i as A}from"../chunks/CWPhcWBV.js";import{t as r}from"../chunks/B4BhJv0K.js";import{g as u}from"../chunks/pzP2z9pO.js";import{d as f,c as I,e as J}from"../chunks/BTPG6at6.js";import{C as P,d as R}from"../chunks/B9lJIPPW.js";import{c as F}from"../chunks/BLw-EbE1.js";import{g as G}from"../chunks/C2m0p6Eu.js";import{M as T}from"../chunks/BquffKAt.js";function te(w,_){E(_,!1);const $=()=>n(f,"$models",a),c=()=>n(y,"$i18n",a),M=()=>n(I,"$config",a),S=()=>n(J,"$settings",a),[a,h]=B(),y=b("i18n"),k=async e=>{var o,t,l;if($().find(p=>p.id===e.id))return r.error(c().t("Error: A model with the ID '{{modelId}}' already exists. Please select a different ID to proceed.",{modelId:e.id})),!1;if(e.id==="")return r.error(c().t("Error: Model ID cannot be empty. Please enter a valid ID to proceed.")),!1;if(e&&await F(localStorage.token,{...e,meta:{...e.meta,profile_image_url:e.meta.profile_image_url??`${R}/static/favicon.png`,suggestion_prompts:e.meta.suggestion_prompts?e.meta.suggestion_prompts.filter(s=>s.content!==""):null},params:{...e.params}}).catch(s=>(r.error(`${s}`),null))){try{await f.set(await G(localStorage.token,(t=(o=M())==null?void 0:o.features)!=null&&t.enable_direct_connections?((l=S())==null?void 0:l.directConnections)??null:null)),r.success(c().t("Model created successfully!")),await u("/workspace/models")}catch(s){r.error(`${(s==null?void 0:s.message)??s}`)}return!0}return!1};let i=L(null);N(()=>{const e=async o=>{if(P.includes(o.origin))try{let t=JSON.parse(o.data);t!=null&&t.info&&(t=t.info),d(i,t)}catch(t){}};return window.addEventListener("message",e),(window.opener??!1)&&window.opener.postMessage("loaded","*"),sessionStorage.model&&(d(i,JSON.parse(sessionStorage.model)),sessionStorage.removeItem("model")),()=>{window.removeEventListener("message",e)}}),A();var m=C(),v=D(m);U(v,()=>g(i),e=>{T(e,{get model(){return g(i)},onSubmit:k,onBack:async()=>{await u("/workspace/models")}})}),O(w,m),x(),h()}export{te as component};
2//# sourceMappingURL=41.Cp9-JmOO.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.