PageSourceSearch

https://kuailiaojie-webui.hf.space/_app/immutable/nodes/48.BQGN8C8W.js

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

1import"../chunks/CWj6FrbW.js";import"../chunks/69_IOA4Y.js";import{p as w,g as S,o as x,x as I,y as B,h as C,i as E,a as M,b as P,s as j,e as g,l as s,k as r,m as i}from"../chunks/DtFjAPax.js";import{i as q}from"../chunks/BKqLVPYF.js";import{i as z}from"../chunks/CWPhcWBV.js";import{t as n}from"../chunks/B4BhJv0K.js";import{g as f}from"../chunks/pzP2z9pO.js";import{h as A}from"../chunks/BTPG6at6.js";import{b as D,d as F,a as G}from"../chunks/CbgrdbQp.js";import{p as H}from"../chunks/CiwwVgrg.js";import{S as J}from"../chunks/Kvg6TPfh.js";function Y(d,u){w(u,!1);const c=()=>g(H,"$page",l),_=()=>g($,"$i18n",l),[l,k]=j(),a=i(),$=S("i18n");let o=i(null),m=i(!1);const y=async t=>{const e=await F(localStorage.token,s(a),t).catch(v=>(n.error(`${v}`),null));e&&(n.success(_().t("Skill updated successfully")),await A.set(await G(localStorage.token)),r(o,{id:e.id,name:e.name,description:e.description,content:e.content,meta:e.meta??{},is_active:e.is_active,access_grants:(e==null?void 0:e.access_grants)===void 0?[]:e==null?void 0:e.access_grants}))};x(async()=>{if(s(a)){const t=await D(localStorage.token,s(a)).catch(e=>(n.error(`${e}`),null));t?(r(m,!t.write_access),r(o,{id:t.id,name:t.name,description:t.description,content:t.content,meta:t.meta??{},is_active:t.is_active,access_grants:(t==null?void 0:t.access_grants)===void 0?[]:t==null?void 0:t.access_grants})):f("/workspace/skills")}else f("/workspace/skills")}),I(()=>c(),()=>{r(a,c().url.searchParams.get("id"))}),B(),z();var p=C(),b=E(p);{var h=t=>{J(t,{get skill(){return s(o)},onSubmit:y,get disabled(){return s(m)},edit:!0})};q(b,t=>{s(o)&&t(h)})}M(d,p),P(),k()}export{Y as component};
2//# sourceMappingURL=48.BQGN8C8W.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.