1import{s as k,l as _,i as w,d as S,j as i,p as y,q as M}from"../chunks/vexCXLX9.js";import{S as h,i as C,t as c,a as u,c as q,b as B,d as P,m as j,e as E,g as I}from"../chunks/Cdll-xsj.js";import{t as N}from"../chunks/DT5uOxbm.js";import{g as m}from"../chunks/vcqg7ZRj.js";import{p as z}from"../chunks/fpl_DVr-.js";import{a as A,c as D,m as F}from"../chunks/DFca5BX5.js";import{g as G,u as H}from"../chunks/C3YwVKtZ.js";import{g as J}from"../chunks/DzKkOKN6.js";import{M as K}from"../chunks/CnlKcy1M.js";function g(n){let o,s;return o=new K({props:{edit:!0,model:n[0],onSubmit:n[2]}}),{c(){B(o.$$.fragment)},l(e){P(o.$$.fragment,e)},m(e,t){j(o,e,t),s=!0},p(e,t){const r={};t&1&&(r.model=e[0]),o.$set(r)},i(e){s||(c(o.$$.fragment,e),s=!0)},o(e){u(o.$$.fragment,e),s=!1},d(e){E(o,e)}}}function L(n){let o,s,e=n[0]&&g(n);return{c(){e&&e.c(),o=_()},l(t){e&&e.l(t),o=_()},m(t,r){e&&e.m(t,r),w(t,o,r),s=!0},p(t,[r]){t[0]?e?(e.p(t,r),r&1&&c(e,1)):(e=g(t),e.c(),c(e,1),e.m(o.parentNode,o)):e&&(I(),u(e,1,1,()=>{e=null}),q())},i(t){s||(c(e),s=!0)},o(t){u(e),s=!1},d(t){t&&S(o),e&&e.d(t)}}}function O(n,o,s){let e,t,r,p;i(n,A,a=>s(4,t=a)),i(n,D,a=>s(5,r=a)),i(n,z,a=>s(6,p=a));const f=y("i18n");i(n,f,a=>s(3,e=a));let l=null;return M(async()=>{const a=p.url.searchParams.get("id");a?(s(0,l=await G(localStorage.token,a).catch(b=>null)),l||m("/workspace/models")):m("/workspace/models")}),[l,f,async a=>{var d;await H(localStorage.token,a.id,a)&&(await F.set(await J(localStorage.token,((d=r==null?void 0:r.features)==null?void 0:d.enable_direct_connections)&&((t==null?void 0:t.directConnections)??null))),N.success(e.t("Model updated successfully")),await m("/workspace/models"))}]}class v extends h{constructor(o){super(),C(this,o,O,L,k,{})}}export{v as component}; 2//# sourceMappingURL=28.D4xUKyqB.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.