1import{d as S,H as w,R as k,k as b,h as C,i as A,r as d,w as P,o as T,q,s as p,b as t,u as _,B as f,W as B,I as D}from"./entry.BwgfBhlI.js";import{_ as N}from"./InputField.BS-EMQmA.js";import{a as R}from"./QSelect.C5cNemDD.js";import{_ as U}from"./SettingsPage.DCttiLGE.js";import{u as $}from"./project._ZfljPZR.js";import"./_plugin-vue_export-helper.DlAUqK2U.js";import"./QChip.DxR0BB4l.js";import"./QItemSection.Cw5Ob-O0.js";import"./QMenu.CEj9b6AS.js";import"./position-engine.P-ynsy9N.js";import"./selection.BuXNvR-l.js";import"./format.JHXGmCbL.js";const X=S({__name:"index",async setup(z){let y,v;const o=w(),u=$();[y,v]=k(()=>B(`project-${o.params.id}`,()=>u.fetchProjectDetails(o.params.id))),await y,v();const m=b(()=>u.projectDetails[o.params.id]),j=C(),h=A(),a=d(""),s=d(""),n=d("");P(()=>m.value,()=>{var r,e,i;a.value=((r=m.value)==null?void 0:r.name)??"",s.value=((e=m.value)==null?void 0:e.summary)??"",n.value=((i=m.value)==null?void 0:i.type)??""},{immediate:!0});async function g(r){(await fetch(`https://api.connect.cider.sh/marketplace/projects/${o.params.id}`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${j.token}`},body:JSON.stringify({name:a.value,summary:s.value,type:n.value})})).ok?(h.notify({message:"Settings saved",color:"positive",position:"top",timeout:2500}),await u.fetchProjectDetails(o.params.id,!0)):h.notify({message:"Failed to save settings",color:"negative",position:"top",timeout:2500}),r()}return(r,e)=>{const i=D,c=N,V=R,x=U;return T(),q(x,{title:"General",onSave:g},{default:p(()=>[t(c,{title:"Name",description:"The display name of the project."},{default:p(()=>[t(i,{modelValue:_(a),"onUpdate:modelValue":e[0]||(e[0]=l=>f(a)?a.value=l:null),borderless:""},null,8,["modelValue"])]),_:1}),t(c,{title:"Summary",description:"A short, concise summary of the project"},{default:p(()=>[t(i,{modelValue:_(s),"onUpdate:modelValue":e[1]||(e[1]=l=>f(s)?s.value=l:null),borderless:""},null,8,["modelValue"])]),_:1}),t(c,{title:"Type",description:"The type of project"},{default:p(()=>[t(V,{modelValue:_(n),"onUpdate:modelValue":e[2]||(e[2]=l=>f(n)?n.value=l:null),options:["theme","plugin"],borderless:"","emit-value":"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1})}}});
1export{X as default};
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.