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/DtFjAPax.js";import{k as N}from"../chunks/zkWx44lg.js";import{i as C}from"../chunks/CWPhcWBV.js";import{t as n}from"../chunks/B4BhJv0K.js";import{g as E}from"../chunks/Dy1L5ndr.js";import{h as I}from"../chunks/CfWPoGZr.js";import{c as J,a as M}from"../chunks/M3DqW18C.js";import{S as O}from"../chunks/j_d7JE3S.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||"",meta:s.meta??{},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.DbTjHTEg.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.