import{_ as n}from"./PageStateWrapper.vue_vue_type_script_setup_true_lang-GUjnNopq.js";import{u,_ as c}from"./Index.vue_vue_type_script_setup_true_lang-Dd-krPVX.js";import{d as f,s as l,r,W as _,f as d,h as g,i as h,c as v,v as e}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"./DatePicker.vue_vue_type_script_setup_true_lang-Dpw12t9N.js";import"./VDatePicker-DHBX-k2T.js";import"./VSpacer-79sITyKz.js";import"./VCard-DptrO3GI.js";import"./support-CgN-fv-d.js";import"./VTextarea-DwarFG-O.js";import"./VCheckbox-rNAD_QU_.js";const Q=f({__name:"Edit",setup(w){const{getShowData:s}=u(),m=l(),o=r(!1),a=r(!1),i=r(null);return _(async()=>{o.value=!0;const t=await s(m.params.id,!0);t.status===200?i.value=t.data:t.status===404&&(a.value=!0),o.value=!1}),(t,x)=>{const p=n;return g(),d(p,{loading:e(o),"not-found":e(a)},{default:h(()=>[v(c,{action:"update",item:e(i)},null,8,["item"])]),_:1},8,["loading","not-found"])}}});export{Q as default};
