PageSourceSearch

https://rocio.ai/_app/immutable/nodes/41.Bf7gkQFw.js

js rocio.ai collected 2026-10-05 12:34:38 UTC 2,222 bytes, 2 lines download raw bytes

1import"../chunks/CWj6FrbW.js";import"../chunks/69_IOA4Y.js";import{p as E,g as b,o as D,h as x,i as B,a as L,b as N,s as A,k as d,l as g,m as C,e as a}from"../chunks/7a2fV5I9.js";import{k as J}from"../chunks/PFz3DOhQ.js";import{i as O}from"../chunks/CWFN-V6k.js";import{t as i}from"../chunks/B1RxOmHW.js";import{g as u}from"../chunks/BnvOT63w.js";import{d as f,c as P,e as U}from"../chunks/C33EP41Y.js";import{d as F}from"../chunks/DKKyCjZm.js";import{c as R}from"../chunks/CvGBZicb.js";import{g as W}from"../chunks/BIMfEMVU.js";import{M as j}from"../chunks/j0hL9hHL.js";function ee(w,_){E(_,!1);const $=()=>a(f,"$models",o),n=()=>a(k,"$i18n",o),h=()=>a(P,"$config",o),M=()=>a(U,"$settings",o),[o,S]=A(),k=b("i18n"),v=async e=>{var s,t,p;if($().find(l=>l.id===e.id)){i.error(n().t("Error: A model with the ID '{{modelId}}' already exists. Please select a different ID to proceed.",{modelId:e.id}));return}if(e.id===""){i.error(n().t("Error: Model ID cannot be empty. Please enter a valid ID to proceed."));return}e&&await R(localStorage.token,{...e,meta:{...e.meta,profile_image_url:e.meta.profile_image_url??`${F}/static/favicon.png`,suggestion_prompts:e.meta.suggestion_prompts?e.meta.suggestion_prompts.filter(c=>c.content!==""):null},params:{...e.params}}).catch(c=>(i.error(`${c}`),null))&&(await f.set(await W(localStorage.token,((t=(s=h())==null?void 0:s.features)==null?void 0:t.enable_direct_connections)&&(((p=M())==null?void 0:p.directConnections)??null))),i.success(n().t("Model created successfully!")),await u("/workspace/models"))};let r=C(null);D(()=>{const e=async s=>{if(["https://openwebui.com","https://www.openwebui.com","http://localhost:9999"].includes(s.origin))try{let t=JSON.parse(s.data);t!=null&&t.info&&(t=t.info),d(r,t)}catch(t){}};return window.addEventListener("message",e),(window.opener??!1)&&window.opener.postMessage("loaded","*"),sessionStorage.model&&(d(r,JSON.parse(sessionStorage.model)),sessionStorage.removeItem("model")),()=>{window.removeEventListener("message",e)}}),O();var m=x(),y=B(m);J(y,()=>g(r),e=>{j(e,{get model(){return g(r)},onSubmit:v,onBack:async()=>{await u("/workspace/models")}})}),L(w,m),N(),S()}export{ee as component};
2//# sourceMappingURL=41.Bf7gkQFw.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.