PageSourceSearch

https://kserve-fms-openwebui.hf.space/_app/immutable/nodes/43.BB-q4MLi.js

js kserve-fms-openwebui.hf.space collected 2026-10-03 17:04:09 UTC 1,550 bytes, 2 lines download raw bytes

1import"../chunks/CWj6FrbW.js";import"../chunks/69_IOA4Y.js";import{p as h,g as S,o as $,h as v,i as P,a as b,b as k,s as y,k as s,l as n,m as c,e as N}from"../chunks/Djt4fO9t.js";import{k as x}from"../chunks/CCgs3qCb.js";import{i as E}from"../chunks/BqaakOp7.js";import{t as m}from"../chunks/CDvT-V1T.js";import{g as J}from"../chunks/BwKtPiAG.js";import{c as M}from"../chunks/DmSVGb61.js";import{P as O}from"../chunks/CZLt0QC5.js";function D(p,i){h(i,!1);const g=()=>N(u,"$i18n",l),[l,d]=y(),u=S("i18n");let o=c(null),a=c(!1);const f=async t=>{await M(localStorage.token,t).catch(_=>(m.error(`${_}`),null))&&(m.success(g().t("Prompt created successfully")),await J("/workspace/prompts"))};$(async()=>{if(window.addEventListener("message",async t=>{if(!["https://openwebui.com","https://www.openwebui.com","http://localhost:9999"].includes(t.origin))return;const e=JSON.parse(t.data);s(a,!0),s(o,{name:e.name||e.title||"Prompt",command:e.command,content:e.content,tags:e.tags||[],access_grants:e.access_grants!==void 0?e.access_grants:[]})}),(window.opener??!1)&&window.opener.postMessage("loaded","*"),sessionStorage.prompt){const t=JSON.parse(sessionStorage.prompt);sessionStorage.removeItem("prompt"),s(a,!0),s(o,{name:t.name||t.title||"Prompt",command:t.command,content:t.content,tags:t.tags||[],access_grants:t.access_grants!==void 0?t.access_grants:[]})}}),E();var r=v(),w=P(r);x(w,()=>n(o),t=>{O(t,{get prompt(){return n(o)},onSubmit:f,get clone(){return n(a)}})}),b(p,r),k(),d()}export{D as component};
2//# sourceMappingURL=43.BB-q4MLi.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.