import{_ as p}from"./PageStateWrapper.vue_vue_type_script_setup_true_lang-GUjnNopq.js";import{u,_ as c}from"./Form.vue_vue_type_script_setup_true_lang-DKARGX-u.js";import{d as f,s as l,r as e,W as _,f as d,h as g,i as v,c as h,v as a}from"./index-C5GbdPxY.js";import"./404-CSqhuwAV.js";import"./VImg-BlqLjeEy.js";import"./BaseForm.vue_vue_type_script_setup_true_lang-BnxGTisD.js";import"./FormLanguageSwitcher.vue_vue_type_script_setup_true_lang-U7bIUoKL.js";import"./VSelect-vtfYszIh.js";import"./VTextField-DxEUpn3-.js";import"./index-XcTykuv2.js";import"./forwardRefs-CB8NoG9r.js";import"./VList-C3dIUnee.js";import"./VAvatar-RkAR0u0e.js";import"./VMenu-CT0Fri-T.js";import"./VOverlay-DlJb3QlW.js";import"./getScrollParent-DE35ecf2.js";import"./VVirtualScroll-BUlcGoHW.js";import"./VChip-CsS_5IS6.js";import"./VForm-BZc3SavJ.js";import"./form-B2je8iBR.js";import"./VCard-DptrO3GI.js";import"./VTextarea-DwarFG-O.js";import"./VCheckbox-rNAD_QU_.js";const J=f({__name:"Edit",setup(w){const{getShowData:s}=u(),n=l(),o=e(!1),r=e(!1),i=e(null);return _(async()=>{o.value=!0;const t=await s(n.params.id,!0);t.status===200?i.value=t.data:t.status===404&&(r.value=!0),o.value=!1}),(t,x)=>{const m=p;return g(),d(m,{loading:a(o),"not-found":a(r)},{default:v(()=>[h(c,{action:"update",item:a(i)},null,8,["item"])]),_:1},8,["loading","not-found"])}}});export{J as default};
