PageSourceSearch

https://tamrzghlwl98-abqary.hf.space/_app/immutable/nodes/16.DSVkKaio.js

js tamrzghlwl98-abqary.hf.space collected 2026-10-03 17:27:00 UTC 2,320 bytes, 2 lines download raw bytes

1import"../chunks/CWj6FrbW.js";import"../chunks/69_IOA4Y.js";import{p as k,g as x,o as y,h as U,i as B,a as l,b as W,s as q,k as P,l as r,e as i,m as C,c as m,r as u,f as _}from"../chunks/CUER8V2o.js";import{i as D}from"../chunks/B75Mpj1d.js";import{i as M}from"../chunks/rK_0sfWx.js";import{t as c}from"../chunks/HGaYnvZ1.js";import{g as Q}from"../chunks/BG-oip0q.js";import{p as j}from"../chunks/BsUaaVrc.js";import{f as z,a as H,c as A,b as G}from"../chunks/N_5TL-Re.js";import{a as J,u as K,g as L}from"../chunks/BhGnlBHY.js";import{F as T}from"../chunks/BnWWDVd_.js";import{S as X}from"../chunks/CwdHh4Vp.js";import{g as Y}from"../chunks/BU95KN2b.js";import{e as Z,c as ee}from"../chunks/_UcCb4Vt.js";import{W as v}from"../chunks/WGYuJ2Xt.js";var te=_('<div class="px-[16px] h-full"><!></div>'),oe=_('<div class="flex items-center justify-center h-full"><div class=" pb-16"><!></div></div>');function Ee(E,I){k(I,!1);const p=()=>i(R,"$i18n",a),h=()=>i(A,"$config",a),S=()=>i(G,"$settings",a),$=()=>i(j,"$page",a),[a,b]=q(),R=x("i18n");let o=C(null);const w=async e=>{var s,g,d;const t=Z(e.content);if(ee((t==null?void 0:t.required_open_webui_version)??"0.0.0",v)){c.error(p().t("Open WebUI version (v{{OPEN_WEBUI_VERSION}}) is lower than required version (v{{REQUIRED_VERSION}})",{OPEN_WEBUI_VERSION:v,REQUIRED_VERSION:(t==null?void 0:t.required_open_webui_version)??"0.0.0"}));return}await K(localStorage.token,r(o).id,{id:e.id,name:e.name,meta:e.meta,content:e.content}).catch(V=>(c.error(`${V}`),null))&&(c.success(p().t("Function updated successfully")),z.set(await L(localStorage.token)),H.set(await Y(localStorage.token,((g=(s=h())==null?void 0:s.features)==null?void 0:g.enable_direct_connections)&&(((d=S())==null?void 0:d.directConnections)??null),!1,!0)))};y(async()=>{const e=$().url.searchParams.get("id");e&&(P(o,await J(localStorage.token,e).catch(t=>(c.error(`${t}`),Q("/admin/functions"),null))),r(o))}),M();var f=U(),N=B(f);{var O=e=>{var t=te(),n=m(t);T(n,{edit:!0,get id(){return r(o).id},get name(){return r(o).name},get meta(){return r(o).meta},get content(){return r(o).content},onSave:s=>{w(s)}}),u(t),l(e,t)},F=e=>{var t=oe(),n=m(t),s=m(n);X(s,{className:"size-5"}),u(n),u(t),l(e,t)};D(N,e=>{r(o)?e(O):e(F,-1)})}l(E,f),W(),b()}export{Ee as component};
2//# sourceMappingURL=16.DSVkKaio.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.