1import"../chunks/CWj6FrbW.js";import"../chunks/69_IOA4Y.js";import{p as d,g as _,o as $,h as w,i as h,a as v,b as y,s as b,k as i,l as e,m as r,e as x}from"../chunks/7a2fV5I9.js";import{k as N}from"../chunks/PFz3DOhQ.js";import{i as C}from"../chunks/CWFN-V6k.js";import{t as n}from"../chunks/B1RxOmHW.js";import{g as E}from"../chunks/BnvOT63w.js";import{h as I}from"../chunks/C33EP41Y.js";import{c as J,a as M}from"../chunks/fdCtUnn5.js";import{S as O}from"../chunks/Bdpr8se_.js";function P(l,c){d(c,!1);const m=()=>x(k,"$i18n",p),[p,g]=b(),k=_("i18n");let t=r(null),a=r(!1);const u=async s=>{await J(localStorage.token,s).catch(S=>(n.error(`${S}`),null))&&(n.success(m().t("Skill created successfully")),await I.set(await M(localStorage.token)),await E("/workspace/skills"))};$(async()=>{if(sessionStorage.skill){const s=JSON.parse(sessionStorage.skill);sessionStorage.removeItem("skill"),i(a,!0),i(t,{name:s.name||"Skill",id:s.id||"",description:s.description||"",content:s.content||"",is_active:s.is_active??!0,access_grants:s.access_grants!==void 0?s.access_grants:[]})}}),C();var o=w(),f=h(o);N(f,()=>e(t),s=>{O(s,{get skill(){return e(t)},onSubmit:u,get clone(){return e(a)}})}),v(l,o),y(),g()}
1export{P as component}; 2//# sourceMappingURL=47.kmuqC6v6.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.