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