1import{A as g}from"./OdOxKRVq.js";import{u as _}from"./DLF8vmo4.js";import{e as y,r as a,z as R,x,c as m,a as k,g as I,t as b,E as h,o as i}from"./D7pUiA68.js";import"./DgTaxtZB.js";import"./BRjKV0Oe.js";import"./DyzMl18v.js";import"./nB964Mws.js";import"./DssoOl_J.js";import"./BpyOrb3U.js";import"./DlgpYRAf.js";import"./C2iYs2Ff.js";import"./D7Mcu7w1.js";import"./BSmlONNu.js";import"./BHTeLy9-.js";import"./D2NoRhx_.js";import"./Cj1dzMfU.js";import"./BZPKQ7Lj.js";import"./j-Q-RyDB.js";import"./Xkz4VV8A.js";import"./Cp2x8l1r.js";const C={class:"p-4 bg-white rounded-lg"},B={class:"text-2xl mb-4"},E={key:1},W=y({__name:"page_single_collection",setup(N){const n=R(),d=h(),o=_(),s=a(Number(n.params.id||n.params.CollectionId||0)),e=a(null),t=a(null),l=a(!1),c=[{model:"Id",title:"Id",type:"number",isRequired:!1,isReadonly:!1,isHiddenInForm:!0},{model:"Name",title:"Name",type:"text",isRequired:!0,isReadonly:!1,maxLength:20}];x(async()=>{s.value&&!(await o.get({Id:s.value})).errors&&o.singleRecord&&(e.value={...o.singleRecord},t.value={...o.singleRecord})});const p=async()=>{if(!e.value||!t.value)return;l.value=!0;const r=await o.update(e.value,t.value);l.value=!1,r.errors||(t.value={...e.value})},v=()=>{d.back()};return(r,u)=>(i(),m("div",C,[k("h1",B,"Edit Collection "+b(s.value),1),e.value?(i(),I(g,{key:0,colDefs:c,modelValue:e.value,"onUpdate:modelValue":u[0]||(u[0]=f=>e.value=f),isEditing:!0,onSave:p,onCancel:v,loading:l.value},null,8,["modelValue","loading"])):(i(),m("div",E,"Loading..."))]))}});export{W 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.